diff --git a/src/main/services/dependencyService.ts b/src/main/services/dependencyService.ts index e2823ee..1372087 100644 --- a/src/main/services/dependencyService.ts +++ b/src/main/services/dependencyService.ts @@ -111,8 +111,8 @@ class DependencyService { const criticalUrls = [ { url: 'https://raw.githubusercontent.com', name: 'GitHub' }, - { url: 'https://vrpirates.wiki', name: 'VRP Wiki' }, - { url: 'https://go.vrpyourself.online', name: 'VRP Mirror' } + { url: 'https://go.srcdl1.xyz/', name: 'VRP Mirror' }, + { url: 'https://pastebin.com/', name: 'Pastebin' } ] const failedUrls: string[] = [] diff --git a/src/main/services/download/downloadProcessor.ts b/src/main/services/download/downloadProcessor.ts index 04f0a8f..df611c7 100644 --- a/src/main/services/download/downloadProcessor.ts +++ b/src/main/services/download/downloadProcessor.ts @@ -342,7 +342,7 @@ export class DownloadProcessor { // Wait for mount to be ready with timeout and verification let mountReady = false for (let i = 0; i < 10; i++) { - await new Promise((resolve) => setTimeout(resolve, 1000)) + await new Promise((resolve) => setTimeout(resolve, 15000)) try { const testRead = await fs.readdir(mountPoint) if (testRead.length >= 0) { diff --git a/src/main/services/gameService.ts b/src/main/services/gameService.ts index a30085a..2691536 100644 --- a/src/main/services/gameService.ts +++ b/src/main/services/gameService.ts @@ -193,7 +193,7 @@ class GameService extends EventEmitter implements GamesAPI { const controller = new AbortController() const timeoutId = setTimeout(() => controller.abort(), 10000) - const response = await fetch('https://vrpirates.wiki/downloads/vrp-public.json', { + const response = await fetch('https://pastebin.com/raw/KchrQnFY', { signal: controller.signal }) @@ -464,11 +464,11 @@ class GameService extends EventEmitter implements GamesAPI { }) } } catch (decodeError: unknown) { - console.error('Error decoding or using password:', decodeError) + console.error('Error decoding or using password, you should probably open an issue for us to update it:', decodeError) if (decodeError instanceof Error) { - throw new Error(`Failed to use password: ${decodeError.message}`) + throw new Error(`Failed to use password, you should probably open an issue for us to update it: ${decodeError.message}`) } else { - throw new Error(`Failed to use password: ${String(decodeError)}`) + throw new Error(`Failed to use password, you should probably open an issue for us to update it: ${String(decodeError)}`) } } } catch (error) {