mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-06-18 14:40:56 +00:00
fix windows build
This commit is contained in:
@@ -250,7 +250,7 @@ void CoreMain() {
|
|||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
int Handle(EXCEPTION_POINTERS *ep){
|
int Handle(EXCEPTION_POINTERS *ep){
|
||||||
char* hex = new char[100];
|
char* hex = new char[100];
|
||||||
sprintf(hex,100, "%lX", ep->ExceptionRecord->ExceptionCode);
|
sprintf_s(hex,100, "%lX", ep->ExceptionRecord->ExceptionCode);
|
||||||
except("(Core) Code : " + std::string(hex));
|
except("(Core) Code : " + std::string(hex));
|
||||||
delete [] hex;
|
delete [] hex;
|
||||||
return 1;
|
return 1;
|
||||||
@@ -259,13 +259,6 @@ int Handle(EXCEPTION_POINTERS *ep){
|
|||||||
|
|
||||||
[[noreturn]] void CoreNetwork(){
|
[[noreturn]] void CoreNetwork(){
|
||||||
while(true) {
|
while(true) {
|
||||||
// #ifndef __MINGW32__
|
|
||||||
// __try{
|
|
||||||
// #endif
|
|
||||||
// CoreMain();
|
|
||||||
// #ifndef __MINGW32__
|
|
||||||
// }__except(Handle(GetExceptionInformation())){}
|
|
||||||
// #endif
|
|
||||||
#if not defined(__MINGW32__)
|
#if not defined(__MINGW32__)
|
||||||
__try{
|
__try{
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user