aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorgbc dev <gbc@localhost>2026-07-17 01:08:48 +0200
committergbc dev <gbc@localhost>2026-07-17 01:08:48 +0200
commitc714fc8927c454b5cf4735429b4cc9cde7aa5760 (patch)
tree7148b668750ae3cbb3e5b6c87723526e3e28ed35 /src/main.c
parentmain: options-first CLI with --help, and wire up display/boot flags (diff)
downloadsl0pboy-c714fc8927c454b5cf4735429b4cc9cde7aa5760.tar.gz
sl0pboy-c714fc8927c454b5cf4735429b4cc9cde7aa5760.tar.xz
sl0pboy-c714fc8927c454b5cf4735429b4cc9cde7aa5760.zip
rebrand: gbc -> sl0pboy (binary, README, tooling)
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c
index 1f3a868..5191218 100644
--- a/src/main.c
+++ b/src/main.c
@@ -66,8 +66,8 @@ static void print_usage(FILE *out, const char *prog) {
" --bios [path] run a boot ROM first (default bios/gbc_bios.bin)\n"
"\n"
"control channels:\n"
-" --fifo [path] button-input named pipe (default /tmp/gbc.fifo)\n"
-" --sock [path] control/debug socket (default /tmp/gbc.sock)\n"
+" --fifo [path] button-input named pipe (default /tmp/sl0pboy.fifo)\n"
+" --sock [path] control/debug socket (default /tmp/sl0pboy.sock)\n"
"\n"
"headless & testing:\n"
" --headless no video; wire serial <-> stdio (OS console)\n"
@@ -131,9 +131,9 @@ int main(int argc, char **argv) {
if (!has_val) { fprintf(stderr, "%s: --keys needs a value\n", prog); return 1; }
keys = argv[++i];
} else if (!strcmp(a, "--fifo")) {
- fifo_path = has_val ? argv[++i] : "/tmp/gbc.fifo";
+ fifo_path = has_val ? argv[++i] : "/tmp/sl0pboy.fifo";
} else if (!strcmp(a, "--sock") || !strcmp(a, "--socket")) {
- sock_path = has_val ? argv[++i] : "/tmp/gbc.sock";
+ sock_path = has_val ? argv[++i] : "/tmp/sl0pboy.sock";
} else if (!strcmp(a, "--fps")) {
if (!has_val) { fprintf(stderr, "%s: --fps needs a value\n", prog); return 1; }
target_fps = atof(argv[++i]);
@@ -191,7 +191,7 @@ int main(int argc, char **argv) {
// Headless: no rendering, no terminal UI. Tie the serial port to stdio so
// an OS on the GB gets a plain byte console (TX -> stdout, RX <- stdin).
// Paced to native speed unless --uncapped. Piping works for scripted tests:
- // printf 'ls\n' | gbc rom.gb --headless
+ // printf 'ls\n' | sl0pboy rom.gb --headless
if (headless) {
gb->serial_out_fd = STDOUT_FILENO;
gb->serial_in_fd = STDIN_FILENO;
@@ -214,7 +214,7 @@ int main(int argc, char **argv) {
t.c_cc[VMIN] = 1;
t.c_cc[VTIME] = 0;
tcsetattr(STDIN_FILENO, TCSANOW, &t);
- fprintf(stderr, "[gbc: interactive serial console - Ctrl-C to quit]\n");
+ fprintf(stderr, "[sl0pboy: interactive serial console - Ctrl-C to quit]\n");
}
bool uncapped = (target_fps <= 0);
double start_t = now_sec();