diff options
Diffstat (limited to 'Minecraft.Client/Common/DLC/DLCColourTableFile.cpp')
| -rw-r--r-- | Minecraft.Client/Common/DLC/DLCColourTableFile.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Minecraft.Client/Common/DLC/DLCColourTableFile.cpp b/Minecraft.Client/Common/DLC/DLCColourTableFile.cpp new file mode 100644 index 00000000..ec800dac --- /dev/null +++ b/Minecraft.Client/Common/DLC/DLCColourTableFile.cpp @@ -0,0 +1,26 @@ +#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); +}
\ No newline at end of file |
