diff options
Diffstat (limited to 'src/main/util/app_constants.ts')
-rw-r--r-- | src/main/util/app_constants.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/util/app_constants.ts b/src/main/util/app_constants.ts new file mode 100644 index 0000000..99f22da --- /dev/null +++ b/src/main/util/app_constants.ts @@ -0,0 +1,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/"); +} |