// Use this for initialization void Start() { if (FezManager.FezPath != null) { // Something went wrong. } FezManager.FezPath = PlayerPrefs.GetString("FezContentPath"); if (!string.IsNullOrEmpty(FezManager.FezPath)) { Continue(); return; } if (Application.platform == RuntimePlatform.Android) { // Default path - FNADroid FezManager.FezPath = "/sdcard/Android/data/com.angelde.fnadroid/game/Content"; if (!Directory.Exists(FezManager.FezPath)) { // FNADroid with FEZDroid not found - falling back to "copy to phone" FezManager.FezPath = "/sdcard/Content"; } } else { FezManager.FezPath = FezFinder.FindFEZ() ?? @"C:\Program Files (x86)\Steam\steamapps\common\FEZ\FEZ.exe"; FezManager.FezPath = Path.Combine(Directory.GetParent(FezManager.FezPath).FullName, "Content"); } PathField.text = FezManager.FezPath = CorrectPath(FezManager.FezPath); }
public static string FindFEZ() { string path; if ((path = FezFinder.GetSteamPath()) != null) { return(path); } else if (false) { //TODO check other paths //How does GOG handle FEZ? } else { //Nothing found } return(null); }