diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 599734c3..d0abf350 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,7 +36,7 @@ jobs: uses: microsoft/setup-msbuild@v1.3.1 - name: Generate project files - run: tools/premake5 vs2022 --dev-build + run: tools/premake5 vs2022 --no-check - name: Set up problem matching uses: ammaraskar/msvc-problem-matcher@master diff --git a/premake5.lua b/premake5.lua index 1bfca583..31f49111 100644 --- a/premake5.lua +++ b/premake5.lua @@ -77,6 +77,12 @@ newoption { description = "Enable development builds of the client." } +newoption { + trigger = "no-check", + description = "Disable ownership checks." +} + + newaction { trigger = "version", description = "Returns the version string for the current commit of the source code.", @@ -243,6 +249,10 @@ workspace "boiii" if _OPTIONS["dev-build"] then defines {"DEV_BUILD"} end + + if _OPTIONS["no-check"] then + defines {"NO_CHECK"} + end if os.getenv("CI") then defines {"CI"} diff --git a/src/client/component/steam_proxy.cpp b/src/client/component/steam_proxy.cpp index 44f78805..568a9d97 100644 --- a/src/client/component/steam_proxy.cpp +++ b/src/client/component/steam_proxy.cpp @@ -187,7 +187,7 @@ namespace steam_proxy void evaluate_ownership_state(const ownership_state state) { -#ifdef DEV_BUILD +#if defined(DEV_BUILD) || defined(NO_CHECK) (void)state; #else switch (state)