refactor: move Minecraft.Client into app
This commit is contained in:
1 parent
e5a859f8a7
commit
11f9bd6046
784 files changed
+2598
-2604
No files matched your search
@@ -0,0 +1,28 @@
|
||||
#include "DLCColourTableFile.h"
|
||||
|
||||
#include "DLCManager.h"
|
||||
#include "app/common/src/Colours/ColourTable.h"
|
||||
#include "app/common/src/DLC/DLCFile.h"
|
||||
#include "app/linux/Linux_App.h"
|
||||
#include "minecraft/client/Minecraft.h"
|
||||
#include "minecraft/client/skins/TexturePack.h"
|
||||
#include "minecraft/client/skins/TexturePackRepository.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