private static string ScrollTypes2String(ScrollTypes t) { switch (t) { case ScrollTypes.Smooth: return("Smooth"); case ScrollTypes.Original: return("Original"); default: return("Smooth"); } }
private static void applyAllSettings() { Fullscreen = ini["Graphics"]["Fullscreen"].Equals("1") ? true : false; SmoothScaling = ini["Graphics"]["Smooth Scaling"].Equals("1") ? true : false; ScrollType = String2ScrollTypes(ini["Graphics"]["Scroll Type"]); }