1
0

refactor: finish CmdHelper refactor in Unvirt

This commit is contained in:
2026-01-29 16:46:26 +08:00
parent ada432fbe7
commit 07d180f2cb
3 changed files with 614 additions and 1031 deletions

View File

@@ -1,21 +1,10 @@
#include <YYCCommonplace.hpp>
#include "UnvirtContext.hpp"
int main(int argc, char* argv[]) {
// register exception handler on windows release
#if defined(LIBCMO_BUILD_RELEASE) && (YYCC_OS == YYCC_OS_WINDOWS)
YYCC::ExceptionHelper::Register();
#endif
// run core
Unvirt::Context::UnvirtContext ctx;
ctx.Run();
// unregister exception handler on windows release
#if defined(LIBCMO_BUILD_RELEASE) && (YYCC_OS == YYCC_OS_WINDOWS)
YYCC::ExceptionHelper::Register();
#endif
return 0;
}