You're breathtaking!

This commit is contained in:
2020-12-07 23:40:54 +01:00
commit 6fb9eee74c
5143 changed files with 1153594 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
@echo off
rem Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
setlocal
pushd
echo Registering Flax Engine project files...
rem Check the current versions config
if not exist "%appdata%\Flax\Versions.txt" (
echo The installed engine versions file is missing. Please ensure that Flax Launcher was installed.
pause
goto Exit
)
set EngineLocation=%cd%
find /c "%EngineLocation%" "%appdata%\Flax\Versions.txt"
if %errorlevel% equ 1 goto notfound
echo Already registered.
goto Done
rem Register the location (append to the end)
:notfound
echo Location '%EngineLocation%' is not registered. Adding it to the lsit of engine versions.
echo %EngineLocation%>>"%appdata%\Flax\Versions.txt"
goto Done
rem Done.
:Done
popd
echo Done!
exit /B 0
:Exit
rem Restore original directory before exit.
popd
exit /B 1