UNPKG

v3mt

Version:

A CLI toolkit for managing and deploying Victoria 3 mods, including sending mod files to the game, launching the game, and more.

13 lines (12 loc) 421 B
import fs from "fs"; import path from "path"; import os from "os"; export default function findErrorLog() { const userHome = os.homedir(); const errorLogPath = path.join(userHome, "Documents", "Paradox Interactive", "Victoria 3", "logs", "error.log"); if (fs.existsSync(errorLogPath)) { return errorLogPath; } console.log(`Victoria 3 error log not found: ${errorLogPath}`); return null; }