summaryrefslogtreecommitdiff
path: root/src/dirs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dirs.cpp')
-rw-r--r--src/dirs.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/dirs.cpp b/src/dirs.cpp
index 051c00c40..8b0bbbeeb 100644
--- a/src/dirs.cpp
+++ b/src/dirs.cpp
@@ -174,9 +174,11 @@ void Dirs::extractDataDir()
extractAssets();
const std::string zipName = std::string(getenv(
- "APPDIR")).append("/data.zip");
+ "APPDIR")).append(
+ "/data.zip");
const std::string dirName = std::string(getenv(
- "APPDIR")).append("/data");
+ "APPDIR")).append(
+ "/data");
Files::extractZip(zipName, "data", dirName);
Files::extractLocale();
#endif
@@ -485,8 +487,9 @@ void Dirs::initUpdatesDir()
if (!PhysFs::mkdir(updateDir.c_str()))
{
#if defined WIN32
- std::string newDir = settings.localDataDir
- + "\\" + settings.updatesDir;
+ std::string newDir = settings.localDataDir +
+ "\\" +
+ settings.updatesDir;
size_t loc = newDir.find("/", 0);
while (loc != std::string::npos)