You're breathtaking!
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user