From 521daf2dd682b4197574a85d8bc8b48c4951723c Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 13 Aug 2014 03:44:55 +0200 Subject: [PATCH] (retrolaunch) cleanups --- tools/retrolaunch/main.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/tools/retrolaunch/main.c b/tools/retrolaunch/main.c index df6da8dcf3..da9519d2f4 100644 --- a/tools/retrolaunch/main.c +++ b/tools/retrolaunch/main.c @@ -394,17 +394,17 @@ static int run_retroarch(const char *path, const struct RunInfo *info) int main(int argc, char *argv[]) { + struct RunInfo info; + int rv; + char game_name[MAX_TOKEN_LEN]; + char *path = argv[1]; + if (argc < 2) { printf("usage: retrolaunch \n"); return -1; } - char game_name[MAX_TOKEN_LEN]; - char *path = argv[1]; - struct RunInfo info; - int rv; - LOG_INFO("Analyzing '%s'", path); if ((rv = detect_game(path, game_name, MAX_TOKEN_LEN)) < 0) { @@ -425,7 +425,4 @@ int main(int argc, char *argv[]) LOG_WARN("Could not launch retroarch: %s", strerror(-rv)); return -rv; } - -// Stub just so that it compiles -void rarch_init_msg_queue(void) {} #endif