mirror of
https://gitea.tendokyu.moe/Hay1tsme/bananatools.git
synced 2026-08-29 07:14:29 -05:00
28 lines
794 B
C
28 lines
794 B
C
#include <windows.h>
|
|
|
|
#include <assert.h>
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
|
|
#include "hooklib/config.h"
|
|
#include "hooklib/dvd.h"
|
|
|
|
void dvd_config_load(struct dvd_config *cfg, const wchar_t *filename)
|
|
{
|
|
assert(cfg != NULL);
|
|
assert(filename != NULL);
|
|
|
|
cfg->enable = GetPrivateProfileIntW(L"dvd", L"enable", 1, filename);
|
|
}
|
|
|
|
void touch_screen_config_load(struct touch_screen_config *cfg, const wchar_t *filename)
|
|
{
|
|
assert(cfg != NULL);
|
|
assert(filename != NULL);
|
|
|
|
cfg->enable = GetPrivateProfileIntW(L"touch", L"enable", 1, filename);
|
|
cfg->remap = GetPrivateProfileIntW(L"touch", L"remap", 1, filename);
|
|
cfg->cursor = GetPrivateProfileIntW(L"touch", L"cursor", 1, filename);
|
|
cfg->setwndptr = GetPrivateProfileIntW(L"touch", L"setwndptr", 0, filename);
|
|
}
|