private static bool RenameRomFileStandard(Rom rom, string changeFileName, bool changeZipFileName) { string oldFile = rom.Platform.DefaultRomPath + "\\" + rom.FileName; string newFile = rom.Platform.DefaultRomPath + "\\" + changeFileName; if (File.Exists(newFile)) { throw new Exception("A file named \"" + newFile + "\" already exists!"); } File.Move(oldFile, newFile); rom.FileName = changeFileName; if (changeZipFileName && RomFunctions.GetFileExtension(newFile) == ".zip") { RomFunctions.ChangeRomNameInsideZip(newFile); } return(true); }