public string GetFilepath(string filepath) { string dirPath = Path.Combine(Settings.EntryDirectory, ISOHelper.GetTypeString(Context)); if (!string.IsNullOrEmpty(Mod)) { string modDirPath = Path.Combine(dirPath, Mod); string modPath = Path.Combine(modDirPath, filepath); if (File.Exists(modPath)) { return(modPath); } } string path = Path.Combine(dirPath, filepath); return(path); }