Skip to content

Commit 177b73e

Browse files
ComputerEliteComputerElite
authored andcommitted
fix in headset mod installation
1 parent 13b6145 commit 177b73e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

QuestAppVersionSwitcher/Mods/QAVSModManager.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ public static void InstallFirstModFromQueue()
110110
installQueue[0].path = Path.GetDirectoryName(installQueue[0].path) + Path.DirectorySeparatorChar + installQueue[0].filename;
111111
CoreVars.cosmetics.InstallCosmetic(CoreService.coreVars.currentApp, Path.GetExtension(installQueue[0].filename), installQueue[0].path, true);
112112
runningOperations[operationId].isDone = true;
113+
FileManager.DeleteFileIfExisting(installQueue[0].path);
113114
installQueue.RemoveAt(0);
114115
installingMod = false;
115116
InstallFirstModFromQueue();
@@ -128,6 +129,7 @@ public static void InstallFirstModFromQueue()
128129
runningOperations.Add(operationId, new QAVSOperation { type = QAVSOperationType.Error, name = "Error installing mod: " + e.Message + "\n\nTo remove this message restart QuestAppVersionSwitcher", operationId = operationId });
129130
}
130131
modManager.ForceSave();
132+
FileManager.DeleteFileIfExisting(installQueue[0].path);
131133
installQueue.RemoveAt(0);
132134
installingMod = false;
133135
InstallFirstModFromQueue();
@@ -196,7 +198,6 @@ public static void InstallModFromUrl(string url)
196198
{
197199
runningOperations[operationId].isDone = true;
198200
InstallMod(modPath, Path.GetFileName(modPath));
199-
FileManager.DeleteFileIfExisting(modPath);
200201
});
201202
t.Start();
202203
};

QuestAppVersionSwitcher/WebServer.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,6 +1208,7 @@ public BackupInfo GetBackupInfo(string path, bool loadAnyway = false)
12081208
info.isPatchedApk = s.isPatched;
12091209
apk.Dispose();
12101210
}
1211+
File.WriteAllText(path + "info.json", JsonSerializer.Serialize(info));
12111212
return info;
12121213
}
12131214

0 commit comments

Comments
 (0)