mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-22 08:45:36 +00:00
restructure codebase according to vcproj filters
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#include "../../../../Minecraft.World/Header Files/stdafx.h"
|
||||
#include "DLCManager.h"
|
||||
#include "DLCColourTableFile.h"
|
||||
#include "../../../net/minecraft/client/Minecraft.h"
|
||||
#include "../../../net/minecraft/client/skins/TexturePackRepository.h"
|
||||
#include "../../../net/minecraft/client/skins/TexturePack.h"
|
||||
|
||||
DLCColourTableFile::DLCColourTableFile(const std::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(std::uint8_t* pbData,
|
||||
std::uint32_t dataBytes) {
|
||||
ColourTable* defaultColourTable =
|
||||
Minecraft::GetInstance()->skins->getDefault()->getColourTable();
|
||||
m_colourTable = new ColourTable(defaultColourTable, pbData, dataBytes);
|
||||
}
|
||||
Reference in New Issue
Block a user