unityhook: managing VFS redirection and loading assemblies

This commit is contained in:
2024-04-15 20:26:25 +07:00
parent 47a65e5e51
commit 49f7189d35
15 changed files with 460 additions and 296 deletions

12
unityhook/config.c Normal file
View File

@ -0,0 +1,12 @@
#include "config.h"
void unity_config_load(struct unity_config *cfg, const wchar_t *filename) {
GetPrivateProfileStringW(
L"unity",
L"targetAssembly",
L"",
cfg->target_assembly,
_countof(cfg->target_assembly),
filename
);
}