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.
26 lines
714 B
C++
26 lines
714 B
C++
#include "stdafx.h"
|
|
#include "DLCManager.h"
|
|
#include "DLCColourTableFile.h"
|
|
#include "..\..\Minecraft.h"
|
|
#include "..\..\TexturePackRepository.h"
|
|
#include "..\..\TexturePack.h"
|
|
|
|
DLCColourTableFile::DLCColourTableFile(const wstring &path) : DLCFile(DLCManager::e_DLCType_ColourTable,path)
|
|
{
|
|
m_colourTable = NULL;
|
|
}
|
|
|
|
DLCColourTableFile::~DLCColourTableFile()
|
|
{
|
|
if(m_colourTable != NULL)
|
|
{
|
|
app.DebugPrintf("Deleting DLCColourTableFile data\n");
|
|
delete m_colourTable;
|
|
}
|
|
}
|
|
|
|
void DLCColourTableFile::addData(PBYTE pbData, DWORD dwBytes)
|
|
{
|
|
ColourTable *defaultColourTable = Minecraft::GetInstance()->skins->getDefault()->getColourTable();
|
|
m_colourTable = new ColourTable(defaultColourTable, pbData, dwBytes);
|
|
} |