mirror of
https://gitea.tendokyu.moe/Hay1tsme/segatools.git
synced 2024-11-28 11:00:49 +01:00
board/config.c: Add struct aime_config
This commit is contained in:
parent
7b665b1288
commit
924c1d8fdb
15
board/config.c
Normal file
15
board/config.c
Normal file
@ -0,0 +1,15 @@
|
||||
#include <windows.h>
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#include "board/config.h"
|
||||
|
||||
void aime_config_load(struct aime_config *cfg, const wchar_t *filename)
|
||||
{
|
||||
assert(cfg != NULL);
|
||||
assert(filename != NULL);
|
||||
|
||||
cfg->enable = GetPrivateProfileIntW(L"aime", L"enable", 1, filename);
|
||||
}
|
10
board/config.h
Normal file
10
board/config.h
Normal file
@ -0,0 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
|
||||
struct aime_config {
|
||||
bool enable;
|
||||
};
|
||||
|
||||
void aime_config_load(struct aime_config *cfg, const wchar_t *filename);
|
@ -7,6 +7,8 @@ board_lib = static_library(
|
||||
capnhook.get_variable('hook_dep'),
|
||||
],
|
||||
sources : [
|
||||
'config.c',
|
||||
'config.h',
|
||||
'guid.c',
|
||||
'guid.h',
|
||||
'io3.c',
|
||||
|
Loading…
Reference in New Issue
Block a user