Fix error messages
This commit is contained in:
parent
9a7b72dcd5
commit
44eecdd76b
@ -215,7 +215,7 @@ namespace steam_proxy
|
|||||||
catch (std::exception& e)
|
catch (std::exception& e)
|
||||||
{
|
{
|
||||||
printf("Steam: %s\n", e.what());
|
printf("Steam: %s\n", e.what());
|
||||||
MessageBoxA(GetForegroundWindow(), e.what(), "BOIII Error", MB_ICONERROR);
|
MessageBoxA(nullptr, e.what(), "BOIII Error", MB_ICONERROR | MB_SETFOREGROUND | MB_TOPMOST);
|
||||||
TerminateProcess(GetCurrentProcess(), 1234);
|
TerminateProcess(GetCurrentProcess(), 1234);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ namespace loader
|
|||||||
const auto target = utils::nt::library::load(filename);
|
const auto target = utils::nt::library::load(filename);
|
||||||
if (!target)
|
if (!target)
|
||||||
{
|
{
|
||||||
throw std::runtime_error{"Failed to map binary!"};
|
throw std::runtime_error{"Failed to map: " + filename};
|
||||||
}
|
}
|
||||||
|
|
||||||
load_imports(target);
|
load_imports(target);
|
||||||
|
@ -179,7 +179,7 @@ namespace
|
|||||||
}
|
}
|
||||||
catch (std::exception& e)
|
catch (std::exception& e)
|
||||||
{
|
{
|
||||||
MessageBoxA(GetForegroundWindow(), e.what(), "ERROR", MB_ICONERROR);
|
MessageBoxA(nullptr, e.what(), "ERROR", MB_ICONERROR | MB_SETFOREGROUND | MB_TOPMOST);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user