mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-12 13:21:57 +00:00
cleanup: flatten dead branches in common app and ui code
This commit is contained in:
@@ -26,50 +26,6 @@ void DLCGameRulesHeader::addData(std::uint8_t* pbData,
|
||||
m_pbData = pbData;
|
||||
m_dataBytes = dataBytes;
|
||||
|
||||
#if 0
|
||||
byteArray data(m_pbData, m_dataBytes);
|
||||
ByteArrayInputStream bais(data);
|
||||
DataInputStream dis(&bais);
|
||||
|
||||
// Init values.
|
||||
int version_number;
|
||||
byte compression_type;
|
||||
std::wstring texturepackid;
|
||||
|
||||
// Read Datastream.
|
||||
version_number = dis.readInt();
|
||||
compression_type = dis.readByte();
|
||||
m_defaultSaveName = dis.readUTF();
|
||||
m_displayName = dis.readUTF();
|
||||
texturepackid = dis.readUTF();
|
||||
m_grfPath = dis.readUTF();
|
||||
|
||||
// Debug printout.
|
||||
app.DebugPrintf (
|
||||
"DLCGameRulesHeader::readHeader:\n"
|
||||
"\tversion_number = '%d',\n"
|
||||
"\tcompression_type = '%d',\n"
|
||||
"\tdefault_savename = '%s',\n"
|
||||
"\tdisplayname = '%s',\n"
|
||||
"\ttexturepackid = '%s',\n"
|
||||
"\tgrf_path = '%s',\n",
|
||||
|
||||
version_number, compression_type,
|
||||
|
||||
wstringtofilename(m_defaultSaveName),
|
||||
wstringtofilename(m_displayName),
|
||||
wstringtofilename(texturepackid),
|
||||
wstringtofilename(m_grfPath)
|
||||
);
|
||||
|
||||
// Texture Pack.
|
||||
m_requiredTexturePackId = _fromString<long>(texturepackid);
|
||||
m_bRequiresTexturePack = m_requiredTexturePackId > 0;
|
||||
|
||||
dis.close();
|
||||
bais.close();
|
||||
bais.reset();
|
||||
#endif
|
||||
}
|
||||
|
||||
std::uint8_t* DLCGameRulesHeader::getData(std::uint32_t& dataBytes) {
|
||||
|
||||
Reference in New Issue
Block a user