Compare commits

..

5 Commits

Author SHA1 Message Date
Serge
274c773a8b Init fallbacks 2024-03-07 22:23:12 +01:00
Serge
93399288bf Save visuals in UI 2024-03-07 22:00:27 +01:00
Serge
f42b91b408 Eye-care mode 2024-03-07 21:50:52 +01:00
Serge
9bf7400f69 UI Tweaks 2024-03-07 21:31:41 +01:00
Serge
dff69d48ce Visual Modes 2024-03-07 20:56:06 +01:00

View File

@@ -53,12 +53,9 @@ namespace GHelper.Display
{ {
Dictionary<SplendidGamut, string> _modes = new Dictionary<SplendidGamut, string>(); Dictionary<SplendidGamut, string> _modes = new Dictionary<SplendidGamut, string>();
if (!Directory.Exists("C:\\ProgramData\\ASUS\\GameVisual")) return _modes;
try
{
DirectoryInfo d = new DirectoryInfo("C:\\ProgramData\\ASUS\\GameVisual"); DirectoryInfo d = new DirectoryInfo("C:\\ProgramData\\ASUS\\GameVisual");
FileInfo[] icms = d.GetFiles("*.icm"); FileInfo[] icms = d.GetFiles("*.icm");
if (icms.Length == 0) return _modes; if (icms.Length == 0) return _modes;
_modes.Add(SplendidGamut.Native, "Gamut - Native"); _modes.Add(SplendidGamut.Native, "Gamut - Native");
@@ -70,11 +67,6 @@ namespace GHelper.Display
} }
return _modes; return _modes;
} }
catch {
return _modes;
}
}
public static Dictionary<SplendidCommand, string> GetVisualModes() public static Dictionary<SplendidCommand, string> GetVisualModes()
{ {