blob: 0a84e66dafc767a2661537ee2cb833b532f08fbc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
const fs = require("fs");
const path = require("path");
const Fuse = require("fuse.js");
const { app, ipcRenderer, shell } = require("electron");
const lang = require("../lang");
ipcRenderer.on("unknown-error", (event, err) => {
toasts.show({
timeout: 10000,
scheme: "error",
title: lang("gui.toast.title.unknown_error"),
description: lang("gui.toast.desc.unknown_error"),
callback: () => {
toasts.show({
timeout: 15000,
scheme: "error",
title: "",
description: err.stack.replaceAll("\n", "<br>")
})
}
})
console.error(err.stack);
})
const json = require("../modules/json");
const kill = require("./js/kill");
const mods = require("./js/mods");
const toasts = require("./js/toasts");
const update = require("./js/update");
const events = require("./js/events");
const launch = require("./js/launch");
const popups = require("./js/popups");
const browser = require("./js/browser");
const tooltip = require("./js/tooltip");
const version = require("./js/version");
const request = require("./js/request");
const process = require("./js/process");
const settings = require("./js/settings");
const gamepath = require("./js/gamepath");
const launcher = require("./js/launcher");
const is_running = require("./js/is_running");
const set_buttons = require("./js/set_buttons");
const navigate = require("./js/navigate");
const gamepad = require("./js/gamepad");
require("./js/dom_events");
require("./js/localize")();
|