From d628dd170a5e847c60ac847cb2260312f104f925 Mon Sep 17 00:00:00 2001 From: yvt Date: Sun, 19 Jun 2022 23:38:56 +0900 Subject: [PATCH] Reformat --- Sources/Gui/Main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Sources/Gui/Main.cpp b/Sources/Gui/Main.cpp index 42cf476f4..e66997662 100644 --- a/Sources/Gui/Main.cpp +++ b/Sources/Gui/Main.cpp @@ -407,8 +407,7 @@ int main(int argc, char **argv) { } } - spades::g_userResourceDirectory = GetSDLPrefPath("OpenSpades"); - spades::g_userResourceDirectory += "Resources"; + spades::g_userResourceDirectory = GetSDLPrefPath("OpenSpades") + "Resources"; spades::FileManager::AddFileSystem( new spades::DirectoryFileSystem(spades::g_userResourceDirectory, true)); @@ -426,13 +425,13 @@ int main(int argc, char **argv) { SPLog("XDG_DATA_HOME not defined. Assuming that XDG_DATA_HOME is ~/.local/share"); } else { xdg_data_home = getenv("XDG_DATA_HOME"); - xdg_data_home += "/openspades"; + xdg_data_home += "/openspades"; SPLog("XDG_DATA_HOME is %s", xdg_data_home.c_str()); } struct stat info; - if (stat((xdg_data_home).c_str(), &info) != 0) { + if (stat(xdg_data_home.c_str(), &info) != 0) { if (stat((home + "/.openspades").c_str(), &info) != 0) { } else if (info.st_mode & S_IFDIR) { SPLog("Openspades directory in XDG_DATA_HOME not found, though old directory "