Esempio n. 1
0
        // Returns the number of saves migrated
        public int Migrate()
        {
            string appDataPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);

            string oldBasePath = Path.Combine(appDataPath, "RyuFs");
            string newBasePath = Path.Combine(appDataPath, "Ryujinx");

            string oldSaveDir = Path.Combine(oldBasePath, "nand/user/save");

            CopyRyuFs(oldBasePath, newBasePath);

            SaveImporter importer = new SaveImporter(oldSaveDir, Device.System.FsClient);

            return(importer.Import());
        }
Esempio n. 2
0
        // Returns the number of saves migrated
        public int Migrate()
        {
            // Make sure FsClient is initialized
            _virtualFileSystem.Reload();

            string appDataPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);

            string oldBasePath = Path.Combine(appDataPath, "RyuFs");
            string newBasePath = Path.Combine(appDataPath, "Ryujinx");

            string oldSaveDir = Path.Combine(oldBasePath, "nand/user/save");

            CopyRyuFs(oldBasePath, newBasePath);

            SaveImporter importer = new SaveImporter(oldSaveDir, _virtualFileSystem.FsClient);

            return(importer.Import());
        }