forked from jaildesigner-jailgames/jaildoctors_dilemma
arreglos en make y cmake
This commit is contained in:
@@ -682,25 +682,39 @@ auto loadPostFXFromFile() -> bool {
|
||||
preset.name = p["name"].get_value<std::string>();
|
||||
}
|
||||
if (p.contains("vignette")) {
|
||||
try { preset.vignette = p["vignette"].get_value<float>(); } catch (...) {}
|
||||
try {
|
||||
preset.vignette = p["vignette"].get_value<float>();
|
||||
} catch (...) {}
|
||||
}
|
||||
if (p.contains("scanlines")) {
|
||||
try { preset.scanlines = p["scanlines"].get_value<float>(); } catch (...) {}
|
||||
try {
|
||||
preset.scanlines = p["scanlines"].get_value<float>();
|
||||
} catch (...) {}
|
||||
}
|
||||
if (p.contains("chroma")) {
|
||||
try { preset.chroma = p["chroma"].get_value<float>(); } catch (...) {}
|
||||
try {
|
||||
preset.chroma = p["chroma"].get_value<float>();
|
||||
} catch (...) {}
|
||||
}
|
||||
if (p.contains("mask")) {
|
||||
try { preset.mask = p["mask"].get_value<float>(); } catch (...) {}
|
||||
try {
|
||||
preset.mask = p["mask"].get_value<float>();
|
||||
} catch (...) {}
|
||||
}
|
||||
if (p.contains("gamma")) {
|
||||
try { preset.gamma = p["gamma"].get_value<float>(); } catch (...) {}
|
||||
try {
|
||||
preset.gamma = p["gamma"].get_value<float>();
|
||||
} catch (...) {}
|
||||
}
|
||||
if (p.contains("curvature")) {
|
||||
try { preset.curvature = p["curvature"].get_value<float>(); } catch (...) {}
|
||||
try {
|
||||
preset.curvature = p["curvature"].get_value<float>();
|
||||
} catch (...) {}
|
||||
}
|
||||
if (p.contains("bleeding")) {
|
||||
try { preset.bleeding = p["bleeding"].get_value<float>(); } catch (...) {}
|
||||
try {
|
||||
preset.bleeding = p["bleeding"].get_value<float>();
|
||||
} catch (...) {}
|
||||
}
|
||||
postfx_presets.push_back(preset);
|
||||
}
|
||||
@@ -794,11 +808,11 @@ auto savePostFXToFile() -> bool {
|
||||
|
||||
// Cargar los presets recién creados
|
||||
postfx_presets.clear();
|
||||
postfx_presets.push_back({"CRT", 0.6F, 0.7F, 0.15F, 0.6F, 0.8F, 0.0F, 0.0F});
|
||||
postfx_presets.push_back({"NTSC", 0.4F, 0.5F, 0.2F, 0.4F, 0.5F, 0.0F, 0.6F});
|
||||
postfx_presets.push_back({"CURVED", 0.5F, 0.6F, 0.1F, 0.5F, 0.7F, 0.8F, 0.0F});
|
||||
postfx_presets.push_back({"SCANLINES",0.0F, 0.8F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F});
|
||||
postfx_presets.push_back({"SUBTLE", 0.3F, 0.4F, 0.05F, 0.0F, 0.3F, 0.0F, 0.0F});
|
||||
postfx_presets.push_back({"CRT", 0.6F, 0.7F, 0.15F, 0.6F, 0.8F, 0.0F, 0.0F});
|
||||
postfx_presets.push_back({"NTSC", 0.4F, 0.5F, 0.2F, 0.4F, 0.5F, 0.0F, 0.6F});
|
||||
postfx_presets.push_back({"CURVED", 0.5F, 0.6F, 0.1F, 0.5F, 0.7F, 0.8F, 0.0F});
|
||||
postfx_presets.push_back({"SCANLINES", 0.0F, 0.8F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F});
|
||||
postfx_presets.push_back({"SUBTLE", 0.3F, 0.4F, 0.05F, 0.0F, 0.3F, 0.0F, 0.0F});
|
||||
current_postfx_preset = 0;
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user