port: add logging and some command line args

--log: logs messages to pd.log

--boot-stage N: sets initial stage number to N (MP stages will crash or hang if booted like this)

--no-sound: disable sound

--rom-file S: set ROM filename
This commit is contained in:
fgsfds committed 2023-08-31 12:54:18 +02:00
1 parent 2e49ba10dd
commit b6a3aef345
15 files changed
+192 -54

No files matched your search

+3 -2
View File
@@ -8,6 +8,7 @@
#include "input.h"
#include "video.h"
#include "config.h"
#include "system.h"
#define MAX_BINDS 4
#define TRIG_THRESHOLD (30 * 256)
@@ -741,7 +742,7 @@ s32 inputGetContKeyByName(const char *name)
return i;
}
}
fprintf(stderr, "unknown bind name: `%s`\n", name);
sysLogPrintf(LOG_WARNING, "unknown bind name: `%s`", name);
return -1;
}
@@ -785,7 +786,7 @@ s32 inputGetKeyByName(const char *name)
}
}
fprintf(stderr, "unknown key name: `%s`\n", name);
sysLogPrintf(LOG_WARNING, "unknown key name: `%s`", name);
return -1;
}