reman3/game_re/r3/main.cpp

18 lines
464 B
C++

#include <windows.h>
#include <spdlog/spdlog.h>
#include <stdexcept>
#include <stdio.h>
extern "C" int r3_main(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR *cmdline, int showCmd);
extern void gh_init_data_segment();
int main() {
try {
gh_init_data_segment();
r3_main(GetModuleHandle(NULL), NULL, NULL, SW_SHOW);
} catch (const std::exception &e) {
SPDLOG_ERROR("Unhandled exception: {}", e.what());
}
return 0;
}