the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#include "stdafx.h"
2#include "DLCManager.h"
3#include "DLCColourTableFile.h"
4#include "..\..\Minecraft.h"
5#include "..\..\TexturePackRepository.h"
6#include "..\..\TexturePack.h"
7
8DLCColourTableFile::DLCColourTableFile(const wstring &path) : DLCFile(DLCManager::e_DLCType_ColourTable,path)
9{
10 m_colourTable = NULL;
11}
12
13DLCColourTableFile::~DLCColourTableFile()
14{
15 if(m_colourTable != NULL)
16 {
17 app.DebugPrintf("Deleting DLCColourTableFile data\n");
18 delete m_colourTable;
19 }
20}
21
22void DLCColourTableFile::addData(PBYTE pbData, DWORD dwBytes)
23{
24 ColourTable *defaultColourTable = Minecraft::GetInstance()->skins->getDefault()->getColourTable();
25 m_colourTable = new ColourTable(defaultColourTable, pbData, dwBytes);
26}