summaryrefslogtreecommitdiff
path: root/src/main/util/app_constants.ts
blob: 99f22da64cb22805fdaf5622d07ce15ede980900 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { app } from "electron";
import { join } from "path";

export function getUserDataPath() {
  return app.getPath("userData");
}

export function getManaPlusPath() {
  return join(getUserDataPath(), "/manaplus/");
}

export function getTempPath() {
  return join(getUserDataPath(), "/temp/");
}