[apm3] fix led hook, fix blocked reboot

This commit is contained in:
2025-07-21 21:09:24 +02:00
parent ae168cdaf9
commit 0006731536
3 changed files with 40 additions and 20 deletions

18
dist/apm3/launch.bat vendored
View File

@ -1,14 +1,24 @@
@echo off
cd /d %~dp0
pushd %~dp0
set PATH=%~dp0lib;%~dp0;X:\;%PATH%
rem remove the reboot flag and show the copyright screen
if exist %tmp%\APMv3SystemReboot (
del %tmp%\APMv3SystemReboot
)
if exist %tmp%\SequenceSetting.json (
del %tmp%\SequenceSetting.json
)
:BEGIN
cd /d %~dp0
pushd %~dp0
qprocess amdaemon.exe > NUL
IF %ERRORLEVEL% NEQ 0 start /min cmd /C "inject -d -k apm3hook.dll amdaemon.exe -f -c daemon_config\common.json daemon_config\server.json config_hook.json"
IF %ERRORLEVEL% NEQ 0 start /min "AM Daemon" inject -d -k apm3hook.dll amdaemon.exe -c daemon_config\common.json daemon_config\server.json config_hook.json
inject -d -k apm3hook.dll APMV3System -screen-fullscreen 0 -screen-width 1920 -screen-height 1080 -popupWindow -logFile output_log.txt
@ -48,4 +58,4 @@ rundll32 apm3hook.dll,UnmountApmDrives
echo.
echo Game processes have terminated
pause
pause

View File

@ -72,6 +72,13 @@ id=A69E-01A88888888
; that subnet must start with 192.168.
subnet=192.168.168.0
; Override the game's four-character platform code (e.g. `AAV2` for Nu 2). This
; is actually supposed to be a separate three-character `platformId` and
; integer `modelType` setting, but they are combined here for convenience.
; Use `ACA1` for the Server/Client, depending on the dipsw1
; Use `ACA5` for the Standalone mode
platformId=ACA1
[pcbid]
; Set the Windows host name. This should be an ALLS MAIN ID, without the
; hyphen (which is not a valid character in a Windows host name).
@ -86,6 +93,10 @@ enable=1
; allow you to start a game in freeplay mode.
freeplay=0
; LAN Install: If multiple machines are present on the same LAN then set
; this to 1 on exactly one machine and set this to 0 on all others.
dipsw1=1
; -----------------------------------------------------------------------------
; Misc. hook settings
; -----------------------------------------------------------------------------
@ -112,7 +123,8 @@ delay=1
[epay]
; Enables the Thinca emulation. This will allow you to enable E-Money on compatible servers.
enable=0
enable=1
; -----------------------------------------------------------------------------
; Custom IO settings