Skip to content
This repository has been archived by the owner on Jul 2, 2023. It is now read-only.

Commit

Permalink
[create release] Create game directory
Browse files Browse the repository at this point in the history
  • Loading branch information
TheKodeToad committed Oct 28, 2021
1 parent a773281 commit d060acd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sol-client-launcher",
"version": "0.1.1",
"version": "0.1.2",
"description": "Launcher for Sol Client.",
"main": "main.js",
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ class Utils {
catch(error) {
}

if(!fs.existsSync(Utils.minecraftDirectory)) {
fs.mkdirSync(Utils.minecraftDirectory, { recursive: true });
}

Utils.librariesDirectory = Utils.minecraftDirectory + "/libraries";
Utils.versionsDirectory = Utils.minecraftDirectory + "/versions";
Utils.assetsDirectory = Utils.minecraftDirectory + "/assets";
Utils.assetObjectsDirectory = Utils.assetsDirectory + "/objects";
Utils.accountFile = Utils.minecraftDirectory + "/account.json";
Utils.gameDirectory = Utils.minecraftDirectory + "/minecraft";

if(!fs.existsSync(Utils.gameDirectory)) {
fs.mkdirSync(Utils.gameDirectory, { recursive: true });
}
}

static isAlreadyDownloaded(file, size) {
Expand Down

0 comments on commit d060acd

Please sign in to comment.