This code was not tested and breaks in Release builds, reverting to restore
functionality of the nightly. All in-game menus do not work and generating
a world crashes.
This reverts commit a9be52c41a.
33 lines
734 B
C++
33 lines
734 B
C++
#pragma once
|
|
#include "AbstractTexturePack.h"
|
|
|
|
class DefaultTexturePack : public AbstractTexturePack
|
|
{
|
|
public:
|
|
DefaultTexturePack();
|
|
DLCPack * getDLCPack() {return NULL;}
|
|
|
|
protected:
|
|
//@Override
|
|
void loadIcon();
|
|
void loadName();
|
|
void loadDescription();
|
|
|
|
public:
|
|
//@Override
|
|
bool hasFile(const wstring &name);
|
|
bool isTerrainUpdateCompatible();
|
|
|
|
wstring getDesc1() {return app.GetString(IDS_DEFAULT_TEXTUREPACK);}
|
|
|
|
protected:
|
|
//@Override
|
|
InputStream *getResourceImplementation(const wstring &name); // throws FileNotFoundException
|
|
|
|
public:
|
|
virtual bool hasData() { return true; }
|
|
virtual bool hasAudio() { return false; }
|
|
virtual bool isLoadingData() { return false; }
|
|
virtual void loadUI();
|
|
virtual void unloadUI();
|
|
}; |