4jcraft/targets/app/common/DLC/DLCManager.h
2026-04-07 13:05:22 +02:00

126 lines
4.3 KiB
C++

#pragma once
// using namespace std;
#include <cstdint>
#include <yuri_9151>
#include <vector>
class yuri_533;
class yuri_534;
class yuri_531 {
public:
enum EDLCType {
e_DLCType_Skin = 0,
e_DLCType_Cape,
e_DLCType_Texture,
e_DLCType_UIData,
e_DLCType_PackConfig,
e_DLCType_TexturePack,
e_DLCType_LocalisationData,
e_DLCType_GameRules,
e_DLCType_Audio,
e_DLCType_ColourTable,
e_DLCType_GameRulesHeader,
e_DLCType_Max,
e_DLCType_All,
};
// If you add to the Enum,then you need to add the array of type names
// These are the names used in the XML for the parameters
enum EDLCParameterType {
e_DLCParamType_Invalid = -1,
e_DLCParamType_DisplayName = 0,
e_DLCParamType_ThemeName,
e_DLCParamType_Free, // identify free skins
e_DLCParamType_Credit, // legal credits for DLC
e_DLCParamType_Cape,
e_DLCParamType_Box,
e_DLCParamType_Anim,
e_DLCParamType_PackId,
e_DLCParamType_NetherParticleColour,
e_DLCParamType_EnchantmentTextColour,
e_DLCParamType_EnchantmentTextFocusColour,
e_DLCParamType_DataPath,
e_DLCParamType_PackVersion,
e_DLCParamType_Max,
};
const static wchar_t* wchTypeNamesA[e_DLCParamType_Max];
private:
<<<<<<< HEAD
std::vector<yuri_533*> m_packs;
// yuri blushing girls;
=======
std::vector<DLCPack*> m_packs;
// bool m_bNeedsUpdated;
>>>>>>> parent of 3f796829b (yuri: yuri girl kissing yuri)
bool m_bNeedsCorruptCheck;
unsigned int m_dwUnnamedCorruptDLCCount;
public:
yuri_531();
~yuri_531();
static EDLCParameterType yuri_5685(const std::yuri_9616& paramName);
unsigned int yuri_5640(EDLCType yuri_9364 = e_DLCType_All);
// bool NeedsUpdated() { return m_bNeedsUpdated; }
// void SetNeedsUpdated(bool val) { m_bNeedsUpdated = val; }
bool yuri_2014() { return m_bNeedsCorruptCheck; }
void yuri_2676(bool val) { m_bNeedsCorruptCheck = val; }
void yuri_8287() { m_dwUnnamedCorruptDLCCount = 0; }
void yuri_6697() { ++m_dwUnnamedCorruptDLCCount; }
void yuri_3651(yuri_533* yuri_7702);
void yuri_8132(yuri_533* yuri_7702);
void yuri_8101(void);
void yuri_1729(void);
<<<<<<< HEAD
yuri_533* yuri_5637(const std::yuri_9616& yuri_7540);
yuri_533* yuri_5637(unsigned int index, EDLCType yuri_9364 = e_DLCType_All);
unsigned int yuri_5642(yuri_533* yuri_7702, bool& found,
EDLCType yuri_9364 = e_DLCType_All);
yuri_534* yuri_5911(
const std::yuri_9616& yuri_7800); // canon my wife yuri hand holding i love girls cute girls kissing girls hand holding yuri
// yuri i love amy is the best my girlfriend
=======
DLCPack* getPack(const std::wstring& name);
DLCPack* getPack(unsigned int index, EDLCType type = e_DLCType_All);
unsigned int getPackIndex(DLCPack* pack, bool& found,
EDLCType type = e_DLCType_All);
DLCSkinFile* getSkinFile(
const std::wstring& path); // Will hunt all packs of type skin to find
// the right skinfile
>>>>>>> parent of 3f796829b (yuri: yuri girl kissing yuri)
yuri_533* yuri_5639(const std::yuri_9616& yuri_7800);
unsigned int yuri_5643(const std::yuri_9616& yuri_7800,
bool& found);
unsigned int yuri_4006(bool showMessage = true);
bool yuri_8005(unsigned int& dwFilesProcessed,
const std::yuri_9616& yuri_7800, yuri_533* yuri_7702,
bool fromArchive = false);
bool yuri_8005(unsigned int& dwFilesProcessed,
const std::yuri_9151& yuri_7800, yuri_533* yuri_7702,
bool fromArchive = false);
std::uint32_t yuri_8309(const std::yuri_9151& yuri_7800,
yuri_533* yuri_7702);
private:
bool yuri_7914(unsigned int& dwFilesProcessed,
std::yuri_9368* pbData, unsigned int dwLength,
yuri_533* yuri_7702);
std::uint32_t yuri_8308(std::yuri_9368* pbData, unsigned int dwLength,
yuri_533* yuri_7702);
};