Files
mc-lce/src/client/Common/DLC/DLCGameRulesFile.cpp
2026-03-01 23:21:28 +02:00

21 lines
444 B
C++

#include "stdafx.h"
#include "DLCManager.h"
#include "DLCGameRulesFile.h"
DLCGameRulesFile::DLCGameRulesFile(const wstring &path) : DLCGameRules(DLCManager::e_DLCType_GameRules,path)
{
m_pbData = NULL;
m_dwBytes = 0;
}
void DLCGameRulesFile::addData(uint8_t* pbData, unsigned long dwBytes)
{
m_pbData = pbData;
m_dwBytes = dwBytes;
}
uint8_t* DLCGameRulesFile::getData(unsigned long &dwBytes)
{
dwBytes = m_dwBytes;
return m_pbData;
}