mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-07-10 16:08:15 +00:00
Implement UnhandledExceptionFilter and revert "set intro scene background to white"
Also use g_iScreenWidth and g_iScreenHeight in RMLManager
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user