Support building as console app
This commit is contained in:
parent
ccab08261e
commit
9d2eef3928
@ -250,9 +250,10 @@ namespace
|
|||||||
"You seem to be using a network share:\n\n" + path.string() + "\n\nNetwork shares are not supported!");
|
"You seem to be using a network share:\n\n" + path.string() + "\n\nNetwork shares are not supported!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
if (handle_process_runner())
|
if (handle_process_runner())
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
@ -279,7 +280,7 @@ namespace
|
|||||||
remove_crash_file();
|
remove_crash_file();
|
||||||
updater::update();
|
updater::update();
|
||||||
|
|
||||||
if(!utils::io::file_exists(launcher::get_launcher_ui_file().generic_wstring()))
|
if (!utils::io::file_exists(launcher::get_launcher_ui_file().generic_wstring()))
|
||||||
{
|
{
|
||||||
throw std::runtime_error("BOIII needs an active internet connection for the first time you launch it.");
|
throw std::runtime_error("BOIII needs an active internet connection for the first time you launch it.");
|
||||||
}
|
}
|
||||||
@ -294,7 +295,8 @@ namespace
|
|||||||
|
|
||||||
if (!has_client && !has_server)
|
if (!has_client && !has_server)
|
||||||
{
|
{
|
||||||
throw std::runtime_error("Can't find a valid BlackOps3.exe or BlackOps3_UnrankedDedicatedServer.exe. Make sure you put boiii.exe in your Black Ops 3 installation folder.");
|
throw std::runtime_error(
|
||||||
|
"Can't find a valid BlackOps3.exe or BlackOps3_UnrankedDedicatedServer.exe. Make sure you put boiii.exe in your Black Ops 3 installation folder.");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!is_server)
|
if (!is_server)
|
||||||
@ -326,9 +328,10 @@ namespace
|
|||||||
|
|
||||||
if (!is_server && !game::is_client())
|
if (!is_server && !game::is_client())
|
||||||
{
|
{
|
||||||
if(game::is_legacy_client())
|
if (game::is_legacy_client())
|
||||||
{
|
{
|
||||||
throw std::runtime_error("You are using the outdated BlackOps3.exe. This version is not supported anymore. Please use the latest binary from Steam.");
|
throw std::runtime_error(
|
||||||
|
"You are using the outdated BlackOps3.exe. This version is not supported anymore. Please use the latest binary from Steam.");
|
||||||
}
|
}
|
||||||
|
|
||||||
throw std::runtime_error("Bad binary loaded into memory");
|
throw std::runtime_error("Bad binary loaded into memory");
|
||||||
@ -352,7 +355,6 @@ namespace
|
|||||||
|
|
||||||
g_call_tls_callbacks = true;
|
g_call_tls_callbacks = true;
|
||||||
return static_cast<int>(entry_point());
|
return static_cast<int>(entry_point());
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int __stdcall WinMain(HINSTANCE, HINSTANCE, PSTR, int)
|
int __stdcall WinMain(HINSTANCE, HINSTANCE, PSTR, int)
|
||||||
|
Loading…
Reference in New Issue
Block a user