From 5f74fba3816d97921e87a7d7ab1cabc9ac3e5876 Mon Sep 17 00:00:00 2001 From: Jari van der Kaap Date: Tue, 2 May 2023 22:19:59 +0200 Subject: [PATCH] fix: add error message when no BO3 executable is found --- src/client/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/client/main.cpp b/src/client/main.cpp index 2601dc63..749bf1a8 100644 --- a/src/client/main.cpp +++ b/src/client/main.cpp @@ -292,6 +292,11 @@ namespace const auto is_server = utils::flags::has_flag("dedicated") || (!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."); + } + if (!is_server) { trigger_high_performance_gpu_switch();