build: unifica .clang-format/.clang-tidy i exclou external/ i spv/ amb dummies
This commit is contained in:
@@ -125,11 +125,16 @@ namespace Options {
|
||||
video.supersampling = node["supersampling"].get_value<bool>();
|
||||
if (node.contains("scaling_mode")) {
|
||||
auto s = node["scaling_mode"].get_value<std::string>();
|
||||
if (s == "disabled") video.scaling_mode = ScalingMode::DISABLED;
|
||||
else if (s == "stretch") video.scaling_mode = ScalingMode::STRETCH;
|
||||
else if (s == "letterbox") video.scaling_mode = ScalingMode::LETTERBOX;
|
||||
else if (s == "overscan") video.scaling_mode = ScalingMode::OVERSCAN;
|
||||
else video.scaling_mode = ScalingMode::INTEGER;
|
||||
if (s == "disabled")
|
||||
video.scaling_mode = ScalingMode::DISABLED;
|
||||
else if (s == "stretch")
|
||||
video.scaling_mode = ScalingMode::STRETCH;
|
||||
else if (s == "letterbox")
|
||||
video.scaling_mode = ScalingMode::LETTERBOX;
|
||||
else if (s == "overscan")
|
||||
video.scaling_mode = ScalingMode::OVERSCAN;
|
||||
else
|
||||
video.scaling_mode = ScalingMode::INTEGER;
|
||||
}
|
||||
if (node.contains("vsync"))
|
||||
video.vsync = node["vsync"].get_value<bool>();
|
||||
@@ -290,11 +295,21 @@ namespace Options {
|
||||
{
|
||||
const char* m = "integer";
|
||||
switch (video.scaling_mode) {
|
||||
case ScalingMode::DISABLED: m = "disabled"; break;
|
||||
case ScalingMode::STRETCH: m = "stretch"; break;
|
||||
case ScalingMode::LETTERBOX: m = "letterbox"; break;
|
||||
case ScalingMode::OVERSCAN: m = "overscan"; break;
|
||||
case ScalingMode::INTEGER: m = "integer"; break;
|
||||
case ScalingMode::DISABLED:
|
||||
m = "disabled";
|
||||
break;
|
||||
case ScalingMode::STRETCH:
|
||||
m = "stretch";
|
||||
break;
|
||||
case ScalingMode::LETTERBOX:
|
||||
m = "letterbox";
|
||||
break;
|
||||
case ScalingMode::OVERSCAN:
|
||||
m = "overscan";
|
||||
break;
|
||||
case ScalingMode::INTEGER:
|
||||
m = "integer";
|
||||
break;
|
||||
}
|
||||
file << " scaling_mode: " << m << " # disabled|stretch|letterbox|overscan|integer\n";
|
||||
}
|
||||
|
||||
@@ -46,9 +46,9 @@ namespace Options {
|
||||
TextureFilter texture_filter{TextureFilter::NEAREST};
|
||||
int downscale_algo{Defaults::Video::DOWNSCALE_ALGO};
|
||||
int internal_resolution{Defaults::Video::INTERNAL_RESOLUTION}; // Multiplicador enter ≥ 1, clampat a max_zoom
|
||||
std::string current_shader{"postfx"}; // "postfx" o "crtpi"
|
||||
std::string current_postfx_preset{"CRT"}; // Nom del preset PostFX actiu
|
||||
std::string current_crtpi_preset{"DEFAULT"}; // Nom del preset CrtPi actiu
|
||||
std::string current_shader{"postfx"}; // "postfx" o "crtpi"
|
||||
std::string current_postfx_preset{"CRT"}; // Nom del preset PostFX actiu
|
||||
std::string current_crtpi_preset{"DEFAULT"}; // Nom del preset CrtPi actiu
|
||||
};
|
||||
|
||||
// Opcions del render info
|
||||
|
||||
Reference in New Issue
Block a user