forked from Hay1tsme/segatools
This adds support for APMv3 I/O, menus and the launcher. * Added a apm3hook dll and I/O based on the usual layout. * Added C:\Mount\Apm to vfs. * Added the relevant .dlls to unityhook. * Added a hook for apmmount.dll that uses `CreateDosDevice` to mount decrypted data to the locations the launcher and games expect files to be. This will conflict with anything that is already at W:\ and X:\, but I do not have better solutions for this. * `launch.bat` is a bit more involved as it simulates the launcher loop. It can be broken by alt+f4ing or closing the launcher with "X". * An extra export was added, so rundll32 can be used to get rid of the dosdevices after the launcher was killed. * Since all the games do everything via `X:\lib\apm.dll`, no game hooks were needed in testing, therefore, `game.bat` files can be used as is. * Path hooks are applied correctly, so you can go correctly between games, launcher, sub system test mode and game test modes. A setup guide (some stuff specific to my server) can be found here: https://gmg.hopto.org:82/gmg/wiki/index.php/All.Net_P-ras_Multi_Menu Tested with the 2 APM sample apps, Blazblue, Puyo, Guilty Gear and some weird unity puzzle game whose name I forgot.   Reviewed-on: #73 Co-authored-by: kyoubate-haruka <46010460+kyoubate-haruka@users.noreply.github.com> Co-committed-by: kyoubate-haruka <46010460+kyoubate-haruka@users.noreply.github.com>
145 lines
4.1 KiB
Meson
145 lines
4.1 KiB
Meson
project(
|
|
'segatools',
|
|
'c',
|
|
version: '0.1.0',
|
|
default_options: [
|
|
'werror=true',
|
|
],
|
|
)
|
|
|
|
add_project_arguments(
|
|
'-DCOBJMACROS',
|
|
'-DDIRECTINPUT_VERSION=0x0800',
|
|
'-DWIN32_LEAN_AND_MEAN',
|
|
'-D_WIN32_WINNT=_WIN32_WINNT_WIN7',
|
|
'-DMINGW_HAS_SECURE_API=1',
|
|
# '-ggdb', # Add debug information
|
|
language: 'c',
|
|
)
|
|
|
|
cc = meson.get_compiler('c')
|
|
|
|
if cc.get_id() != 'msvc'
|
|
add_project_arguments(
|
|
'-ffunction-sections',
|
|
'-fdata-sections',
|
|
'-Wno-unused',
|
|
language: 'c',
|
|
)
|
|
|
|
add_project_link_arguments(
|
|
'-Wl,--enable-stdcall-fixup',
|
|
'-Wl,--exclude-all-symbols',
|
|
'-Wl,--gc-sections',
|
|
'-static-libgcc',
|
|
# '-ggdb', # Add debug information
|
|
'-lcrypt32', # Bcrypt needed for prashook
|
|
'-lws2_32', # WSAHtons / WSANtohs needed for porthook
|
|
# '-Wl,-s', # Strip debug symbols
|
|
language: 'c',
|
|
)
|
|
endif
|
|
|
|
if get_option('log_all') or get_option('log_jvs')
|
|
add_project_arguments('-DLOG_JVS', language: 'c')
|
|
endif
|
|
if get_option('log_all') or get_option('log_io3')
|
|
add_project_arguments('-DLOG_IO3', language: 'c')
|
|
endif
|
|
if get_option('log_all') or get_option('log_led15070')
|
|
add_project_arguments('-DLOG_LED15070', language: 'c')
|
|
endif
|
|
if get_option('log_all') or get_option('log_led15093')
|
|
add_project_arguments('-DLOG_LED15093', language: 'c')
|
|
endif
|
|
if get_option('log_all') or get_option('log_nfc')
|
|
add_project_arguments('-DLOG_NFC', language: 'c')
|
|
endif
|
|
if get_option('log_all') or get_option('log_carol_control_bd')
|
|
add_project_arguments('-DLOG_CAROL_CONTROL_BD', language: 'c')
|
|
endif
|
|
if get_option('log_all') or get_option('log_carol_led_bd')
|
|
add_project_arguments('-DLOG_CAROL_LED_BD', language: 'c')
|
|
endif
|
|
if get_option('log_all') or get_option('log_carol_touch')
|
|
add_project_arguments('-DLOG_CAROL_TOUCH', language: 'c')
|
|
endif
|
|
if get_option('log_all') or get_option('log_mai2_touch')
|
|
add_project_arguments('-DLOG_MAI2_TOUCH', language: 'c')
|
|
endif
|
|
if get_option('log_all') or get_option('log_chuni_slider')
|
|
add_project_arguments('-DLOG_CHUNI_SLIDER', language: 'c')
|
|
endif
|
|
if get_option('log_all') or get_option('log_chusan_slider')
|
|
add_project_arguments('-DLOG_CHUSAN_SLIDER', language: 'c')
|
|
endif
|
|
if get_option('log_all') or get_option('log_diva_slider')
|
|
add_project_arguments('-DLOG_DIVA_SLIDER', language: 'c')
|
|
endif
|
|
if get_option('log_all') or get_option('log_mercury_slider')
|
|
add_project_arguments('-DLOG_MERCURY_SLIDER', language: 'c')
|
|
endif
|
|
if get_option('log_all') or get_option('log_clock')
|
|
add_project_arguments('-DLOG_CLOCK', language: 'c')
|
|
endif
|
|
if get_option('log_all') or get_option('log_vfs')
|
|
add_project_arguments('-DLOG_VFS', language: 'c')
|
|
endif
|
|
|
|
shlwapi_lib = cc.find_library('shlwapi')
|
|
dinput8_lib = cc.find_library('dinput8')
|
|
dxguid_lib = cc.find_library('dxguid')
|
|
xinput_lib = cc.find_library('xinput')
|
|
pathcch_lib = cc.find_library('pathcch')
|
|
imagehlp_lib = cc.find_library('imagehlp')
|
|
ws2_32_lib = cc.find_library('ws2_32')
|
|
bcrypt_lib = cc.find_library('bcrypt')
|
|
|
|
inc = include_directories('common', 'games')
|
|
capnhook = subproject('capnhook')
|
|
|
|
subdir('common/amex')
|
|
subdir('common/iccard')
|
|
subdir('common/board')
|
|
subdir('common/hooklib')
|
|
subdir('common/jvs')
|
|
subdir('common/platform')
|
|
subdir('common/util')
|
|
subdir('common/aimeio')
|
|
|
|
subdir('common/gfxhook')
|
|
subdir('common/unityhook')
|
|
|
|
subdir('games/chuniio')
|
|
subdir('games/divaio')
|
|
subdir('games/carolio')
|
|
subdir('games/idzio')
|
|
subdir('games/idacio')
|
|
subdir('games/swdcio')
|
|
subdir('games/mu3io')
|
|
subdir('games/mai2io')
|
|
subdir('games/cmio')
|
|
subdir('games/mercuryio')
|
|
subdir('games/cxbio')
|
|
subdir('games/tokyoio')
|
|
subdir('games/fgoio')
|
|
subdir('games/kemonoio')
|
|
subdir('games/apm3io')
|
|
|
|
subdir('games/chunihook')
|
|
subdir('games/divahook')
|
|
subdir('games/carolhook')
|
|
subdir('games/idzhook')
|
|
subdir('games/idachook')
|
|
subdir('games/swdchook')
|
|
subdir('games/chusanhook')
|
|
subdir('games/mu3hook')
|
|
subdir('games/mai2hook')
|
|
subdir('games/cmhook')
|
|
subdir('games/mercuryhook')
|
|
subdir('games/cxbhook')
|
|
subdir('games/tokyohook')
|
|
subdir('games/fgohook')
|
|
subdir('games/kemonohook')
|
|
subdir('games/apm3hook')
|