mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Compare commits
5 Commits
v0.157
...
visual_mod
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
274c773a8b | ||
|
|
93399288bf | ||
|
|
f42b91b408 | ||
|
|
9bf7400f69 | ||
|
|
dff69d48ce |
@@ -53,27 +53,19 @@ 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;
|
DirectoryInfo d = new DirectoryInfo("C:\\ProgramData\\ASUS\\GameVisual");
|
||||||
|
FileInfo[] icms = d.GetFiles("*.icm");
|
||||||
|
|
||||||
try
|
if (icms.Length == 0) return _modes;
|
||||||
|
|
||||||
|
_modes.Add(SplendidGamut.Native, "Gamut - Native");
|
||||||
|
foreach (FileInfo icm in icms)
|
||||||
{
|
{
|
||||||
DirectoryInfo d = new DirectoryInfo("C:\\ProgramData\\ASUS\\GameVisual");
|
if (icm.Name.Contains("sRGB")) _modes.Add(SplendidGamut.sRGB, "Gamut - sRGB");
|
||||||
FileInfo[] icms = d.GetFiles("*.icm");
|
if (icm.Name.Contains("DCIP3")) _modes.Add(SplendidGamut.DCIP3, "Gamut - DCIP3");
|
||||||
if (icms.Length == 0) return _modes;
|
if (icm.Name.Contains("DisplayP3")) _modes.Add(SplendidGamut.DisplayP3, "Gamut - DisplayP3");
|
||||||
|
|
||||||
_modes.Add(SplendidGamut.Native, "Gamut - Native");
|
|
||||||
foreach (FileInfo icm in icms)
|
|
||||||
{
|
|
||||||
if (icm.Name.Contains("sRGB")) _modes.Add(SplendidGamut.sRGB, "Gamut - sRGB");
|
|
||||||
if (icm.Name.Contains("DCIP3")) _modes.Add(SplendidGamut.DCIP3, "Gamut - DCIP3");
|
|
||||||
if (icm.Name.Contains("DisplayP3")) _modes.Add(SplendidGamut.DisplayP3, "Gamut - DisplayP3");
|
|
||||||
}
|
|
||||||
return _modes;
|
|
||||||
}
|
}
|
||||||
catch {
|
return _modes;
|
||||||
return _modes;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Dictionary<SplendidCommand, string> GetVisualModes()
|
public static Dictionary<SplendidCommand, string> GetVisualModes()
|
||||||
|
|||||||
Reference in New Issue
Block a user