mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-19 05:36:29 +02:00
add overload for loading game info from path
This commit is contained in:
parent
9c510fec3e
commit
28eb812018
3 changed files with 33 additions and 13 deletions
|
@ -83,7 +83,7 @@ namespace LibRyujinx
|
|||
Logger.SetEnable(LogLevel.AccessLog, false);
|
||||
|
||||
Logger.AddTarget(new AsyncLogTargetWrapper(
|
||||
new FileLogTarget(ReleaseInformation.GetBaseApplicationDirectory(), "file"),
|
||||
new FileLogTarget(basePath, "file"),
|
||||
1000,
|
||||
AsyncLogTargetOverflowAction.Block
|
||||
));
|
||||
|
@ -115,6 +115,14 @@ namespace LibRyujinx
|
|||
};
|
||||
}
|
||||
|
||||
|
||||
public static GameInfo GetGameInfo(string file)
|
||||
{
|
||||
using var stream = File.Open(file, FileMode.Open);
|
||||
|
||||
return GetGameInfo(stream, file.ToLower().EndsWith("xci"));
|
||||
}
|
||||
|
||||
public static GameInfo GetGameInfo(Stream gameStream, bool isXci)
|
||||
{
|
||||
var gameInfo = new GameInfo();
|
||||
|
@ -530,7 +538,7 @@ namespace LibRyujinx
|
|||
UserChannelPersistence = new UserChannelPersistence();
|
||||
}
|
||||
|
||||
public bool InitializeContext(bool isHostMapped)
|
||||
public bool InitializeContext(bool isHostMapped, bool useNce)
|
||||
{
|
||||
if(LibRyujinx.Renderer == null)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue