Ejemplo n.º 1
0
        private static string GetFolder(RomVersion Version)
        {
            string game = Version.Game.ToString()[0].ToString();
            var    dir  = $"{game}/{Version.ToString().ToUpper()}";

            Directory.CreateDirectory(dir);
            return(dir);
        }
Ejemplo n.º 2
0
 public JFileInfo(string file, RomVersion version, FileAddress rom, FileAddress ram, JSectionInfo section)
 {
     File    = file;
     Game    = version.Game.ToString();
     Version = version.ToString();
     Rom     = rom;
     Ram     = ram;
     Sections.Add(section);
 }
Ejemplo n.º 3
0
        private static string GetFolder(RomVersion Version)
        {
            string game = Version.Game.ToString()[0].ToString();
            var    dir  = $"{game}/{Version.ToString().ToUpper()}";

            if (!Disassemble.GccOutput)
            {
                dir += "_r";
            }
            Directory.CreateDirectory(dir);
            return(dir);
        }
Ejemplo n.º 4
0
        public static void SetRomLocation(string key, RomVersion version, string path)
        {
            XPath romPath;

            romPath = settings.Rom.SingleOrDefault(x => x.key == key);

            if (romPath == null)
            {
                romPath = new XPath
                {
                    key     = key,
                    game    = version.Game.ToString(),
                    version = version.ToString()
                };
                settings.Rom.Add(romPath);
            }
            romPath.Value = path;
            settings.SaveToFile(XML_NAME);
        }
Ejemplo n.º 5
0
 private static string GetVersionKey(RomVersion version)
 {
     return($"{version.Game.ToString()}.{version.ToString()}");
 }