mirror of
https://git.chinosk6.cn/chinosk/gkms-local.git
synced 2026-02-04 09:04:52 +00:00
增加 fps 设置
This commit is contained in:
@@ -7,12 +7,14 @@ namespace GakumasLocal::Config {
|
||||
|
||||
bool enabled = true;
|
||||
bool enableFreeCamera = false;
|
||||
int targetFrameRate = 0;
|
||||
|
||||
void LoadConfig(const std::string& configStr) {
|
||||
try {
|
||||
const auto config = nlohmann::json::parse(configStr);
|
||||
|
||||
enabled = config["enabled"];
|
||||
targetFrameRate = config["targetFrameRate"];
|
||||
enableFreeCamera = config["enableFreeCamera"];
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user