支持解锁 Live, 支持自定义角色, 支持换头, 支持 FOV 调整

This commit is contained in:
chinosk
2024-05-26 00:14:40 +08:00
parent fb65a34684
commit acac544183
10 changed files with 289 additions and 8 deletions

View File

@@ -8,14 +8,25 @@ namespace GakumasLocal::Config {
bool enabled = true;
bool enableFreeCamera = false;
int targetFrameRate = 0;
bool unlockAllLive = false;
bool enableLiveCustomeDress = false;
std::string liveCustomeHeadId = "";
std::string liveCustomeCostumeId = "";
void LoadConfig(const std::string& configStr) {
try {
const auto config = nlohmann::json::parse(configStr);
enabled = config["enabled"];
targetFrameRate = config["targetFrameRate"];
enableFreeCamera = config["enableFreeCamera"];
#define GetConfigItem(name) if (config.contains(#name)) name = config[#name]
GetConfigItem(enabled);
GetConfigItem(targetFrameRate);
GetConfigItem(enableFreeCamera);
GetConfigItem(unlockAllLive);
GetConfigItem(enableLiveCustomeDress);
GetConfigItem(liveCustomeHeadId);
GetConfigItem(liveCustomeCostumeId);
}
catch (std::exception& e) {