コード例 #1
0
ファイル: Migration.cs プロジェクト: degasus/Ryujinx
        // 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());
        }
コード例 #2
0
ファイル: Migration.cs プロジェクト: ski982/Ryujinx-1
        // 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());
        }