Fix patch paths

This commit is contained in:
Thoronium
2023-02-27 19:26:04 -07:00
parent b18f7a0cf6
commit 9e6029faf3
4 changed files with 8 additions and 8 deletions

View File

@@ -58,9 +58,10 @@ export async function patchGame() {
}
// Copy the patch to game files
const replaced = await invoke('copy_file', {
const replaced = await invoke('copy_file_with_new_name', {
path: (await getBackupRSAPath()) + '\\version.dll',
newPath: await getGameRSAPath(),
newName: 'version.dll',
})
if (!replaced) {
@@ -86,7 +87,7 @@ export async function getGameRSAPath() {
return null
}
return gameData
return (gameData + '\\').replace(/\\/g, '/')
}
export async function getBackupRSAPath() {
@@ -107,4 +108,4 @@ export async function downloadRSA(manager: DownloadHandler) {
})
return true
}
}