增加自定义画质设置

This commit is contained in:
chinosk
2024-05-26 21:34:18 +08:00
parent acac544183
commit 53cb596845
15 changed files with 785 additions and 293 deletions

View File

@@ -14,6 +14,14 @@ namespace GakumasLocal::Config {
std::string liveCustomeHeadId = "";
std::string liveCustomeCostumeId = "";
bool useCustomeGraphicSettings = false;
float renderScale = 0.77f;
int qualitySettingsLevel = 3;
int volumeIndex = 3;
int maxBufferPixel = 3384;
int reflectionQualityLevel = 4;
int lodQualityLevel = 4;
void LoadConfig(const std::string& configStr) {
try {
const auto config = nlohmann::json::parse(configStr);
@@ -27,6 +35,13 @@ namespace GakumasLocal::Config {
GetConfigItem(enableLiveCustomeDress);
GetConfigItem(liveCustomeHeadId);
GetConfigItem(liveCustomeCostumeId);
GetConfigItem(useCustomeGraphicSettings);
GetConfigItem(renderScale);
GetConfigItem(qualitySettingsLevel);
GetConfigItem(volumeIndex);
GetConfigItem(maxBufferPixel);
GetConfigItem(reflectionQualityLevel);
GetConfigItem(lodQualityLevel);
}
catch (std::exception& e) {