#include "FolderTexturePack.h" FolderTexturePack::FolderTexturePack(DWORD id, const wstring &name, File *folder, TexturePack *fallback) : AbstractTexturePack(id, folder, name, fallback) { // 4J Stu - These calls need to be in the most derived version of the class loadIcon(); loadName(); loadDescription(); bUILoaded = false; } InputStream *FolderTexturePack::getResourceImplementation(const wstring &name) //throws IOException { // Make the content package point to to the UPDATE: drive is needed wstring wDrive = L"Assets/DummyTexturePack/res"; InputStream *resource = InputStream::getResourceAsStream(wDrive + name); //return stream; return resource; } bool FolderTexturePack::hasFile(const wstring &name) { File file = File( getPath() + name); return file.exists() && file.isFile(); } bool FolderTexturePack::isTerrainUpdateCompatible() { return true; } wstring FolderTexturePack::getPath(bool bTitleUpdateTexture /*= false*/,const char *pchBDPatchFilename) { wstring wDrive = L"Assets/Textures/" + file->getPath() + L"/"; return wDrive; } void FolderTexturePack::loadUI() { } void FolderTexturePack::unloadUI() { }