mirror of
https://gitea.tendokyu.moe/TeamTofuShop/segatools.git
synced 2026-09-22 22:37:59 +03:00
mercury: rename elisabeth to elizabeth
This commit is contained in:
@@ -42,15 +42,15 @@ void touch_config_load(
|
||||
filename);
|
||||
}
|
||||
|
||||
void elisabeth_config_load(
|
||||
struct elisabeth_config *cfg,
|
||||
void elizabeth_config_load(
|
||||
struct elizabeth_config *cfg,
|
||||
const wchar_t *filename)
|
||||
{
|
||||
assert(cfg != NULL);
|
||||
assert(filename != NULL);
|
||||
|
||||
cfg->enable = GetPrivateProfileIntW(
|
||||
L"elisabeth",
|
||||
L"elizabeth",
|
||||
L"enable",
|
||||
1,
|
||||
filename);
|
||||
@@ -72,5 +72,5 @@ void mercury_hook_config_load(
|
||||
vfd_config_load(&cfg->vfd, filename);
|
||||
mercury_dll_config_load(&cfg->dll, filename);
|
||||
touch_config_load(&cfg->touch, filename);
|
||||
elisabeth_config_load(&cfg->elisabeth, filename);
|
||||
elizabeth_config_load(&cfg->elizabeth, filename);
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#include "mercuryhook/mercury-dll.h"
|
||||
#include "mercuryhook/touch.h"
|
||||
#include "mercuryhook/elisabeth.h"
|
||||
#include "mercuryhook/elizabeth.h"
|
||||
|
||||
#include "platform/config.h"
|
||||
|
||||
@@ -22,7 +22,7 @@ struct mercury_hook_config {
|
||||
struct vfd_config vfd;
|
||||
struct mercury_dll_config dll;
|
||||
struct touch_config touch;
|
||||
struct elisabeth_config elisabeth;
|
||||
struct elizabeth_config elizabeth;
|
||||
};
|
||||
|
||||
void mercury_dll_config_load(
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include "mercuryhook/config.h"
|
||||
#include "mercuryhook/io4.h"
|
||||
#include "mercuryhook/mercury-dll.h"
|
||||
#include "mercuryhook/elisabeth.h"
|
||||
#include "mercuryhook/elizabeth.h"
|
||||
#include "mercuryhook/touch.h"
|
||||
|
||||
#include "platform/platform.h"
|
||||
@@ -107,7 +107,7 @@ static DWORD CALLBACK mercury_pre_startup(void)
|
||||
}
|
||||
|
||||
/* Start elisabeth Hooks for the LED and IO Board DLLs */
|
||||
elisabeth_hook_init(&mercury_hook_cfg.elisabeth);
|
||||
elizabeth_hook_init(&mercury_hook_cfg.elizabeth);
|
||||
|
||||
touch_hook_init(&mercury_hook_cfg.touch);
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "mercuryhook/elisabeth.h"
|
||||
#include "mercuryhook/elizabeth.h"
|
||||
#include "mercuryhook/mercury-dll.h"
|
||||
|
||||
#include "hook/table.h"
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
#include "util/dprintf.h"
|
||||
|
||||
/* Hooks targeted DLLs dynamically loaded by elisabeth. */
|
||||
/* Hooks targeted DLLs dynamically loaded by elizabeth. */
|
||||
|
||||
static void dll_hook_insert_hooks(HMODULE target);
|
||||
static FARPROC WINAPI my_GetProcAddress(HMODULE hModule, const char *name);
|
||||
@@ -33,13 +33,13 @@ static const struct hook_symbol win32_hooks[] = {
|
||||
}
|
||||
};
|
||||
|
||||
HRESULT elisabeth_hook_init(struct elisabeth_config *cfg)
|
||||
HRESULT elizabeth_hook_init(struct elizabeth_config *cfg)
|
||||
{
|
||||
if (!cfg->enable) {
|
||||
return S_OK;
|
||||
}
|
||||
dll_hook_insert_hooks(NULL);
|
||||
dprintf("Elisabeth: Init\n");
|
||||
dprintf("elizabeth: Init\n");
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ FARPROC WINAPI my_GetProcAddress(HMODULE hModule, const char *name)
|
||||
/* Intercept the call to initialize the LED board. */
|
||||
static int my_USBIntLED_Init()
|
||||
{
|
||||
dprintf("Elisabeth: my_USBIntLED_Init hit!\n");
|
||||
dprintf("elizabeth: my_USBIntLED_Init hit!\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -8,8 +8,8 @@ struct led_data {
|
||||
uint8_t rgba[480 * 4];
|
||||
};
|
||||
|
||||
struct elisabeth_config {
|
||||
struct elizabeth_config {
|
||||
bool enable;
|
||||
};
|
||||
|
||||
HRESULT elisabeth_hook_init(struct elisabeth_config *cfg);
|
||||
HRESULT elizabeth_hook_init(struct elizabeth_config *cfg);
|
||||
@@ -3,7 +3,7 @@
|
||||
#include <windows.h>
|
||||
|
||||
#include "mercuryio/mercuryio.h"
|
||||
#include "mercuryhook/elisabeth.h"
|
||||
#include "mercuryhook/elizabeth.h"
|
||||
|
||||
struct mercury_dll {
|
||||
uint16_t api_version;
|
||||
|
||||
@@ -25,8 +25,8 @@ shared_library(
|
||||
'io4.h',
|
||||
'mercury-dll.c',
|
||||
'mercury-dll.h',
|
||||
'elisabeth.h',
|
||||
'elisabeth.c',
|
||||
'elizabeth.h',
|
||||
'elizabeth.c',
|
||||
'touch.h',
|
||||
'touch.c'
|
||||
],
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
|
||||
#include "mercuryio/mercuryio.h"
|
||||
#include "mercuryio/config.h"
|
||||
#include "mercuryhook/elisabeth.h"
|
||||
#include "mercuryhook/elizabeth.h"
|
||||
|
||||
#include "util/env.h"
|
||||
|
||||
static unsigned int __stdcall mercury_io_touch_thread_proc(void *ctx);
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "mercuryhook/elisabeth.h"
|
||||
#include "mercuryhook/elizabeth.h"
|
||||
|
||||
enum {
|
||||
MERCURY_IO_OPBTN_TEST = 0x01,
|
||||
|
||||
Reference in New Issue
Block a user