Added code to the file which have the functionality to get skin boxes and duplicated the functionality for skin offsets. The code causes the game to crash when switching to third person. The error occurs with the skin offsets returning as an empty class object.
32 lines
921 B
C++
32 lines
921 B
C++
#pragma once
|
|
#include "DLCFile.h"
|
|
#include "..\..\..\Minecraft.Client\HumanoidModel.h"
|
|
|
|
class DLCSkinFile : public DLCFile
|
|
{
|
|
|
|
private:
|
|
wstring m_displayName;
|
|
wstring m_themeName;
|
|
wstring m_cape;
|
|
unsigned int m_uiAnimOverrideBitmask;
|
|
bool m_bIsFree;
|
|
vector<SKIN_BOX *> m_AdditionalBoxes;
|
|
vector<SKIN_OFFSET *> m_Offsets;
|
|
|
|
public:
|
|
|
|
DLCSkinFile(const wstring &path);
|
|
|
|
void addData(PBYTE pbData, DWORD dwBytes) override;
|
|
void addParameter(DLCManager::EDLCParameterType type, const wstring &value) override;
|
|
|
|
wstring getParameterAsString(DLCManager::EDLCParameterType type) override;
|
|
bool getParameterAsBool(DLCManager::EDLCParameterType type) override;
|
|
vector<SKIN_BOX *> *getAdditionalBoxes();
|
|
int getAdditionalBoxesCount();
|
|
vector<SKIN_OFFSET *> *getOffsets();
|
|
int getOffsetsCount();
|
|
unsigned int getAnimOverrideBitmask() { return m_uiAnimOverrideBitmask;}
|
|
bool isFree() {return m_bIsFree;}
|
|
}; |