Remove Steam Ownership Verification, add build script
This commit is contained in:
parent
1b4e540a0f
commit
c90f55447b
5
build.bat
Normal file
5
build.bat
Normal 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
|
@ -141,7 +141,7 @@ namespace steam_proxy
|
||||
{
|
||||
if (!client_utils || !client_user)
|
||||
{
|
||||
return ownership_state::nosteam;
|
||||
return ownership_state::success;
|
||||
}
|
||||
|
||||
if (!client_user.invoke<bool>("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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user