mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-16 05:11:53 +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:
@@ -36,7 +36,7 @@ BufferedImage::BufferedImage(const std::wstring& File,
|
||||
bool filenameHasExtension,
|
||||
bool bTitleUpdateTexture,
|
||||
const std::wstring& drive) {
|
||||
HRESULT hr = -1;
|
||||
int32_t hr = -1;
|
||||
std::wstring filePath = File;
|
||||
|
||||
for (size_t i = 0; i < filePath.length(); ++i) {
|
||||
@@ -118,7 +118,7 @@ BufferedImage::BufferedImage(const std::wstring& File,
|
||||
}
|
||||
BufferedImage::BufferedImage(DLCPack* dlcPack, const std::wstring& File,
|
||||
bool filenameHasExtension) {
|
||||
HRESULT hr;
|
||||
int32_t hr;
|
||||
std::wstring filePath = File;
|
||||
std::uint8_t* pbData = nullptr;
|
||||
std::uint32_t dataBytes = 0;
|
||||
@@ -162,7 +162,7 @@ BufferedImage::BufferedImage(std::uint8_t* pbData, std::uint32_t dataBytes) {
|
||||
|
||||
D3DXIMAGE_INFO ImageInfo;
|
||||
ZeroMemory(&ImageInfo, sizeof(D3DXIMAGE_INFO));
|
||||
HRESULT hr =
|
||||
int32_t hr =
|
||||
RenderManager.LoadTextureData(pbData, dataBytes, &ImageInfo, &data[0]);
|
||||
|
||||
if (hr == ERROR_SUCCESS) {
|
||||
|
||||
Reference in New Issue
Block a user