mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-12 23:24:35 +01:00
Quick fix for rsa.ts
This commit is contained in:
@@ -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())
|
||||||
|
|||||||
Reference in New Issue
Block a user