// Loads Settings if a config file exists private void LoadSettings() { // If file exists, then load settings if (ES2.Exists(Application.persistentDataPath + "/" + sConfigFileName)) { ES2Reader configReader = ES2Reader.Create(Application.persistentDataPath + "/" + sConfigFileName); LoadConfig(configReader); configReader.Dispose(); } else // Otherwise, detect display settings { DetectDisplaySettings(); QualitySettings.vSyncCount = 1; } if (ES2.Exists(Application.persistentDataPath + "/" + sInputFileName)) { ES2Reader inputReader = ES2Reader.Create(Application.persistentDataPath + "/" + sInputFileName); LoadInputMaps(inputReader); LoadGamepadConfigMaps(inputReader); inputReader.Dispose(); } }