mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-05-25 12:14:34 +00:00
Trial code is almost cleaned. Consoles are now unused. stdafx unbloat for Minecraft.Client
48 lines
1.1 KiB
C++
48 lines
1.1 KiB
C++
#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()
|
|
{
|
|
} |