Seal editor Win32 platform boundary

This commit is contained in:
2026-04-26 23:30:29 +08:00
parent de64d9a698
commit 09b1289338
22 changed files with 410 additions and 249 deletions

View File

@@ -3,6 +3,7 @@
#include "System/SystemInteractionService.h"
#include "Composition/EditorContext.h"
#include "Windowing/EditorWindowManager.h"
#include "Platform/Win32/Diagnostics/Win32CrashTrace.h"
#include "Platform/Win32/System/Win32SystemInteractionHost.h"
#include "Platform/Win32/Windowing/EditorWindow.h"
#include "Platform/Win32/Windowing/EditorWindowHostConfig.h"
@@ -263,16 +264,7 @@ std::filesystem::path Application::ResolveRepoRootPath() {
}
LONG WINAPI Application::HandleUnhandledException(EXCEPTION_POINTERS* exceptionInfo) {
if (exceptionInfo != nullptr &&
exceptionInfo->ExceptionRecord != nullptr) {
AppendUIEditorCrashTrace(
exceptionInfo->ExceptionRecord->ExceptionCode,
exceptionInfo->ExceptionRecord->ExceptionAddress,
exceptionInfo);
} else {
AppendUIEditorCrashTrace(0u, nullptr);
}
App::AppendWin32UnhandledExceptionCrashTrace(exceptionInfo);
return EXCEPTION_EXECUTE_HANDLER;
}