-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from Jamiras/cfg_hardcore
standardize "disable hardcore" warning across emulators
- Loading branch information
Showing
31 changed files
with
159 additions
and
297 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
@echo off | ||
|
||
git describe --tags --match "RAMeka.*" > Temp.txt | ||
set /p ACTIVE_TAG=<Temp.txt | ||
set VERSION_NUM=%ACTIVE_TAG:~7,3% | ||
set VERSION_REVISION=%ACTIVE_TAG:~11,-9% | ||
if "%VERSION_REVISION%"=="" set VERSION_REVISION=0 | ||
|
||
setlocal | ||
git diff HEAD > Temp.txt | ||
for /F "usebackq" %%A in ('"Temp.txt"') do set DIFF_FILE_SIZE=%%~zA | ||
if %DIFF_FILE_SIZE% GTR 0 ( | ||
set ACTIVE_TAG=Unstaged changes | ||
set VERSION_MODIFIED=1 | ||
) else ( | ||
set VERSION_MODIFIED=0 | ||
) | ||
|
||
@echo Tag: %ACTIVE_TAG% (%VERSION_NUM%) | ||
@echo #define RAMEKA_VERSION "0.%VERSION_NUM%.%VERSION_REVISION%.%VERSION_MODIFIED%" > BuildVer2.h | ||
|
||
if not exist ..\..\BuildVer.h goto nonexistant | ||
fc ..\..\BuildVer.h BuildVer2.h > nul | ||
if errorlevel 1 goto different | ||
del BuildVer2.h | ||
goto done | ||
:different | ||
del ..\..\BuildVer.h | ||
:nonexistant | ||
move BuildVer2.h ..\..\BuildVer.h > nul | ||
:done | ||
|
||
del Temp.txt |
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
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
Oops, something went wrong.