aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorMax Horn2007-09-18 20:16:33 +0000
committerMax Horn2007-09-18 20:16:33 +0000
commit3abc11611e1d1d93f1cf794df28879de3571bd01 (patch)
treee1ac8a925d1388f8df010a114d7bed471fc9fe3b /base
parentc3d3aebe87d16d4fc3b7ac8581b99fb97241c9ac (diff)
downloadscummvm-rg350-3abc11611e1d1d93f1cf794df28879de3571bd01.tar.gz
scummvm-rg350-3abc11611e1d1d93f1cf794df28879de3571bd01.tar.bz2
scummvm-rg350-3abc11611e1d1d93f1cf794df28879de3571bd01.zip
Code formatting fixes
svn-id: r28945
Diffstat (limited to 'base')
-rw-r--r--base/commandLine.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/base/commandLine.cpp b/base/commandLine.cpp
index 20249e758b..b2cde4f7d9 100644
--- a/base/commandLine.cpp
+++ b/base/commandLine.cpp
@@ -388,9 +388,9 @@ Common::String parseCommandLine(Common::StringMap &settings, int argc, char **ar
DO_OPTION('p', "path")
FilesystemNode path(option);
- if(!path.exists()) {
+ if (!path.exists()) {
usage("Non-existent game path '%s'", option);
- } else if(!path.isReadable()) {
+ } else if (!path.isReadable()) {
usage("Non-readable game path '%s'", option);
}
END_OPTION
@@ -431,9 +431,9 @@ Common::String parseCommandLine(Common::StringMap &settings, int argc, char **ar
DO_LONG_OPTION("soundfont")
FilesystemNode path(option);
- if(!path.exists()) {
+ if (!path.exists()) {
usage("Non-existent soundfont path '%s'", option);
- } else if(!path.isReadable()) {
+ } else if (!path.isReadable()) {
usage("Non-readable soundfont path '%s'", option);
}
END_OPTION
@@ -461,9 +461,9 @@ Common::String parseCommandLine(Common::StringMap &settings, int argc, char **ar
DO_LONG_OPTION("savepath")
FilesystemNode path(option);
- if(!path.exists()) {
+ if (!path.exists()) {
usage("Non-existent savegames path '%s'", option);
- } else if(!path.isWritable()) {
+ } else if (!path.isWritable()) {
usage("Non-writable savegames path '%s'", option);
}
END_OPTION
@@ -479,9 +479,9 @@ Common::String parseCommandLine(Common::StringMap &settings, int argc, char **ar
DO_LONG_OPTION("themepath")
FilesystemNode path(option);
- if(!path.exists()) {
+ if (!path.exists()) {
usage("Non-existent theme path '%s'", option);
- } else if(!path.isReadable()) {
+ } else if (!path.isReadable()) {
usage("Non-readable theme path '%s'", option);
}
END_OPTION
@@ -691,9 +691,9 @@ bool processSettings(Common::String &command, Common::StringMap &settings) {
const char *dir = getenv("SCUMMVM_SAVEPATH");
if (dir && *dir && strlen(dir) < MAXPATHLEN) {
FilesystemNode saveDir(dir);
- if(!saveDir.exists()) {
+ if (!saveDir.exists()) {
warning("Non-existent SCUMMVM_SAVEPATH save path. It will be ignored.");
- } else if(!saveDir.isWritable()) {
+ } else if (!saveDir.isWritable()) {
warning("Non-writable SCUMMVM_SAVEPATH save path. It will be ignored.");
} else {
settings["savepath"] = dir;