Remove Steam Ownership Verification, add build script

This commit is contained in:
Rim 2023-12-06 18:59:55 -05:00
parent 1b4e540a0f
commit c90f55447b
2 changed files with 11 additions and 4 deletions

5
build.bat Normal file
View File

@ -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

View File

@ -141,7 +141,7 @@ namespace steam_proxy
{ {
if (!client_utils || !client_user) if (!client_utils || !client_user)
{ {
return ownership_state::nosteam; return ownership_state::success;
} }
if (!client_user.invoke<bool>("BIsSubscribedApp", app_id)) if (!client_user.invoke<bool>("BIsSubscribedApp", app_id))
@ -149,7 +149,7 @@ namespace steam_proxy
#ifdef DEV_BUILD #ifdef DEV_BUILD
app_id = 480; // Spacewar app_id = 480; // Spacewar
#else #else
return ownership_state::unowned; return ownership_state::success;
#endif #endif
} }
@ -201,14 +201,16 @@ namespace steam_proxy
#else #else
switch (state) switch (state)
{ {
case ownership_state::success:
break;
/*
case ownership_state::nosteam: case ownership_state::nosteam:
throw std::runtime_error("Steam must be running to play this game!"); throw std::runtime_error("Steam must be running to play this game!");
case ownership_state::unowned: case ownership_state::unowned:
throw std::runtime_error("You must own the game on steam to play this mod!"); throw std::runtime_error("You must own the game on steam to play this mod!");
case ownership_state::error: case ownership_state::error:
throw std::runtime_error("Failed to verify ownership of the game!"); throw std::runtime_error("Failed to verify ownership of the game!");
case ownership_state::success: */
break;
} }
#endif #endif
} }