mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-13 23:18:09 +00:00
refactor: unglob std::wstring
This commit is contained in:
@@ -9,15 +9,15 @@ class AbstractTexturePack : public TexturePack
|
||||
{
|
||||
private:
|
||||
const DWORD id;
|
||||
const wstring name;
|
||||
const std::wstring name;
|
||||
|
||||
protected:
|
||||
File *file;
|
||||
wstring texname;
|
||||
wstring m_wsWorldName;
|
||||
std::wstring texname;
|
||||
std::wstring m_wsWorldName;
|
||||
|
||||
wstring desc1;
|
||||
wstring desc2;
|
||||
std::wstring desc1;
|
||||
std::wstring desc2;
|
||||
|
||||
PBYTE m_iconData;
|
||||
DWORD m_iconSize;
|
||||
@@ -36,10 +36,10 @@ private:
|
||||
int textureId;
|
||||
|
||||
protected:
|
||||
AbstractTexturePack(DWORD id, File *file, const wstring &name, TexturePack *fallback);
|
||||
AbstractTexturePack(DWORD id, File *file, const std::wstring &name, TexturePack *fallback);
|
||||
|
||||
private:
|
||||
static wstring trim(wstring line);
|
||||
static std::wstring trim(std::wstring line);
|
||||
|
||||
protected:
|
||||
virtual void loadIcon();
|
||||
@@ -48,29 +48,29 @@ protected:
|
||||
virtual void loadName();
|
||||
|
||||
public:
|
||||
virtual InputStream *getResource(const wstring &name, bool allowFallback); //throws IOException
|
||||
virtual InputStream *getResource(const std::wstring &name, bool allowFallback); //throws IOException
|
||||
// 4J Removed do to current override in TexturePack class
|
||||
//virtual InputStream *getResource(const wstring &name); //throws IOException
|
||||
//virtual InputStream *getResource(const std::wstring &name); //throws IOException
|
||||
virtual DLCPack * getDLCPack() =0;
|
||||
|
||||
|
||||
protected:
|
||||
virtual InputStream *getResourceImplementation(const wstring &name) = 0; // throws IOException;
|
||||
virtual InputStream *getResourceImplementation(const std::wstring &name) = 0; // throws IOException;
|
||||
public:
|
||||
virtual void unload(Textures *textures);
|
||||
virtual void load(Textures *textures);
|
||||
virtual bool hasFile(const wstring &name, bool allowFallback);
|
||||
virtual bool hasFile(const wstring &name) = 0;
|
||||
virtual bool hasFile(const std::wstring &name, bool allowFallback);
|
||||
virtual bool hasFile(const std::wstring &name) = 0;
|
||||
virtual DWORD getId();
|
||||
virtual wstring getName();
|
||||
virtual wstring getDesc1();
|
||||
virtual wstring getDesc2();
|
||||
virtual wstring getWorldName();
|
||||
virtual std::wstring getName();
|
||||
virtual std::wstring getDesc1();
|
||||
virtual std::wstring getDesc2();
|
||||
virtual std::wstring getWorldName();
|
||||
|
||||
virtual wstring getAnimationString(const wstring &textureName, const wstring &path, bool allowFallback);
|
||||
virtual std::wstring getAnimationString(const std::wstring &textureName, const std::wstring &path, bool allowFallback);
|
||||
|
||||
protected:
|
||||
virtual wstring getAnimationString(const wstring &textureName, const wstring &path);
|
||||
virtual std::wstring getAnimationString(const std::wstring &textureName, const std::wstring &path);
|
||||
void loadDefaultUI();
|
||||
void loadDefaultColourTable();
|
||||
void loadDefaultHTMLColourTable();
|
||||
@@ -79,11 +79,11 @@ protected:
|
||||
#endif
|
||||
|
||||
public:
|
||||
virtual BufferedImage *getImageResource(const wstring& File, bool filenameHasExtension = false, bool bTitleUpdateTexture=false, const wstring &drive =L"");
|
||||
virtual BufferedImage *getImageResource(const std::wstring& File, bool filenameHasExtension = false, bool bTitleUpdateTexture=false, const std::wstring &drive =L"");
|
||||
virtual void loadColourTable();
|
||||
virtual void loadUI();
|
||||
virtual void unloadUI();
|
||||
virtual wstring getXuiRootPath();
|
||||
virtual std::wstring getXuiRootPath();
|
||||
virtual PBYTE getPackIcon(DWORD &dwImageBytes);
|
||||
virtual PBYTE getPackComparison(DWORD &dwImageBytes);
|
||||
virtual unsigned int getDLCParentPackId();
|
||||
|
||||
Reference in New Issue
Block a user