refactor all common parts and games

This commit is contained in:
2025-04-17 19:31:37 +02:00
parent a6126bf290
commit ae3dd666f4
496 changed files with 236 additions and 344 deletions

35
games/cmhook/config.h Normal file
View File

@ -0,0 +1,35 @@
#pragma once
#include <stddef.h>
#include "board/config.h"
#include "hooklib/dvd.h"
#include "hooklib/touch.h"
#include "hooklib/printer.h"
#include "cmhook/cm-dll.h"
#include "platform/config.h"
#include "unityhook/config.h"
struct cm_hook_config {
struct platform_config platform;
struct aime_config aime;
struct dvd_config dvd;
struct io4_config io4;
struct vfd_config vfd;
struct cm_dll_config dll;
struct touch_screen_config touch;
struct printer_config printer;
struct unity_config unity;
};
void cm_dll_config_load(
struct cm_dll_config *cfg,
const wchar_t *filename);
void cm_hook_config_load(
struct cm_hook_config *cfg,
const wchar_t *filename);