mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-06 15:26:26 +02:00
add interface fore loading games from storage
This commit is contained in:
parent
145cd0b2b1
commit
56a6ac2a65
5 changed files with 507 additions and 5 deletions
|
@ -41,6 +41,12 @@ namespace LibRyujinx
|
|||
return LoadApplication(path);
|
||||
}
|
||||
|
||||
public static bool LoadApplication(Stream stream, bool isXci)
|
||||
{
|
||||
var emulationContext = SwitchDevice.EmulationContext;
|
||||
return (isXci ? emulationContext?.LoadXci(stream) : emulationContext.LoadNsp(stream)) ?? false;
|
||||
}
|
||||
|
||||
public static bool LoadApplication(string path)
|
||||
{
|
||||
var emulationContext = SwitchDevice.EmulationContext;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue