diff options
| author | gbc dev <gbc@localhost> | 2026-07-17 01:08:48 +0200 |
|---|---|---|
| committer | gbc dev <gbc@localhost> | 2026-07-17 01:08:48 +0200 |
| commit | c714fc8927c454b5cf4735429b4cc9cde7aa5760 (patch) | |
| tree | 7148b668750ae3cbb3e5b6c87723526e3e28ed35 /src | |
| parent | main: options-first CLI with --help, and wire up display/boot flags (diff) | |
| download | sl0pboy-c714fc8927c454b5cf4735429b4cc9cde7aa5760.tar.gz sl0pboy-c714fc8927c454b5cf4735429b4cc9cde7aa5760.tar.xz sl0pboy-c714fc8927c454b5cf4735429b4cc9cde7aa5760.zip | |
rebrand: gbc -> sl0pboy (binary, README, tooling)
Diffstat (limited to 'src')
| -rw-r--r-- | src/control.c | 2 | ||||
| -rw-r--r-- | src/main.c | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/control.c b/src/control.c index 16e769a..04c8932 100644 --- a/src/control.c +++ b/src/control.c @@ -596,7 +596,7 @@ static void accept_new(void) { if (slot < 0) { close(cf); continue; } // table full clients[slot].fd = cf; clients[slot].len = 0; - reply(cf, "ok gbc control channel; 'help' for commands"); + reply(cf, "ok sl0pboy control channel; 'help' for commands"); } } @@ -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(); |
