4jcraft/Minecraft.Client/Textures/Packs/FileTexturePack.cpp

33 lines
788 B
C++

#include "../../Platform/stdafx.h"
#include "FileTexturePack.h"
FileTexturePack::FileTexturePack(std::uint32_t id, File* file,
TexturePack* fallback)
: AbstractTexturePack(id, file, file->getName(), fallback) {
// 4J Stu - These calls need to be in the most derived version of the class
loadIcon();
loadName();
loadDescription();
}
void FileTexturePack::unload(Textures* textures) {
}
InputStream* FileTexturePack::getResourceImplementation(
const std::wstring& name) // throws IOException
{
return NULL;
}
bool FileTexturePack::hasFile(const std::wstring& name) {
return false;
}
void FileTexturePack::loadZipFile() // throws IOException
{
}
bool FileTexturePack::isTerrainUpdateCompatible() {
return false;
}