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 }