mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-11 19:53:52 +00:00
Initial commit
This commit is contained in:
parent
def8cb4153
commit
b691c43c44
19437 changed files with 4363922 additions and 0 deletions
26
Minecraft.Client/Common/DLC/DLCColourTableFile.cpp
Normal file
26
Minecraft.Client/Common/DLC/DLCColourTableFile.cpp
Normal file
|
|
@ -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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue