From a41c6c6ec76eab41a10da0a7427e0ff4a850928e Mon Sep 17 00:00:00 2001 From: sJJdGG <25764288+sJJdGG@users.noreply.github.com> Date: Thu, 25 Jul 2019 19:42:24 +0430 Subject: [PATCH] Fix problem regarding using a custom named options file (#119) * Add VSCODE artifacts to .gitignore * Fix version in Version.java * Fix command-line options bug --- .gitignore | 8 +++++++- .../main/java/xyz/gianlu/librespot/FileConfiguration.java | 2 +- core/src/main/java/xyz/gianlu/librespot/Version.java | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index ecb7e141..2abe37a9 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,10 @@ out/ target/ *iml config.toml -/cache/ \ No newline at end of file +/cache/ +.settings/ +.project +.DS_Store +bin/ +.classpath +.vscode/ diff --git a/core/src/main/java/xyz/gianlu/librespot/FileConfiguration.java b/core/src/main/java/xyz/gianlu/librespot/FileConfiguration.java index a0073834..1c71cb28 100644 --- a/core/src/main/java/xyz/gianlu/librespot/FileConfiguration.java +++ b/core/src/main/java/xyz/gianlu/librespot/FileConfiguration.java @@ -43,7 +43,7 @@ public FileConfiguration(@Nullable String[] override) throws IOException { if (override != null) { for (String arg : override) { if (arg != null && arg.startsWith("--conf-file=")) - confFile = new File(arg.substring(13)); + confFile = new File(arg.substring(12)); } } diff --git a/core/src/main/java/xyz/gianlu/librespot/Version.java b/core/src/main/java/xyz/gianlu/librespot/Version.java index 5c422b04..b33b82de 100644 --- a/core/src/main/java/xyz/gianlu/librespot/Version.java +++ b/core/src/main/java/xyz/gianlu/librespot/Version.java @@ -6,7 +6,7 @@ * @author Gianlu */ public class Version { - public static final String VERSION = "0.5.1"; + public static final String VERSION = "0.6.1"; @NotNull public static String versionString() {