Last active
June 29, 2023 11:23
-
-
Save SummonHIM/bd2934633a87dded37b59c6045d2d74c to your computer and use it in GitHub Desktop.
CreamAPI Switcher
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| rem Please create a folder call creamapi in steam_api.dll's folder then copy CreamAPI DLL file in it. | |
| set creamDllFolder=creamapi | |
| set /A counter=0 | |
| if exist "steam_api.dll" ( | |
| if not exist "%creamDllFolder%/steam_api.dll" ( | |
| msg %USERNAME% Error: %creamDllFolder%/steam_api.dll missing! Please check the CreamAPI folder. | |
| exit 1 | |
| ) | |
| set api=TRUE | |
| set /A counter+=1 | |
| ) | |
| if exist "steam_api64.dll" ( | |
| if not exist "%creamDllFolder%/steam_api64.dll" ( | |
| msg %USERNAME% Error: %creamDllFolder%/steam_api64.dll missing! Please check the CreamAPI folder. | |
| exit 1 | |
| ) | |
| set api64=TRUE | |
| set /A counter+=1 | |
| ) | |
| if %counter% EQU 0 ( | |
| msg %USERNAME% Error: steam_api.dll/steam_api64.dll missing! Please verify your game integrity. | |
| exit 1 | |
| ) | |
| if exist "steam_api_o.dll" ( | |
| goto disabled | |
| ) else ( | |
| if exist "steam_api64_o.dll" ( | |
| goto disabled | |
| ) else ( | |
| goto enable | |
| ) | |
| goto enable | |
| ) | |
| exit | |
| :enable | |
| if "%api%" == "TRUE" ( | |
| ren steam_api.dll steam_api_o.dll | |
| copy "%creamDllFolder%\steam_api.dll" steam_api.dll | |
| ) | |
| if "%api64%" == "TRUE" ( | |
| ren steam_api64.dll steam_api64_o.dll | |
| copy "%creamDllFolder%\steam_api64.dll" steam_api64.dll | |
| ) | |
| msg %USERNAME% CreamAPI enabled! | |
| exit | |
| :disabled | |
| if "%api%" == "TRUE" ( | |
| del steam_api.dll | |
| ren steam_api_o.dll steam_api.dll | |
| ) | |
| if "%api64%" == "TRUE" ( | |
| del steam_api64.dll | |
| ren steam_api64_o.dll steam_api64.dll | |
| ) | |
| msg %USERNAME% CreamAPI disabled! | |
| exit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| rem 使用前请在 steam_api.dll 目录中创建 creamapi 文件夹并将 CreamAPI 的 DLL 复制进去。 | |
| rem 你可能需要将本文件转换至 CRLF 行尾和 GBK 编码才能正常使用。 | |
| set creamDllFolder=creamapi | |
| set /A counter=0 | |
| if exist "steam_api.dll" ( | |
| if not exist "%creamDllFolder%/steam_api.dll" ( | |
| msg %USERNAME% 错误:%creamDllFolder%/steam_api.dll 文件缺失!请检查补丁文件夹的完整性。 | |
| exit 1 | |
| ) | |
| set api=TRUE | |
| set /A counter+=1 | |
| ) | |
| if exist "steam_api64.dll" ( | |
| if not exist "%creamDllFolder%/steam_api64.dll" ( | |
| msg %USERNAME% 错误:%creamDllFolder%/steam_api64.dll 文件缺失!请检查补丁文件夹的完整性。 | |
| exit 1 | |
| ) | |
| set api64=TRUE | |
| set /A counter+=1 | |
| ) | |
| if %counter% EQU 0 ( | |
| msg %USERNAME% 错误:steam_api.dll/steam_api64.dll 文件缺失!请检查游戏的完整性。 | |
| exit 1 | |
| ) | |
| if exist "steam_api_o.dll" ( | |
| goto disabled | |
| ) else ( | |
| if exist "steam_api64_o.dll" ( | |
| goto disabled | |
| ) else ( | |
| goto enable | |
| ) | |
| goto enable | |
| ) | |
| exit | |
| :enable | |
| if "%api%" == "TRUE" ( | |
| ren steam_api.dll steam_api_o.dll | |
| copy "%creamDllFolder%\steam_api.dll" steam_api.dll | |
| ) | |
| if "%api64%" == "TRUE" ( | |
| ren steam_api64.dll steam_api64_o.dll | |
| copy "%creamDllFolder%\steam_api64.dll" steam_api64.dll | |
| ) | |
| msg %USERNAME% 补丁已启用! | |
| exit | |
| :disabled | |
| if "%api%" == "TRUE" ( | |
| del steam_api.dll | |
| ren steam_api_o.dll steam_api.dll | |
| ) | |
| if "%api64%" == "TRUE" ( | |
| del steam_api64.dll | |
| ren steam_api64_o.dll steam_api64.dll | |
| ) | |
| msg %USERNAME% 补丁已禁用! | |
| exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment