diff options
| author | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-02-04 12:28:52 -0700 | 
|---|---|---|
| committer | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-02-04 12:28:52 -0700 | 
| commit | 34460dd77a8c5eb6896849f061d1118b2585e525 (patch) | |
| tree | 91e01c1662b3c0852b9f116c1eee95132e1f9704 /launcher/minecraft | |
| parent | d2fd0fd8e896e3d5dc0449ae719fdaa7d27968a5 (diff) | |
| download | PrismLauncher-34460dd77a8c5eb6896849f061d1118b2585e525.tar.gz PrismLauncher-34460dd77a8c5eb6896849f061d1118b2585e525.tar.bz2 PrismLauncher-34460dd77a8c5eb6896849f061d1118b2585e525.zip | |
ensure command env vars use native path seperators
fix #824
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher/minecraft')
| -rw-r--r-- | launcher/minecraft/MinecraftInstance.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/launcher/minecraft/MinecraftInstance.cpp b/launcher/minecraft/MinecraftInstance.cpp index 8a814cbf..4fe234c4 100644 --- a/launcher/minecraft/MinecraftInstance.cpp +++ b/launcher/minecraft/MinecraftInstance.cpp @@ -461,8 +461,8 @@ QMap<QString, QString> MinecraftInstance::getVariables()      QMap<QString, QString> out;      out.insert("INST_NAME", name());      out.insert("INST_ID", id()); -    out.insert("INST_DIR", QDir(instanceRoot()).absolutePath()); -    out.insert("INST_MC_DIR", QDir(gameRoot()).absolutePath()); +    out.insert("INST_DIR", QDir::toNativeSeparators(QDir(instanceRoot()).absolutePath())); +    out.insert("INST_MC_DIR", QDir::toNativeSeparators(QDir(gameRoot()).absolutePath()));      out.insert("INST_JAVA", settings()->get("JavaPath").toString());      out.insert("INST_JAVA_ARGS", javaArguments().join(' '));      return out; | 
