From 2f8cc83aa469299daebc75e0fc119ed5b3da7f30 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Mon, 8 Nov 2021 12:12:17 -0500 Subject: [PATCH] Renamed reboot for restart --- src/uxnemu.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/uxnemu.c b/src/uxnemu.c index 0da0b1f..812ae88 100644 --- a/src/uxnemu.c +++ b/src/uxnemu.c @@ -427,7 +427,7 @@ load(Uxn *u, char *rom) } static int -boot(Uxn *u, char *rom) +start(Uxn *u, char *rom) { if(!uxn_boot(u)) return error("Boot", "Failed to start uxn."); @@ -458,10 +458,10 @@ boot(Uxn *u, char *rom) } void -reboot(Uxn *u) +restart(Uxn *u) { set_size(WIDTH, HEIGHT, 1); - boot(u, "boot.rom"); + start(u, "boot.rom"); } static void @@ -483,7 +483,7 @@ doctrl(Uxn *u, SDL_Event *event, int z) case SDLK_F1: if(z) set_zoom(zoom > 2 ? 1 : zoom + 1); break; case SDLK_F2: if(z) devsystem->dat[0xe] = !devsystem->dat[0xe]; break; case SDLK_F3: if(z) capture_screen(); break; - case SDLK_F4: if(z) reboot(u); break; + case SDLK_F4: if(z) restart(u); break; } /* clang-format on */ if(z) { @@ -585,7 +585,7 @@ main(int argc, char **argv) else return error("Opt", "-s No scale provided."); } else if(!loaded++) { - if(!boot(&u, argv[i])) + if(!start(&u, argv[i])) return error("Boot", "Failed to boot."); } else { char *p = argv[i];