summaryrefslogtreecommitdiff
path: root/src/main/manaplus/manaplus.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/manaplus/manaplus.ts')
-rw-r--r--src/main/manaplus/manaplus.ts15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/main/manaplus/manaplus.ts b/src/main/manaplus/manaplus.ts
index 3a4a6f5..0f3f3a0 100644
--- a/src/main/manaplus/manaplus.ts
+++ b/src/main/manaplus/manaplus.ts
@@ -17,7 +17,7 @@ export namespace ManaPlus {
export const ERRORS = {
NOT_INITILIZED_YET_ERROR: new Error(
"The ManaPlus updater wasn't initilized"
- ),
+ )
};
export function init() {
@@ -41,7 +41,7 @@ export namespace ManaPlus {
export async function start(args: any) {
CurrentServer = {
serverID: args.serverID,
- address: args.address,
+ address: args.address
};
let params: string[];
try {
@@ -126,7 +126,7 @@ ipcMain.handle("getScreenshots", async (_event: any, arg: string) => {
}
return {
dir: screenshotsDir,
- screenshots: screenshots.reverse().slice(0, 24),
+ screenshots: screenshots.reverse().slice(0, 24)
};
});
@@ -190,7 +190,12 @@ function runManaProgram(
const child = execFile(
gameExe,
parameters,
- { env: { ...process.env, APPIMAGELAUNCHER_DISABLE: "true" } },
+ {
+ env: {
+ ...process.env,
+ APPIMAGELAUNCHER_DISABLE: "true"
+ }
+ },
function (err: Error, data: any) {
console.log(err);
console.log(data.toString());
@@ -221,7 +226,7 @@ async function updateDialog(newestVersion: string): Promise<boolean> {
title: `ManaPlus Update available: ${newestVersion}`,
message:
"Do you want to update now? Please note that you'll have to update eventually to ensure further compability with the servers",
- buttons: ["Nah, LATER", "Update NOW"],
+ buttons: ["Nah, LATER", "Update NOW"]
};
let { response } = await dialog.showMessageBox(null, options);
console.log("....", response);