Skip to content

Commit

Permalink
Merge pull request #206 from TBMSP/patch-1
Browse files Browse the repository at this point in the history
VOLUME FOLDER FIX
  • Loading branch information
xspanger3770 authored Jan 18, 2024
2 parents d30c190 + 20df6d4 commit 0d95d5f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
12 changes: 9 additions & 3 deletions GlobalQuakeClient/src/main/java/globalquake/main/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ public static void main(String[] args) {
initErrorHandler();
initMainDirectory();
GlobalQuake.prepare(MAIN_FOLDER, getErrorHandler());

Options options = new Options();

Option maxGpuMemOption = new Option("g", "gpu-max-mem", true, "maximum GPU memory limit in GB");
maxGpuMemOption.setRequired(false);
options.addOption(maxGpuMemOption);

CommandLineParser parser = new org.apache.commons.cli.BasicParser();
HelpFormatter formatter = new HelpFormatter();
CommandLine cmd = null;

try {
cmd = parser.parse(options, args);
} catch (ParseException e) {
Expand Down Expand Up @@ -69,6 +69,12 @@ private static void initMainDirectory() {
getErrorHandler().handleException(new FatalIOException("Unable to create main directory!", null));
}
}
File VOLUME_FOLDER = new File(MAIN_FOLDER, "volume/");
if (!VOLUME_FOLDER.exists()) {
if (!VOLUME_FOLDER.mkdirs()) {
getErrorHandler().handleException(new FatalIOException("Unable to create volume directory!", null));
}
}
}

public static ApplicationErrorHandler getErrorHandler() {
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
<a href="https://github.com/xspanger3770/GlobalQuake/releases"><img src="https://img.shields.io/github/release/xspanger3770/GlobalQuake.svg?style=for-the-badge&logo=github" alt="Release"></a> <a href="https://github.com/xspanger3770/GlobalQuake/releases"><img src="https://img.shields.io/github/downloads/xspanger3770/GlobalQuake/total?style=for-the-badge&logo=github" alt="Releases"></a> <a href="https://discord.gg/aCyuXfTyma"><img src="https://img.shields.io/badge/discord-Join Now-blue?logo=discord&style=for-the-badge" alt="Discord"></a>
</p>

![GlobalQuake_0.9.5](https://github.com/xspanger3770/GlobalQuake/assets/100421968/a2dc2ed7-9c28-47ab-aaa7-f76318d22a1e)

![GlobalQuake v0.10.0](https://github.com/xspanger3770/GlobalQuake/assets/100421968/d38a0596-0242-4fe9-9766-67a486832364)

<div style="display: grid; grid-template-columns: 1fr 1fr;">
<img alt="StationManager" title="StationManager" src="https://github.com/xspanger3770/GlobalQuake/assets/100421968/a37319ec-2132-426a-b095-2e6a9e064322" style="width: 49%; height: auto;" />
Expand Down

0 comments on commit 0d95d5f

Please sign in to comment.