Replace remaining WinAPI types with standard C++ equivalents

DWORD→uint32_t, BYTE→uint8_t, HRESULT→int32_t, HANDLE→void*, UINT→uint32_t, INT→int32_t, WORD→uint16_t, LONG→int32_t, SHORT→int16_t, LONGLONG→int64_t, ULONG_PTR→uintptr_t, PBYTE→uint8_t*, LPWSTR/PWSTR→wchar_t*, FLOAT→float, CHAR→char, boolean→bool, CONST→const, TRUE→true, FALSE→false across 176 files (excluding vendor libs and Linux stubs).
This commit is contained in:
MatthewBeshay
2026-03-30 17:36:15 +11:00
parent b28650976d
commit 28d68befd4
175 changed files with 4220 additions and 4220 deletions

View File

@@ -279,10 +279,10 @@ void UIScene_LoadMenu::tick() {
// #ifdef _DEBUG
// // dump out the thumbnail
// HANDLE hThumbnail =
// void* hThumbnail =
// CreateFile("GAME:\\thumbnail.png", GENERIC_WRITE, 0, nullptr,
// OPEN_ALWAYS, FILE_FLAG_RANDOM_ACCESS, nullptr);
// DWORD dwBytes;
// uint32_t dwBytes;
// WriteFile(hThumbnail,pbImageData,dwImageBytes,&dwBytes,nullptr);
// XCloseHandle(hThumbnail);
// #endif
@@ -1059,7 +1059,7 @@ int UIScene_LoadMenu::DeleteSaveDataReturned(void* pParam, bool bSuccess) {
void UIScene_LoadMenu::StartGameFromSave(UIScene_LoadMenu* pClass,
int localUsersMask) {
if (pClass->m_levelGen == nullptr) {
INT saveOrCheckpointId = 0;
int32_t saveOrCheckpointId = 0;
bool validSave =
StorageManager.GetSaveUniqueNumber(&saveOrCheckpointId);
TelemetryManager->RecordLevelResume(