From 2b87cd931372f775c64f25ed2b04eea72da87df7 Mon Sep 17 00:00:00 2001 From: Autechre Date: Mon, 22 Nov 2021 03:27:23 +0100 Subject: [PATCH] Create runloop.c and split up runloop code to this new file; (#13269) * Create runloop.c and split up runloop code to this new file; retroarch.c now 207Kb and runloop.c 301Kb * Define empty runloop_secondary_core_destroy --- Makefile.common | 1 + griffin/griffin.c | 1 + input/input_driver.c | 1 + retroarch.c | 9333 +---------------------------------------- retroarch.h | 15 + runloop.c | 9413 ++++++++++++++++++++++++++++++++++++++++++ runloop.h | 79 + 7 files changed, 9547 insertions(+), 9296 deletions(-) create mode 100644 runloop.c diff --git a/Makefile.common b/Makefile.common index 911fd8eeae..b2a9457b1b 100644 --- a/Makefile.common +++ b/Makefile.common @@ -234,6 +234,7 @@ endif OBJ += frontend/frontend_driver.o \ retroarch.o \ + runloop.o \ driver.o \ ui/ui_companion_driver.o \ camera/camera_driver.o \ diff --git a/griffin/griffin.c b/griffin/griffin.c index 395969429a..c1ab37b2b4 100644 --- a/griffin/griffin.c +++ b/griffin/griffin.c @@ -1218,6 +1218,7 @@ GIT RETROARCH ============================================================ */ #include "../retroarch.c" +#include "../runloop.c" #include "../command.c" #include "../driver.c" #include "../midi_driver.c" diff --git a/input/input_driver.c b/input/input_driver.c index 749b913701..989a3a93a0 100644 --- a/input/input_driver.c +++ b/input/input_driver.c @@ -2,6 +2,7 @@ * RetroArch - A frontend for libretro. * Copyright (C) 2010-2014 - Hans-Kristian Arntzen * Copyright (C) 2011-2017 - Daniel De Matteis + * Copyright (C) 2016-2019 - Andr�s Su�rez (input mapper code) * * RetroArch is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free diff --git a/retroarch.c b/retroarch.c index b8e2074ec0..ea9876769e 100644 --- a/retroarch.c +++ b/retroarch.c @@ -4,8 +4,6 @@ * Copyright (C) 2012-2015 - Michael Lelli * Copyright (C) 2014-2017 - Jean-Andr� Santoni * Copyright (C) 2016-2019 - Brad Parker - * Copyright (C) 2016-2019 - Andr�s Su�rez (input mapper code) - * Copyright (C) 2016-2017 - Gregor Richards (network code) * * RetroArch is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Found- @@ -73,9 +71,6 @@ #include #include