New entry
This commit is contained in:
@@ -154,6 +154,9 @@ namespace AssetStudio
|
|||||||
case GameType.FantasyOfWind:
|
case GameType.FantasyOfWind:
|
||||||
reader = DecryptFantasyOfWind(reader);
|
reader = DecryptFantasyOfWind(reader);
|
||||||
break;
|
break;
|
||||||
|
case GameType.ShiningNikki:
|
||||||
|
reader = ParseShiningNikki(reader);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (reader.FileType == FileType.BundleFile && game.Type.IsBlockFile())
|
if (reader.FileType == FileType.BundleFile && game.Type.IsBlockFile())
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ namespace AssetStudio
|
|||||||
Games.Add(index++, new Game(GameType.OPFP));
|
Games.Add(index++, new Game(GameType.OPFP));
|
||||||
Games.Add(index++, new Game(GameType.AlchemyStars));
|
Games.Add(index++, new Game(GameType.AlchemyStars));
|
||||||
Games.Add(index++, new Game(GameType.FantasyOfWind));
|
Games.Add(index++, new Game(GameType.FantasyOfWind));
|
||||||
|
Games.Add(index++, new Game(GameType.ShiningNikki));
|
||||||
}
|
}
|
||||||
public static Game GetGame(int index)
|
public static Game GetGame(int index)
|
||||||
{
|
{
|
||||||
@@ -127,7 +128,8 @@ namespace AssetStudio
|
|||||||
EnsembleStars,
|
EnsembleStars,
|
||||||
OPFP,
|
OPFP,
|
||||||
AlchemyStars,
|
AlchemyStars,
|
||||||
FantasyOfWind
|
FantasyOfWind,
|
||||||
|
ShiningNikki
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class GameTypes
|
public static class GameTypes
|
||||||
|
|||||||
@@ -361,5 +361,20 @@ namespace AssetStudio
|
|||||||
|
|
||||||
return new FileReader(reader.FullPath, ms);
|
return new FileReader(reader.FullPath, ms);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static FileReader ParseShiningNikki(FileReader reader)
|
||||||
|
{
|
||||||
|
var data = reader.ReadBytes(0x1000);
|
||||||
|
var idx = data.Search("UnityFS");
|
||||||
|
if (idx == -1)
|
||||||
|
{
|
||||||
|
reader.Position = 0;
|
||||||
|
return reader;
|
||||||
|
}
|
||||||
|
var stream = new BlockStream(reader.BaseStream, idx);
|
||||||
|
return new FileReader(reader.FullPath, stream);
|
||||||
|
}
|
||||||
|
return new FileReader(reader.FullPath, ms);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user