1
0
mirror of https://gitea.tendokyu.moe/Dniel97/segatools.git synced 2024-11-27 22:40:48 +01:00

amex/config.c: Rename from cfg.c

Easier to type and more consistent with its identifiers.
This commit is contained in:
Tau 2019-05-15 20:08:35 -04:00
parent 3e91ac2393
commit 6d933eb8f4
18 changed files with 23 additions and 14 deletions

View File

@ -2,6 +2,6 @@
#include <windows.h> #include <windows.h>
#include "amex/cfg.h" #include "amex/config.h"
HRESULT amex_hook_init(const struct amex_config *cfg); HRESULT amex_hook_init(const struct amex_config *cfg);

View File

@ -6,7 +6,7 @@
#include <stdint.h> #include <stdint.h>
#include <stdlib.h> #include <stdlib.h>
#include "amex/cfg.h" #include "amex/config.h"
void ds_config_load(struct ds_config *cfg, const wchar_t *filename) void ds_config_load(struct ds_config *cfg, const wchar_t *filename)
{ {

View File

@ -7,6 +7,7 @@
#include <stdint.h> #include <stdint.h>
#include <string.h> #include <string.h>
#include "amex/config.h"
#include "amex/ds.h" #include "amex/ds.h"
#include "amex/nvram.h" #include "amex/nvram.h"

View File

@ -2,7 +2,7 @@
#include <windows.h> #include <windows.h>
#include "amex/cfg.h" #include "amex/config.h"
DEFINE_GUID( DEFINE_GUID(
ds_guid, ds_guid,

View File

@ -10,7 +10,7 @@
#include <assert.h> #include <assert.h>
#include "amex/cfg.h" #include "amex/config.h"
#include "amex/eeprom.h" #include "amex/eeprom.h"
#include "amex/nvram.h" #include "amex/nvram.h"

View File

@ -2,7 +2,7 @@
#include <windows.h> #include <windows.h>
#include "amex/cfg.h" #include "amex/config.h"
DEFINE_GUID( DEFINE_GUID(
eeprom_guid, eeprom_guid,

View File

@ -4,6 +4,7 @@
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#include "amex/config.h"
#include "amex/gpio.h" #include "amex/gpio.h"
#include "hook/iohook.h" #include "hook/iohook.h"

View File

@ -2,7 +2,7 @@
#include <windows.h> #include <windows.h>
#include "amex/cfg.h" #include "amex/config.h"
DEFINE_GUID( DEFINE_GUID(
gpio_guid, gpio_guid,

View File

@ -8,6 +8,7 @@
#include <assert.h> #include <assert.h>
#include <stddef.h> #include <stddef.h>
#include "amex/config.h"
#include "amex/jvs.h" #include "amex/jvs.h"
#include "hook/iobuf.h" #include "hook/iobuf.h"

View File

@ -2,7 +2,7 @@
#include <windows.h> #include <windows.h>
#include "amex/cfg.h" #include "amex/config.h"
#include "jvs/jvs-bus.h" #include "jvs/jvs-bus.h"

View File

@ -9,8 +9,8 @@ amex_lib = static_library(
sources : [ sources : [
'amex.c', 'amex.c',
'amex.h', 'amex.h',
'cfg.c', 'config.c',
'cfg.h', 'config.h',
'ds.c', 'ds.c',
'ds.h', 'ds.h',
'eeprom.c', 'eeprom.c',

View File

@ -10,6 +10,7 @@
#include <assert.h> #include <assert.h>
#include "amex/config.h"
#include "amex/sram.h" #include "amex/sram.h"
#include "amex/nvram.h" #include "amex/nvram.h"

View File

@ -2,7 +2,7 @@
#include <windows.h> #include <windows.h>
#include "amex/cfg.h" #include "amex/config.h"
DEFINE_GUID( DEFINE_GUID(
sram_guid, sram_guid,

View File

@ -4,7 +4,7 @@
#include <stdlib.h> #include <stdlib.h>
#include "amex/amex.h" #include "amex/amex.h"
#include "amex/cfg.h" #include "amex/config.h"
#include "chunihook/jvs.h" #include "chunihook/jvs.h"
#include "chunihook/slider.h" #include "chunihook/slider.h"

View File

@ -4,7 +4,7 @@
#include <stdlib.h> #include <stdlib.h>
#include "amex/amex.h" #include "amex/amex.h"
#include "amex/cfg.h" #include "amex/config.h"
#include "board/sg-reader.h" #include "board/sg-reader.h"

View File

@ -4,7 +4,7 @@
#include <stdlib.h> #include <stdlib.h>
#include "amex/amex.h" #include "amex/amex.h"
#include "amex/cfg.h" #include "amex/config.h"
#include "board/sg-reader.h" #include "board/sg-reader.h"
@ -17,11 +17,13 @@
#include "idzhook/jvs.h" #include "idzhook/jvs.h"
#include "platform/amvideo.h"
#include "platform/hwmon.h" #include "platform/hwmon.h"
#include "platform/nusec.h" #include "platform/nusec.h"
#include "util/dprintf.h" #include "util/dprintf.h"
static HMODULE idz_hook_mod;
static process_entry_t idz_startup; static process_entry_t idz_startup;
static DWORD CALLBACK idz_pre_startup(void) static DWORD CALLBACK idz_pre_startup(void)
@ -37,6 +39,7 @@ static DWORD CALLBACK idz_pre_startup(void)
/* Initialize platform API emulation */ /* Initialize platform API emulation */
amvideo_hook_init(idz_hook_mod);
hwmon_hook_init(); hwmon_hook_init();
nusec_hook_init(); nusec_hook_init();
@ -72,6 +75,8 @@ BOOL WINAPI DllMain(HMODULE mod, DWORD cause, void *ctx)
return TRUE; return TRUE;
} }
idz_hook_mod = mod;
hr = process_hijack_startup(idz_pre_startup, &idz_startup); hr = process_hijack_startup(idz_pre_startup, &idz_startup);
if (!SUCCEEDED(hr)) { if (!SUCCEEDED(hr)) {

View File

@ -1,6 +1,6 @@
#include <windows.h> #include <windows.h>
#include "amex/cfg.h" #include "amex/config.h"
#include "amex/ds.h" #include "amex/ds.h"
#include "hook/process.h" #include "hook/process.h"