From a682133733d73759a263fbc18ee535038f77b5c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C5=A0panger?= Date: Tue, 12 Dec 2023 15:07:08 +0100 Subject: [PATCH 1/2] Update README.md image --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 963422f3d..8ae5590fb 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,7 @@ Release Releases Discord

-![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)
StationManager From 20df6d4c24f58dabc375d5ae1ecece140bd3a726 Mon Sep 17 00:00:00 2001 From: Matias G Date: Thu, 18 Jan 2024 21:07:38 +0100 Subject: [PATCH 2/2] VOLUME FOLDER FIX --- .../src/main/java/globalquake/main/Main.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/GlobalQuakeClient/src/main/java/globalquake/main/Main.java b/GlobalQuakeClient/src/main/java/globalquake/main/Main.java index 4841dad68..6be820d09 100644 --- a/GlobalQuakeClient/src/main/java/globalquake/main/Main.java +++ b/GlobalQuakeClient/src/main/java/globalquake/main/Main.java @@ -25,9 +25,9 @@ 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); @@ -35,7 +35,7 @@ public static void main(String[] args) { CommandLineParser parser = new org.apache.commons.cli.BasicParser(); HelpFormatter formatter = new HelpFormatter(); CommandLine cmd = null; - + try { cmd = parser.parse(options, args); } catch (ParseException e) { @@ -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() {