From ae3dd666f4be789433f5ac73ed32fefc5b1b5114 Mon Sep 17 00:00:00 2001 From: Dniel97 Date: Thu, 17 Apr 2025 19:31:37 +0200 Subject: [PATCH] refactor all common parts and games --- Makefile | 2 + Package.mk | 34 +-- {aimeio => common/aimeio}/aimeio.c | 0 {aimeio => common/aimeio}/aimeio.h | 0 {aimeio => common/aimeio}/meson.build | 0 {amex => common/amex}/amex.c | 0 {amex => common/amex}/amex.h | 0 {amex => common/amex}/config.c | 0 {amex => common/amex}/config.h | 0 {amex => common/amex}/ds.c | 0 {amex => common/amex}/ds.h | 0 {amex => common/amex}/eeprom.c | 0 {amex => common/amex}/eeprom.h | 0 {amex => common/amex}/gpio.c | 0 {amex => common/amex}/gpio.h | 0 {amex => common/amex}/guid.c | 0 {amex => common/amex}/jvs.c | 0 {amex => common/amex}/jvs.h | 0 {amex => common/amex}/meson.build | 0 {amex => common/amex}/nvram.c | 0 {amex => common/amex}/nvram.h | 0 {amex => common/amex}/sram.c | 0 {amex => common/amex}/sram.h | 0 {board => common/board}/aime-dll.c | 0 {board => common/board}/aime-dll.h | 0 {board => common/board}/config.c | 0 {board => common/board}/config.h | 0 {board => common/board}/ffb.c | 0 {board => common/board}/ffb.h | 0 {board => common/board}/guid.c | 0 {board => common/board}/guid.h | 0 {board => common/board}/io3.c | 0 {board => common/board}/io3.h | 0 {board => common/board}/io4.c | 0 {board => common/board}/io4.h | 0 {board => common/board}/led15070-cmd.h | 0 {board => common/board}/led15070-frame.c | 0 {board => common/board}/led15070-frame.h | 0 {board => common/board}/led15070.c | 0 {board => common/board}/led15070.h | 0 {board => common/board}/led15093-cmd.h | 0 {board => common/board}/led15093-frame.c | 0 {board => common/board}/led15093-frame.h | 0 {board => common/board}/led15093.c | 0 {board => common/board}/led15093.h | 0 {board => common/board}/meson.build | 3 + {board => common/board}/sg-cmd.c | 0 {board => common/board}/sg-cmd.h | 0 {board => common/board}/sg-frame.c | 0 {board => common/board}/sg-frame.h | 0 {board => common/board}/sg-led-cmd.h | 0 {board => common/board}/sg-led.c | 0 {board => common/board}/sg-led.h | 0 {board => common/board}/sg-nfc-cmd.h | 0 {board => common/board}/sg-nfc.c | 1 + {board => common/board}/sg-nfc.h | 0 {board => common/board}/sg-reader.c | 0 {board => common/board}/sg-reader.h | 0 {board => common/board}/slider-cmd.h | 0 {board => common/board}/slider-frame.c | 0 {board => common/board}/slider-frame.h | 0 {board => common/board}/vfd-cmd.h | 0 {board => common/board}/vfd-frame.c | 0 {board => common/board}/vfd-frame.h | 0 {board => common/board}/vfd.c | 0 {board => common/board}/vfd.h | 0 {gfxhook => common/gfxhook}/config.c | 0 {gfxhook => common/gfxhook}/config.h | 0 {gfxhook => common/gfxhook}/d3d11.c | 0 {gfxhook => common/gfxhook}/d3d11.h | 0 {gfxhook => common/gfxhook}/d3d9.c | 0 {gfxhook => common/gfxhook}/d3d9.h | 0 {gfxhook => common/gfxhook}/dxgi.c | 0 {gfxhook => common/gfxhook}/dxgi.h | 0 {gfxhook => common/gfxhook}/gfx.c | 0 {gfxhook => common/gfxhook}/gfx.h | 0 {gfxhook => common/gfxhook}/gl.c | 0 {gfxhook => common/gfxhook}/gl.h | 0 {gfxhook => common/gfxhook}/meson.build | 0 {gfxhook => common/gfxhook}/util.c | 0 {gfxhook => common/gfxhook}/util.h | 0 {hooklib => common/hooklib}/config.c | 0 {hooklib => common/hooklib}/config.h | 0 {hooklib => common/hooklib}/createprocess.c | 0 {hooklib => common/hooklib}/createprocess.h | 0 {hooklib => common/hooklib}/cursor.c | 0 {hooklib => common/hooklib}/cursor.h | 0 {hooklib => common/hooklib}/dll.c | 0 {hooklib => common/hooklib}/dll.h | 0 {hooklib => common/hooklib}/dns.c | 0 {hooklib => common/hooklib}/dns.h | 0 {hooklib => common/hooklib}/dvd.c | 0 {hooklib => common/hooklib}/dvd.h | 0 {hooklib => common/hooklib}/fdshark.c | 0 {hooklib => common/hooklib}/fdshark.h | 0 {hooklib => common/hooklib}/meson.build | 0 {hooklib => common/hooklib}/path.c | 0 {hooklib => common/hooklib}/path.h | 0 {hooklib => common/hooklib}/printer.c | 0 {hooklib => common/hooklib}/printer.h | 0 {hooklib => common/hooklib}/reg.c | 0 {hooklib => common/hooklib}/reg.h | 0 {hooklib => common/hooklib}/setupapi.c | 0 {hooklib => common/hooklib}/setupapi.h | 0 {hooklib => common/hooklib}/spike.c | 0 {hooklib => common/hooklib}/spike.h | 0 {hooklib => common/hooklib}/touch.c | 0 {hooklib => common/hooklib}/touch.h | 0 {iccard => common/iccard}/aime.c | 0 {iccard => common/iccard}/aime.h | 0 {iccard => common/iccard}/felica.c | 0 {iccard => common/iccard}/felica.h | 0 {iccard => common/iccard}/meson.build | 0 {iccard => common/iccard}/mifare.h | 0 {jvs => common/jvs}/jvs-bus.c | 0 {jvs => common/jvs}/jvs-bus.h | 0 {jvs => common/jvs}/jvs-cmd.h | 0 {jvs => common/jvs}/jvs-frame.c | 0 {jvs => common/jvs}/jvs-frame.h | 0 {jvs => common/jvs}/jvs-util.c | 0 {jvs => common/jvs}/jvs-util.h | 0 {jvs => common/jvs}/meson.build | 0 {platform => common/platform}/amvideo.c | 0 {platform => common/platform}/amvideo.h | 0 {platform => common/platform}/clock.c | 0 {platform => common/platform}/clock.h | 0 {platform => common/platform}/config.c | 0 {platform => common/platform}/config.h | 0 {platform => common/platform}/dns.c | 0 {platform => common/platform}/dns.h | 0 {platform => common/platform}/epay.c | 0 {platform => common/platform}/epay.h | 0 {platform => common/platform}/hwmon.c | 0 {platform => common/platform}/hwmon.h | 0 {platform => common/platform}/hwreset.c | 0 {platform => common/platform}/hwreset.h | 0 {platform => common/platform}/meson.build | 0 {platform => common/platform}/misc.c | 0 {platform => common/platform}/misc.h | 0 {platform => common/platform}/netenv.c | 0 {platform => common/platform}/netenv.h | 0 {platform => common/platform}/nusec.c | 0 {platform => common/platform}/nusec.h | 0 {platform => common/platform}/pcbid.c | 0 {platform => common/platform}/pcbid.h | 0 {platform => common/platform}/platform.c | 0 {platform => common/platform}/platform.h | 0 {platform => common/platform}/system.c | 2 +- {platform => common/platform}/system.h | 0 {platform => common/platform}/vfs.c | 0 {platform => common/platform}/vfs.h | 0 {unityhook => common/unityhook}/config.c | 0 {unityhook => common/unityhook}/config.h | 24 +-- {unityhook => common/unityhook}/doorstop.c | 0 {unityhook => common/unityhook}/doorstop.h | 8 +- {unityhook => common/unityhook}/hook.c | 0 {unityhook => common/unityhook}/hook.h | 18 +- {unityhook => common/unityhook}/meson.build | 38 ++-- {unityhook => common/unityhook}/mono.h | 198 +++++++++--------- {unityhook => common/unityhook}/util.h | 40 ++-- {util => common/util}/async.c | 0 {util => common/util}/async.h | 0 {util => common/util}/crc.c | 0 {util => common/util}/crc.h | 0 {util => common/util}/dll-bind.c | 0 {util => common/util}/dll-bind.h | 0 {util => common/util}/dprintf.c | 0 {util => common/util}/dprintf.h | 0 {util => common/util}/dump.c | 0 {util => common/util}/dump.h | 0 {util => common/util}/env.c | 0 {util => common/util}/env.h | 0 {util => common/util}/get_function_ordinal.c | 0 {util => common/util}/get_function_ordinal.h | 0 {util => common/util}/lib.c | 0 {util => common/util}/lib.h | 0 {util => common/util}/meson.build | 0 {util => common/util}/slurp.c | 0 {util => common/util}/slurp.h | 0 {util => common/util}/str.c | 0 {util => common/util}/str.h | 0 dist/fgo/launch.bat | 2 +- {carolhook => games/carolhook}/carol-dll.c | 0 {carolhook => games/carolhook}/carol-dll.h | 0 {carolhook => games/carolhook}/carolhook.def | 0 {carolhook => games/carolhook}/config.c | 0 {carolhook => games/carolhook}/config.h | 0 {carolhook => games/carolhook}/controlbd.c | 0 {carolhook => games/carolhook}/controlbd.h | 0 {carolhook => games/carolhook}/dllmain.c | 0 {carolhook => games/carolhook}/jvs.c | 0 {carolhook => games/carolhook}/jvs.h | 0 {carolhook => games/carolhook}/ledbd.c | 0 {carolhook => games/carolhook}/ledbd.h | 0 {carolhook => games/carolhook}/meson.build | 0 {carolhook => games/carolhook}/touch.c | 0 {carolhook => games/carolhook}/touch.h | 0 {carolio => games/carolio}/carolio.c | 0 {carolio => games/carolio}/carolio.h | 0 {carolio => games/carolio}/config.c | 0 {carolio => games/carolio}/config.h | 0 {carolio => games/carolio}/meson.build | 0 {chunihook => games/chunihook}/chuni-dll.c | 0 {chunihook => games/chunihook}/chuni-dll.h | 0 {chunihook => games/chunihook}/chunihook.def | 0 {chunihook => games/chunihook}/config.c | 0 {chunihook => games/chunihook}/config.h | 0 {chunihook => games/chunihook}/dllmain.c | 0 {chunihook => games/chunihook}/jvs.c | 0 {chunihook => games/chunihook}/jvs.h | 0 {chunihook => games/chunihook}/meson.build | 0 {chunihook => games/chunihook}/slider.c | 0 {chunihook => games/chunihook}/slider.h | 0 {chuniio => games/chuniio}/chu2to3.c | 0 {chuniio => games/chuniio}/chu2to3.h | 0 {chuniio => games/chuniio}/chuniio.c | 0 {chuniio => games/chuniio}/chuniio.h | 0 {chuniio => games/chuniio}/config.c | 0 {chuniio => games/chuniio}/config.h | 0 {chuniio => games/chuniio}/leddata.h | 0 {chuniio => games/chuniio}/ledoutput.c | 0 {chuniio => games/chuniio}/ledoutput.h | 0 {chuniio => games/chuniio}/meson.build | 0 {chuniio => games/chuniio}/pipeimpl.c | 0 {chuniio => games/chuniio}/pipeimpl.h | 0 {chuniio => games/chuniio}/serialimpl.c | 0 {chuniio => games/chuniio}/serialimpl.h | 0 {chusanhook => games/chusanhook}/chuni-dll.c | 0 {chusanhook => games/chusanhook}/chuni-dll.h | 0 .../chusanhook}/chusanhook.def | 0 {chusanhook => games/chusanhook}/config.c | 0 {chusanhook => games/chusanhook}/config.h | 0 {chusanhook => games/chusanhook}/dllmain.c | 0 {chusanhook => games/chusanhook}/io4.c | 0 {chusanhook => games/chusanhook}/io4.h | 0 {chusanhook => games/chusanhook}/meson.build | 0 {chusanhook => games/chusanhook}/slider.c | 0 {chusanhook => games/chusanhook}/slider.h | 0 {cmhook => games/cmhook}/cm-dll.c | 0 {cmhook => games/cmhook}/cm-dll.h | 0 {cmhook => games/cmhook}/cmhook.def | 0 {cmhook => games/cmhook}/config.c | 0 {cmhook => games/cmhook}/config.h | 0 {cmhook => games/cmhook}/dllmain.c | 0 {cmhook => games/cmhook}/io4.c | 0 {cmhook => games/cmhook}/io4.h | 0 {cmhook => games/cmhook}/meson.build | 0 {cmio => games/cmio}/cmio.c | 0 {cmio => games/cmio}/cmio.h | 0 {cmio => games/cmio}/config.c | 0 {cmio => games/cmio}/config.h | 0 {cmio => games/cmio}/meson.build | 0 {cxbhook => games/cxbhook}/config.c | 0 {cxbhook => games/cxbhook}/config.h | 0 {cxbhook => games/cxbhook}/cxb-dll.c | 0 {cxbhook => games/cxbhook}/cxb-dll.h | 0 {cxbhook => games/cxbhook}/cxbhook.def | 0 {cxbhook => games/cxbhook}/dllmain.c | 0 {cxbhook => games/cxbhook}/led.c | 0 {cxbhook => games/cxbhook}/led.h | 0 {cxbhook => games/cxbhook}/meson.build | 0 {cxbhook => games/cxbhook}/revio.c | 0 {cxbhook => games/cxbhook}/revio.h | 0 {cxbio => games/cxbio}/config.c | 0 {cxbio => games/cxbio}/config.h | 0 {cxbio => games/cxbio}/cxbio.c | 0 {cxbio => games/cxbio}/cxbio.h | 0 {cxbio => games/cxbio}/meson.build | 0 {divahook => games/divahook}/config.c | 0 {divahook => games/divahook}/config.h | 0 {divahook => games/divahook}/diva-dll.c | 0 {divahook => games/divahook}/diva-dll.h | 0 {divahook => games/divahook}/divahook.def | 0 {divahook => games/divahook}/dllmain.c | 0 {divahook => games/divahook}/jvs.c | 0 {divahook => games/divahook}/jvs.h | 0 {divahook => games/divahook}/meson.build | 0 {divahook => games/divahook}/slider.c | 0 {divahook => games/divahook}/slider.h | 0 {divaio => games/divaio}/config.c | 0 {divaio => games/divaio}/config.h | 0 {divaio => games/divaio}/divaio.c | 0 {divaio => games/divaio}/divaio.h | 0 {divaio => games/divaio}/meson.build | 0 {fgohook => games/fgohook}/config.c | 0 {fgohook => games/fgohook}/config.h | 0 {fgohook => games/fgohook}/deck.c | 0 {fgohook => games/fgohook}/deck.h | 0 {fgohook => games/fgohook}/dllmain.c | 0 {fgohook => games/fgohook}/fgo-dll.c | 0 {fgohook => games/fgohook}/fgo-dll.h | 0 {fgohook => games/fgohook}/fgohook.def | 0 {fgohook => games/fgohook}/ftdi.c | 0 {fgohook => games/fgohook}/ftdi.h | 0 {fgohook => games/fgohook}/io4.c | 0 {fgohook => games/fgohook}/io4.h | 0 {fgohook => games/fgohook}/meson.build | 0 {fgoio => games/fgoio}/backend.h | 0 {fgoio => games/fgoio}/config.c | 0 {fgoio => games/fgoio}/config.h | 0 {fgoio => games/fgoio}/fgoio.c | 0 {fgoio => games/fgoio}/fgoio.h | 0 {fgoio => games/fgoio}/keyboard.c | 0 {fgoio => games/fgoio}/keyboard.h | 0 {fgoio => games/fgoio}/meson.build | 0 {fgoio => games/fgoio}/xi.c | 0 {fgoio => games/fgoio}/xi.h | 0 {idachook => games/idachook}/config.c | 0 {idachook => games/idachook}/config.h | 0 {idachook => games/idachook}/dllmain.c | 0 {idachook => games/idachook}/ffb.c | 0 {idachook => games/idachook}/ffb.h | 0 {idachook => games/idachook}/idac-dll.c | 0 {idachook => games/idachook}/idac-dll.h | 0 {idachook => games/idachook}/idachook.def | 0 {idachook => games/idachook}/indrun.c | 0 {idachook => games/idachook}/indrun.h | 0 {idachook => games/idachook}/io4.c | 0 {idachook => games/idachook}/io4.h | 0 {idachook => games/idachook}/meson.build | 0 {idachook => games/idachook}/zinput.c | 0 {idachook => games/idachook}/zinput.h | 0 {idacio => games/idacio}/backend.h | 0 {idacio => games/idacio}/config.c | 0 {idacio => games/idacio}/config.h | 0 {idacio => games/idacio}/di-dev.c | 0 {idacio => games/idacio}/di-dev.h | 0 {idacio => games/idacio}/di.c | 0 {idacio => games/idacio}/di.h | 0 {idacio => games/idacio}/dllmain.c | 0 {idacio => games/idacio}/idacio.def | 0 {idacio => games/idacio}/idacio.h | 0 {idacio => games/idacio}/meson.build | 0 {idacio => games/idacio}/shifter.c | 0 {idacio => games/idacio}/shifter.h | 0 {idacio => games/idacio}/wnd.c | 0 {idacio => games/idacio}/wnd.h | 0 {idacio => games/idacio}/xi.c | 0 {idacio => games/idacio}/xi.h | 0 {idzhook => games/idzhook}/config.c | 0 {idzhook => games/idzhook}/config.h | 0 {idzhook => games/idzhook}/dllmain.c | 0 {idzhook => games/idzhook}/ffb.c | 0 {idzhook => games/idzhook}/ffb.h | 0 {idzhook => games/idzhook}/idz-dll.c | 0 {idzhook => games/idzhook}/idz-dll.h | 0 {idzhook => games/idzhook}/idzhook.def | 0 {idzhook => games/idzhook}/jvs.c | 0 {idzhook => games/idzhook}/jvs.h | 0 {idzhook => games/idzhook}/meson.build | 0 {idzhook => games/idzhook}/zinput.c | 0 {idzhook => games/idzhook}/zinput.h | 0 {idzio => games/idzio}/backend.h | 0 {idzio => games/idzio}/config.c | 0 {idzio => games/idzio}/config.h | 0 {idzio => games/idzio}/di-dev.c | 0 {idzio => games/idzio}/di-dev.h | 0 {idzio => games/idzio}/di.c | 0 {idzio => games/idzio}/di.h | 0 {idzio => games/idzio}/dllmain.c | 0 {idzio => games/idzio}/idzio.def | 0 {idzio => games/idzio}/idzio.h | 0 {idzio => games/idzio}/meson.build | 0 {idzio => games/idzio}/shifter.c | 0 {idzio => games/idzio}/shifter.h | 0 {idzio => games/idzio}/wnd.c | 0 {idzio => games/idzio}/wnd.h | 0 {idzio => games/idzio}/xi.c | 0 {idzio => games/idzio}/xi.h | 0 {kemonohook => games/kemonohook}/config.c | 0 {kemonohook => games/kemonohook}/config.h | 0 {kemonohook => games/kemonohook}/dllmain.c | 0 {kemonohook => games/kemonohook}/hooks.c | 0 {kemonohook => games/kemonohook}/hooks.h | 0 {kemonohook => games/kemonohook}/jvs.c | 0 {kemonohook => games/kemonohook}/jvs.h | 0 {kemonohook => games/kemonohook}/kemono-dll.c | 0 {kemonohook => games/kemonohook}/kemono-dll.h | 0 .../kemonohook}/kemonohook.def | 0 {kemonohook => games/kemonohook}/meson.build | 0 {kemonoio => games/kemonoio}/config.c | 0 {kemonoio => games/kemonoio}/config.h | 0 {kemonoio => games/kemonoio}/kemonoio.c | 0 {kemonoio => games/kemonoio}/kemonoio.h | 0 {kemonoio => games/kemonoio}/meson.build | 0 {mai2hook => games/mai2hook}/config.c | 0 {mai2hook => games/mai2hook}/config.h | 0 {mai2hook => games/mai2hook}/dllmain.c | 0 {mai2hook => games/mai2hook}/io4.c | 0 {mai2hook => games/mai2hook}/io4.h | 0 {mai2hook => games/mai2hook}/mai2-dll.c | 0 {mai2hook => games/mai2hook}/mai2-dll.h | 0 {mai2hook => games/mai2hook}/mai2hook.def | 0 {mai2hook => games/mai2hook}/meson.build | 0 {mai2hook => games/mai2hook}/touch.c | 0 {mai2hook => games/mai2hook}/touch.h | 0 {mai2io => games/mai2io}/config.c | 0 {mai2io => games/mai2io}/config.h | 0 {mai2io => games/mai2io}/mai2io.c | 0 {mai2io => games/mai2io}/mai2io.h | 0 {mai2io => games/mai2io}/meson.build | 0 {mercuryhook => games/mercuryhook}/config.c | 0 {mercuryhook => games/mercuryhook}/config.h | 0 {mercuryhook => games/mercuryhook}/dllmain.c | 0 .../mercuryhook}/elisabeth.c | 0 .../mercuryhook}/elisabeth.h | 0 {mercuryhook => games/mercuryhook}/io4.c | 0 {mercuryhook => games/mercuryhook}/io4.h | 0 .../mercuryhook}/mercury-dll.c | 0 .../mercuryhook}/mercury-dll.h | 0 .../mercuryhook}/mercuryhook.def | 0 .../mercuryhook}/meson.build | 0 {mercuryhook => games/mercuryhook}/touch.c | 0 {mercuryhook => games/mercuryhook}/touch.h | 0 {mercuryio => games/mercuryio}/config.c | 0 {mercuryio => games/mercuryio}/config.h | 0 {mercuryio => games/mercuryio}/mercuryio.c | 0 {mercuryio => games/mercuryio}/mercuryio.def | 0 {mercuryio => games/mercuryio}/mercuryio.h | 0 {mercuryio => games/mercuryio}/meson.build | 0 {mu3hook => games/mu3hook}/config.c | 0 {mu3hook => games/mu3hook}/config.h | 0 {mu3hook => games/mu3hook}/dllmain.c | 0 {mu3hook => games/mu3hook}/io4.c | 0 {mu3hook => games/mu3hook}/io4.h | 0 {mu3hook => games/mu3hook}/meson.build | 0 {mu3hook => games/mu3hook}/mu3-dll.c | 0 {mu3hook => games/mu3hook}/mu3-dll.h | 0 {mu3hook => games/mu3hook}/mu3hook.def | 0 {mu3io => games/mu3io}/config.c | 0 {mu3io => games/mu3io}/config.h | 0 {mu3io => games/mu3io}/leddata.h | 0 {mu3io => games/mu3io}/ledoutput.c | 0 {mu3io => games/mu3io}/ledoutput.h | 0 {mu3io => games/mu3io}/meson.build | 0 {mu3io => games/mu3io}/mu3io.c | 0 {mu3io => games/mu3io}/mu3io.h | 0 {mu3io => games/mu3io}/pipeimpl.c | 0 {mu3io => games/mu3io}/pipeimpl.h | 0 {mu3io => games/mu3io}/serialimpl.c | 0 {mu3io => games/mu3io}/serialimpl.h | 0 {swdchook => games/swdchook}/config.c | 0 {swdchook => games/swdchook}/config.h | 0 {swdchook => games/swdchook}/dllmain.c | 0 {swdchook => games/swdchook}/ffb.c | 0 {swdchook => games/swdchook}/ffb.h | 0 {swdchook => games/swdchook}/io4.c | 0 {swdchook => games/swdchook}/io4.h | 0 {swdchook => games/swdchook}/meson.build | 0 {swdchook => games/swdchook}/swdc-dll.c | 0 {swdchook => games/swdchook}/swdc-dll.h | 0 {swdchook => games/swdchook}/swdchook.def | 0 {swdchook => games/swdchook}/zinput.c | 0 {swdchook => games/swdchook}/zinput.h | 0 {swdcio => games/swdcio}/backend.h | 0 {swdcio => games/swdcio}/config.c | 0 {swdcio => games/swdcio}/config.h | 0 {swdcio => games/swdcio}/di-dev.c | 0 {swdcio => games/swdcio}/di-dev.h | 0 {swdcio => games/swdcio}/di.c | 0 {swdcio => games/swdcio}/di.h | 0 {swdcio => games/swdcio}/dllmain.c | 0 {swdcio => games/swdcio}/meson.build | 0 {swdcio => games/swdcio}/swdcio.def | 0 {swdcio => games/swdcio}/swdcio.h | 0 {swdcio => games/swdcio}/wnd.c | 0 {swdcio => games/swdcio}/wnd.h | 0 {swdcio => games/swdcio}/xi.c | 0 {swdcio => games/swdcio}/xi.h | 0 {tokyohook => games/tokyohook}/config.c | 0 {tokyohook => games/tokyohook}/config.h | 0 {tokyohook => games/tokyohook}/dllmain.c | 0 {tokyohook => games/tokyohook}/io4.c | 0 {tokyohook => games/tokyohook}/io4.h | 0 {tokyohook => games/tokyohook}/meson.build | 0 {tokyohook => games/tokyohook}/tokyo-dll.c | 0 {tokyohook => games/tokyohook}/tokyo-dll.h | 0 {tokyohook => games/tokyohook}/tokyohook.def | 0 {tokyohook => games/tokyohook}/zinput.c | 0 {tokyohook => games/tokyohook}/zinput.h | 0 {tokyoio => games/tokyoio}/backend.h | 0 {tokyoio => games/tokyoio}/config.c | 0 {tokyoio => games/tokyoio}/config.h | 0 {tokyoio => games/tokyoio}/dllmain.c | 0 {tokyoio => games/tokyoio}/kb.c | 0 {tokyoio => games/tokyoio}/kb.h | 0 {tokyoio => games/tokyoio}/meson.build | 0 {tokyoio => games/tokyoio}/tokyoio.h | 0 {tokyoio => games/tokyoio}/xi.c | 0 {tokyoio => games/tokyoio}/xi.h | 0 meson.build | 81 ++++--- minihook/dllmain.c | 76 ------- minihook/meson.build | 18 -- msvc-build.bat | 2 + package.ps1 | 6 + reg/chunithm.reg | 27 --- 496 files changed, 236 insertions(+), 344 deletions(-) rename {aimeio => common/aimeio}/aimeio.c (100%) rename {aimeio => common/aimeio}/aimeio.h (100%) rename {aimeio => common/aimeio}/meson.build (100%) rename {amex => common/amex}/amex.c (100%) rename {amex => common/amex}/amex.h (100%) rename {amex => common/amex}/config.c (100%) rename {amex => common/amex}/config.h (100%) rename {amex => common/amex}/ds.c (100%) rename {amex => common/amex}/ds.h (100%) rename {amex => common/amex}/eeprom.c (100%) rename {amex => common/amex}/eeprom.h (100%) rename {amex => common/amex}/gpio.c (100%) rename {amex => common/amex}/gpio.h (100%) rename {amex => common/amex}/guid.c (100%) rename {amex => common/amex}/jvs.c (100%) rename {amex => common/amex}/jvs.h (100%) rename {amex => common/amex}/meson.build (100%) rename {amex => common/amex}/nvram.c (100%) rename {amex => common/amex}/nvram.h (100%) rename {amex => common/amex}/sram.c (100%) rename {amex => common/amex}/sram.h (100%) rename {board => common/board}/aime-dll.c (100%) rename {board => common/board}/aime-dll.h (100%) rename {board => common/board}/config.c (100%) rename {board => common/board}/config.h (100%) rename {board => common/board}/ffb.c (100%) rename {board => common/board}/ffb.h (100%) rename {board => common/board}/guid.c (100%) rename {board => common/board}/guid.h (100%) rename {board => common/board}/io3.c (100%) rename {board => common/board}/io3.h (100%) rename {board => common/board}/io4.c (100%) rename {board => common/board}/io4.h (100%) rename {board => common/board}/led15070-cmd.h (100%) rename {board => common/board}/led15070-frame.c (100%) rename {board => common/board}/led15070-frame.h (100%) rename {board => common/board}/led15070.c (100%) rename {board => common/board}/led15070.h (100%) rename {board => common/board}/led15093-cmd.h (100%) rename {board => common/board}/led15093-frame.c (100%) rename {board => common/board}/led15093-frame.h (100%) rename {board => common/board}/led15093.c (100%) rename {board => common/board}/led15093.h (100%) rename {board => common/board}/meson.build (93%) rename {board => common/board}/sg-cmd.c (100%) rename {board => common/board}/sg-cmd.h (100%) rename {board => common/board}/sg-frame.c (100%) rename {board => common/board}/sg-frame.h (100%) rename {board => common/board}/sg-led-cmd.h (100%) rename {board => common/board}/sg-led.c (100%) rename {board => common/board}/sg-led.h (100%) rename {board => common/board}/sg-nfc-cmd.h (100%) rename {board => common/board}/sg-nfc.c (99%) rename {board => common/board}/sg-nfc.h (100%) rename {board => common/board}/sg-reader.c (100%) rename {board => common/board}/sg-reader.h (100%) rename {board => common/board}/slider-cmd.h (100%) rename {board => common/board}/slider-frame.c (100%) rename {board => common/board}/slider-frame.h (100%) rename {board => common/board}/vfd-cmd.h (100%) rename {board => common/board}/vfd-frame.c (100%) rename {board => common/board}/vfd-frame.h (100%) rename {board => common/board}/vfd.c (100%) rename {board => common/board}/vfd.h (100%) rename {gfxhook => common/gfxhook}/config.c (100%) rename {gfxhook => common/gfxhook}/config.h (100%) rename {gfxhook => common/gfxhook}/d3d11.c (100%) rename {gfxhook => common/gfxhook}/d3d11.h (100%) rename {gfxhook => common/gfxhook}/d3d9.c (100%) rename {gfxhook => common/gfxhook}/d3d9.h (100%) rename {gfxhook => common/gfxhook}/dxgi.c (100%) rename {gfxhook => common/gfxhook}/dxgi.h (100%) rename {gfxhook => common/gfxhook}/gfx.c (100%) rename {gfxhook => common/gfxhook}/gfx.h (100%) rename {gfxhook => common/gfxhook}/gl.c (100%) rename {gfxhook => common/gfxhook}/gl.h (100%) rename {gfxhook => common/gfxhook}/meson.build (100%) rename {gfxhook => common/gfxhook}/util.c (100%) rename {gfxhook => common/gfxhook}/util.h (100%) rename {hooklib => common/hooklib}/config.c (100%) rename {hooklib => common/hooklib}/config.h (100%) rename {hooklib => common/hooklib}/createprocess.c (100%) rename {hooklib => common/hooklib}/createprocess.h (100%) rename {hooklib => common/hooklib}/cursor.c (100%) rename {hooklib => common/hooklib}/cursor.h (100%) rename {hooklib => common/hooklib}/dll.c (100%) rename {hooklib => common/hooklib}/dll.h (100%) rename {hooklib => common/hooklib}/dns.c (100%) rename {hooklib => common/hooklib}/dns.h (100%) rename {hooklib => common/hooklib}/dvd.c (100%) rename {hooklib => common/hooklib}/dvd.h (100%) rename {hooklib => common/hooklib}/fdshark.c (100%) rename {hooklib => common/hooklib}/fdshark.h (100%) rename {hooklib => common/hooklib}/meson.build (100%) rename {hooklib => common/hooklib}/path.c (100%) rename {hooklib => common/hooklib}/path.h (100%) rename {hooklib => common/hooklib}/printer.c (100%) rename {hooklib => common/hooklib}/printer.h (100%) rename {hooklib => common/hooklib}/reg.c (100%) rename {hooklib => common/hooklib}/reg.h (100%) rename {hooklib => common/hooklib}/setupapi.c (100%) rename {hooklib => common/hooklib}/setupapi.h (100%) rename {hooklib => common/hooklib}/spike.c (100%) rename {hooklib => common/hooklib}/spike.h (100%) rename {hooklib => common/hooklib}/touch.c (100%) rename {hooklib => common/hooklib}/touch.h (100%) rename {iccard => common/iccard}/aime.c (100%) rename {iccard => common/iccard}/aime.h (100%) rename {iccard => common/iccard}/felica.c (100%) rename {iccard => common/iccard}/felica.h (100%) rename {iccard => common/iccard}/meson.build (100%) rename {iccard => common/iccard}/mifare.h (100%) rename {jvs => common/jvs}/jvs-bus.c (100%) rename {jvs => common/jvs}/jvs-bus.h (100%) rename {jvs => common/jvs}/jvs-cmd.h (100%) rename {jvs => common/jvs}/jvs-frame.c (100%) rename {jvs => common/jvs}/jvs-frame.h (100%) rename {jvs => common/jvs}/jvs-util.c (100%) rename {jvs => common/jvs}/jvs-util.h (100%) rename {jvs => common/jvs}/meson.build (100%) rename {platform => common/platform}/amvideo.c (100%) rename {platform => common/platform}/amvideo.h (100%) rename {platform => common/platform}/clock.c (100%) rename {platform => common/platform}/clock.h (100%) rename {platform => common/platform}/config.c (100%) rename {platform => common/platform}/config.h (100%) rename {platform => common/platform}/dns.c (100%) rename {platform => common/platform}/dns.h (100%) rename {platform => common/platform}/epay.c (100%) rename {platform => common/platform}/epay.h (100%) rename {platform => common/platform}/hwmon.c (100%) rename {platform => common/platform}/hwmon.h (100%) rename {platform => common/platform}/hwreset.c (100%) rename {platform => common/platform}/hwreset.h (100%) rename {platform => common/platform}/meson.build (100%) rename {platform => common/platform}/misc.c (100%) rename {platform => common/platform}/misc.h (100%) rename {platform => common/platform}/netenv.c (100%) rename {platform => common/platform}/netenv.h (100%) rename {platform => common/platform}/nusec.c (100%) rename {platform => common/platform}/nusec.h (100%) rename {platform => common/platform}/pcbid.c (100%) rename {platform => common/platform}/pcbid.h (100%) rename {platform => common/platform}/platform.c (100%) rename {platform => common/platform}/platform.h (100%) rename {platform => common/platform}/system.c (98%) rename {platform => common/platform}/system.h (100%) rename {platform => common/platform}/vfs.c (100%) rename {platform => common/platform}/vfs.h (100%) rename {unityhook => common/unityhook}/config.c (100%) rename {unityhook => common/unityhook}/config.h (94%) rename {unityhook => common/unityhook}/doorstop.c (100%) rename {unityhook => common/unityhook}/doorstop.h (83%) rename {unityhook => common/unityhook}/hook.c (100%) rename {unityhook => common/unityhook}/hook.h (96%) rename {unityhook => common/unityhook}/meson.build (95%) rename {unityhook => common/unityhook}/mono.h (97%) rename {unityhook => common/unityhook}/util.h (96%) rename {util => common/util}/async.c (100%) rename {util => common/util}/async.h (100%) rename {util => common/util}/crc.c (100%) rename {util => common/util}/crc.h (100%) rename {util => common/util}/dll-bind.c (100%) rename {util => common/util}/dll-bind.h (100%) rename {util => common/util}/dprintf.c (100%) rename {util => common/util}/dprintf.h (100%) rename {util => common/util}/dump.c (100%) rename {util => common/util}/dump.h (100%) rename {util => common/util}/env.c (100%) rename {util => common/util}/env.h (100%) rename {util => common/util}/get_function_ordinal.c (100%) rename {util => common/util}/get_function_ordinal.h (100%) rename {util => common/util}/lib.c (100%) rename {util => common/util}/lib.h (100%) rename {util => common/util}/meson.build (100%) rename {util => common/util}/slurp.c (100%) rename {util => common/util}/slurp.h (100%) rename {util => common/util}/str.c (100%) rename {util => common/util}/str.h (100%) rename {carolhook => games/carolhook}/carol-dll.c (100%) rename {carolhook => games/carolhook}/carol-dll.h (100%) rename {carolhook => games/carolhook}/carolhook.def (100%) rename {carolhook => games/carolhook}/config.c (100%) rename {carolhook => games/carolhook}/config.h (100%) rename {carolhook => games/carolhook}/controlbd.c (100%) rename {carolhook => games/carolhook}/controlbd.h (100%) rename {carolhook => games/carolhook}/dllmain.c (100%) rename {carolhook => games/carolhook}/jvs.c (100%) rename {carolhook => games/carolhook}/jvs.h (100%) rename {carolhook => games/carolhook}/ledbd.c (100%) rename {carolhook => games/carolhook}/ledbd.h (100%) rename {carolhook => games/carolhook}/meson.build (100%) rename {carolhook => games/carolhook}/touch.c (100%) rename {carolhook => games/carolhook}/touch.h (100%) rename {carolio => games/carolio}/carolio.c (100%) rename {carolio => games/carolio}/carolio.h (100%) rename {carolio => games/carolio}/config.c (100%) rename {carolio => games/carolio}/config.h (100%) rename {carolio => games/carolio}/meson.build (100%) rename {chunihook => games/chunihook}/chuni-dll.c (100%) rename {chunihook => games/chunihook}/chuni-dll.h (100%) rename {chunihook => games/chunihook}/chunihook.def (100%) rename {chunihook => games/chunihook}/config.c (100%) rename {chunihook => games/chunihook}/config.h (100%) rename {chunihook => games/chunihook}/dllmain.c (100%) rename {chunihook => games/chunihook}/jvs.c (100%) rename {chunihook => games/chunihook}/jvs.h (100%) rename {chunihook => games/chunihook}/meson.build (100%) rename {chunihook => games/chunihook}/slider.c (100%) rename {chunihook => games/chunihook}/slider.h (100%) rename {chuniio => games/chuniio}/chu2to3.c (100%) rename {chuniio => games/chuniio}/chu2to3.h (100%) rename {chuniio => games/chuniio}/chuniio.c (100%) rename {chuniio => games/chuniio}/chuniio.h (100%) rename {chuniio => games/chuniio}/config.c (100%) rename {chuniio => games/chuniio}/config.h (100%) rename {chuniio => games/chuniio}/leddata.h (100%) rename {chuniio => games/chuniio}/ledoutput.c (100%) rename {chuniio => games/chuniio}/ledoutput.h (100%) rename {chuniio => games/chuniio}/meson.build (100%) rename {chuniio => games/chuniio}/pipeimpl.c (100%) rename {chuniio => games/chuniio}/pipeimpl.h (100%) rename {chuniio => games/chuniio}/serialimpl.c (100%) rename {chuniio => games/chuniio}/serialimpl.h (100%) rename {chusanhook => games/chusanhook}/chuni-dll.c (100%) rename {chusanhook => games/chusanhook}/chuni-dll.h (100%) rename {chusanhook => games/chusanhook}/chusanhook.def (100%) rename {chusanhook => games/chusanhook}/config.c (100%) rename {chusanhook => games/chusanhook}/config.h (100%) rename {chusanhook => games/chusanhook}/dllmain.c (100%) rename {chusanhook => games/chusanhook}/io4.c (100%) rename {chusanhook => games/chusanhook}/io4.h (100%) rename {chusanhook => games/chusanhook}/meson.build (100%) rename {chusanhook => games/chusanhook}/slider.c (100%) rename {chusanhook => games/chusanhook}/slider.h (100%) rename {cmhook => games/cmhook}/cm-dll.c (100%) rename {cmhook => games/cmhook}/cm-dll.h (100%) rename {cmhook => games/cmhook}/cmhook.def (100%) rename {cmhook => games/cmhook}/config.c (100%) rename {cmhook => games/cmhook}/config.h (100%) rename {cmhook => games/cmhook}/dllmain.c (100%) rename {cmhook => games/cmhook}/io4.c (100%) rename {cmhook => games/cmhook}/io4.h (100%) rename {cmhook => games/cmhook}/meson.build (100%) rename {cmio => games/cmio}/cmio.c (100%) rename {cmio => games/cmio}/cmio.h (100%) rename {cmio => games/cmio}/config.c (100%) rename {cmio => games/cmio}/config.h (100%) rename {cmio => games/cmio}/meson.build (100%) rename {cxbhook => games/cxbhook}/config.c (100%) rename {cxbhook => games/cxbhook}/config.h (100%) rename {cxbhook => games/cxbhook}/cxb-dll.c (100%) rename {cxbhook => games/cxbhook}/cxb-dll.h (100%) rename {cxbhook => games/cxbhook}/cxbhook.def (100%) rename {cxbhook => games/cxbhook}/dllmain.c (100%) rename {cxbhook => games/cxbhook}/led.c (100%) rename {cxbhook => games/cxbhook}/led.h (100%) rename {cxbhook => games/cxbhook}/meson.build (100%) rename {cxbhook => games/cxbhook}/revio.c (100%) rename {cxbhook => games/cxbhook}/revio.h (100%) rename {cxbio => games/cxbio}/config.c (100%) rename {cxbio => games/cxbio}/config.h (100%) rename {cxbio => games/cxbio}/cxbio.c (100%) rename {cxbio => games/cxbio}/cxbio.h (100%) rename {cxbio => games/cxbio}/meson.build (100%) rename {divahook => games/divahook}/config.c (100%) rename {divahook => games/divahook}/config.h (100%) rename {divahook => games/divahook}/diva-dll.c (100%) rename {divahook => games/divahook}/diva-dll.h (100%) rename {divahook => games/divahook}/divahook.def (100%) rename {divahook => games/divahook}/dllmain.c (100%) rename {divahook => games/divahook}/jvs.c (100%) rename {divahook => games/divahook}/jvs.h (100%) rename {divahook => games/divahook}/meson.build (100%) rename {divahook => games/divahook}/slider.c (100%) rename {divahook => games/divahook}/slider.h (100%) rename {divaio => games/divaio}/config.c (100%) rename {divaio => games/divaio}/config.h (100%) rename {divaio => games/divaio}/divaio.c (100%) rename {divaio => games/divaio}/divaio.h (100%) rename {divaio => games/divaio}/meson.build (100%) rename {fgohook => games/fgohook}/config.c (100%) rename {fgohook => games/fgohook}/config.h (100%) rename {fgohook => games/fgohook}/deck.c (100%) rename {fgohook => games/fgohook}/deck.h (100%) rename {fgohook => games/fgohook}/dllmain.c (100%) rename {fgohook => games/fgohook}/fgo-dll.c (100%) rename {fgohook => games/fgohook}/fgo-dll.h (100%) rename {fgohook => games/fgohook}/fgohook.def (100%) rename {fgohook => games/fgohook}/ftdi.c (100%) rename {fgohook => games/fgohook}/ftdi.h (100%) rename {fgohook => games/fgohook}/io4.c (100%) rename {fgohook => games/fgohook}/io4.h (100%) rename {fgohook => games/fgohook}/meson.build (100%) rename {fgoio => games/fgoio}/backend.h (100%) rename {fgoio => games/fgoio}/config.c (100%) rename {fgoio => games/fgoio}/config.h (100%) rename {fgoio => games/fgoio}/fgoio.c (100%) rename {fgoio => games/fgoio}/fgoio.h (100%) rename {fgoio => games/fgoio}/keyboard.c (100%) rename {fgoio => games/fgoio}/keyboard.h (100%) rename {fgoio => games/fgoio}/meson.build (100%) rename {fgoio => games/fgoio}/xi.c (100%) rename {fgoio => games/fgoio}/xi.h (100%) rename {idachook => games/idachook}/config.c (100%) rename {idachook => games/idachook}/config.h (100%) rename {idachook => games/idachook}/dllmain.c (100%) rename {idachook => games/idachook}/ffb.c (100%) rename {idachook => games/idachook}/ffb.h (100%) rename {idachook => games/idachook}/idac-dll.c (100%) rename {idachook => games/idachook}/idac-dll.h (100%) rename {idachook => games/idachook}/idachook.def (100%) rename {idachook => games/idachook}/indrun.c (100%) rename {idachook => games/idachook}/indrun.h (100%) rename {idachook => games/idachook}/io4.c (100%) rename {idachook => games/idachook}/io4.h (100%) rename {idachook => games/idachook}/meson.build (100%) rename {idachook => games/idachook}/zinput.c (100%) rename {idachook => games/idachook}/zinput.h (100%) rename {idacio => games/idacio}/backend.h (100%) rename {idacio => games/idacio}/config.c (100%) rename {idacio => games/idacio}/config.h (100%) rename {idacio => games/idacio}/di-dev.c (100%) rename {idacio => games/idacio}/di-dev.h (100%) rename {idacio => games/idacio}/di.c (100%) rename {idacio => games/idacio}/di.h (100%) rename {idacio => games/idacio}/dllmain.c (100%) rename {idacio => games/idacio}/idacio.def (100%) rename {idacio => games/idacio}/idacio.h (100%) rename {idacio => games/idacio}/meson.build (100%) rename {idacio => games/idacio}/shifter.c (100%) rename {idacio => games/idacio}/shifter.h (100%) rename {idacio => games/idacio}/wnd.c (100%) rename {idacio => games/idacio}/wnd.h (100%) rename {idacio => games/idacio}/xi.c (100%) rename {idacio => games/idacio}/xi.h (100%) rename {idzhook => games/idzhook}/config.c (100%) rename {idzhook => games/idzhook}/config.h (100%) rename {idzhook => games/idzhook}/dllmain.c (100%) rename {idzhook => games/idzhook}/ffb.c (100%) rename {idzhook => games/idzhook}/ffb.h (100%) rename {idzhook => games/idzhook}/idz-dll.c (100%) rename {idzhook => games/idzhook}/idz-dll.h (100%) rename {idzhook => games/idzhook}/idzhook.def (100%) rename {idzhook => games/idzhook}/jvs.c (100%) rename {idzhook => games/idzhook}/jvs.h (100%) rename {idzhook => games/idzhook}/meson.build (100%) rename {idzhook => games/idzhook}/zinput.c (100%) rename {idzhook => games/idzhook}/zinput.h (100%) rename {idzio => games/idzio}/backend.h (100%) rename {idzio => games/idzio}/config.c (100%) rename {idzio => games/idzio}/config.h (100%) rename {idzio => games/idzio}/di-dev.c (100%) rename {idzio => games/idzio}/di-dev.h (100%) rename {idzio => games/idzio}/di.c (100%) rename {idzio => games/idzio}/di.h (100%) rename {idzio => games/idzio}/dllmain.c (100%) rename {idzio => games/idzio}/idzio.def (100%) rename {idzio => games/idzio}/idzio.h (100%) rename {idzio => games/idzio}/meson.build (100%) rename {idzio => games/idzio}/shifter.c (100%) rename {idzio => games/idzio}/shifter.h (100%) rename {idzio => games/idzio}/wnd.c (100%) rename {idzio => games/idzio}/wnd.h (100%) rename {idzio => games/idzio}/xi.c (100%) rename {idzio => games/idzio}/xi.h (100%) rename {kemonohook => games/kemonohook}/config.c (100%) rename {kemonohook => games/kemonohook}/config.h (100%) rename {kemonohook => games/kemonohook}/dllmain.c (100%) rename {kemonohook => games/kemonohook}/hooks.c (100%) rename {kemonohook => games/kemonohook}/hooks.h (100%) rename {kemonohook => games/kemonohook}/jvs.c (100%) rename {kemonohook => games/kemonohook}/jvs.h (100%) rename {kemonohook => games/kemonohook}/kemono-dll.c (100%) rename {kemonohook => games/kemonohook}/kemono-dll.h (100%) rename {kemonohook => games/kemonohook}/kemonohook.def (100%) rename {kemonohook => games/kemonohook}/meson.build (100%) rename {kemonoio => games/kemonoio}/config.c (100%) rename {kemonoio => games/kemonoio}/config.h (100%) rename {kemonoio => games/kemonoio}/kemonoio.c (100%) rename {kemonoio => games/kemonoio}/kemonoio.h (100%) rename {kemonoio => games/kemonoio}/meson.build (100%) rename {mai2hook => games/mai2hook}/config.c (100%) rename {mai2hook => games/mai2hook}/config.h (100%) rename {mai2hook => games/mai2hook}/dllmain.c (100%) rename {mai2hook => games/mai2hook}/io4.c (100%) rename {mai2hook => games/mai2hook}/io4.h (100%) rename {mai2hook => games/mai2hook}/mai2-dll.c (100%) rename {mai2hook => games/mai2hook}/mai2-dll.h (100%) rename {mai2hook => games/mai2hook}/mai2hook.def (100%) rename {mai2hook => games/mai2hook}/meson.build (100%) rename {mai2hook => games/mai2hook}/touch.c (100%) rename {mai2hook => games/mai2hook}/touch.h (100%) rename {mai2io => games/mai2io}/config.c (100%) rename {mai2io => games/mai2io}/config.h (100%) rename {mai2io => games/mai2io}/mai2io.c (100%) rename {mai2io => games/mai2io}/mai2io.h (100%) rename {mai2io => games/mai2io}/meson.build (100%) rename {mercuryhook => games/mercuryhook}/config.c (100%) rename {mercuryhook => games/mercuryhook}/config.h (100%) rename {mercuryhook => games/mercuryhook}/dllmain.c (100%) rename {mercuryhook => games/mercuryhook}/elisabeth.c (100%) rename {mercuryhook => games/mercuryhook}/elisabeth.h (100%) rename {mercuryhook => games/mercuryhook}/io4.c (100%) rename {mercuryhook => games/mercuryhook}/io4.h (100%) rename {mercuryhook => games/mercuryhook}/mercury-dll.c (100%) rename {mercuryhook => games/mercuryhook}/mercury-dll.h (100%) rename {mercuryhook => games/mercuryhook}/mercuryhook.def (100%) rename {mercuryhook => games/mercuryhook}/meson.build (100%) rename {mercuryhook => games/mercuryhook}/touch.c (100%) rename {mercuryhook => games/mercuryhook}/touch.h (100%) rename {mercuryio => games/mercuryio}/config.c (100%) rename {mercuryio => games/mercuryio}/config.h (100%) rename {mercuryio => games/mercuryio}/mercuryio.c (100%) rename {mercuryio => games/mercuryio}/mercuryio.def (100%) rename {mercuryio => games/mercuryio}/mercuryio.h (100%) rename {mercuryio => games/mercuryio}/meson.build (100%) rename {mu3hook => games/mu3hook}/config.c (100%) rename {mu3hook => games/mu3hook}/config.h (100%) rename {mu3hook => games/mu3hook}/dllmain.c (100%) rename {mu3hook => games/mu3hook}/io4.c (100%) rename {mu3hook => games/mu3hook}/io4.h (100%) rename {mu3hook => games/mu3hook}/meson.build (100%) rename {mu3hook => games/mu3hook}/mu3-dll.c (100%) rename {mu3hook => games/mu3hook}/mu3-dll.h (100%) rename {mu3hook => games/mu3hook}/mu3hook.def (100%) rename {mu3io => games/mu3io}/config.c (100%) rename {mu3io => games/mu3io}/config.h (100%) rename {mu3io => games/mu3io}/leddata.h (100%) rename {mu3io => games/mu3io}/ledoutput.c (100%) rename {mu3io => games/mu3io}/ledoutput.h (100%) rename {mu3io => games/mu3io}/meson.build (100%) rename {mu3io => games/mu3io}/mu3io.c (100%) rename {mu3io => games/mu3io}/mu3io.h (100%) rename {mu3io => games/mu3io}/pipeimpl.c (100%) rename {mu3io => games/mu3io}/pipeimpl.h (100%) rename {mu3io => games/mu3io}/serialimpl.c (100%) rename {mu3io => games/mu3io}/serialimpl.h (100%) rename {swdchook => games/swdchook}/config.c (100%) rename {swdchook => games/swdchook}/config.h (100%) rename {swdchook => games/swdchook}/dllmain.c (100%) rename {swdchook => games/swdchook}/ffb.c (100%) rename {swdchook => games/swdchook}/ffb.h (100%) rename {swdchook => games/swdchook}/io4.c (100%) rename {swdchook => games/swdchook}/io4.h (100%) rename {swdchook => games/swdchook}/meson.build (100%) rename {swdchook => games/swdchook}/swdc-dll.c (100%) rename {swdchook => games/swdchook}/swdc-dll.h (100%) rename {swdchook => games/swdchook}/swdchook.def (100%) rename {swdchook => games/swdchook}/zinput.c (100%) rename {swdchook => games/swdchook}/zinput.h (100%) rename {swdcio => games/swdcio}/backend.h (100%) rename {swdcio => games/swdcio}/config.c (100%) rename {swdcio => games/swdcio}/config.h (100%) rename {swdcio => games/swdcio}/di-dev.c (100%) rename {swdcio => games/swdcio}/di-dev.h (100%) rename {swdcio => games/swdcio}/di.c (100%) rename {swdcio => games/swdcio}/di.h (100%) rename {swdcio => games/swdcio}/dllmain.c (100%) rename {swdcio => games/swdcio}/meson.build (100%) rename {swdcio => games/swdcio}/swdcio.def (100%) rename {swdcio => games/swdcio}/swdcio.h (100%) rename {swdcio => games/swdcio}/wnd.c (100%) rename {swdcio => games/swdcio}/wnd.h (100%) rename {swdcio => games/swdcio}/xi.c (100%) rename {swdcio => games/swdcio}/xi.h (100%) rename {tokyohook => games/tokyohook}/config.c (100%) rename {tokyohook => games/tokyohook}/config.h (100%) rename {tokyohook => games/tokyohook}/dllmain.c (100%) rename {tokyohook => games/tokyohook}/io4.c (100%) rename {tokyohook => games/tokyohook}/io4.h (100%) rename {tokyohook => games/tokyohook}/meson.build (100%) rename {tokyohook => games/tokyohook}/tokyo-dll.c (100%) rename {tokyohook => games/tokyohook}/tokyo-dll.h (100%) rename {tokyohook => games/tokyohook}/tokyohook.def (100%) rename {tokyohook => games/tokyohook}/zinput.c (100%) rename {tokyohook => games/tokyohook}/zinput.h (100%) rename {tokyoio => games/tokyoio}/backend.h (100%) rename {tokyoio => games/tokyoio}/config.c (100%) rename {tokyoio => games/tokyoio}/config.h (100%) rename {tokyoio => games/tokyoio}/dllmain.c (100%) rename {tokyoio => games/tokyoio}/kb.c (100%) rename {tokyoio => games/tokyoio}/kb.h (100%) rename {tokyoio => games/tokyoio}/meson.build (100%) rename {tokyoio => games/tokyoio}/tokyoio.h (100%) rename {tokyoio => games/tokyoio}/xi.c (100%) rename {tokyoio => games/tokyoio}/xi.h (100%) delete mode 100644 minihook/dllmain.c delete mode 100644 minihook/meson.build delete mode 100644 reg/chunithm.reg diff --git a/Makefile b/Makefile index 28562a1..0381552 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,8 @@ V ?= @ BUILD_DIR := build BUILD_DIR_32 := $(BUILD_DIR)/build32 BUILD_DIR_64 := $(BUILD_DIR)/build64 +BUILD_DIR_GAMES_32 := $(BUILD_DIR_32)/games +BUILD_DIR_GAMES_64 := $(BUILD_DIR_64)/games BUILD_DIR_ZIP := $(BUILD_DIR)/zip DOC_DIR := doc diff --git a/Package.mk b/Package.mk index 5647e9b..ae87f73 100644 --- a/Package.mk +++ b/Package.mk @@ -3,7 +3,7 @@ $(BUILD_DIR_ZIP)/chuni.zip: $(V)mkdir -p $(BUILD_DIR_ZIP)/chuni $(V)mkdir -p $(BUILD_DIR_ZIP)/chuni/DEVICE $(V)cp $(BUILD_DIR_32)/subprojects/capnhook/inject/inject.exe \ - $(BUILD_DIR_32)/chunihook/chunihook.dll \ + $(BUILD_DIR_GAMES_32)/chunihook/chunihook.dll \ $(DIST_DIR)/chuni/segatools.ini \ $(DIST_DIR)/chuni/launch.bat \ $(BUILD_DIR_ZIP)/chuni @@ -18,7 +18,7 @@ $(BUILD_DIR_ZIP)/cxb.zip: $(V)mkdir -p $(BUILD_DIR_ZIP)/cxb $(V)mkdir -p $(BUILD_DIR_ZIP)/cxb/DEVICE $(V)cp $(BUILD_DIR_32)/subprojects/capnhook/inject/inject.exe \ - $(BUILD_DIR_32)/cxbhook/cxbhook.dll \ + $(BUILD_DIR_GAMES_32)/cxbhook/cxbhook.dll \ $(DIST_DIR)/cxb/segatools.ini \ $(DIST_DIR)/cxb/launch.bat \ $(BUILD_DIR_ZIP)/cxb @@ -33,7 +33,7 @@ $(BUILD_DIR_ZIP)/diva.zip: $(V)mkdir -p $(BUILD_DIR_ZIP)/diva $(V)mkdir -p $(BUILD_DIR_ZIP)/diva/DEVICE $(V)cp $(BUILD_DIR_64)/subprojects/capnhook/inject/inject.exe \ - $(BUILD_DIR_64)/divahook/divahook.dll \ + $(BUILD_DIR_GAMES_64)/divahook/divahook.dll \ $(DIST_DIR)/diva/segatools.ini \ $(DIST_DIR)/diva/launch.bat \ $(BUILD_DIR_ZIP)/diva @@ -48,7 +48,7 @@ $(BUILD_DIR_ZIP)/carol.zip: $(V)mkdir -p $(BUILD_DIR_ZIP)/carol $(V)mkdir -p $(BUILD_DIR_ZIP)/carol/DEVICE $(V)cp $(BUILD_DIR_32)/subprojects/capnhook/inject/inject.exe \ - $(BUILD_DIR_32)/carolhook/carolhook.dll \ + $(BUILD_DIR_GAMES_32)/carolhook/carolhook.dll \ $(DIST_DIR)/carol/segatools.ini \ $(DIST_DIR)/carol/launch.bat \ $(BUILD_DIR_ZIP)/carol @@ -63,7 +63,7 @@ $(BUILD_DIR_ZIP)/idz.zip: $(V)mkdir -p $(BUILD_DIR_ZIP)/idz $(V)mkdir -p $(BUILD_DIR_ZIP)/idz/DEVICE $(V)cp $(BUILD_DIR_64)/subprojects/capnhook/inject/inject.exe \ - $(BUILD_DIR_64)/idzhook/idzhook.dll \ + $(BUILD_DIR_GAMES_64)/idzhook/idzhook.dll \ $(DIST_DIR)/idz/segatools.ini \ $(DIST_DIR)/idz/launch.bat \ $(BUILD_DIR_ZIP)/idz @@ -78,7 +78,7 @@ $(BUILD_DIR_ZIP)/fgo.zip: $(V)mkdir -p $(BUILD_DIR_ZIP)/fgo $(V)mkdir -p $(BUILD_DIR_ZIP)/fgo/DEVICE $(V)cp $(BUILD_DIR_64)/subprojects/capnhook/inject/inject.exe \ - $(BUILD_DIR_64)/fgohook/fgohook.dll \ + $(BUILD_DIR_GAMES_64)/fgohook/fgohook.dll \ $(DIST_DIR)/fgo/segatools.ini \ $(DIST_DIR)/fgo/launch.bat \ $(BUILD_DIR_ZIP)/fgo @@ -93,7 +93,7 @@ $(BUILD_DIR_ZIP)/idac.zip: $(V)mkdir -p $(BUILD_DIR_ZIP)/idac $(V)mkdir -p $(BUILD_DIR_ZIP)/idac/DEVICE $(V)cp $(BUILD_DIR_64)/subprojects/capnhook/inject/inject.exe \ - $(BUILD_DIR_64)/idachook/idachook.dll \ + $(BUILD_DIR_GAMES_64)/idachook/idachook.dll \ $(DIST_DIR)/idac/segatools.ini \ $(DIST_DIR)/idac/config_hook.json \ $(DIST_DIR)/idac/launch.bat \ @@ -109,7 +109,7 @@ $(BUILD_DIR_ZIP)/swdc.zip: $(V)mkdir -p $(BUILD_DIR_ZIP)/swdc $(V)mkdir -p $(BUILD_DIR_ZIP)/swdc/DEVICE $(V)cp $(BUILD_DIR_64)/subprojects/capnhook/inject/inject.exe \ - $(BUILD_DIR_64)/swdchook/swdchook.dll \ + $(BUILD_DIR_GAMES_64)/swdchook/swdchook.dll \ $(DIST_DIR)/swdc/segatools.ini \ $(DIST_DIR)/swdc/config_hook.json \ $(DIST_DIR)/swdc/launch.bat \ @@ -125,7 +125,7 @@ $(BUILD_DIR_ZIP)/mercury.zip: $(V)mkdir -p $(BUILD_DIR_ZIP)/mercury $(V)mkdir -p $(BUILD_DIR_ZIP)/mercury/DEVICE $(V)cp $(BUILD_DIR_64)/subprojects/capnhook/inject/inject.exe \ - $(BUILD_DIR_64)/mercuryhook/mercuryhook.dll \ + $(BUILD_DIR_GAMES_64)/mercuryhook/mercuryhook.dll \ $(DIST_DIR)/mercury/segatools.ini \ $(DIST_DIR)/mercury/launch.bat \ $(BUILD_DIR_ZIP)/mercury @@ -143,9 +143,9 @@ $(BUILD_DIR_ZIP)/chusan.zip: $(DIST_DIR)/chusan/config_hook.json \ $(DIST_DIR)/chusan/launch.bat \ $(BUILD_DIR_ZIP)/chusan - $(V)cp $(BUILD_DIR_32)/chusanhook/chusanhook.dll \ + $(V)cp $(BUILD_DIR_GAMES_32)/chusanhook/chusanhook.dll \ $(BUILD_DIR_ZIP)/chusan/chusanhook_x86.dll - $(V)cp $(BUILD_DIR_64)/chusanhook/chusanhook.dll \ + $(V)cp $(BUILD_DIR_GAMES_64)/chusanhook/chusanhook.dll \ $(BUILD_DIR_ZIP)/chusan/chusanhook_x64.dll $(V)cp $(BUILD_DIR_32)/subprojects/capnhook/inject/inject.exe \ $(BUILD_DIR_ZIP)/chusan/inject_x86.exe @@ -162,7 +162,7 @@ $(BUILD_DIR_ZIP)/mu3.zip: $(V)mkdir -p $(BUILD_DIR_ZIP)/mu3 $(V)mkdir -p $(BUILD_DIR_ZIP)/mu3/DEVICE $(V)cp $(BUILD_DIR_64)/subprojects/capnhook/inject/inject.exe \ - $(BUILD_DIR_64)/mu3hook/mu3hook.dll \ + $(BUILD_DIR_GAMES_64)/mu3hook/mu3hook.dll \ $(DIST_DIR)/mu3/segatools.ini \ $(DIST_DIR)/mu3/launch.bat \ $(BUILD_DIR_ZIP)/mu3 @@ -177,7 +177,7 @@ $(BUILD_DIR_ZIP)/mai2.zip: $(V)mkdir -p $(BUILD_DIR_ZIP)/mai2 $(V)mkdir -p $(BUILD_DIR_ZIP)/mai2/DEVICE $(V)cp $(BUILD_DIR_64)/subprojects/capnhook/inject/inject.exe \ - $(BUILD_DIR_64)/mai2hook/mai2hook.dll \ + $(BUILD_DIR_GAMES_64)/mai2hook/mai2hook.dll \ $(DIST_DIR)/mai2/segatools.ini \ $(DIST_DIR)/mai2/launch.bat \ $(BUILD_DIR_ZIP)/mai2 @@ -192,7 +192,7 @@ $(BUILD_DIR_ZIP)/cm.zip: $(V)mkdir -p $(BUILD_DIR_ZIP)/cm $(V)mkdir -p $(BUILD_DIR_ZIP)/cm/DEVICE $(V)cp $(BUILD_DIR_64)/subprojects/capnhook/inject/inject.exe \ - $(BUILD_DIR_64)/cmhook/cmhook.dll \ + $(BUILD_DIR_GAMES_64)/cmhook/cmhook.dll \ $(DIST_DIR)/cm/config_hook.json \ $(DIST_DIR)/cm/segatools.ini \ $(DIST_DIR)/cm/launch.bat \ @@ -208,7 +208,7 @@ $(BUILD_DIR_ZIP)/tokyo.zip: $(V)mkdir -p $(BUILD_DIR_ZIP)/tokyo $(V)mkdir -p $(BUILD_DIR_ZIP)/tokyo/DEVICE $(V)cp $(BUILD_DIR_64)/subprojects/capnhook/inject/inject.exe \ - $(BUILD_DIR_64)/tokyohook/tokyohook.dll \ + $(BUILD_DIR_GAMES_64)/tokyohook/tokyohook.dll \ $(DIST_DIR)/tokyo/config_hook.json \ $(DIST_DIR)/tokyo/segatools.ini \ $(DIST_DIR)/tokyo/launch.bat \ @@ -226,9 +226,9 @@ $(BUILD_DIR_ZIP)/kemono.zip: $(V)cp $(DIST_DIR)/kemono/segatools.ini \ $(DIST_DIR)/kemono/launch.bat \ $(BUILD_DIR_ZIP)/kemono - $(V)cp $(BUILD_DIR_32)/kemonohook/kemonohook.dll \ + $(V)cp $(BUILD_DIR_GAMES_32)/kemonohook/kemonohook.dll \ $(BUILD_DIR_ZIP)/kemono/kemonohook_x86.dll - $(V)cp $(BUILD_DIR_64)/kemonohook/kemonohook.dll \ + $(V)cp $(BUILD_DIR_GAMES_64)/kemonohook/kemonohook.dll \ $(BUILD_DIR_ZIP)/kemono/kemonohook_x64.dll $(V)cp $(BUILD_DIR_32)/subprojects/capnhook/inject/inject.exe \ $(BUILD_DIR_ZIP)/kemono/inject_x86.exe diff --git a/aimeio/aimeio.c b/common/aimeio/aimeio.c similarity index 100% rename from aimeio/aimeio.c rename to common/aimeio/aimeio.c diff --git a/aimeio/aimeio.h b/common/aimeio/aimeio.h similarity index 100% rename from aimeio/aimeio.h rename to common/aimeio/aimeio.h diff --git a/aimeio/meson.build b/common/aimeio/meson.build similarity index 100% rename from aimeio/meson.build rename to common/aimeio/meson.build diff --git a/amex/amex.c b/common/amex/amex.c similarity index 100% rename from amex/amex.c rename to common/amex/amex.c diff --git a/amex/amex.h b/common/amex/amex.h similarity index 100% rename from amex/amex.h rename to common/amex/amex.h diff --git a/amex/config.c b/common/amex/config.c similarity index 100% rename from amex/config.c rename to common/amex/config.c diff --git a/amex/config.h b/common/amex/config.h similarity index 100% rename from amex/config.h rename to common/amex/config.h diff --git a/amex/ds.c b/common/amex/ds.c similarity index 100% rename from amex/ds.c rename to common/amex/ds.c diff --git a/amex/ds.h b/common/amex/ds.h similarity index 100% rename from amex/ds.h rename to common/amex/ds.h diff --git a/amex/eeprom.c b/common/amex/eeprom.c similarity index 100% rename from amex/eeprom.c rename to common/amex/eeprom.c diff --git a/amex/eeprom.h b/common/amex/eeprom.h similarity index 100% rename from amex/eeprom.h rename to common/amex/eeprom.h diff --git a/amex/gpio.c b/common/amex/gpio.c similarity index 100% rename from amex/gpio.c rename to common/amex/gpio.c diff --git a/amex/gpio.h b/common/amex/gpio.h similarity index 100% rename from amex/gpio.h rename to common/amex/gpio.h diff --git a/amex/guid.c b/common/amex/guid.c similarity index 100% rename from amex/guid.c rename to common/amex/guid.c diff --git a/amex/jvs.c b/common/amex/jvs.c similarity index 100% rename from amex/jvs.c rename to common/amex/jvs.c diff --git a/amex/jvs.h b/common/amex/jvs.h similarity index 100% rename from amex/jvs.h rename to common/amex/jvs.h diff --git a/amex/meson.build b/common/amex/meson.build similarity index 100% rename from amex/meson.build rename to common/amex/meson.build diff --git a/amex/nvram.c b/common/amex/nvram.c similarity index 100% rename from amex/nvram.c rename to common/amex/nvram.c diff --git a/amex/nvram.h b/common/amex/nvram.h similarity index 100% rename from amex/nvram.h rename to common/amex/nvram.h diff --git a/amex/sram.c b/common/amex/sram.c similarity index 100% rename from amex/sram.c rename to common/amex/sram.c diff --git a/amex/sram.h b/common/amex/sram.h similarity index 100% rename from amex/sram.h rename to common/amex/sram.h diff --git a/board/aime-dll.c b/common/board/aime-dll.c similarity index 100% rename from board/aime-dll.c rename to common/board/aime-dll.c diff --git a/board/aime-dll.h b/common/board/aime-dll.h similarity index 100% rename from board/aime-dll.h rename to common/board/aime-dll.h diff --git a/board/config.c b/common/board/config.c similarity index 100% rename from board/config.c rename to common/board/config.c diff --git a/board/config.h b/common/board/config.h similarity index 100% rename from board/config.h rename to common/board/config.h diff --git a/board/ffb.c b/common/board/ffb.c similarity index 100% rename from board/ffb.c rename to common/board/ffb.c diff --git a/board/ffb.h b/common/board/ffb.h similarity index 100% rename from board/ffb.h rename to common/board/ffb.h diff --git a/board/guid.c b/common/board/guid.c similarity index 100% rename from board/guid.c rename to common/board/guid.c diff --git a/board/guid.h b/common/board/guid.h similarity index 100% rename from board/guid.h rename to common/board/guid.h diff --git a/board/io3.c b/common/board/io3.c similarity index 100% rename from board/io3.c rename to common/board/io3.c diff --git a/board/io3.h b/common/board/io3.h similarity index 100% rename from board/io3.h rename to common/board/io3.h diff --git a/board/io4.c b/common/board/io4.c similarity index 100% rename from board/io4.c rename to common/board/io4.c diff --git a/board/io4.h b/common/board/io4.h similarity index 100% rename from board/io4.h rename to common/board/io4.h diff --git a/board/led15070-cmd.h b/common/board/led15070-cmd.h similarity index 100% rename from board/led15070-cmd.h rename to common/board/led15070-cmd.h diff --git a/board/led15070-frame.c b/common/board/led15070-frame.c similarity index 100% rename from board/led15070-frame.c rename to common/board/led15070-frame.c diff --git a/board/led15070-frame.h b/common/board/led15070-frame.h similarity index 100% rename from board/led15070-frame.h rename to common/board/led15070-frame.h diff --git a/board/led15070.c b/common/board/led15070.c similarity index 100% rename from board/led15070.c rename to common/board/led15070.c diff --git a/board/led15070.h b/common/board/led15070.h similarity index 100% rename from board/led15070.h rename to common/board/led15070.h diff --git a/board/led15093-cmd.h b/common/board/led15093-cmd.h similarity index 100% rename from board/led15093-cmd.h rename to common/board/led15093-cmd.h diff --git a/board/led15093-frame.c b/common/board/led15093-frame.c similarity index 100% rename from board/led15093-frame.c rename to common/board/led15093-frame.c diff --git a/board/led15093-frame.h b/common/board/led15093-frame.h similarity index 100% rename from board/led15093-frame.h rename to common/board/led15093-frame.h diff --git a/board/led15093.c b/common/board/led15093.c similarity index 100% rename from board/led15093.c rename to common/board/led15093.c diff --git a/board/led15093.h b/common/board/led15093.h similarity index 100% rename from board/led15093.h rename to common/board/led15093.h diff --git a/board/meson.build b/common/board/meson.build similarity index 93% rename from board/meson.build rename to common/board/meson.build index a9c24ea..38ec9d0 100644 --- a/board/meson.build +++ b/common/board/meson.build @@ -9,6 +9,9 @@ board_lib = static_library( iccard_lib, ], sources : [ + '3mpxsc-cmd.h', + '3mpxsc-frame.c', + '3mpxsc-frame.h', 'aime-dll.c', 'aime-dll.h', 'config.c', diff --git a/board/sg-cmd.c b/common/board/sg-cmd.c similarity index 100% rename from board/sg-cmd.c rename to common/board/sg-cmd.c diff --git a/board/sg-cmd.h b/common/board/sg-cmd.h similarity index 100% rename from board/sg-cmd.h rename to common/board/sg-cmd.h diff --git a/board/sg-frame.c b/common/board/sg-frame.c similarity index 100% rename from board/sg-frame.c rename to common/board/sg-frame.c diff --git a/board/sg-frame.h b/common/board/sg-frame.h similarity index 100% rename from board/sg-frame.h rename to common/board/sg-frame.h diff --git a/board/sg-led-cmd.h b/common/board/sg-led-cmd.h similarity index 100% rename from board/sg-led-cmd.h rename to common/board/sg-led-cmd.h diff --git a/board/sg-led.c b/common/board/sg-led.c similarity index 100% rename from board/sg-led.c rename to common/board/sg-led.c diff --git a/board/sg-led.h b/common/board/sg-led.h similarity index 100% rename from board/sg-led.h rename to common/board/sg-led.h diff --git a/board/sg-nfc-cmd.h b/common/board/sg-nfc-cmd.h similarity index 100% rename from board/sg-nfc-cmd.h rename to common/board/sg-nfc-cmd.h diff --git a/board/sg-nfc.c b/common/board/sg-nfc.c similarity index 99% rename from board/sg-nfc.c rename to common/board/sg-nfc.c index a072111..b103336 100644 --- a/board/sg-nfc.c +++ b/common/board/sg-nfc.c @@ -321,6 +321,7 @@ static HRESULT sg_nfc_poll_aime( mifare->type = 0x10; mifare->id_len = sizeof(mifare->uid); + // mifare->uid = _byteswap_ulong(0x8FBECBFF); mifare->uid = _byteswap_ulong(0x01020304); /* Initialize MIFARE IC emulator */ diff --git a/board/sg-nfc.h b/common/board/sg-nfc.h similarity index 100% rename from board/sg-nfc.h rename to common/board/sg-nfc.h diff --git a/board/sg-reader.c b/common/board/sg-reader.c similarity index 100% rename from board/sg-reader.c rename to common/board/sg-reader.c diff --git a/board/sg-reader.h b/common/board/sg-reader.h similarity index 100% rename from board/sg-reader.h rename to common/board/sg-reader.h diff --git a/board/slider-cmd.h b/common/board/slider-cmd.h similarity index 100% rename from board/slider-cmd.h rename to common/board/slider-cmd.h diff --git a/board/slider-frame.c b/common/board/slider-frame.c similarity index 100% rename from board/slider-frame.c rename to common/board/slider-frame.c diff --git a/board/slider-frame.h b/common/board/slider-frame.h similarity index 100% rename from board/slider-frame.h rename to common/board/slider-frame.h diff --git a/board/vfd-cmd.h b/common/board/vfd-cmd.h similarity index 100% rename from board/vfd-cmd.h rename to common/board/vfd-cmd.h diff --git a/board/vfd-frame.c b/common/board/vfd-frame.c similarity index 100% rename from board/vfd-frame.c rename to common/board/vfd-frame.c diff --git a/board/vfd-frame.h b/common/board/vfd-frame.h similarity index 100% rename from board/vfd-frame.h rename to common/board/vfd-frame.h diff --git a/board/vfd.c b/common/board/vfd.c similarity index 100% rename from board/vfd.c rename to common/board/vfd.c diff --git a/board/vfd.h b/common/board/vfd.h similarity index 100% rename from board/vfd.h rename to common/board/vfd.h diff --git a/gfxhook/config.c b/common/gfxhook/config.c similarity index 100% rename from gfxhook/config.c rename to common/gfxhook/config.c diff --git a/gfxhook/config.h b/common/gfxhook/config.h similarity index 100% rename from gfxhook/config.h rename to common/gfxhook/config.h diff --git a/gfxhook/d3d11.c b/common/gfxhook/d3d11.c similarity index 100% rename from gfxhook/d3d11.c rename to common/gfxhook/d3d11.c diff --git a/gfxhook/d3d11.h b/common/gfxhook/d3d11.h similarity index 100% rename from gfxhook/d3d11.h rename to common/gfxhook/d3d11.h diff --git a/gfxhook/d3d9.c b/common/gfxhook/d3d9.c similarity index 100% rename from gfxhook/d3d9.c rename to common/gfxhook/d3d9.c diff --git a/gfxhook/d3d9.h b/common/gfxhook/d3d9.h similarity index 100% rename from gfxhook/d3d9.h rename to common/gfxhook/d3d9.h diff --git a/gfxhook/dxgi.c b/common/gfxhook/dxgi.c similarity index 100% rename from gfxhook/dxgi.c rename to common/gfxhook/dxgi.c diff --git a/gfxhook/dxgi.h b/common/gfxhook/dxgi.h similarity index 100% rename from gfxhook/dxgi.h rename to common/gfxhook/dxgi.h diff --git a/gfxhook/gfx.c b/common/gfxhook/gfx.c similarity index 100% rename from gfxhook/gfx.c rename to common/gfxhook/gfx.c diff --git a/gfxhook/gfx.h b/common/gfxhook/gfx.h similarity index 100% rename from gfxhook/gfx.h rename to common/gfxhook/gfx.h diff --git a/gfxhook/gl.c b/common/gfxhook/gl.c similarity index 100% rename from gfxhook/gl.c rename to common/gfxhook/gl.c diff --git a/gfxhook/gl.h b/common/gfxhook/gl.h similarity index 100% rename from gfxhook/gl.h rename to common/gfxhook/gl.h diff --git a/gfxhook/meson.build b/common/gfxhook/meson.build similarity index 100% rename from gfxhook/meson.build rename to common/gfxhook/meson.build diff --git a/gfxhook/util.c b/common/gfxhook/util.c similarity index 100% rename from gfxhook/util.c rename to common/gfxhook/util.c diff --git a/gfxhook/util.h b/common/gfxhook/util.h similarity index 100% rename from gfxhook/util.h rename to common/gfxhook/util.h diff --git a/hooklib/config.c b/common/hooklib/config.c similarity index 100% rename from hooklib/config.c rename to common/hooklib/config.c diff --git a/hooklib/config.h b/common/hooklib/config.h similarity index 100% rename from hooklib/config.h rename to common/hooklib/config.h diff --git a/hooklib/createprocess.c b/common/hooklib/createprocess.c similarity index 100% rename from hooklib/createprocess.c rename to common/hooklib/createprocess.c diff --git a/hooklib/createprocess.h b/common/hooklib/createprocess.h similarity index 100% rename from hooklib/createprocess.h rename to common/hooklib/createprocess.h diff --git a/hooklib/cursor.c b/common/hooklib/cursor.c similarity index 100% rename from hooklib/cursor.c rename to common/hooklib/cursor.c diff --git a/hooklib/cursor.h b/common/hooklib/cursor.h similarity index 100% rename from hooklib/cursor.h rename to common/hooklib/cursor.h diff --git a/hooklib/dll.c b/common/hooklib/dll.c similarity index 100% rename from hooklib/dll.c rename to common/hooklib/dll.c diff --git a/hooklib/dll.h b/common/hooklib/dll.h similarity index 100% rename from hooklib/dll.h rename to common/hooklib/dll.h diff --git a/hooklib/dns.c b/common/hooklib/dns.c similarity index 100% rename from hooklib/dns.c rename to common/hooklib/dns.c diff --git a/hooklib/dns.h b/common/hooklib/dns.h similarity index 100% rename from hooklib/dns.h rename to common/hooklib/dns.h diff --git a/hooklib/dvd.c b/common/hooklib/dvd.c similarity index 100% rename from hooklib/dvd.c rename to common/hooklib/dvd.c diff --git a/hooklib/dvd.h b/common/hooklib/dvd.h similarity index 100% rename from hooklib/dvd.h rename to common/hooklib/dvd.h diff --git a/hooklib/fdshark.c b/common/hooklib/fdshark.c similarity index 100% rename from hooklib/fdshark.c rename to common/hooklib/fdshark.c diff --git a/hooklib/fdshark.h b/common/hooklib/fdshark.h similarity index 100% rename from hooklib/fdshark.h rename to common/hooklib/fdshark.h diff --git a/hooklib/meson.build b/common/hooklib/meson.build similarity index 100% rename from hooklib/meson.build rename to common/hooklib/meson.build diff --git a/hooklib/path.c b/common/hooklib/path.c similarity index 100% rename from hooklib/path.c rename to common/hooklib/path.c diff --git a/hooklib/path.h b/common/hooklib/path.h similarity index 100% rename from hooklib/path.h rename to common/hooklib/path.h diff --git a/hooklib/printer.c b/common/hooklib/printer.c similarity index 100% rename from hooklib/printer.c rename to common/hooklib/printer.c diff --git a/hooklib/printer.h b/common/hooklib/printer.h similarity index 100% rename from hooklib/printer.h rename to common/hooklib/printer.h diff --git a/hooklib/reg.c b/common/hooklib/reg.c similarity index 100% rename from hooklib/reg.c rename to common/hooklib/reg.c diff --git a/hooklib/reg.h b/common/hooklib/reg.h similarity index 100% rename from hooklib/reg.h rename to common/hooklib/reg.h diff --git a/hooklib/setupapi.c b/common/hooklib/setupapi.c similarity index 100% rename from hooklib/setupapi.c rename to common/hooklib/setupapi.c diff --git a/hooklib/setupapi.h b/common/hooklib/setupapi.h similarity index 100% rename from hooklib/setupapi.h rename to common/hooklib/setupapi.h diff --git a/hooklib/spike.c b/common/hooklib/spike.c similarity index 100% rename from hooklib/spike.c rename to common/hooklib/spike.c diff --git a/hooklib/spike.h b/common/hooklib/spike.h similarity index 100% rename from hooklib/spike.h rename to common/hooklib/spike.h diff --git a/hooklib/touch.c b/common/hooklib/touch.c similarity index 100% rename from hooklib/touch.c rename to common/hooklib/touch.c diff --git a/hooklib/touch.h b/common/hooklib/touch.h similarity index 100% rename from hooklib/touch.h rename to common/hooklib/touch.h diff --git a/iccard/aime.c b/common/iccard/aime.c similarity index 100% rename from iccard/aime.c rename to common/iccard/aime.c diff --git a/iccard/aime.h b/common/iccard/aime.h similarity index 100% rename from iccard/aime.h rename to common/iccard/aime.h diff --git a/iccard/felica.c b/common/iccard/felica.c similarity index 100% rename from iccard/felica.c rename to common/iccard/felica.c diff --git a/iccard/felica.h b/common/iccard/felica.h similarity index 100% rename from iccard/felica.h rename to common/iccard/felica.h diff --git a/iccard/meson.build b/common/iccard/meson.build similarity index 100% rename from iccard/meson.build rename to common/iccard/meson.build diff --git a/iccard/mifare.h b/common/iccard/mifare.h similarity index 100% rename from iccard/mifare.h rename to common/iccard/mifare.h diff --git a/jvs/jvs-bus.c b/common/jvs/jvs-bus.c similarity index 100% rename from jvs/jvs-bus.c rename to common/jvs/jvs-bus.c diff --git a/jvs/jvs-bus.h b/common/jvs/jvs-bus.h similarity index 100% rename from jvs/jvs-bus.h rename to common/jvs/jvs-bus.h diff --git a/jvs/jvs-cmd.h b/common/jvs/jvs-cmd.h similarity index 100% rename from jvs/jvs-cmd.h rename to common/jvs/jvs-cmd.h diff --git a/jvs/jvs-frame.c b/common/jvs/jvs-frame.c similarity index 100% rename from jvs/jvs-frame.c rename to common/jvs/jvs-frame.c diff --git a/jvs/jvs-frame.h b/common/jvs/jvs-frame.h similarity index 100% rename from jvs/jvs-frame.h rename to common/jvs/jvs-frame.h diff --git a/jvs/jvs-util.c b/common/jvs/jvs-util.c similarity index 100% rename from jvs/jvs-util.c rename to common/jvs/jvs-util.c diff --git a/jvs/jvs-util.h b/common/jvs/jvs-util.h similarity index 100% rename from jvs/jvs-util.h rename to common/jvs/jvs-util.h diff --git a/jvs/meson.build b/common/jvs/meson.build similarity index 100% rename from jvs/meson.build rename to common/jvs/meson.build diff --git a/platform/amvideo.c b/common/platform/amvideo.c similarity index 100% rename from platform/amvideo.c rename to common/platform/amvideo.c diff --git a/platform/amvideo.h b/common/platform/amvideo.h similarity index 100% rename from platform/amvideo.h rename to common/platform/amvideo.h diff --git a/platform/clock.c b/common/platform/clock.c similarity index 100% rename from platform/clock.c rename to common/platform/clock.c diff --git a/platform/clock.h b/common/platform/clock.h similarity index 100% rename from platform/clock.h rename to common/platform/clock.h diff --git a/platform/config.c b/common/platform/config.c similarity index 100% rename from platform/config.c rename to common/platform/config.c diff --git a/platform/config.h b/common/platform/config.h similarity index 100% rename from platform/config.h rename to common/platform/config.h diff --git a/platform/dns.c b/common/platform/dns.c similarity index 100% rename from platform/dns.c rename to common/platform/dns.c diff --git a/platform/dns.h b/common/platform/dns.h similarity index 100% rename from platform/dns.h rename to common/platform/dns.h diff --git a/platform/epay.c b/common/platform/epay.c similarity index 100% rename from platform/epay.c rename to common/platform/epay.c diff --git a/platform/epay.h b/common/platform/epay.h similarity index 100% rename from platform/epay.h rename to common/platform/epay.h diff --git a/platform/hwmon.c b/common/platform/hwmon.c similarity index 100% rename from platform/hwmon.c rename to common/platform/hwmon.c diff --git a/platform/hwmon.h b/common/platform/hwmon.h similarity index 100% rename from platform/hwmon.h rename to common/platform/hwmon.h diff --git a/platform/hwreset.c b/common/platform/hwreset.c similarity index 100% rename from platform/hwreset.c rename to common/platform/hwreset.c diff --git a/platform/hwreset.h b/common/platform/hwreset.h similarity index 100% rename from platform/hwreset.h rename to common/platform/hwreset.h diff --git a/platform/meson.build b/common/platform/meson.build similarity index 100% rename from platform/meson.build rename to common/platform/meson.build diff --git a/platform/misc.c b/common/platform/misc.c similarity index 100% rename from platform/misc.c rename to common/platform/misc.c diff --git a/platform/misc.h b/common/platform/misc.h similarity index 100% rename from platform/misc.h rename to common/platform/misc.h diff --git a/platform/netenv.c b/common/platform/netenv.c similarity index 100% rename from platform/netenv.c rename to common/platform/netenv.c diff --git a/platform/netenv.h b/common/platform/netenv.h similarity index 100% rename from platform/netenv.h rename to common/platform/netenv.h diff --git a/platform/nusec.c b/common/platform/nusec.c similarity index 100% rename from platform/nusec.c rename to common/platform/nusec.c diff --git a/platform/nusec.h b/common/platform/nusec.h similarity index 100% rename from platform/nusec.h rename to common/platform/nusec.h diff --git a/platform/pcbid.c b/common/platform/pcbid.c similarity index 100% rename from platform/pcbid.c rename to common/platform/pcbid.c diff --git a/platform/pcbid.h b/common/platform/pcbid.h similarity index 100% rename from platform/pcbid.h rename to common/platform/pcbid.h diff --git a/platform/platform.c b/common/platform/platform.c similarity index 100% rename from platform/platform.c rename to common/platform/platform.c diff --git a/platform/platform.h b/common/platform/platform.h similarity index 100% rename from platform/platform.h rename to common/platform/platform.h diff --git a/platform/system.c b/common/platform/system.c similarity index 98% rename from platform/system.c rename to common/platform/system.c index 3916f58..3baf5c1 100644 --- a/platform/system.c +++ b/common/platform/system.c @@ -178,6 +178,6 @@ static void system_save_sysfile(const wchar_t *sys_file) { CloseHandle(h_sysfile); if (sysfile_bytes_written != 0x6000) { - dprintf("System: Only 0x%04X bytes written out of 0x6000!\n", sysfile_bytes_written); + dprintf("System: Only 0x%04lX bytes written out of 0x6000!\n", sysfile_bytes_written); } } diff --git a/platform/system.h b/common/platform/system.h similarity index 100% rename from platform/system.h rename to common/platform/system.h diff --git a/platform/vfs.c b/common/platform/vfs.c similarity index 100% rename from platform/vfs.c rename to common/platform/vfs.c diff --git a/platform/vfs.h b/common/platform/vfs.h similarity index 100% rename from platform/vfs.h rename to common/platform/vfs.h diff --git a/unityhook/config.c b/common/unityhook/config.c similarity index 100% rename from unityhook/config.c rename to common/unityhook/config.c diff --git a/unityhook/config.h b/common/unityhook/config.h similarity index 94% rename from unityhook/config.h rename to common/unityhook/config.h index 6fca14a..6857c4b 100644 --- a/unityhook/config.h +++ b/common/unityhook/config.h @@ -1,12 +1,12 @@ -#pragma once - -#include - -#include - -struct unity_config { - bool enable; - wchar_t target_assembly[MAX_PATH]; -}; - -void unity_config_load(struct unity_config *cfg, const wchar_t *filename); +#pragma once + +#include + +#include + +struct unity_config { + bool enable; + wchar_t target_assembly[MAX_PATH]; +}; + +void unity_config_load(struct unity_config *cfg, const wchar_t *filename); diff --git a/unityhook/doorstop.c b/common/unityhook/doorstop.c similarity index 100% rename from unityhook/doorstop.c rename to common/unityhook/doorstop.c diff --git a/unityhook/doorstop.h b/common/unityhook/doorstop.h similarity index 83% rename from unityhook/doorstop.h rename to common/unityhook/doorstop.h index 8cc961e..2a44f33 100644 --- a/unityhook/doorstop.h +++ b/common/unityhook/doorstop.h @@ -1,5 +1,5 @@ -#pragma once - -#include "config.h" - +#pragma once + +#include "config.h" + void doorstop_mono_hook_init(const struct unity_config *cfg, HINSTANCE module); \ No newline at end of file diff --git a/unityhook/hook.c b/common/unityhook/hook.c similarity index 100% rename from unityhook/hook.c rename to common/unityhook/hook.c diff --git a/unityhook/hook.h b/common/unityhook/hook.h similarity index 96% rename from unityhook/hook.h rename to common/unityhook/hook.h index 7be6044..a7c75e1 100644 --- a/unityhook/hook.h +++ b/common/unityhook/hook.h @@ -1,9 +1,9 @@ -#pragma once - -#include - -#include "config.h" - -typedef void (*unity_hook_callback_func)(HMODULE, const wchar_t*); - -void unity_hook_init(const struct unity_config *cfg, HINSTANCE self, unity_hook_callback_func callback); +#pragma once + +#include + +#include "config.h" + +typedef void (*unity_hook_callback_func)(HMODULE, const wchar_t*); + +void unity_hook_init(const struct unity_config *cfg, HINSTANCE self, unity_hook_callback_func callback); diff --git a/unityhook/meson.build b/common/unityhook/meson.build similarity index 95% rename from unityhook/meson.build rename to common/unityhook/meson.build index 50d0488..f541c1e 100644 --- a/unityhook/meson.build +++ b/common/unityhook/meson.build @@ -1,19 +1,19 @@ -unityhook_lib = static_library( - 'unityhook', - include_directories: inc, - implicit_include_directories: false, - dependencies: [ - capnhook.get_variable('hook_dep'), - pathcch_lib - ], - sources: [ - 'mono.h', - 'config.c', - 'config.h', - 'doorstop.c', - 'doorstop.h', - 'hook.c', - 'hook.h', - 'util.h' - ], -) +unityhook_lib = static_library( + 'unityhook', + include_directories: inc, + implicit_include_directories: false, + dependencies: [ + capnhook.get_variable('hook_dep'), + pathcch_lib + ], + sources: [ + 'mono.h', + 'config.c', + 'config.h', + 'doorstop.c', + 'doorstop.h', + 'hook.c', + 'hook.h', + 'util.h' + ], +) diff --git a/unityhook/mono.h b/common/unityhook/mono.h similarity index 97% rename from unityhook/mono.h rename to common/unityhook/mono.h index 7056e75..39fdc01 100644 --- a/unityhook/mono.h +++ b/common/unityhook/mono.h @@ -1,100 +1,100 @@ -// SPDX-License-Identifier: CC0 -// https://github.com/NeighTools/UnityDoorstop -#pragma once - -#include - -// Here we define the pointers to some functions within mono.dll -// Note to C learners: these are not signature definitions, but rather "variable" -// definitions with the function pointer type. - -// Note: we use void* instead of the real intented structs defined in mono API -// This way we don't need to include or define any of Mono's structs, which saves space -// This, obviously, comes with a drawback of not being able to easily access the contents of the structs - -void * (*mono_thread_current)(); -void (*mono_thread_set_main)(void *); - -void *(*mono_jit_init_version)(const char *root_domain_name, const char *runtime_version); -void *(*mono_domain_assembly_open)(void *domain, const char *name); -void *(*mono_assembly_get_image)(void *assembly); -void *(*mono_runtime_invoke)(void *method, void *obj, void **params, void **exc); - -void *(*mono_method_desc_new)(const char *name, int include_namespace); -void* (*mono_method_desc_search_in_image)(void* desc, void* image); -void *(*mono_method_desc_search_in_class)(void *desc, void *klass); -void (*mono_method_desc_free)(void *desc); -void *(*mono_method_signature)(void *method); -UINT32 (*mono_signature_get_param_count)(void *sig); - -void (*mono_domain_set_config)(void *domain, char *base_dir, char *config_file_name); -void *(*mono_array_new)(void *domain, void *eclass, uintptr_t n); -void *(*mono_get_string_class)(); - -char *(*mono_assembly_getrootdir)(); - -// Additional funcs to bootstrap custom MONO -void (*mono_set_dirs)(const char* assembly_dir, const char* config_dir); -void (*mono_config_parse)(const char* filename); -void (*mono_set_assemblies_path)(const char* path); -void *(*mono_object_to_string)(void* obj, void** exc); -char *(*mono_string_to_utf8)(void* s); - -void *(*mono_image_open_from_data_with_name)(void *data, DWORD data_len, int need_copy, void *status, int refonly, - const char *name); - -void* (*mono_get_exception_class)(); -void* (*mono_object_get_virtual_method)(void* obj_raw, void* method); - -void* (*mono_jit_parse_options)(int argc, const char** argv); - -typedef enum { - MONO_DEBUG_FORMAT_NONE, - MONO_DEBUG_FORMAT_MONO, - /* Deprecated, the mdb debugger is not longer supported. */ - MONO_DEBUG_FORMAT_DEBUGGER -} MonoDebugFormat; - -void* (*mono_debug_init)(MonoDebugFormat format); -void* (*mono_debug_domain_create)(void* domain); - -/** -* \brief Loads Mono C API function pointers so that the above definitions can be called. -* \param mono_lib Mono.dll module. -*/ -void load_mono_functions(HMODULE mono_lib) { - // Enjoy the fact that C allows such sloppy casting - // In C++ you would have to cast to the precise function pointer type -#define GET_MONO_PROC(name) name = (void*)GetProcAddress(mono_lib, #name) - - // Find and assign all our functions that we are going to use - GET_MONO_PROC(mono_domain_assembly_open); - GET_MONO_PROC(mono_assembly_get_image); - GET_MONO_PROC(mono_runtime_invoke); - GET_MONO_PROC(mono_jit_init_version); - GET_MONO_PROC(mono_method_desc_new); - GET_MONO_PROC(mono_method_desc_search_in_class); - GET_MONO_PROC(mono_method_desc_search_in_image); - GET_MONO_PROC(mono_method_desc_free); - GET_MONO_PROC(mono_method_signature); - GET_MONO_PROC(mono_signature_get_param_count); - GET_MONO_PROC(mono_array_new); - GET_MONO_PROC(mono_get_string_class); - GET_MONO_PROC(mono_assembly_getrootdir); - GET_MONO_PROC(mono_thread_current); - GET_MONO_PROC(mono_thread_set_main); - GET_MONO_PROC(mono_domain_set_config); - GET_MONO_PROC(mono_set_dirs); - GET_MONO_PROC(mono_config_parse); - GET_MONO_PROC(mono_set_assemblies_path); - GET_MONO_PROC(mono_object_to_string); - GET_MONO_PROC(mono_string_to_utf8); - GET_MONO_PROC(mono_image_open_from_data_with_name); - GET_MONO_PROC(mono_get_exception_class); - GET_MONO_PROC(mono_object_get_virtual_method); - GET_MONO_PROC(mono_jit_parse_options); - GET_MONO_PROC(mono_debug_init); - GET_MONO_PROC(mono_debug_domain_create); - -#undef GET_MONO_PROC +// SPDX-License-Identifier: CC0 +// https://github.com/NeighTools/UnityDoorstop +#pragma once + +#include + +// Here we define the pointers to some functions within mono.dll +// Note to C learners: these are not signature definitions, but rather "variable" +// definitions with the function pointer type. + +// Note: we use void* instead of the real intented structs defined in mono API +// This way we don't need to include or define any of Mono's structs, which saves space +// This, obviously, comes with a drawback of not being able to easily access the contents of the structs + +void * (*mono_thread_current)(); +void (*mono_thread_set_main)(void *); + +void *(*mono_jit_init_version)(const char *root_domain_name, const char *runtime_version); +void *(*mono_domain_assembly_open)(void *domain, const char *name); +void *(*mono_assembly_get_image)(void *assembly); +void *(*mono_runtime_invoke)(void *method, void *obj, void **params, void **exc); + +void *(*mono_method_desc_new)(const char *name, int include_namespace); +void* (*mono_method_desc_search_in_image)(void* desc, void* image); +void *(*mono_method_desc_search_in_class)(void *desc, void *klass); +void (*mono_method_desc_free)(void *desc); +void *(*mono_method_signature)(void *method); +UINT32 (*mono_signature_get_param_count)(void *sig); + +void (*mono_domain_set_config)(void *domain, char *base_dir, char *config_file_name); +void *(*mono_array_new)(void *domain, void *eclass, uintptr_t n); +void *(*mono_get_string_class)(); + +char *(*mono_assembly_getrootdir)(); + +// Additional funcs to bootstrap custom MONO +void (*mono_set_dirs)(const char* assembly_dir, const char* config_dir); +void (*mono_config_parse)(const char* filename); +void (*mono_set_assemblies_path)(const char* path); +void *(*mono_object_to_string)(void* obj, void** exc); +char *(*mono_string_to_utf8)(void* s); + +void *(*mono_image_open_from_data_with_name)(void *data, DWORD data_len, int need_copy, void *status, int refonly, + const char *name); + +void* (*mono_get_exception_class)(); +void* (*mono_object_get_virtual_method)(void* obj_raw, void* method); + +void* (*mono_jit_parse_options)(int argc, const char** argv); + +typedef enum { + MONO_DEBUG_FORMAT_NONE, + MONO_DEBUG_FORMAT_MONO, + /* Deprecated, the mdb debugger is not longer supported. */ + MONO_DEBUG_FORMAT_DEBUGGER +} MonoDebugFormat; + +void* (*mono_debug_init)(MonoDebugFormat format); +void* (*mono_debug_domain_create)(void* domain); + +/** +* \brief Loads Mono C API function pointers so that the above definitions can be called. +* \param mono_lib Mono.dll module. +*/ +void load_mono_functions(HMODULE mono_lib) { + // Enjoy the fact that C allows such sloppy casting + // In C++ you would have to cast to the precise function pointer type +#define GET_MONO_PROC(name) name = (void*)GetProcAddress(mono_lib, #name) + + // Find and assign all our functions that we are going to use + GET_MONO_PROC(mono_domain_assembly_open); + GET_MONO_PROC(mono_assembly_get_image); + GET_MONO_PROC(mono_runtime_invoke); + GET_MONO_PROC(mono_jit_init_version); + GET_MONO_PROC(mono_method_desc_new); + GET_MONO_PROC(mono_method_desc_search_in_class); + GET_MONO_PROC(mono_method_desc_search_in_image); + GET_MONO_PROC(mono_method_desc_free); + GET_MONO_PROC(mono_method_signature); + GET_MONO_PROC(mono_signature_get_param_count); + GET_MONO_PROC(mono_array_new); + GET_MONO_PROC(mono_get_string_class); + GET_MONO_PROC(mono_assembly_getrootdir); + GET_MONO_PROC(mono_thread_current); + GET_MONO_PROC(mono_thread_set_main); + GET_MONO_PROC(mono_domain_set_config); + GET_MONO_PROC(mono_set_dirs); + GET_MONO_PROC(mono_config_parse); + GET_MONO_PROC(mono_set_assemblies_path); + GET_MONO_PROC(mono_object_to_string); + GET_MONO_PROC(mono_string_to_utf8); + GET_MONO_PROC(mono_image_open_from_data_with_name); + GET_MONO_PROC(mono_get_exception_class); + GET_MONO_PROC(mono_object_get_virtual_method); + GET_MONO_PROC(mono_jit_parse_options); + GET_MONO_PROC(mono_debug_init); + GET_MONO_PROC(mono_debug_domain_create); + +#undef GET_MONO_PROC } \ No newline at end of file diff --git a/unityhook/util.h b/common/unityhook/util.h similarity index 96% rename from unityhook/util.h rename to common/unityhook/util.h index 41def7b..9ad0a80 100644 --- a/unityhook/util.h +++ b/common/unityhook/util.h @@ -1,20 +1,20 @@ -#pragma once - -#include - -wchar_t *widen(const char *str) { - const int reqsz = MultiByteToWideChar(CP_UTF8, 0, str, -1, NULL, 0); - wchar_t *result = malloc(reqsz * sizeof(wchar_t)); - - MultiByteToWideChar(CP_UTF8, 0, str, -1, result, reqsz); - return result; -} - -char *narrow(const wchar_t *str) { - const int reqsz = WideCharToMultiByte(CP_UTF8, 0, str, -1, NULL, 0, NULL, NULL); - char *result = malloc(reqsz * sizeof(char)); - - WideCharToMultiByte(CP_UTF8, 0, str, -1, result, reqsz, NULL, NULL); - return result; -} - +#pragma once + +#include + +wchar_t *widen(const char *str) { + const int reqsz = MultiByteToWideChar(CP_UTF8, 0, str, -1, NULL, 0); + wchar_t *result = malloc(reqsz * sizeof(wchar_t)); + + MultiByteToWideChar(CP_UTF8, 0, str, -1, result, reqsz); + return result; +} + +char *narrow(const wchar_t *str) { + const int reqsz = WideCharToMultiByte(CP_UTF8, 0, str, -1, NULL, 0, NULL, NULL); + char *result = malloc(reqsz * sizeof(char)); + + WideCharToMultiByte(CP_UTF8, 0, str, -1, result, reqsz, NULL, NULL); + return result; +} + diff --git a/util/async.c b/common/util/async.c similarity index 100% rename from util/async.c rename to common/util/async.c diff --git a/util/async.h b/common/util/async.h similarity index 100% rename from util/async.h rename to common/util/async.h diff --git a/util/crc.c b/common/util/crc.c similarity index 100% rename from util/crc.c rename to common/util/crc.c diff --git a/util/crc.h b/common/util/crc.h similarity index 100% rename from util/crc.h rename to common/util/crc.h diff --git a/util/dll-bind.c b/common/util/dll-bind.c similarity index 100% rename from util/dll-bind.c rename to common/util/dll-bind.c diff --git a/util/dll-bind.h b/common/util/dll-bind.h similarity index 100% rename from util/dll-bind.h rename to common/util/dll-bind.h diff --git a/util/dprintf.c b/common/util/dprintf.c similarity index 100% rename from util/dprintf.c rename to common/util/dprintf.c diff --git a/util/dprintf.h b/common/util/dprintf.h similarity index 100% rename from util/dprintf.h rename to common/util/dprintf.h diff --git a/util/dump.c b/common/util/dump.c similarity index 100% rename from util/dump.c rename to common/util/dump.c diff --git a/util/dump.h b/common/util/dump.h similarity index 100% rename from util/dump.h rename to common/util/dump.h diff --git a/util/env.c b/common/util/env.c similarity index 100% rename from util/env.c rename to common/util/env.c diff --git a/util/env.h b/common/util/env.h similarity index 100% rename from util/env.h rename to common/util/env.h diff --git a/util/get_function_ordinal.c b/common/util/get_function_ordinal.c similarity index 100% rename from util/get_function_ordinal.c rename to common/util/get_function_ordinal.c diff --git a/util/get_function_ordinal.h b/common/util/get_function_ordinal.h similarity index 100% rename from util/get_function_ordinal.h rename to common/util/get_function_ordinal.h diff --git a/util/lib.c b/common/util/lib.c similarity index 100% rename from util/lib.c rename to common/util/lib.c diff --git a/util/lib.h b/common/util/lib.h similarity index 100% rename from util/lib.h rename to common/util/lib.h diff --git a/util/meson.build b/common/util/meson.build similarity index 100% rename from util/meson.build rename to common/util/meson.build diff --git a/util/slurp.c b/common/util/slurp.c similarity index 100% rename from util/slurp.c rename to common/util/slurp.c diff --git a/util/slurp.h b/common/util/slurp.h similarity index 100% rename from util/slurp.h rename to common/util/slurp.h diff --git a/util/str.c b/common/util/str.c similarity index 100% rename from util/str.c rename to common/util/str.c diff --git a/util/str.h b/common/util/str.h similarity index 100% rename from util/str.h rename to common/util/str.h diff --git a/dist/fgo/launch.bat b/dist/fgo/launch.bat index 3be4f8a..1b76197 100644 --- a/dist/fgo/launch.bat +++ b/dist/fgo/launch.bat @@ -1,6 +1,6 @@ @echo off -cd /d %~dp0 +pushd %~dp0 inject -d -k fgohook.dll ago.exe diff --git a/carolhook/carol-dll.c b/games/carolhook/carol-dll.c similarity index 100% rename from carolhook/carol-dll.c rename to games/carolhook/carol-dll.c diff --git a/carolhook/carol-dll.h b/games/carolhook/carol-dll.h similarity index 100% rename from carolhook/carol-dll.h rename to games/carolhook/carol-dll.h diff --git a/carolhook/carolhook.def b/games/carolhook/carolhook.def similarity index 100% rename from carolhook/carolhook.def rename to games/carolhook/carolhook.def diff --git a/carolhook/config.c b/games/carolhook/config.c similarity index 100% rename from carolhook/config.c rename to games/carolhook/config.c diff --git a/carolhook/config.h b/games/carolhook/config.h similarity index 100% rename from carolhook/config.h rename to games/carolhook/config.h diff --git a/carolhook/controlbd.c b/games/carolhook/controlbd.c similarity index 100% rename from carolhook/controlbd.c rename to games/carolhook/controlbd.c diff --git a/carolhook/controlbd.h b/games/carolhook/controlbd.h similarity index 100% rename from carolhook/controlbd.h rename to games/carolhook/controlbd.h diff --git a/carolhook/dllmain.c b/games/carolhook/dllmain.c similarity index 100% rename from carolhook/dllmain.c rename to games/carolhook/dllmain.c diff --git a/carolhook/jvs.c b/games/carolhook/jvs.c similarity index 100% rename from carolhook/jvs.c rename to games/carolhook/jvs.c diff --git a/carolhook/jvs.h b/games/carolhook/jvs.h similarity index 100% rename from carolhook/jvs.h rename to games/carolhook/jvs.h diff --git a/carolhook/ledbd.c b/games/carolhook/ledbd.c similarity index 100% rename from carolhook/ledbd.c rename to games/carolhook/ledbd.c diff --git a/carolhook/ledbd.h b/games/carolhook/ledbd.h similarity index 100% rename from carolhook/ledbd.h rename to games/carolhook/ledbd.h diff --git a/carolhook/meson.build b/games/carolhook/meson.build similarity index 100% rename from carolhook/meson.build rename to games/carolhook/meson.build diff --git a/carolhook/touch.c b/games/carolhook/touch.c similarity index 100% rename from carolhook/touch.c rename to games/carolhook/touch.c diff --git a/carolhook/touch.h b/games/carolhook/touch.h similarity index 100% rename from carolhook/touch.h rename to games/carolhook/touch.h diff --git a/carolio/carolio.c b/games/carolio/carolio.c similarity index 100% rename from carolio/carolio.c rename to games/carolio/carolio.c diff --git a/carolio/carolio.h b/games/carolio/carolio.h similarity index 100% rename from carolio/carolio.h rename to games/carolio/carolio.h diff --git a/carolio/config.c b/games/carolio/config.c similarity index 100% rename from carolio/config.c rename to games/carolio/config.c diff --git a/carolio/config.h b/games/carolio/config.h similarity index 100% rename from carolio/config.h rename to games/carolio/config.h diff --git a/carolio/meson.build b/games/carolio/meson.build similarity index 100% rename from carolio/meson.build rename to games/carolio/meson.build diff --git a/chunihook/chuni-dll.c b/games/chunihook/chuni-dll.c similarity index 100% rename from chunihook/chuni-dll.c rename to games/chunihook/chuni-dll.c diff --git a/chunihook/chuni-dll.h b/games/chunihook/chuni-dll.h similarity index 100% rename from chunihook/chuni-dll.h rename to games/chunihook/chuni-dll.h diff --git a/chunihook/chunihook.def b/games/chunihook/chunihook.def similarity index 100% rename from chunihook/chunihook.def rename to games/chunihook/chunihook.def diff --git a/chunihook/config.c b/games/chunihook/config.c similarity index 100% rename from chunihook/config.c rename to games/chunihook/config.c diff --git a/chunihook/config.h b/games/chunihook/config.h similarity index 100% rename from chunihook/config.h rename to games/chunihook/config.h diff --git a/chunihook/dllmain.c b/games/chunihook/dllmain.c similarity index 100% rename from chunihook/dllmain.c rename to games/chunihook/dllmain.c diff --git a/chunihook/jvs.c b/games/chunihook/jvs.c similarity index 100% rename from chunihook/jvs.c rename to games/chunihook/jvs.c diff --git a/chunihook/jvs.h b/games/chunihook/jvs.h similarity index 100% rename from chunihook/jvs.h rename to games/chunihook/jvs.h diff --git a/chunihook/meson.build b/games/chunihook/meson.build similarity index 100% rename from chunihook/meson.build rename to games/chunihook/meson.build diff --git a/chunihook/slider.c b/games/chunihook/slider.c similarity index 100% rename from chunihook/slider.c rename to games/chunihook/slider.c diff --git a/chunihook/slider.h b/games/chunihook/slider.h similarity index 100% rename from chunihook/slider.h rename to games/chunihook/slider.h diff --git a/chuniio/chu2to3.c b/games/chuniio/chu2to3.c similarity index 100% rename from chuniio/chu2to3.c rename to games/chuniio/chu2to3.c diff --git a/chuniio/chu2to3.h b/games/chuniio/chu2to3.h similarity index 100% rename from chuniio/chu2to3.h rename to games/chuniio/chu2to3.h diff --git a/chuniio/chuniio.c b/games/chuniio/chuniio.c similarity index 100% rename from chuniio/chuniio.c rename to games/chuniio/chuniio.c diff --git a/chuniio/chuniio.h b/games/chuniio/chuniio.h similarity index 100% rename from chuniio/chuniio.h rename to games/chuniio/chuniio.h diff --git a/chuniio/config.c b/games/chuniio/config.c similarity index 100% rename from chuniio/config.c rename to games/chuniio/config.c diff --git a/chuniio/config.h b/games/chuniio/config.h similarity index 100% rename from chuniio/config.h rename to games/chuniio/config.h diff --git a/chuniio/leddata.h b/games/chuniio/leddata.h similarity index 100% rename from chuniio/leddata.h rename to games/chuniio/leddata.h diff --git a/chuniio/ledoutput.c b/games/chuniio/ledoutput.c similarity index 100% rename from chuniio/ledoutput.c rename to games/chuniio/ledoutput.c diff --git a/chuniio/ledoutput.h b/games/chuniio/ledoutput.h similarity index 100% rename from chuniio/ledoutput.h rename to games/chuniio/ledoutput.h diff --git a/chuniio/meson.build b/games/chuniio/meson.build similarity index 100% rename from chuniio/meson.build rename to games/chuniio/meson.build diff --git a/chuniio/pipeimpl.c b/games/chuniio/pipeimpl.c similarity index 100% rename from chuniio/pipeimpl.c rename to games/chuniio/pipeimpl.c diff --git a/chuniio/pipeimpl.h b/games/chuniio/pipeimpl.h similarity index 100% rename from chuniio/pipeimpl.h rename to games/chuniio/pipeimpl.h diff --git a/chuniio/serialimpl.c b/games/chuniio/serialimpl.c similarity index 100% rename from chuniio/serialimpl.c rename to games/chuniio/serialimpl.c diff --git a/chuniio/serialimpl.h b/games/chuniio/serialimpl.h similarity index 100% rename from chuniio/serialimpl.h rename to games/chuniio/serialimpl.h diff --git a/chusanhook/chuni-dll.c b/games/chusanhook/chuni-dll.c similarity index 100% rename from chusanhook/chuni-dll.c rename to games/chusanhook/chuni-dll.c diff --git a/chusanhook/chuni-dll.h b/games/chusanhook/chuni-dll.h similarity index 100% rename from chusanhook/chuni-dll.h rename to games/chusanhook/chuni-dll.h diff --git a/chusanhook/chusanhook.def b/games/chusanhook/chusanhook.def similarity index 100% rename from chusanhook/chusanhook.def rename to games/chusanhook/chusanhook.def diff --git a/chusanhook/config.c b/games/chusanhook/config.c similarity index 100% rename from chusanhook/config.c rename to games/chusanhook/config.c diff --git a/chusanhook/config.h b/games/chusanhook/config.h similarity index 100% rename from chusanhook/config.h rename to games/chusanhook/config.h diff --git a/chusanhook/dllmain.c b/games/chusanhook/dllmain.c similarity index 100% rename from chusanhook/dllmain.c rename to games/chusanhook/dllmain.c diff --git a/chusanhook/io4.c b/games/chusanhook/io4.c similarity index 100% rename from chusanhook/io4.c rename to games/chusanhook/io4.c diff --git a/chusanhook/io4.h b/games/chusanhook/io4.h similarity index 100% rename from chusanhook/io4.h rename to games/chusanhook/io4.h diff --git a/chusanhook/meson.build b/games/chusanhook/meson.build similarity index 100% rename from chusanhook/meson.build rename to games/chusanhook/meson.build diff --git a/chusanhook/slider.c b/games/chusanhook/slider.c similarity index 100% rename from chusanhook/slider.c rename to games/chusanhook/slider.c diff --git a/chusanhook/slider.h b/games/chusanhook/slider.h similarity index 100% rename from chusanhook/slider.h rename to games/chusanhook/slider.h diff --git a/cmhook/cm-dll.c b/games/cmhook/cm-dll.c similarity index 100% rename from cmhook/cm-dll.c rename to games/cmhook/cm-dll.c diff --git a/cmhook/cm-dll.h b/games/cmhook/cm-dll.h similarity index 100% rename from cmhook/cm-dll.h rename to games/cmhook/cm-dll.h diff --git a/cmhook/cmhook.def b/games/cmhook/cmhook.def similarity index 100% rename from cmhook/cmhook.def rename to games/cmhook/cmhook.def diff --git a/cmhook/config.c b/games/cmhook/config.c similarity index 100% rename from cmhook/config.c rename to games/cmhook/config.c diff --git a/cmhook/config.h b/games/cmhook/config.h similarity index 100% rename from cmhook/config.h rename to games/cmhook/config.h diff --git a/cmhook/dllmain.c b/games/cmhook/dllmain.c similarity index 100% rename from cmhook/dllmain.c rename to games/cmhook/dllmain.c diff --git a/cmhook/io4.c b/games/cmhook/io4.c similarity index 100% rename from cmhook/io4.c rename to games/cmhook/io4.c diff --git a/cmhook/io4.h b/games/cmhook/io4.h similarity index 100% rename from cmhook/io4.h rename to games/cmhook/io4.h diff --git a/cmhook/meson.build b/games/cmhook/meson.build similarity index 100% rename from cmhook/meson.build rename to games/cmhook/meson.build diff --git a/cmio/cmio.c b/games/cmio/cmio.c similarity index 100% rename from cmio/cmio.c rename to games/cmio/cmio.c diff --git a/cmio/cmio.h b/games/cmio/cmio.h similarity index 100% rename from cmio/cmio.h rename to games/cmio/cmio.h diff --git a/cmio/config.c b/games/cmio/config.c similarity index 100% rename from cmio/config.c rename to games/cmio/config.c diff --git a/cmio/config.h b/games/cmio/config.h similarity index 100% rename from cmio/config.h rename to games/cmio/config.h diff --git a/cmio/meson.build b/games/cmio/meson.build similarity index 100% rename from cmio/meson.build rename to games/cmio/meson.build diff --git a/cxbhook/config.c b/games/cxbhook/config.c similarity index 100% rename from cxbhook/config.c rename to games/cxbhook/config.c diff --git a/cxbhook/config.h b/games/cxbhook/config.h similarity index 100% rename from cxbhook/config.h rename to games/cxbhook/config.h diff --git a/cxbhook/cxb-dll.c b/games/cxbhook/cxb-dll.c similarity index 100% rename from cxbhook/cxb-dll.c rename to games/cxbhook/cxb-dll.c diff --git a/cxbhook/cxb-dll.h b/games/cxbhook/cxb-dll.h similarity index 100% rename from cxbhook/cxb-dll.h rename to games/cxbhook/cxb-dll.h diff --git a/cxbhook/cxbhook.def b/games/cxbhook/cxbhook.def similarity index 100% rename from cxbhook/cxbhook.def rename to games/cxbhook/cxbhook.def diff --git a/cxbhook/dllmain.c b/games/cxbhook/dllmain.c similarity index 100% rename from cxbhook/dllmain.c rename to games/cxbhook/dllmain.c diff --git a/cxbhook/led.c b/games/cxbhook/led.c similarity index 100% rename from cxbhook/led.c rename to games/cxbhook/led.c diff --git a/cxbhook/led.h b/games/cxbhook/led.h similarity index 100% rename from cxbhook/led.h rename to games/cxbhook/led.h diff --git a/cxbhook/meson.build b/games/cxbhook/meson.build similarity index 100% rename from cxbhook/meson.build rename to games/cxbhook/meson.build diff --git a/cxbhook/revio.c b/games/cxbhook/revio.c similarity index 100% rename from cxbhook/revio.c rename to games/cxbhook/revio.c diff --git a/cxbhook/revio.h b/games/cxbhook/revio.h similarity index 100% rename from cxbhook/revio.h rename to games/cxbhook/revio.h diff --git a/cxbio/config.c b/games/cxbio/config.c similarity index 100% rename from cxbio/config.c rename to games/cxbio/config.c diff --git a/cxbio/config.h b/games/cxbio/config.h similarity index 100% rename from cxbio/config.h rename to games/cxbio/config.h diff --git a/cxbio/cxbio.c b/games/cxbio/cxbio.c similarity index 100% rename from cxbio/cxbio.c rename to games/cxbio/cxbio.c diff --git a/cxbio/cxbio.h b/games/cxbio/cxbio.h similarity index 100% rename from cxbio/cxbio.h rename to games/cxbio/cxbio.h diff --git a/cxbio/meson.build b/games/cxbio/meson.build similarity index 100% rename from cxbio/meson.build rename to games/cxbio/meson.build diff --git a/divahook/config.c b/games/divahook/config.c similarity index 100% rename from divahook/config.c rename to games/divahook/config.c diff --git a/divahook/config.h b/games/divahook/config.h similarity index 100% rename from divahook/config.h rename to games/divahook/config.h diff --git a/divahook/diva-dll.c b/games/divahook/diva-dll.c similarity index 100% rename from divahook/diva-dll.c rename to games/divahook/diva-dll.c diff --git a/divahook/diva-dll.h b/games/divahook/diva-dll.h similarity index 100% rename from divahook/diva-dll.h rename to games/divahook/diva-dll.h diff --git a/divahook/divahook.def b/games/divahook/divahook.def similarity index 100% rename from divahook/divahook.def rename to games/divahook/divahook.def diff --git a/divahook/dllmain.c b/games/divahook/dllmain.c similarity index 100% rename from divahook/dllmain.c rename to games/divahook/dllmain.c diff --git a/divahook/jvs.c b/games/divahook/jvs.c similarity index 100% rename from divahook/jvs.c rename to games/divahook/jvs.c diff --git a/divahook/jvs.h b/games/divahook/jvs.h similarity index 100% rename from divahook/jvs.h rename to games/divahook/jvs.h diff --git a/divahook/meson.build b/games/divahook/meson.build similarity index 100% rename from divahook/meson.build rename to games/divahook/meson.build diff --git a/divahook/slider.c b/games/divahook/slider.c similarity index 100% rename from divahook/slider.c rename to games/divahook/slider.c diff --git a/divahook/slider.h b/games/divahook/slider.h similarity index 100% rename from divahook/slider.h rename to games/divahook/slider.h diff --git a/divaio/config.c b/games/divaio/config.c similarity index 100% rename from divaio/config.c rename to games/divaio/config.c diff --git a/divaio/config.h b/games/divaio/config.h similarity index 100% rename from divaio/config.h rename to games/divaio/config.h diff --git a/divaio/divaio.c b/games/divaio/divaio.c similarity index 100% rename from divaio/divaio.c rename to games/divaio/divaio.c diff --git a/divaio/divaio.h b/games/divaio/divaio.h similarity index 100% rename from divaio/divaio.h rename to games/divaio/divaio.h diff --git a/divaio/meson.build b/games/divaio/meson.build similarity index 100% rename from divaio/meson.build rename to games/divaio/meson.build diff --git a/fgohook/config.c b/games/fgohook/config.c similarity index 100% rename from fgohook/config.c rename to games/fgohook/config.c diff --git a/fgohook/config.h b/games/fgohook/config.h similarity index 100% rename from fgohook/config.h rename to games/fgohook/config.h diff --git a/fgohook/deck.c b/games/fgohook/deck.c similarity index 100% rename from fgohook/deck.c rename to games/fgohook/deck.c diff --git a/fgohook/deck.h b/games/fgohook/deck.h similarity index 100% rename from fgohook/deck.h rename to games/fgohook/deck.h diff --git a/fgohook/dllmain.c b/games/fgohook/dllmain.c similarity index 100% rename from fgohook/dllmain.c rename to games/fgohook/dllmain.c diff --git a/fgohook/fgo-dll.c b/games/fgohook/fgo-dll.c similarity index 100% rename from fgohook/fgo-dll.c rename to games/fgohook/fgo-dll.c diff --git a/fgohook/fgo-dll.h b/games/fgohook/fgo-dll.h similarity index 100% rename from fgohook/fgo-dll.h rename to games/fgohook/fgo-dll.h diff --git a/fgohook/fgohook.def b/games/fgohook/fgohook.def similarity index 100% rename from fgohook/fgohook.def rename to games/fgohook/fgohook.def diff --git a/fgohook/ftdi.c b/games/fgohook/ftdi.c similarity index 100% rename from fgohook/ftdi.c rename to games/fgohook/ftdi.c diff --git a/fgohook/ftdi.h b/games/fgohook/ftdi.h similarity index 100% rename from fgohook/ftdi.h rename to games/fgohook/ftdi.h diff --git a/fgohook/io4.c b/games/fgohook/io4.c similarity index 100% rename from fgohook/io4.c rename to games/fgohook/io4.c diff --git a/fgohook/io4.h b/games/fgohook/io4.h similarity index 100% rename from fgohook/io4.h rename to games/fgohook/io4.h diff --git a/fgohook/meson.build b/games/fgohook/meson.build similarity index 100% rename from fgohook/meson.build rename to games/fgohook/meson.build diff --git a/fgoio/backend.h b/games/fgoio/backend.h similarity index 100% rename from fgoio/backend.h rename to games/fgoio/backend.h diff --git a/fgoio/config.c b/games/fgoio/config.c similarity index 100% rename from fgoio/config.c rename to games/fgoio/config.c diff --git a/fgoio/config.h b/games/fgoio/config.h similarity index 100% rename from fgoio/config.h rename to games/fgoio/config.h diff --git a/fgoio/fgoio.c b/games/fgoio/fgoio.c similarity index 100% rename from fgoio/fgoio.c rename to games/fgoio/fgoio.c diff --git a/fgoio/fgoio.h b/games/fgoio/fgoio.h similarity index 100% rename from fgoio/fgoio.h rename to games/fgoio/fgoio.h diff --git a/fgoio/keyboard.c b/games/fgoio/keyboard.c similarity index 100% rename from fgoio/keyboard.c rename to games/fgoio/keyboard.c diff --git a/fgoio/keyboard.h b/games/fgoio/keyboard.h similarity index 100% rename from fgoio/keyboard.h rename to games/fgoio/keyboard.h diff --git a/fgoio/meson.build b/games/fgoio/meson.build similarity index 100% rename from fgoio/meson.build rename to games/fgoio/meson.build diff --git a/fgoio/xi.c b/games/fgoio/xi.c similarity index 100% rename from fgoio/xi.c rename to games/fgoio/xi.c diff --git a/fgoio/xi.h b/games/fgoio/xi.h similarity index 100% rename from fgoio/xi.h rename to games/fgoio/xi.h diff --git a/idachook/config.c b/games/idachook/config.c similarity index 100% rename from idachook/config.c rename to games/idachook/config.c diff --git a/idachook/config.h b/games/idachook/config.h similarity index 100% rename from idachook/config.h rename to games/idachook/config.h diff --git a/idachook/dllmain.c b/games/idachook/dllmain.c similarity index 100% rename from idachook/dllmain.c rename to games/idachook/dllmain.c diff --git a/idachook/ffb.c b/games/idachook/ffb.c similarity index 100% rename from idachook/ffb.c rename to games/idachook/ffb.c diff --git a/idachook/ffb.h b/games/idachook/ffb.h similarity index 100% rename from idachook/ffb.h rename to games/idachook/ffb.h diff --git a/idachook/idac-dll.c b/games/idachook/idac-dll.c similarity index 100% rename from idachook/idac-dll.c rename to games/idachook/idac-dll.c diff --git a/idachook/idac-dll.h b/games/idachook/idac-dll.h similarity index 100% rename from idachook/idac-dll.h rename to games/idachook/idac-dll.h diff --git a/idachook/idachook.def b/games/idachook/idachook.def similarity index 100% rename from idachook/idachook.def rename to games/idachook/idachook.def diff --git a/idachook/indrun.c b/games/idachook/indrun.c similarity index 100% rename from idachook/indrun.c rename to games/idachook/indrun.c diff --git a/idachook/indrun.h b/games/idachook/indrun.h similarity index 100% rename from idachook/indrun.h rename to games/idachook/indrun.h diff --git a/idachook/io4.c b/games/idachook/io4.c similarity index 100% rename from idachook/io4.c rename to games/idachook/io4.c diff --git a/idachook/io4.h b/games/idachook/io4.h similarity index 100% rename from idachook/io4.h rename to games/idachook/io4.h diff --git a/idachook/meson.build b/games/idachook/meson.build similarity index 100% rename from idachook/meson.build rename to games/idachook/meson.build diff --git a/idachook/zinput.c b/games/idachook/zinput.c similarity index 100% rename from idachook/zinput.c rename to games/idachook/zinput.c diff --git a/idachook/zinput.h b/games/idachook/zinput.h similarity index 100% rename from idachook/zinput.h rename to games/idachook/zinput.h diff --git a/idacio/backend.h b/games/idacio/backend.h similarity index 100% rename from idacio/backend.h rename to games/idacio/backend.h diff --git a/idacio/config.c b/games/idacio/config.c similarity index 100% rename from idacio/config.c rename to games/idacio/config.c diff --git a/idacio/config.h b/games/idacio/config.h similarity index 100% rename from idacio/config.h rename to games/idacio/config.h diff --git a/idacio/di-dev.c b/games/idacio/di-dev.c similarity index 100% rename from idacio/di-dev.c rename to games/idacio/di-dev.c diff --git a/idacio/di-dev.h b/games/idacio/di-dev.h similarity index 100% rename from idacio/di-dev.h rename to games/idacio/di-dev.h diff --git a/idacio/di.c b/games/idacio/di.c similarity index 100% rename from idacio/di.c rename to games/idacio/di.c diff --git a/idacio/di.h b/games/idacio/di.h similarity index 100% rename from idacio/di.h rename to games/idacio/di.h diff --git a/idacio/dllmain.c b/games/idacio/dllmain.c similarity index 100% rename from idacio/dllmain.c rename to games/idacio/dllmain.c diff --git a/idacio/idacio.def b/games/idacio/idacio.def similarity index 100% rename from idacio/idacio.def rename to games/idacio/idacio.def diff --git a/idacio/idacio.h b/games/idacio/idacio.h similarity index 100% rename from idacio/idacio.h rename to games/idacio/idacio.h diff --git a/idacio/meson.build b/games/idacio/meson.build similarity index 100% rename from idacio/meson.build rename to games/idacio/meson.build diff --git a/idacio/shifter.c b/games/idacio/shifter.c similarity index 100% rename from idacio/shifter.c rename to games/idacio/shifter.c diff --git a/idacio/shifter.h b/games/idacio/shifter.h similarity index 100% rename from idacio/shifter.h rename to games/idacio/shifter.h diff --git a/idacio/wnd.c b/games/idacio/wnd.c similarity index 100% rename from idacio/wnd.c rename to games/idacio/wnd.c diff --git a/idacio/wnd.h b/games/idacio/wnd.h similarity index 100% rename from idacio/wnd.h rename to games/idacio/wnd.h diff --git a/idacio/xi.c b/games/idacio/xi.c similarity index 100% rename from idacio/xi.c rename to games/idacio/xi.c diff --git a/idacio/xi.h b/games/idacio/xi.h similarity index 100% rename from idacio/xi.h rename to games/idacio/xi.h diff --git a/idzhook/config.c b/games/idzhook/config.c similarity index 100% rename from idzhook/config.c rename to games/idzhook/config.c diff --git a/idzhook/config.h b/games/idzhook/config.h similarity index 100% rename from idzhook/config.h rename to games/idzhook/config.h diff --git a/idzhook/dllmain.c b/games/idzhook/dllmain.c similarity index 100% rename from idzhook/dllmain.c rename to games/idzhook/dllmain.c diff --git a/idzhook/ffb.c b/games/idzhook/ffb.c similarity index 100% rename from idzhook/ffb.c rename to games/idzhook/ffb.c diff --git a/idzhook/ffb.h b/games/idzhook/ffb.h similarity index 100% rename from idzhook/ffb.h rename to games/idzhook/ffb.h diff --git a/idzhook/idz-dll.c b/games/idzhook/idz-dll.c similarity index 100% rename from idzhook/idz-dll.c rename to games/idzhook/idz-dll.c diff --git a/idzhook/idz-dll.h b/games/idzhook/idz-dll.h similarity index 100% rename from idzhook/idz-dll.h rename to games/idzhook/idz-dll.h diff --git a/idzhook/idzhook.def b/games/idzhook/idzhook.def similarity index 100% rename from idzhook/idzhook.def rename to games/idzhook/idzhook.def diff --git a/idzhook/jvs.c b/games/idzhook/jvs.c similarity index 100% rename from idzhook/jvs.c rename to games/idzhook/jvs.c diff --git a/idzhook/jvs.h b/games/idzhook/jvs.h similarity index 100% rename from idzhook/jvs.h rename to games/idzhook/jvs.h diff --git a/idzhook/meson.build b/games/idzhook/meson.build similarity index 100% rename from idzhook/meson.build rename to games/idzhook/meson.build diff --git a/idzhook/zinput.c b/games/idzhook/zinput.c similarity index 100% rename from idzhook/zinput.c rename to games/idzhook/zinput.c diff --git a/idzhook/zinput.h b/games/idzhook/zinput.h similarity index 100% rename from idzhook/zinput.h rename to games/idzhook/zinput.h diff --git a/idzio/backend.h b/games/idzio/backend.h similarity index 100% rename from idzio/backend.h rename to games/idzio/backend.h diff --git a/idzio/config.c b/games/idzio/config.c similarity index 100% rename from idzio/config.c rename to games/idzio/config.c diff --git a/idzio/config.h b/games/idzio/config.h similarity index 100% rename from idzio/config.h rename to games/idzio/config.h diff --git a/idzio/di-dev.c b/games/idzio/di-dev.c similarity index 100% rename from idzio/di-dev.c rename to games/idzio/di-dev.c diff --git a/idzio/di-dev.h b/games/idzio/di-dev.h similarity index 100% rename from idzio/di-dev.h rename to games/idzio/di-dev.h diff --git a/idzio/di.c b/games/idzio/di.c similarity index 100% rename from idzio/di.c rename to games/idzio/di.c diff --git a/idzio/di.h b/games/idzio/di.h similarity index 100% rename from idzio/di.h rename to games/idzio/di.h diff --git a/idzio/dllmain.c b/games/idzio/dllmain.c similarity index 100% rename from idzio/dllmain.c rename to games/idzio/dllmain.c diff --git a/idzio/idzio.def b/games/idzio/idzio.def similarity index 100% rename from idzio/idzio.def rename to games/idzio/idzio.def diff --git a/idzio/idzio.h b/games/idzio/idzio.h similarity index 100% rename from idzio/idzio.h rename to games/idzio/idzio.h diff --git a/idzio/meson.build b/games/idzio/meson.build similarity index 100% rename from idzio/meson.build rename to games/idzio/meson.build diff --git a/idzio/shifter.c b/games/idzio/shifter.c similarity index 100% rename from idzio/shifter.c rename to games/idzio/shifter.c diff --git a/idzio/shifter.h b/games/idzio/shifter.h similarity index 100% rename from idzio/shifter.h rename to games/idzio/shifter.h diff --git a/idzio/wnd.c b/games/idzio/wnd.c similarity index 100% rename from idzio/wnd.c rename to games/idzio/wnd.c diff --git a/idzio/wnd.h b/games/idzio/wnd.h similarity index 100% rename from idzio/wnd.h rename to games/idzio/wnd.h diff --git a/idzio/xi.c b/games/idzio/xi.c similarity index 100% rename from idzio/xi.c rename to games/idzio/xi.c diff --git a/idzio/xi.h b/games/idzio/xi.h similarity index 100% rename from idzio/xi.h rename to games/idzio/xi.h diff --git a/kemonohook/config.c b/games/kemonohook/config.c similarity index 100% rename from kemonohook/config.c rename to games/kemonohook/config.c diff --git a/kemonohook/config.h b/games/kemonohook/config.h similarity index 100% rename from kemonohook/config.h rename to games/kemonohook/config.h diff --git a/kemonohook/dllmain.c b/games/kemonohook/dllmain.c similarity index 100% rename from kemonohook/dllmain.c rename to games/kemonohook/dllmain.c diff --git a/kemonohook/hooks.c b/games/kemonohook/hooks.c similarity index 100% rename from kemonohook/hooks.c rename to games/kemonohook/hooks.c diff --git a/kemonohook/hooks.h b/games/kemonohook/hooks.h similarity index 100% rename from kemonohook/hooks.h rename to games/kemonohook/hooks.h diff --git a/kemonohook/jvs.c b/games/kemonohook/jvs.c similarity index 100% rename from kemonohook/jvs.c rename to games/kemonohook/jvs.c diff --git a/kemonohook/jvs.h b/games/kemonohook/jvs.h similarity index 100% rename from kemonohook/jvs.h rename to games/kemonohook/jvs.h diff --git a/kemonohook/kemono-dll.c b/games/kemonohook/kemono-dll.c similarity index 100% rename from kemonohook/kemono-dll.c rename to games/kemonohook/kemono-dll.c diff --git a/kemonohook/kemono-dll.h b/games/kemonohook/kemono-dll.h similarity index 100% rename from kemonohook/kemono-dll.h rename to games/kemonohook/kemono-dll.h diff --git a/kemonohook/kemonohook.def b/games/kemonohook/kemonohook.def similarity index 100% rename from kemonohook/kemonohook.def rename to games/kemonohook/kemonohook.def diff --git a/kemonohook/meson.build b/games/kemonohook/meson.build similarity index 100% rename from kemonohook/meson.build rename to games/kemonohook/meson.build diff --git a/kemonoio/config.c b/games/kemonoio/config.c similarity index 100% rename from kemonoio/config.c rename to games/kemonoio/config.c diff --git a/kemonoio/config.h b/games/kemonoio/config.h similarity index 100% rename from kemonoio/config.h rename to games/kemonoio/config.h diff --git a/kemonoio/kemonoio.c b/games/kemonoio/kemonoio.c similarity index 100% rename from kemonoio/kemonoio.c rename to games/kemonoio/kemonoio.c diff --git a/kemonoio/kemonoio.h b/games/kemonoio/kemonoio.h similarity index 100% rename from kemonoio/kemonoio.h rename to games/kemonoio/kemonoio.h diff --git a/kemonoio/meson.build b/games/kemonoio/meson.build similarity index 100% rename from kemonoio/meson.build rename to games/kemonoio/meson.build diff --git a/mai2hook/config.c b/games/mai2hook/config.c similarity index 100% rename from mai2hook/config.c rename to games/mai2hook/config.c diff --git a/mai2hook/config.h b/games/mai2hook/config.h similarity index 100% rename from mai2hook/config.h rename to games/mai2hook/config.h diff --git a/mai2hook/dllmain.c b/games/mai2hook/dllmain.c similarity index 100% rename from mai2hook/dllmain.c rename to games/mai2hook/dllmain.c diff --git a/mai2hook/io4.c b/games/mai2hook/io4.c similarity index 100% rename from mai2hook/io4.c rename to games/mai2hook/io4.c diff --git a/mai2hook/io4.h b/games/mai2hook/io4.h similarity index 100% rename from mai2hook/io4.h rename to games/mai2hook/io4.h diff --git a/mai2hook/mai2-dll.c b/games/mai2hook/mai2-dll.c similarity index 100% rename from mai2hook/mai2-dll.c rename to games/mai2hook/mai2-dll.c diff --git a/mai2hook/mai2-dll.h b/games/mai2hook/mai2-dll.h similarity index 100% rename from mai2hook/mai2-dll.h rename to games/mai2hook/mai2-dll.h diff --git a/mai2hook/mai2hook.def b/games/mai2hook/mai2hook.def similarity index 100% rename from mai2hook/mai2hook.def rename to games/mai2hook/mai2hook.def diff --git a/mai2hook/meson.build b/games/mai2hook/meson.build similarity index 100% rename from mai2hook/meson.build rename to games/mai2hook/meson.build diff --git a/mai2hook/touch.c b/games/mai2hook/touch.c similarity index 100% rename from mai2hook/touch.c rename to games/mai2hook/touch.c diff --git a/mai2hook/touch.h b/games/mai2hook/touch.h similarity index 100% rename from mai2hook/touch.h rename to games/mai2hook/touch.h diff --git a/mai2io/config.c b/games/mai2io/config.c similarity index 100% rename from mai2io/config.c rename to games/mai2io/config.c diff --git a/mai2io/config.h b/games/mai2io/config.h similarity index 100% rename from mai2io/config.h rename to games/mai2io/config.h diff --git a/mai2io/mai2io.c b/games/mai2io/mai2io.c similarity index 100% rename from mai2io/mai2io.c rename to games/mai2io/mai2io.c diff --git a/mai2io/mai2io.h b/games/mai2io/mai2io.h similarity index 100% rename from mai2io/mai2io.h rename to games/mai2io/mai2io.h diff --git a/mai2io/meson.build b/games/mai2io/meson.build similarity index 100% rename from mai2io/meson.build rename to games/mai2io/meson.build diff --git a/mercuryhook/config.c b/games/mercuryhook/config.c similarity index 100% rename from mercuryhook/config.c rename to games/mercuryhook/config.c diff --git a/mercuryhook/config.h b/games/mercuryhook/config.h similarity index 100% rename from mercuryhook/config.h rename to games/mercuryhook/config.h diff --git a/mercuryhook/dllmain.c b/games/mercuryhook/dllmain.c similarity index 100% rename from mercuryhook/dllmain.c rename to games/mercuryhook/dllmain.c diff --git a/mercuryhook/elisabeth.c b/games/mercuryhook/elisabeth.c similarity index 100% rename from mercuryhook/elisabeth.c rename to games/mercuryhook/elisabeth.c diff --git a/mercuryhook/elisabeth.h b/games/mercuryhook/elisabeth.h similarity index 100% rename from mercuryhook/elisabeth.h rename to games/mercuryhook/elisabeth.h diff --git a/mercuryhook/io4.c b/games/mercuryhook/io4.c similarity index 100% rename from mercuryhook/io4.c rename to games/mercuryhook/io4.c diff --git a/mercuryhook/io4.h b/games/mercuryhook/io4.h similarity index 100% rename from mercuryhook/io4.h rename to games/mercuryhook/io4.h diff --git a/mercuryhook/mercury-dll.c b/games/mercuryhook/mercury-dll.c similarity index 100% rename from mercuryhook/mercury-dll.c rename to games/mercuryhook/mercury-dll.c diff --git a/mercuryhook/mercury-dll.h b/games/mercuryhook/mercury-dll.h similarity index 100% rename from mercuryhook/mercury-dll.h rename to games/mercuryhook/mercury-dll.h diff --git a/mercuryhook/mercuryhook.def b/games/mercuryhook/mercuryhook.def similarity index 100% rename from mercuryhook/mercuryhook.def rename to games/mercuryhook/mercuryhook.def diff --git a/mercuryhook/meson.build b/games/mercuryhook/meson.build similarity index 100% rename from mercuryhook/meson.build rename to games/mercuryhook/meson.build diff --git a/mercuryhook/touch.c b/games/mercuryhook/touch.c similarity index 100% rename from mercuryhook/touch.c rename to games/mercuryhook/touch.c diff --git a/mercuryhook/touch.h b/games/mercuryhook/touch.h similarity index 100% rename from mercuryhook/touch.h rename to games/mercuryhook/touch.h diff --git a/mercuryio/config.c b/games/mercuryio/config.c similarity index 100% rename from mercuryio/config.c rename to games/mercuryio/config.c diff --git a/mercuryio/config.h b/games/mercuryio/config.h similarity index 100% rename from mercuryio/config.h rename to games/mercuryio/config.h diff --git a/mercuryio/mercuryio.c b/games/mercuryio/mercuryio.c similarity index 100% rename from mercuryio/mercuryio.c rename to games/mercuryio/mercuryio.c diff --git a/mercuryio/mercuryio.def b/games/mercuryio/mercuryio.def similarity index 100% rename from mercuryio/mercuryio.def rename to games/mercuryio/mercuryio.def diff --git a/mercuryio/mercuryio.h b/games/mercuryio/mercuryio.h similarity index 100% rename from mercuryio/mercuryio.h rename to games/mercuryio/mercuryio.h diff --git a/mercuryio/meson.build b/games/mercuryio/meson.build similarity index 100% rename from mercuryio/meson.build rename to games/mercuryio/meson.build diff --git a/mu3hook/config.c b/games/mu3hook/config.c similarity index 100% rename from mu3hook/config.c rename to games/mu3hook/config.c diff --git a/mu3hook/config.h b/games/mu3hook/config.h similarity index 100% rename from mu3hook/config.h rename to games/mu3hook/config.h diff --git a/mu3hook/dllmain.c b/games/mu3hook/dllmain.c similarity index 100% rename from mu3hook/dllmain.c rename to games/mu3hook/dllmain.c diff --git a/mu3hook/io4.c b/games/mu3hook/io4.c similarity index 100% rename from mu3hook/io4.c rename to games/mu3hook/io4.c diff --git a/mu3hook/io4.h b/games/mu3hook/io4.h similarity index 100% rename from mu3hook/io4.h rename to games/mu3hook/io4.h diff --git a/mu3hook/meson.build b/games/mu3hook/meson.build similarity index 100% rename from mu3hook/meson.build rename to games/mu3hook/meson.build diff --git a/mu3hook/mu3-dll.c b/games/mu3hook/mu3-dll.c similarity index 100% rename from mu3hook/mu3-dll.c rename to games/mu3hook/mu3-dll.c diff --git a/mu3hook/mu3-dll.h b/games/mu3hook/mu3-dll.h similarity index 100% rename from mu3hook/mu3-dll.h rename to games/mu3hook/mu3-dll.h diff --git a/mu3hook/mu3hook.def b/games/mu3hook/mu3hook.def similarity index 100% rename from mu3hook/mu3hook.def rename to games/mu3hook/mu3hook.def diff --git a/mu3io/config.c b/games/mu3io/config.c similarity index 100% rename from mu3io/config.c rename to games/mu3io/config.c diff --git a/mu3io/config.h b/games/mu3io/config.h similarity index 100% rename from mu3io/config.h rename to games/mu3io/config.h diff --git a/mu3io/leddata.h b/games/mu3io/leddata.h similarity index 100% rename from mu3io/leddata.h rename to games/mu3io/leddata.h diff --git a/mu3io/ledoutput.c b/games/mu3io/ledoutput.c similarity index 100% rename from mu3io/ledoutput.c rename to games/mu3io/ledoutput.c diff --git a/mu3io/ledoutput.h b/games/mu3io/ledoutput.h similarity index 100% rename from mu3io/ledoutput.h rename to games/mu3io/ledoutput.h diff --git a/mu3io/meson.build b/games/mu3io/meson.build similarity index 100% rename from mu3io/meson.build rename to games/mu3io/meson.build diff --git a/mu3io/mu3io.c b/games/mu3io/mu3io.c similarity index 100% rename from mu3io/mu3io.c rename to games/mu3io/mu3io.c diff --git a/mu3io/mu3io.h b/games/mu3io/mu3io.h similarity index 100% rename from mu3io/mu3io.h rename to games/mu3io/mu3io.h diff --git a/mu3io/pipeimpl.c b/games/mu3io/pipeimpl.c similarity index 100% rename from mu3io/pipeimpl.c rename to games/mu3io/pipeimpl.c diff --git a/mu3io/pipeimpl.h b/games/mu3io/pipeimpl.h similarity index 100% rename from mu3io/pipeimpl.h rename to games/mu3io/pipeimpl.h diff --git a/mu3io/serialimpl.c b/games/mu3io/serialimpl.c similarity index 100% rename from mu3io/serialimpl.c rename to games/mu3io/serialimpl.c diff --git a/mu3io/serialimpl.h b/games/mu3io/serialimpl.h similarity index 100% rename from mu3io/serialimpl.h rename to games/mu3io/serialimpl.h diff --git a/swdchook/config.c b/games/swdchook/config.c similarity index 100% rename from swdchook/config.c rename to games/swdchook/config.c diff --git a/swdchook/config.h b/games/swdchook/config.h similarity index 100% rename from swdchook/config.h rename to games/swdchook/config.h diff --git a/swdchook/dllmain.c b/games/swdchook/dllmain.c similarity index 100% rename from swdchook/dllmain.c rename to games/swdchook/dllmain.c diff --git a/swdchook/ffb.c b/games/swdchook/ffb.c similarity index 100% rename from swdchook/ffb.c rename to games/swdchook/ffb.c diff --git a/swdchook/ffb.h b/games/swdchook/ffb.h similarity index 100% rename from swdchook/ffb.h rename to games/swdchook/ffb.h diff --git a/swdchook/io4.c b/games/swdchook/io4.c similarity index 100% rename from swdchook/io4.c rename to games/swdchook/io4.c diff --git a/swdchook/io4.h b/games/swdchook/io4.h similarity index 100% rename from swdchook/io4.h rename to games/swdchook/io4.h diff --git a/swdchook/meson.build b/games/swdchook/meson.build similarity index 100% rename from swdchook/meson.build rename to games/swdchook/meson.build diff --git a/swdchook/swdc-dll.c b/games/swdchook/swdc-dll.c similarity index 100% rename from swdchook/swdc-dll.c rename to games/swdchook/swdc-dll.c diff --git a/swdchook/swdc-dll.h b/games/swdchook/swdc-dll.h similarity index 100% rename from swdchook/swdc-dll.h rename to games/swdchook/swdc-dll.h diff --git a/swdchook/swdchook.def b/games/swdchook/swdchook.def similarity index 100% rename from swdchook/swdchook.def rename to games/swdchook/swdchook.def diff --git a/swdchook/zinput.c b/games/swdchook/zinput.c similarity index 100% rename from swdchook/zinput.c rename to games/swdchook/zinput.c diff --git a/swdchook/zinput.h b/games/swdchook/zinput.h similarity index 100% rename from swdchook/zinput.h rename to games/swdchook/zinput.h diff --git a/swdcio/backend.h b/games/swdcio/backend.h similarity index 100% rename from swdcio/backend.h rename to games/swdcio/backend.h diff --git a/swdcio/config.c b/games/swdcio/config.c similarity index 100% rename from swdcio/config.c rename to games/swdcio/config.c diff --git a/swdcio/config.h b/games/swdcio/config.h similarity index 100% rename from swdcio/config.h rename to games/swdcio/config.h diff --git a/swdcio/di-dev.c b/games/swdcio/di-dev.c similarity index 100% rename from swdcio/di-dev.c rename to games/swdcio/di-dev.c diff --git a/swdcio/di-dev.h b/games/swdcio/di-dev.h similarity index 100% rename from swdcio/di-dev.h rename to games/swdcio/di-dev.h diff --git a/swdcio/di.c b/games/swdcio/di.c similarity index 100% rename from swdcio/di.c rename to games/swdcio/di.c diff --git a/swdcio/di.h b/games/swdcio/di.h similarity index 100% rename from swdcio/di.h rename to games/swdcio/di.h diff --git a/swdcio/dllmain.c b/games/swdcio/dllmain.c similarity index 100% rename from swdcio/dllmain.c rename to games/swdcio/dllmain.c diff --git a/swdcio/meson.build b/games/swdcio/meson.build similarity index 100% rename from swdcio/meson.build rename to games/swdcio/meson.build diff --git a/swdcio/swdcio.def b/games/swdcio/swdcio.def similarity index 100% rename from swdcio/swdcio.def rename to games/swdcio/swdcio.def diff --git a/swdcio/swdcio.h b/games/swdcio/swdcio.h similarity index 100% rename from swdcio/swdcio.h rename to games/swdcio/swdcio.h diff --git a/swdcio/wnd.c b/games/swdcio/wnd.c similarity index 100% rename from swdcio/wnd.c rename to games/swdcio/wnd.c diff --git a/swdcio/wnd.h b/games/swdcio/wnd.h similarity index 100% rename from swdcio/wnd.h rename to games/swdcio/wnd.h diff --git a/swdcio/xi.c b/games/swdcio/xi.c similarity index 100% rename from swdcio/xi.c rename to games/swdcio/xi.c diff --git a/swdcio/xi.h b/games/swdcio/xi.h similarity index 100% rename from swdcio/xi.h rename to games/swdcio/xi.h diff --git a/tokyohook/config.c b/games/tokyohook/config.c similarity index 100% rename from tokyohook/config.c rename to games/tokyohook/config.c diff --git a/tokyohook/config.h b/games/tokyohook/config.h similarity index 100% rename from tokyohook/config.h rename to games/tokyohook/config.h diff --git a/tokyohook/dllmain.c b/games/tokyohook/dllmain.c similarity index 100% rename from tokyohook/dllmain.c rename to games/tokyohook/dllmain.c diff --git a/tokyohook/io4.c b/games/tokyohook/io4.c similarity index 100% rename from tokyohook/io4.c rename to games/tokyohook/io4.c diff --git a/tokyohook/io4.h b/games/tokyohook/io4.h similarity index 100% rename from tokyohook/io4.h rename to games/tokyohook/io4.h diff --git a/tokyohook/meson.build b/games/tokyohook/meson.build similarity index 100% rename from tokyohook/meson.build rename to games/tokyohook/meson.build diff --git a/tokyohook/tokyo-dll.c b/games/tokyohook/tokyo-dll.c similarity index 100% rename from tokyohook/tokyo-dll.c rename to games/tokyohook/tokyo-dll.c diff --git a/tokyohook/tokyo-dll.h b/games/tokyohook/tokyo-dll.h similarity index 100% rename from tokyohook/tokyo-dll.h rename to games/tokyohook/tokyo-dll.h diff --git a/tokyohook/tokyohook.def b/games/tokyohook/tokyohook.def similarity index 100% rename from tokyohook/tokyohook.def rename to games/tokyohook/tokyohook.def diff --git a/tokyohook/zinput.c b/games/tokyohook/zinput.c similarity index 100% rename from tokyohook/zinput.c rename to games/tokyohook/zinput.c diff --git a/tokyohook/zinput.h b/games/tokyohook/zinput.h similarity index 100% rename from tokyohook/zinput.h rename to games/tokyohook/zinput.h diff --git a/tokyoio/backend.h b/games/tokyoio/backend.h similarity index 100% rename from tokyoio/backend.h rename to games/tokyoio/backend.h diff --git a/tokyoio/config.c b/games/tokyoio/config.c similarity index 100% rename from tokyoio/config.c rename to games/tokyoio/config.c diff --git a/tokyoio/config.h b/games/tokyoio/config.h similarity index 100% rename from tokyoio/config.h rename to games/tokyoio/config.h diff --git a/tokyoio/dllmain.c b/games/tokyoio/dllmain.c similarity index 100% rename from tokyoio/dllmain.c rename to games/tokyoio/dllmain.c diff --git a/tokyoio/kb.c b/games/tokyoio/kb.c similarity index 100% rename from tokyoio/kb.c rename to games/tokyoio/kb.c diff --git a/tokyoio/kb.h b/games/tokyoio/kb.h similarity index 100% rename from tokyoio/kb.h rename to games/tokyoio/kb.h diff --git a/tokyoio/meson.build b/games/tokyoio/meson.build similarity index 100% rename from tokyoio/meson.build rename to games/tokyoio/meson.build diff --git a/tokyoio/tokyoio.h b/games/tokyoio/tokyoio.h similarity index 100% rename from tokyoio/tokyoio.h rename to games/tokyoio/tokyoio.h diff --git a/tokyoio/xi.c b/games/tokyoio/xi.c similarity index 100% rename from tokyoio/xi.c rename to games/tokyoio/xi.c diff --git a/tokyoio/xi.h b/games/tokyoio/xi.h similarity index 100% rename from tokyoio/xi.h rename to games/tokyoio/xi.h diff --git a/meson.build b/meson.build index 9eea85d..b21d194 100644 --- a/meson.build +++ b/meson.build @@ -94,49 +94,48 @@ pathcch_lib = cc.find_library('pathcch') imagehlp_lib = cc.find_library('imagehlp') ws2_32_lib = cc.find_library('ws2_32') -inc = include_directories('.') +inc = include_directories('common', 'games') capnhook = subproject('capnhook') -subdir('amex') -subdir('iccard') -subdir('board') -subdir('hooklib') -subdir('jvs') -subdir('platform') -subdir('util') +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('gfxhook') -subdir('unityhook') +subdir('common/gfxhook') +subdir('common/unityhook') -subdir('aimeio') -subdir('chuniio') -subdir('divaio') -subdir('carolio') -subdir('idzio') -subdir('idacio') -subdir('swdcio') -subdir('mu3io') -subdir('mai2io') -subdir('cmio') -subdir('mercuryio') -subdir('cxbio') -subdir('tokyoio') -subdir('fgoio') -subdir('kemonoio') +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('chunihook') -subdir('divahook') -subdir('carolhook') -subdir('idzhook') -subdir('idachook') -subdir('swdchook') -subdir('minihook') -subdir('chusanhook') -subdir('mu3hook') -subdir('mai2hook') -subdir('cmhook') -subdir('mercuryhook') -subdir('cxbhook') -subdir('tokyohook') -subdir('fgohook') -subdir('kemonohook') +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') diff --git a/minihook/dllmain.c b/minihook/dllmain.c deleted file mode 100644 index c72609f..0000000 --- a/minihook/dllmain.c +++ /dev/null @@ -1,76 +0,0 @@ -#include - -#include - -#include "amex/config.h" -#include "amex/ds.h" - -#include "hook/process.h" - -#include "hooklib/spike.h" - -#include "platform/clock.h" -#include "platform/config.h" -#include "platform/nusec.h" - -#include "util/dprintf.h" -#include "util/env.h" - -static process_entry_t app_startup; - -static DWORD CALLBACK app_pre_startup(void) -{ - struct clock_config clock_cfg; - struct ds_config ds_cfg; - struct nusec_config nusec_cfg; - HRESULT hr; - - dprintf("--- Begin %s ---\n", __func__); - - clock_config_load(&clock_cfg, get_config_path()); - ds_config_load(&ds_cfg, get_config_path()); - nusec_config_load(&nusec_cfg, get_config_path()); - spike_hook_init(get_config_path()); - - hr = clock_hook_init(&clock_cfg); - - if (FAILED(hr)) { - goto fail; - } - - hr = nusec_hook_init(&nusec_cfg, "SSSS", "AAV0"); - - if (FAILED(hr)) { - goto fail; - } - - hr = ds_hook_init(&ds_cfg); - - if (FAILED(hr)) { - goto fail; - } - - dprintf("--- End %s ---\n", __func__); - - return app_startup(); - -fail: - ExitProcess(EXIT_FAILURE); -} - -BOOL WINAPI DllMain(HMODULE mod, DWORD cause, void *ctx) -{ - HRESULT hr; - - if (cause != DLL_PROCESS_ATTACH) { - return TRUE; - } - - hr = process_hijack_startup(app_pre_startup, &app_startup); - - if (!SUCCEEDED(hr)) { - dprintf("Failed to hijack process startup: %x\n", (int) hr); - } - - return SUCCEEDED(hr); -} diff --git a/minihook/meson.build b/minihook/meson.build deleted file mode 100644 index 7de7f6c..0000000 --- a/minihook/meson.build +++ /dev/null @@ -1,18 +0,0 @@ -shared_library( - 'minihook', - name_prefix : '', - include_directories: inc, - implicit_include_directories : false, - dependencies : [ - capnhook.get_variable('hook_dep'), - ], - link_with : [ - amex_lib, - hooklib_lib, - platform_lib, - util_lib, - ], - sources : [ - 'dllmain.c', - ], -) diff --git a/msvc-build.bat b/msvc-build.bat index fac3925..460b5fd 100644 --- a/msvc-build.bat +++ b/msvc-build.bat @@ -4,6 +4,8 @@ setlocal enabledelayedexpansion set BUILD_DIR=build set BUILD_DIR_32=%BUILD_DIR%\build32 set BUILD_DIR_64=%BUILD_DIR%\build64 +set BUILD_DIR_GAMES_32=%BUILD_DIR_32%\games +set BUILD_DIR_GAMES_64=%BUILD_DIR_64%\games set BUILD_DIR_ZIP=%BUILD_DIR%\zip set DIST_DIR=dist set DOC_DIR=doc diff --git a/package.ps1 b/package.ps1 index bae0e6c..d2f0316 100644 --- a/package.ps1 +++ b/package.ps1 @@ -2,6 +2,8 @@ if ($null -eq $env:BUILD_DIR) { $BUILD_DIR="build" $BUILD_DIR_32="$BUILD_DIR\build32" $BUILD_DIR_64="$BUILD_DIR\build64" + $BUILD_DIR_GAMES_32="$BUILD_DIR_32\games" + $BUILD_DIR_GAMES_64="$BUILD_DIR_64\games" $BUILD_DIR_ZIP="$BUILD_DIR\zip" $DIST_DIR="dist" $DOC_DIR="doc" @@ -9,6 +11,8 @@ if ($null -eq $env:BUILD_DIR) { $BUILD_DIR = $env:BUILD_DIR; $BUILD_DIR_32 = $env:BUILD_DIR_32; $BUILD_DIR_64 = $env:BUILD_DIR_64; + $BUILD_DIR_GAMES_32 = $env:BUILD_DIR_GAMES_32; + $BUILD_DIR_GAMES_64 = $env:BUILD_DIR_GAMES_64; $BUILD_DIR_ZIP = $env:BUILD_DIR_ZIP; $DIST_DIR = $env:DIST_DIR; $DOC_DIR = $env:DOC_DIR; @@ -26,6 +30,8 @@ cat .\Package.mk | % { Replace('$(BUILD_DIR)', $BUILD_DIR). Replace('$(BUILD_DIR_32)', $BUILD_DIR_32). Replace('$(BUILD_DIR_64)', $BUILD_DIR_64). + Replace('$(BUILD_DIR_GAMES_32)', $BUILD_DIR_GAMES_32). + Replace('$(BUILD_DIR_GAMES_64)', $BUILD_DIR_GAMES_64). Replace('$(BUILD_DIR_ZIP)', $BUILD_DIR_ZIP). Replace('$(DIST_DIR)', $DIST_DIR). Replace('$(DOC_DIR)', $DOC_DIR). diff --git a/reg/chunithm.reg b/reg/chunithm.reg deleted file mode 100644 index f7c1240..0000000 --- a/reg/chunithm.reg +++ /dev/null @@ -1,27 +0,0 @@ -Windows Registry Editor Version 5.00 - -[HKEY_LOCAL_MACHINE\SYSTEM\SEGA] - -[HKEY_LOCAL_MACHINE\SYSTEM\SEGA\SystemProperty] - -[HKEY_LOCAL_MACHINE\SYSTEM\SEGA\SystemProperty\keychip] -"systemFlag"=dword:00000064 -"modelType"=dword:00000001 -"region"=dword:00000001 -"serverIpIpv4"=hex:c0,a8,8b,00 -"keychipId"=hex:41,36,39,45,2d,30,31,41,39,39,39,39,39,39,39,39 -"platformId"=hex:41,41,56 -"gameId"=hex:53,42,5a,56 - -[HKEY_LOCAL_MACHINE\SYSTEM\SEGA\SystemProperty\static] -"CpuTempWarning"=dword:0000003c -"CpuTempError"=dword:00000050 -"PlatformId"=hex:41,41,56 - -[HKEY_LOCAL_MACHINE\SYSTEM\SEGA\SystemProperty\wirelessNetwork] -"main_nic"=dword:00000000 - -[HKEY_LOCAL_MACHINE\SYSTEM\SEGA\SystemProperty\mount] -"AMFS"="E:\\" -"APPDATA"="Y:\\" -