From c90f55447bf66d4605054a39cb0afe163f6913f4 Mon Sep 17 00:00:00 2001 From: Rim Date: Wed, 6 Dec 2023 18:59:55 -0500 Subject: [PATCH] Remove Steam Ownership Verification, add build script --- build.bat | 5 +++++ src/client/component/steam_proxy.cpp | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 build.bat diff --git a/build.bat b/build.bat new file mode 100644 index 00000000..63186b44 --- /dev/null +++ b/build.bat @@ -0,0 +1,5 @@ +@echo off + +"C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\msbuild.exe" build\t7x.sln /p:Configuration=Release /p:Platform=x64 + +pause \ No newline at end of file diff --git a/src/client/component/steam_proxy.cpp b/src/client/component/steam_proxy.cpp index ef436adf..6ad8f4b4 100644 --- a/src/client/component/steam_proxy.cpp +++ b/src/client/component/steam_proxy.cpp @@ -141,7 +141,7 @@ namespace steam_proxy { if (!client_utils || !client_user) { - return ownership_state::nosteam; + return ownership_state::success; } if (!client_user.invoke("BIsSubscribedApp", app_id)) @@ -149,7 +149,7 @@ namespace steam_proxy #ifdef DEV_BUILD app_id = 480; // Spacewar #else - return ownership_state::unowned; + return ownership_state::success; #endif } @@ -201,14 +201,16 @@ namespace steam_proxy #else switch (state) { + case ownership_state::success: + break; + /* case ownership_state::nosteam: throw std::runtime_error("Steam must be running to play this game!"); case ownership_state::unowned: throw std::runtime_error("You must own the game on steam to play this mod!"); case ownership_state::error: throw std::runtime_error("Failed to verify ownership of the game!"); - case ownership_state::success: - break; + */ } #endif }