ALL: synced with scummvm
This commit is contained in:
parent
5e86a8d5a8
commit
8e2ab87455
90 changed files with 2414 additions and 1422 deletions
|
@ -33,9 +33,10 @@
|
|||
#include "base/version.h"
|
||||
|
||||
#include "common/config-manager.h"
|
||||
#include "common/fs.h"
|
||||
#include "common/rendermode.h"
|
||||
#include "common/system.h"
|
||||
#include "common/textconsole.h"
|
||||
#include "common/fs.h"
|
||||
|
||||
#include "gui/ThemeEngine.h"
|
||||
|
||||
|
@ -67,7 +68,7 @@ static const char HELP_STRING[] =
|
|||
" -z, --list-games Display list of supported games and exit\n"
|
||||
" -t, --list-targets Display list of configured targets and exit\n"
|
||||
" --list-saves=TARGET Display a list of savegames for the game (TARGET) specified\n"
|
||||
#if defined (WIN32) && !defined(_WIN32_WCE) && !defined(__SYMBIAN32__)
|
||||
#if defined(WIN32) && !defined(_WIN32_WCE) && !defined(__SYMBIAN32__)
|
||||
" --console Enable the console window (default:enabled)\n"
|
||||
#endif
|
||||
"\n"
|
||||
|
@ -134,7 +135,7 @@ static void usage(const char *s, ...) {
|
|||
vsnprintf(buf, STRINGBUFLEN, s, va);
|
||||
va_end(va);
|
||||
|
||||
#if !(defined(__GP32__) || defined (__SYMBIAN32__) || defined(__DS__))
|
||||
#if !(defined(__GP32__) || defined(__SYMBIAN32__) || defined(__DS__))
|
||||
printf(USAGE_STRING, s_appName, buf, s_appName, s_appName);
|
||||
#endif
|
||||
exit(1);
|
||||
|
@ -238,12 +239,12 @@ void registerDefaults() {
|
|||
// Use this for boolean options; this distinguishes between "-x" and "-X",
|
||||
// resp. between "--some-option" and "--no-some-option".
|
||||
#define DO_OPTION_BOOL(shortCmd, longCmd) \
|
||||
if (isLongCmd ? (!strcmp(s+2, longCmd) || !strcmp(s+2, "no-"longCmd)) : (tolower(s[1]) == shortCmd)) { \
|
||||
if (isLongCmd ? (!strcmp(s+2, longCmd) || !strcmp(s+2, "no-" longCmd)) : (tolower(s[1]) == shortCmd)) { \
|
||||
bool boolValue = (Common::isLower(s[1]) != 0); \
|
||||
s += 2; \
|
||||
if (isLongCmd) { \
|
||||
boolValue = !strcmp(s, longCmd); \
|
||||
s += boolValue ? (sizeof(longCmd) - 1) : (sizeof("no-"longCmd) - 1); \
|
||||
s += boolValue ? (sizeof(longCmd) - 1) : (sizeof("no-" longCmd) - 1); \
|
||||
} \
|
||||
if (*s != '\0') goto unknownOption; \
|
||||
const char *option = boolValue ? "true" : "false"; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue