Remove Win32 byte pointers from DLC file interfaces

This commit is contained in:
notmatthewbeshay
2026-03-10 00:17:57 +11:00
parent b02bcd27f5
commit 66538b67f2
19 changed files with 57 additions and 56 deletions

View File

@@ -21,7 +21,7 @@ DLCGameRulesHeader::DLCGameRulesHeader(const std::wstring &path) : DLCGameRules(
lgo = NULL;
}
void DLCGameRulesHeader::addData(PBYTE pbData, DWORD dwBytes)
void DLCGameRulesHeader::addData(uint8_t *pbData, DWORD dwBytes)
{
m_pbData = pbData;
m_dwBytes = dwBytes;
@@ -73,13 +73,13 @@ void DLCGameRulesHeader::addData(PBYTE pbData, DWORD dwBytes)
#endif
}
PBYTE DLCGameRulesHeader::getData(DWORD &dwBytes)
uint8_t *DLCGameRulesHeader::getData(DWORD &dwBytes)
{
dwBytes = m_dwBytes;
return m_pbData;
}
void DLCGameRulesHeader::setGrfData(PBYTE fData, DWORD fSize, StringTable *st)
void DLCGameRulesHeader::setGrfData(uint8_t *fData, DWORD fSize, StringTable *st)
{
if (!m_hasData)
{
@@ -89,4 +89,4 @@ void DLCGameRulesHeader::setGrfData(PBYTE fData, DWORD fSize, StringTable *st)
app.m_gameRules.readRuleFile(lgo, fData, fSize, st);
}
}
}