refactor(dist): Config and .bat files
Move everything to new launcher.xml configuration files. Adjust the bootstrapping of launcher in the .bat files. Features such as copying the default props/ files to nvram are now handled by launcher. Using the PATH variable, bemanitools binaries can live in their own dedicated bemanitools/ subfolder next to props/ and modules/ now. All original binaries are expected to be kept in a modules/ folder like on stock data.
This commit is contained in:
Vendored
+29
-5
@@ -1,10 +1,34 @@
|
||||
@echo off
|
||||
|
||||
:: Game doesn't work properly when not run with administrator privileges
|
||||
>nul 2>&1 net session
|
||||
|
||||
if %errorlevel% neq 0 (
|
||||
echo This script requires administrative privileges.
|
||||
echo Please run the script as an administrator.
|
||||
pause
|
||||
exit 1
|
||||
)
|
||||
|
||||
:: Script expects to be located in a subfolder "bemanitools" in the root folder
|
||||
:: (contents/) next to the folders modules, data etc.
|
||||
cd /d %~dp0
|
||||
|
||||
if not exist dev\nvram mkdir dev\nvram
|
||||
if not exist dev\nvram\coin.xml copy prop\defaults\coin.xml dev\nvram\coin.xml
|
||||
if not exist dev\nvram\eacoin.xml copy prop\defaults\eacoin.xml dev\nvram\eacoin.xml
|
||||
if not exist dev\raw mkdir dev\raw
|
||||
:: Script expects to be located in the root folder (contents/) next to the
|
||||
:: folders modules, data etc.
|
||||
set CONTENT_DIR=%CD%\..
|
||||
set BEMANITOOLS_DIR=%CONTENT_DIR%\bemanitools
|
||||
set MODULES_DIR=%CONTENT_DIR%\modules
|
||||
|
||||
launcher -K bsthook.dll -E prop/ea3-config-1.xml beatstream1.dll %*
|
||||
:: Keep that data vanilla, no need to copy these around anymore
|
||||
:: Just add them to the env PATH so launcher can find the libs and game executable
|
||||
:: Remark: This also requires admin privileges to propage correctly to launcher
|
||||
set PATH=^
|
||||
%MODULES_DIR%;^
|
||||
%BEMANITOOLS_DIR%;^
|
||||
%PATH%
|
||||
|
||||
:: Current working dir is the game's root folder
|
||||
cd /d %CONTENT_DIR%
|
||||
|
||||
%BEMANITOOLS_DIR%\launcher %BEMANITOOLS_DIR%\launcher-01.xml %*
|
||||
Vendored
+29
-5
@@ -1,10 +1,34 @@
|
||||
@echo off
|
||||
|
||||
:: Game doesn't work properly when not run with administrator privileges
|
||||
>nul 2>&1 net session
|
||||
|
||||
if %errorlevel% neq 0 (
|
||||
echo This script requires administrative privileges.
|
||||
echo Please run the script as an administrator.
|
||||
pause
|
||||
exit 1
|
||||
)
|
||||
|
||||
:: Script expects to be located in a subfolder "bemanitools" in the root folder
|
||||
:: (contents/) next to the folders modules, data etc.
|
||||
cd /d %~dp0
|
||||
|
||||
if not exist dev\nvram mkdir dev\nvram
|
||||
if not exist dev\nvram\coin.xml copy prop\defaults\coin.xml dev\nvram\coin.xml
|
||||
if not exist dev\nvram\eacoin.xml copy prop\defaults\eacoin.xml dev\nvram\eacoin.xml
|
||||
if not exist dev\raw mkdir dev\raw
|
||||
:: Script expects to be located in the root folder (contents/) next to the
|
||||
:: folders modules, data etc.
|
||||
set CONTENT_DIR=%CD%\..
|
||||
set BEMANITOOLS_DIR=%CONTENT_DIR%\bemanitools
|
||||
set MODULES_DIR=%CONTENT_DIR%\modules
|
||||
|
||||
launcher -K bsthook.dll -E prop/ea3-config-2.xml beatstream2.dll %*
|
||||
:: Keep that data vanilla, no need to copy these around anymore
|
||||
:: Just add them to the env PATH so launcher can find the libs and game executable
|
||||
:: Remark: This also requires admin privileges to propage correctly to launcher
|
||||
set PATH=^
|
||||
%MODULES_DIR%;^
|
||||
%BEMANITOOLS_DIR%;^
|
||||
%PATH%
|
||||
|
||||
:: Current working dir is the game's root folder
|
||||
cd /d %CONTENT_DIR%
|
||||
|
||||
%BEMANITOOLS_DIR%\launcher %BEMANITOOLS_DIR%\launcher-02.xml %*
|
||||
Vendored
+75
@@ -0,0 +1,75 @@
|
||||
<?xml version="1.0" encoding="Shift-JIS"?>
|
||||
<launcher version="1">
|
||||
<bootstrap>
|
||||
<selector __type="str">bemanitools_local_fs</selector>
|
||||
<config kind="inline">
|
||||
<config>
|
||||
<startup>
|
||||
<bemanitools_local_fs>
|
||||
<default>
|
||||
<file dst="/dev/nvram/ea3-config.xml" src="/prop/eamuse-config-1.xml" />
|
||||
<file dst="/dev/nvram/coin.xml" src="/prop/coin.xml" />
|
||||
<file dst="/dev/nvram/eacoin.xml" src="/prop/eacoin.xml" />
|
||||
</default>
|
||||
<boot>
|
||||
<file>prop/avs-config.xml</file>
|
||||
<heap_avs __type="u32">16777216</heap_avs>
|
||||
<heap_std __type="u32">16777216</heap_std>
|
||||
</boot>∂
|
||||
<log>
|
||||
<level>info</level>
|
||||
</log>
|
||||
<eamuse>
|
||||
<file>/dev/nvram/ea3-config.xml</file>
|
||||
</eamuse>
|
||||
<component>
|
||||
<file>beatstream1.dll</file>
|
||||
<param></param>
|
||||
</component>
|
||||
</bemanitools_local_fs>
|
||||
</startup>
|
||||
</config>
|
||||
</config>
|
||||
</bootstrap>
|
||||
<ea3_ident>
|
||||
<config kind="file">bemanitools/ea3-ident.xml</config>
|
||||
<config kind="file">bemanitools/ea3-license.xml</config>
|
||||
</ea3_ident>
|
||||
<avs>
|
||||
<config kind="inline">
|
||||
<config>
|
||||
<fs>
|
||||
<root>
|
||||
<device __type="str">.</device>
|
||||
</root>
|
||||
<nvram>
|
||||
<device __type="str">dev/nvram</device>
|
||||
<fstype __type="str">fs</fstype>
|
||||
<option __type="str">vf=1,posix=1</option>
|
||||
</nvram>
|
||||
<raw>
|
||||
<device __type="str">dev/raw</device>
|
||||
<fstype __type="str">fs</fstype>
|
||||
<option __type="str">vf=1,posix=1</option>
|
||||
</raw>
|
||||
</fs>
|
||||
</config>
|
||||
</config>
|
||||
</avs>
|
||||
<eamuse>
|
||||
<config kind="file">bemanitools/ea3-server.xml</config>
|
||||
</eamuse>
|
||||
<hook>
|
||||
<hook_dlls>
|
||||
<dll __type="str">bsthook.dll</dll>
|
||||
</hook_dlls>
|
||||
<before_hook_dlls>
|
||||
</before_hook_dlls>
|
||||
<iat_hook_dlls>
|
||||
</iat_hook_dlls>
|
||||
</hook>
|
||||
<debug>
|
||||
<remote_debugger __type="bool">0</remote_debugger>
|
||||
<log_property_configs __type="bool">0</log_property_configs>
|
||||
</debug>
|
||||
</launcher>
|
||||
Vendored
+75
@@ -0,0 +1,75 @@
|
||||
<?xml version="1.0" encoding="Shift-JIS"?>
|
||||
<launcher version="1">
|
||||
<bootstrap>
|
||||
<selector __type="str">bemanitools_local_fs</selector>
|
||||
<config kind="inline">
|
||||
<config>
|
||||
<startup>
|
||||
<bemanitools_local_fs>
|
||||
<default>
|
||||
<file dst="/dev/nvram/ea3-config.xml" src="/prop/eamuse-config-2.xml" />
|
||||
<file dst="/dev/nvram/coin.xml" src="/prop/coin.xml" />
|
||||
<file dst="/dev/nvram/eacoin.xml" src="/prop/eacoin.xml" />
|
||||
</default>
|
||||
<boot>
|
||||
<file>prop/avs-config.xml</file>
|
||||
<heap_avs __type="u32">16777216</heap_avs>
|
||||
<heap_std __type="u32">16777216</heap_std>
|
||||
</boot>
|
||||
<log>
|
||||
<level>info</level>
|
||||
</log>
|
||||
<eamuse>
|
||||
<file>/dev/nvram/ea3-config.xml</file>
|
||||
</eamuse>
|
||||
<component>
|
||||
<file>beatstream2.dll</file>
|
||||
<param></param>
|
||||
</component>
|
||||
</bemanitools_local_fs>
|
||||
</startup>
|
||||
</config>
|
||||
</config>
|
||||
</bootstrap>
|
||||
<ea3_ident>
|
||||
<config kind="file">bemanitools/ea3-ident.xml</config>
|
||||
<config kind="file">bemanitools/ea3-license.xml</config>
|
||||
</ea3_ident>
|
||||
<avs>
|
||||
<config kind="inline">
|
||||
<config>
|
||||
<fs>
|
||||
<root>
|
||||
<device __type="str">.</device>
|
||||
</root>
|
||||
<nvram>
|
||||
<device __type="str">dev/nvram</device>
|
||||
<fstype __type="str">fs</fstype>
|
||||
<option __type="str">vf=1,posix=1</option>
|
||||
</nvram>
|
||||
<raw>
|
||||
<device __type="str">dev/raw</device>
|
||||
<fstype __type="str">fs</fstype>
|
||||
<option __type="str">vf=1,posix=1</option>
|
||||
</raw>
|
||||
</fs>
|
||||
</config>
|
||||
</config>
|
||||
</avs>
|
||||
<eamuse>
|
||||
<config kind="file">bemanitools/ea3-service.xml</config>
|
||||
</eamuse>
|
||||
<hook>
|
||||
<hook_dlls>
|
||||
<dll __type="str">bsthook.dll</dll>
|
||||
</hook_dlls>
|
||||
<before_hook_dlls>
|
||||
</before_hook_dlls>
|
||||
<iat_hook_dlls>
|
||||
</iat_hook_dlls>
|
||||
</hook>
|
||||
<debug>
|
||||
<remote_debugger __type="bool">0</remote_debugger>
|
||||
<log_property_configs __type="bool">0</log_property_configs>
|
||||
</debug>
|
||||
</launcher>
|
||||
Reference in New Issue
Block a user