Quick fix for rsa.ts

This commit is contained in:
Thoronium
2023-02-27 17:29:19 -07:00
committed by GitHub
parent 62a97d86cb
commit b18f7a0cf6

View File

@@ -3,9 +3,7 @@ import { dataDir } from '@tauri-apps/api/path'
import DownloadHandler from './download' import DownloadHandler from './download'
import { getGameFolder } from './game' import { getGameFolder } from './game'
interface IProps { const downloadHandler = new DownloadHandler()
downloadHandler: DownloadHandler
}
export async function patchRSA() { export async function patchRSA() {
const rsaExists = await invoke('dir_exists', { const rsaExists = await invoke('dir_exists', {
@@ -20,7 +18,7 @@ export async function patchRSA() {
console.log('Downloading rsa patch to backup location') console.log('Downloading rsa patch to backup location')
// Download RSA patch to backup location // Download RSA patch to backup location
const downloadedRSA = await downloadRSA(this.props.downloadHandler) const downloadedRSA = await downloadRSA(downloadHandler)
if (!downloadedRSA) { if (!downloadedRSA) {
console.log(await getBackupRSAPath()) console.log(await getBackupRSAPath())