diff options
| author | daoge_cmd <3523206925@qq.com> | 2026-03-01 12:16:08 +0800 |
|---|---|---|
| committer | daoge_cmd <3523206925@qq.com> | 2026-03-01 12:16:08 +0800 |
| commit | b691c43c44ff180d10e7d4a9afc83b98551ff586 (patch) | |
| tree | 3e9849222cbc6ba49f2f1fc6e5fe7179632c7390 /Minecraft.Client/Common/DLC/DLCUIDataFile.cpp | |
| parent | def8cb415354ac390b7e89052a50605285f1aca9 (diff) | |
Initial commit
Diffstat (limited to 'Minecraft.Client/Common/DLC/DLCUIDataFile.cpp')
| -rw-r--r-- | Minecraft.Client/Common/DLC/DLCUIDataFile.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Minecraft.Client/Common/DLC/DLCUIDataFile.cpp b/Minecraft.Client/Common/DLC/DLCUIDataFile.cpp new file mode 100644 index 00000000..a2a56bca --- /dev/null +++ b/Minecraft.Client/Common/DLC/DLCUIDataFile.cpp @@ -0,0 +1,32 @@ +#include "stdafx.h" +#include "DLCManager.h" +#include "DLCUIDataFile.h" + +DLCUIDataFile::DLCUIDataFile(const wstring &path) : DLCFile(DLCManager::e_DLCType_UIData,path) +{ + m_pbData = NULL; + m_dwBytes = 0; + m_canDeleteData = false; +} + +DLCUIDataFile::~DLCUIDataFile() +{ + if(m_canDeleteData && m_pbData != NULL) + { + app.DebugPrintf("Deleting DLCUIDataFile data\n"); + delete [] m_pbData; + } +} + +void DLCUIDataFile::addData(PBYTE pbData, DWORD dwBytes,bool canDeleteData) +{ + m_pbData = pbData; + m_dwBytes = dwBytes; + m_canDeleteData = canDeleteData; +} + +PBYTE DLCUIDataFile::getData(DWORD &dwBytes) +{ + dwBytes = m_dwBytes; + return m_pbData; +}
\ No newline at end of file |
