|
@@ -403,11 +403,6 @@ namespace Ryujinx.HLE.OsHle
|
|
|
{
|
|
{
|
|
|
if (Disposing && !Disposed)
|
|
if (Disposing && !Disposed)
|
|
|
{
|
|
{
|
|
|
- if (NeedsHbAbi && Executables[0].FilePath.EndsWith(Homebrew.TemporaryNroSuffix))
|
|
|
|
|
- {
|
|
|
|
|
- File.Delete(Executables[0].FilePath);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
//If there is still some thread running, disposing the objects is not
|
|
//If there is still some thread running, disposing the objects is not
|
|
|
//safe as the thread may try to access those resources. Instead, we set
|
|
//safe as the thread may try to access those resources. Instead, we set
|
|
|
//the flag to have the Process disposed when all threads finishes.
|
|
//the flag to have the Process disposed when all threads finishes.
|
|
@@ -431,6 +426,11 @@ namespace Ryujinx.HLE.OsHle
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if (NeedsHbAbi && Executables.Count > 0 && Executables[0].FilePath.EndsWith(Homebrew.TemporaryNroSuffix))
|
|
|
|
|
+ {
|
|
|
|
|
+ File.Delete(Executables[0].FilePath);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
INvDrvServices.UnloadProcess(this);
|
|
INvDrvServices.UnloadProcess(this);
|
|
|
|
|
|
|
|
AppletState.Dispose();
|
|
AppletState.Dispose();
|