mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-31 00:58:49 +00:00
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:
@@ -172,7 +172,7 @@ void AbstractTexturePack::loadDefaultColourTable() {
|
||||
AbstractTexturePack::getPath(true).append(L"res/colours.col"));
|
||||
|
||||
if (coloursFile.exists()) {
|
||||
DWORD dataLength = coloursFile.length();
|
||||
uint32_t dataLength = coloursFile.length();
|
||||
byteArray data(dataLength);
|
||||
|
||||
FileInputStream fis(coloursFile);
|
||||
@@ -209,7 +209,7 @@ void AbstractTexturePack::unloadUI() {
|
||||
}
|
||||
|
||||
std::wstring AbstractTexturePack::getXuiRootPath() {
|
||||
const ULONG_PTR c_ModuleHandle = (ULONG_PTR)GetModuleHandle(nullptr);
|
||||
const uintptr_t c_ModuleHandle = (uintptr_t)GetModuleHandle(nullptr);
|
||||
|
||||
// Load new skin
|
||||
constexpr int LOCATOR_SIZE =
|
||||
|
||||
Reference in New Issue
Block a user