Implement UnhandledExceptionFilter and revert "set intro scene background to white"

Also use g_iScreenWidth and g_iScreenHeight in RMLManager
This commit is contained in:
GabsPuNs
2026-06-20 15:35:42 -04:00
parent 82d80943b7
commit d3af93969a
11 changed files with 96 additions and 91 deletions

View File

@@ -5,6 +5,11 @@
#include "..\..\Minecraft.Client\MinecraftServer.h"
#include "..\..\Minecraft.World\LevelSettings.h"
#include <DbgHelp.h>
#pragma comment(lib, "DbgHelp.lib")
#include <Shlwapi.h>
#pragma comment(lib, "Shlwapi.lib")
CConsoleMinecraftApp app;
CConsoleMinecraftApp::CConsoleMinecraftApp() : CMinecraftApp()
@@ -29,7 +34,6 @@ void CConsoleMinecraftApp::FatalLoadError()
ExitGame();
}
/*
LONG WINAPI CConsoleMinecraftApp::UnhandledExceptionFilter(EXCEPTION_POINTERS* pExceptionInfo)
{
SYSTEMTIME st;
@@ -113,9 +117,7 @@ LONG WINAPI CConsoleMinecraftApp::UnhandledExceptionFilter(EXCEPTION_POINTERS* p
sprintf_s(msg, "%s has run into a fatal error and must be closed.\n\nException: 0x%08X (%s)\nAddress: 0x%p\n\nA crash dump and log file have been written.", exeName, code, ExceptionName(code), addr);
}
else
{
sprintf_s(msg, "%s has run into a fatal error and must be closed.\n\nNo exception information was available.\n", exeName);
}
char title[1024];
sprintf_s(title, "%s - Fatal Error", exeName);
@@ -123,7 +125,7 @@ LONG WINAPI CConsoleMinecraftApp::UnhandledExceptionFilter(EXCEPTION_POINTERS* p
return EXCEPTION_EXECUTE_HANDLER;
}
*/
void CConsoleMinecraftApp::CaptureSaveThumbnail()
{
RenderManager.CaptureThumbnail(&m_ThumbnailBuffer);