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 "amex/cfg.h"
#include "amex/config.h"
HRESULT amex_hook_init(const struct amex_config *cfg);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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