Add user directory so app works as portable

This commit is contained in:
N3xoX1 2026-04-10 12:17:51 +09:30
parent 6845bcd1a2
commit 9457071287
3 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1 @@
The application detects this directory at startup and runs in portable mode, storing all user data here instead of the system default location.

View File

@ -0,0 +1 @@
The application detects this directory at startup and runs in portable mode, storing all user data here instead of the system default location.

View File

@ -30,6 +30,7 @@ IF %ERRORLEVEL% NEQ 0 GOTO EndErr
rd "%base_dir%\bin\package" /Q /S > NUL 2>&1
md "%base_dir%\bin\package\"
md "%base_dir%\bin\package\lang\"
md "%base_dir%\bin\package\user\"
md "%base_dir%\bin\package\modules\"
md "%base_dir%\bin\package\modules\cpu\"
md "%base_dir%\bin\package\modules\loader\"
@ -37,6 +38,7 @@ md "%base_dir%\bin\package\modules\operating_system\"
md "%base_dir%\bin\package\modules\video\"
)
copy "%base_dir%\bin\%VSPlatform%\Release\user\portable.txt" "%base_dir%\bin\package\user"
copy "%base_dir%\bin\%VSPlatform%\Release\sciter.dll" "%base_dir%\bin\package"
copy "%base_dir%\bin\%VSPlatform%\Release\nxemu.exe" "%base_dir%\bin\package"
copy "%base_dir%\modules\%VSPlatform%\cpu\nxemu-cpu.dll" "%base_dir%\bin\package\modules\cpu"