forked from Dniel97/segatools
beerpsi
4041844ea9
[UnityDoorstop](https://github.com/NeighTools/UnityDoorstop) is a tool to execute managed code (.NET DLLs) before Unity does, useful for modding frameworks such as BepInEx. This PR integrates parts of its code into segatools, so loading BepInEx is as simple as adding 2 lines to `segatools.ini`: ```ini [unity] targetAssembly=BepInEx\core\BepInEx.Preloader.dll ``` This PR also factors out the Unity path redirection hooks to its own module. Reviewed-on: Dniel97/segatools#11 Co-authored-by: beerpsi <beerpsi@duck.com> Co-committed-by: beerpsi <beerpsi@duck.com>
134 lines
4.5 KiB
INI
134 lines
4.5 KiB
INI
; -----------------------------------------------------------------------------
|
|
; Path settings
|
|
; -----------------------------------------------------------------------------
|
|
|
|
[vfs]
|
|
; Insert the path to the game AMFS directory here (contains ICF1 and ICF2)
|
|
amfs=
|
|
; Insert the path to the game Option directory here (contains Axxx directories)
|
|
option=
|
|
; Create an empty directory somewhere and insert the path here.
|
|
; This directory may be shared between multiple SEGA games.
|
|
; NOTE: This has nothing to do with Windows %APPDATA%.
|
|
appdata=
|
|
|
|
; -----------------------------------------------------------------------------
|
|
; Device settings
|
|
; -----------------------------------------------------------------------------
|
|
|
|
[aime]
|
|
; Enable Aime card reader assembly emulation. Disable to use a real SEGA Aime
|
|
; reader.
|
|
enable=1
|
|
aimePath=DEVICE\aime.txt
|
|
|
|
[vfd]
|
|
; Enable VFD emulation (currently just stubbed). Disable to use a real VFD
|
|
; GP1232A02A FUTABA assembly.
|
|
enable=1
|
|
|
|
; -----------------------------------------------------------------------------
|
|
; Network settings
|
|
; -----------------------------------------------------------------------------
|
|
|
|
[dns]
|
|
; Insert the hostname or IP address of the server you wish to use here.
|
|
; Note that 127.0.0.1, localhost etc are specifically rejected.
|
|
default=127.0.0.1
|
|
|
|
[netenv]
|
|
; Simulate an ideal LAN environment. This may interfere with head-to-head play.
|
|
; SEGA games are somewhat picky about its LAN environment, so leaving this
|
|
; setting enabled is recommended.
|
|
enable=1
|
|
; The final octet of the local host's IP address on the virtualized subnet (so,
|
|
; if the keychip subnet is `192.168.32.0` and this value is set to `11`, then the
|
|
; local host's virtualized LAN IP is `192.168.32.11`).
|
|
addrSuffix=11
|
|
|
|
; -----------------------------------------------------------------------------
|
|
; Board settings
|
|
; -----------------------------------------------------------------------------
|
|
|
|
[keychip]
|
|
; The /24 LAN subnet that the emulated keychip will tell the game to expect.
|
|
; If you disable netenv then you must set this to your LAN's IP subnet, and
|
|
; that subnet must start with 192.168.
|
|
subnet=192.168.172.0
|
|
|
|
[gpio]
|
|
; ALLS DIP switches.
|
|
enable=1
|
|
|
|
; Enable freeplay mode. This will disable the coin slot and set the game to
|
|
; freeplay. Keep in mind that some game modes (e.g. Freedom/Time Modes) will not
|
|
; 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
|
|
|
|
; -----------------------------------------------------------------------------
|
|
; Custom IO settings
|
|
; -----------------------------------------------------------------------------
|
|
|
|
[aimeio]
|
|
; To use a custom card reader IO DLL enter its path here.
|
|
; Leave empty if you want to use Segatools built-in keyboard input.
|
|
path=
|
|
|
|
[mai2io]
|
|
; To use a custom maimai DX IO DLL enter its path here.
|
|
; Leave empty if you want to use Segatools built-in keyboard input.
|
|
path=
|
|
|
|
; -----------------------------------------------------------------------------
|
|
; Misc. hook settings
|
|
; -----------------------------------------------------------------------------
|
|
|
|
[unity]
|
|
; Path to a .NET DLL that should run before the game. Useful for loading
|
|
; modding frameworks such as BepInEx.
|
|
targetAssembly=
|
|
|
|
; -----------------------------------------------------------------------------
|
|
; Input settings
|
|
; -----------------------------------------------------------------------------
|
|
|
|
; Keyboard bindings are specified as hexadecimal (prefixed with 0x) or decimal
|
|
; (not prefixed with 0x) virtual-key codes, a list of which can be found here:
|
|
;
|
|
; https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes
|
|
;
|
|
; This is, admittedly, not the most user-friendly configuration method in the
|
|
; world. An improved solution will be provided later.
|
|
|
|
[io4]
|
|
; Test button virtual-key code. Default is the F1 key.
|
|
test=0x70
|
|
; Service button virtual-key code. Default is the F2 key.
|
|
service=0x71
|
|
; Keyboard button to increment coin counter. Default is the F3 key.
|
|
coin=0x72
|
|
|
|
; Key bindings for buttons around screen. The default key map, depicted
|
|
; in clockwise order, is as follows:
|
|
;
|
|
; Player 1 Ring buttons: WEDCXZAQ, Select button: 3
|
|
; Player 2 Ring buttons: (Numpad) 89632147, Select button: (Numpad) *
|
|
;
|
|
; Select buttons are considered as button 9.
|
|
;
|
|
; Uncomment and complete the following sequence of settings to configure a
|
|
; custom keybinding.
|
|
[button]
|
|
;1p_btn1=0x53
|
|
;1p_btn2=0x53
|
|
;1p_btn3=0x53
|
|
; ... etc ...
|
|
;2p_btn1=0x53
|
|
;2p_btn2=0x53
|
|
;2p_btn3=0x53
|
|
; ... etc ...
|