aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Common/DLC/DLCColourTableFile.cpp
blob: a0c818a7c1aa991ebf46f9928ef92b10cd0eed76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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 = nullptr;
}

DLCColourTableFile::~DLCColourTableFile()
{
	if(m_colourTable != nullptr)
	{
		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);
}