forked from TeamTofuShop/segatools
refactor all common parts and games
This commit is contained in:
16
common/unityhook/config.c
Normal file
16
common/unityhook/config.c
Normal file
@ -0,0 +1,16 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "config.h"
|
||||
|
||||
void unity_config_load(struct unity_config *cfg, const wchar_t *filename) {
|
||||
cfg->enable = GetPrivateProfileIntW(L"unity", L"enable", 1, filename);
|
||||
|
||||
GetPrivateProfileStringW(
|
||||
L"unity",
|
||||
L"targetAssembly",
|
||||
L"",
|
||||
cfg->target_assembly,
|
||||
_countof(cfg->target_assembly),
|
||||
filename
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user