Update main.js
This commit is contained in:
parent
9a6e4ab0d1
commit
4f01013d42
3
main.js
3
main.js
@ -13,6 +13,7 @@ const fileManager = require("./modules/fileManager")
|
|||||||
const launcher = new Client()
|
const launcher = new Client()
|
||||||
const { io } = require("socket.io-client")
|
const { io } = require("socket.io-client")
|
||||||
const download = require("download")
|
const download = require("download")
|
||||||
|
const rpc = require("./modules/rpc")
|
||||||
const socket = io({
|
const socket = io({
|
||||||
host: config.api.websockets.base.host,
|
host: config.api.websockets.base.host,
|
||||||
port: config.api.websockets.base.port
|
port: config.api.websockets.base.port
|
||||||
@ -20,6 +21,8 @@ const socket = io({
|
|||||||
|
|
||||||
let launcherWindow, auth, gamePlayable = false, launchProcess
|
let launcherWindow, auth, gamePlayable = false, launchProcess
|
||||||
|
|
||||||
|
rpc.startRichPresence()
|
||||||
|
|
||||||
async function createLauncherWindow() {
|
async function createLauncherWindow() {
|
||||||
gameOptions.initOptions(path.join(app.getPath("appData"), ".catboat", "options.txt"))
|
gameOptions.initOptions(path.join(app.getPath("appData"), ".catboat", "options.txt"))
|
||||||
launcherSettings.initSettings(path.join(app.getPath("appData"), ".catboat"))
|
launcherSettings.initSettings(path.join(app.getPath("appData"), ".catboat"))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user