Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/services/dependencyService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = []
Expand Down
2 changes: 1 addition & 1 deletion src/main/services/download/downloadProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
8 changes: 4 additions & 4 deletions src/main/services/gameService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
})

Expand Down Expand Up @@ -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) {
Expand Down