mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-23 16:33:00 +02:00
Fix whitespace
This commit is contained in:
@@ -553,17 +553,17 @@ void SigHandler(int signal)
|
|||||||
void ChdirToDataDirectory()
|
void ChdirToDataDirectory()
|
||||||
{
|
{
|
||||||
#ifdef MACOSX
|
#ifdef MACOSX
|
||||||
FSRef ref;
|
FSRef ref;
|
||||||
OSType folderType = kApplicationSupportFolderType;
|
OSType folderType = kApplicationSupportFolderType;
|
||||||
char path[PATH_MAX];
|
char path[PATH_MAX];
|
||||||
|
|
||||||
FSFindFolder( kUserDomain, folderType, kCreateFolder, &ref );
|
FSFindFolder( kUserDomain, folderType, kCreateFolder, &ref );
|
||||||
|
|
||||||
FSRefMakePath( &ref, (UInt8*)&path, PATH_MAX );
|
FSRefMakePath( &ref, (UInt8*)&path, PATH_MAX );
|
||||||
|
|
||||||
const char *tptPath = (std::string(path) + "/The Powder Toy").c_str();
|
const char *tptPath = (std::string(path) + "/The Powder Toy").c_str();
|
||||||
mkdir(tptPath, 0755);
|
mkdir(tptPath, 0755);
|
||||||
chdir(tptPath);
|
chdir(tptPath);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -584,8 +584,8 @@ int main(int argc, char * argv[])
|
|||||||
#else
|
#else
|
||||||
chdir(arguments["ddir"].c_str());
|
chdir(arguments["ddir"].c_str());
|
||||||
#endif
|
#endif
|
||||||
else
|
else
|
||||||
ChdirToDataDirectory();
|
ChdirToDataDirectory();
|
||||||
|
|
||||||
scale = Client::Ref().GetPrefInteger("Scale", 1);
|
scale = Client::Ref().GetPrefInteger("Scale", 1);
|
||||||
resizable = Client::Ref().GetPrefBool("Resizable", false);
|
resizable = Client::Ref().GetPrefBool("Resizable", false);
|
||||||
|
Reference in New Issue
Block a user