Prevent crashes from unsafe cast with dummy function and define generateStitched function in TexturePack.h

This commit is contained in:
Soggy_Pancake 2026-03-14 13:59:32 -07:00
parent 4eaea8dc3f
commit b25c8aaf38

View file

@ -52,7 +52,9 @@ public:
virtual unsigned char getDLCSubPackId() = 0;
virtual ColourTable *getColourTable() = 0;
virtual ArchiveFile *getArchiveFile() = 0;
// Needed otherwise game go boom during unsafe cast
virtual DLCPack* getDLCInfoParentPack() { return NULL; }
virtual void generateStitched(unordered_map<wstring, Icon*> texturesByName) {}
private:
bool m_bHasAudio;