public void TestInclusion()
        {
            GameFs gameFs = new GameFs(ExternalPaths.GameInstallPath, null);

            Task.WaitAll(gameFs.Initialize());
            SiiFileReader reader = new SiiFileReader(gameFs.GetIncludeProvider("def"));

            Task.WaitAll(reader.ReadSiiFile(gameFs.OpenFile("def/country.sii")));
        }
Exemple #2
0
        public void TestGetInclusionProvider()
        {
            GameFs gameFs = new GameFs(ExternalPaths.GameInstallPath, null /* support for mods not present yet */);

            Drive.SiiFile.IInclusionProvider inclusionProvider = gameFs.GetIncludeProvider();

            Assert.IsNotNull(inclusionProvider);
            Assert.IsInstanceOfType(inclusionProvider, typeof(GameFsIncludeProvider));
        }