Created
August 25, 2019 16:58
-
-
Save mcu8/8f93b5fec88d799793735fd0ea2a11e7 to your computer and use it in GitHub Desktop.
AHiT_nomods.bat
This file contains 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 You must set it to game installation location | |
set GAMEDIR="C:\Program Files (x86)\Steam\steamapps\common\HatinTime" | |
rem Enter into "gamedir" | |
cd %GAMEDIR% | |
rem Replace all "mod_disabled=0" to "mod_disabled=1" in HatinTimeMods.ini | |
powershell -Command "(gc HatinTimeGame\\Config\\HatinTimeMods.ini) -replace 'mod_disabled=0', 'mod_disabled=1' | Out-File -encoding UTF8 HatinTimeGame\\Config\\HatinTimeMods.ini" | |
rem Start game executable | |
start /wait .\Binaries\Win64\HatinTimeGame.exe | |
rem Delay 10 seconds | |
ping 127.0.0.1 -n 10 > nul | |
rem Replace all "mod_disabled=1" to "mod_disabled=0" in HatinTimeMods.ini | |
powershell -Command "(gc HatinTimeGame\\Config\\HatinTimeMods.ini) -replace 'mod_disabled=1', 'mod_disabled=0' | Out-File -encoding UTF8 HatinTimeGame\\Config\\HatinTimeMods.ini" | |
rem Done! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment