From 945707128736f5512570f77c2d468956201f7eac Mon Sep 17 00:00:00 2001 From: N3xoX1 Date: Fri, 10 Apr 2026 12:17:51 +0930 Subject: [PATCH] Add user directory so app works as portable --- bin/x64/Debug/user/portable.txt | 1 + bin/x64/Release/user/portable.txt | 1 + src/script/package_zip.cmd | 2 ++ 3 files changed, 4 insertions(+) create mode 100644 bin/x64/Debug/user/portable.txt create mode 100644 bin/x64/Release/user/portable.txt diff --git a/bin/x64/Debug/user/portable.txt b/bin/x64/Debug/user/portable.txt new file mode 100644 index 00000000..6945dc15 --- /dev/null +++ b/bin/x64/Debug/user/portable.txt @@ -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. \ No newline at end of file diff --git a/bin/x64/Release/user/portable.txt b/bin/x64/Release/user/portable.txt new file mode 100644 index 00000000..6945dc15 --- /dev/null +++ b/bin/x64/Release/user/portable.txt @@ -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. \ No newline at end of file diff --git a/src/script/package_zip.cmd b/src/script/package_zip.cmd index 99d2314a..f0d0aad6 100644 --- a/src/script/package_zip.cmd +++ b/src/script/package_zip.cmd @@ -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"