Added a basic MemoryArena.
Added one scratch, one engine and one game arena. Converted the game alloc to arena + the display stuff. WIP Made using Antigravity+gemini
This commit is contained in:
@@ -2,8 +2,21 @@
|
||||
setlocal
|
||||
|
||||
:: --- 1. Argument Parsing Logic ---
|
||||
set "ARG1=%~1"
|
||||
set "ARG2=%~2"
|
||||
set "ARG1="
|
||||
set "ARG2="
|
||||
set "AUTOCLOSE=0"
|
||||
|
||||
for %%x in (%*) do (
|
||||
if /I "%%~x"=="autoclose" (
|
||||
set "AUTOCLOSE=1"
|
||||
) else (
|
||||
if not defined ARG1 (
|
||||
set "ARG1=%%~x"
|
||||
) else if not defined ARG2 (
|
||||
set "ARG2=%%~x"
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
:: Set Defaults
|
||||
set "COMPILER_TYPE=clang"
|
||||
@@ -44,6 +57,12 @@ if exist "%APP_DIR%\%APP_EXE%" (
|
||||
pushd "%APP_DIR%"
|
||||
start "" "%APP_EXE%"
|
||||
popd
|
||||
|
||||
if "%AUTOCLOSE%"=="1" (
|
||||
echo [AUTOCLOSE] Waiting 5 seconds...
|
||||
timeout /t 5 /nobreak >nul
|
||||
taskkill /IM "%APP_EXE%" /F >nul 2>&1
|
||||
)
|
||||
) else (
|
||||
echo [ERROR] Executable not found at: %APP_DIR%\%APP_EXE%
|
||||
echo Please build first: fbuild JulietApp-%PLATFORM%-%CONFIG%
|
||||
|
||||
Reference in New Issue
Block a user