diff --git a/Source/Client/Application/Launcher.cpp b/Source/Client/Application/Launcher.cpp index 01cd83fe2..1f7b36813 100644 --- a/Source/Client/Application/Launcher.cpp +++ b/Source/Client/Application/Launcher.cpp @@ -1411,7 +1411,7 @@ int WINAPI WinMain(HINSTANCE instance, HINSTANCE previous, LPSTR commandLine, in const std::uint8_t failureSource[] = {0xB6, 0xEA, 0xAF, 0x66, 0xCF, 0x3A, 0x50, 0x9B, 0xFB, 0xEA, 0xAF, 0x7C, 0xDF, 0x2E, 0x51, 0x87, 0xFB, 0xE5, 0xA0, 0x66, 0xC7, 0x4F}; thread_local EncryptedName failure(failureSource); - ShowErrorDialog(GetRenderSystemHolder()->system, failure.Text(), MB_OK); + ShowErrorDialog(failure.Text(), MB_OK); return 0; } @@ -1654,7 +1654,7 @@ int WINAPI WinMain(HINSTANCE instance, HINSTANCE previous, LPSTR commandLine, in if (audioFailure.Encrypted()) { audioFailure.Text(); } else { - ShowErrorDialog(GetRenderSystemHolder()->system, audioFailure.Text(), MB_OK); + ShowErrorDialog(audioFailure.Text(), MB_OK); return 0; } } @@ -1684,7 +1684,7 @@ int WINAPI WinMain(HINSTANCE instance, HINSTANCE previous, LPSTR commandLine, in 0x18, 0xD1, 0xC9, 0xB2, 0xF3, 0xA3, 0x6D, 0x21, 0x3E, 0xEF, 0x8C, 0xF5, 0xE9, 0xA4, 0x3E, 0x67, 0x27, 0xF1, 0x86, 0xB7, 0xED, 0xA0, 0x20, 0x69, 0x57}; thread_local EncryptedName deviceFailure(deviceFailureSource); - ShowErrorDialog(GetRenderSystemHolder()->system, deviceFailure.Text(), MB_OK); + ShowErrorDialog(deviceFailure.Text(), MB_OK); return 1; } diff --git a/Source/Resource/World/TerrainResource.cpp b/Source/Resource/World/TerrainResource.cpp index 0cae66344..6a9d1f4d6 100644 --- a/Source/Resource/World/TerrainResource.cpp +++ b/Source/Resource/World/TerrainResource.cpp @@ -31,7 +31,7 @@ bool C3dAttr::Load(const char* name) { file.Read(magic, 4); if (std::strcmp(magic, "GRAT") != 0) { - ShowErrorDialog(GetRenderSystemHolder()->system, "Block Attr ", 0); + ShowErrorDialog("Block Attr ", 0); file.Close(); return false; } @@ -63,7 +63,7 @@ bool C3dAttr::Load(const char* name) { file.Close(); } else { - ShowErrorDialog(GetRenderSystemHolder()->system, "C3dAttr::Unsupported Version", 0); + ShowErrorDialog("C3dAttr::Unsupported Version", 0); } file.Close();