aboutsummaryrefslogtreecommitdiff
path: root/launcher/FileSystem.cpp
diff options
context:
space:
mode:
authorflow <flowlnlnln@gmail.com>2022-08-07 07:19:29 -0300
committerflow <flowlnlnln@gmail.com>2022-09-12 13:07:24 -0300
commitc496ad1237198cf9c5a97b3b02c2897b5ac1990a (patch)
tree5be42dd6631d05ea6797ed93db0b7a7874cea1fa /launcher/FileSystem.cpp
parent277fa21f5f7dcdec1bde11f345136f464ee8d37a (diff)
downloadPrismLauncher-c496ad1237198cf9c5a97b3b02c2897b5ac1990a.tar.gz
PrismLauncher-c496ad1237198cf9c5a97b3b02c2897b5ac1990a.tar.bz2
PrismLauncher-c496ad1237198cf9c5a97b3b02c2897b5ac1990a.zip
chore: make DirNameFromString add normal duplicate identifier
Wrap the number in parenthesis to be similar to other software. Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/FileSystem.cpp')
-rw-r--r--launcher/FileSystem.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/launcher/FileSystem.cpp b/launcher/FileSystem.cpp
index 8966413a..2409696b 100644
--- a/launcher/FileSystem.cpp
+++ b/launcher/FileSystem.cpp
@@ -280,8 +280,7 @@ QString DirNameFromString(QString string, QString inDir)
if (num == 0) {
dirName = baseName;
} else {
- dirName = baseName + QString::number(num);
- ;
+ dirName = baseName + "(" + QString::number(num) + ")";
}
// If it's over 9000