4jcraft/Minecraft.Client/Textures/Packs/FileTexturePack.cpp
2026-03-30 02:17:54 -05:00

27 lines
781 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 nullptr;
}
bool FileTexturePack::hasFile(const std::wstring& name) { return false; }
void FileTexturePack::loadZipFile() // throws IOException
{}
bool FileTexturePack::isTerrainUpdateCompatible() { return false; }