1717#import < AvailabilityMacros.h>
1818#include < sys/stat.h>
1919
20+ #include < compat/apple_compat.h>
2021#include < string/stdstring.h>
2122
2223#include " cocoa_common.h"
2324#include " apple_platform.h"
2425#include " ../ui_cocoa.h"
25- #include < compat/apple_compat.h>
2626#include " RetroArchPlaylistManager.h"
2727
2828#ifdef HAVE_COCOATOUCH
29- #import " ../../../ pkg/apple/WebServer/GCDWebUploader/GCDWebUploader.h"
29+ #import " ../../pkg/apple/WebServer/GCDWebUploader/GCDWebUploader.h"
3030#import " WebServer.h"
3131#if TARGET_OS_TV
3232#import < TVServices/TVServices.h>
3333#import " ../../pkg/apple/RetroArchTopShelfExtension/ContentProvider.h"
3434#endif
3535#if TARGET_OS_IOS
3636#import < MobileCoreServices/MobileCoreServices.h>
37- #import " ../../../menu/menu_cbs.h"
3837#endif
3938#endif
4039
41- #include " ../../../configuration.h"
42- #include " ../../../content.h"
43- #include " ../../../core_info.h"
44- #include " ../../../defaults.h"
45- #include " ../../../frontend/frontend.h"
46- #include " ../../../file_path_special.h"
47- #include " ../../../menu/menu_cbs.h"
48- #include " ../../../paths.h"
49- #include " ../../../retroarch.h"
50- #include " ../../../tasks/task_content.h"
51- #include " ../../../verbosity.h"
52-
53- #include " ../../input/drivers/cocoa_input.h"
54- #include " ../../input/drivers_keyboard/keyboard_event_apple.h"
40+ #include " ../../configuration.h"
41+ #include " ../../content.h"
42+ #include " ../../core_info.h"
43+ #include " ../../defaults.h"
44+ #include " ../../frontend/frontend.h"
45+ #include " ../../file_path_special.h"
5546
5647#ifdef HAVE_MENU
5748#include " ../../menu/menu_driver.h"
49+ #include " ../../menu/menu_cbs.h"
50+ #include " ../../menu/menu_displaylist.h"
5851#endif
5952
53+ #include " ../../paths.h"
54+ #include " ../../retroarch.h"
55+ #include " ../../tasks/task_content.h"
56+ #include " ../../verbosity.h"
57+
58+ #include " ../../input/drivers/cocoa_input.h"
59+ #include " ../../input/drivers_keyboard/keyboard_event_apple.h"
60+
6061#ifdef HAVE_MIST
61- #include " steam/steam.h"
62+ #include " ../../ steam/steam.h"
6263#endif
6364
6465#if IOS
@@ -102,8 +103,7 @@ @interface CocoaView()<GCDWebUploaderDelegate, UIGestureRecognizerDelegate
102103static void rarch_draw_observer (CFRunLoopObserverRef observer,
103104 CFRunLoopActivity activity, void *info)
104105{
105- uint32_t runloop_flags;
106- int ret = runloop_iterate ();
106+ int ret = runloop_iterate ();
107107
108108 if (ret == -1 )
109109 {
@@ -121,9 +121,8 @@ static void rarch_draw_observer(CFRunLoopObserverRef observer,
121121 steam_poll ();
122122#endif
123123
124- runloop_flags = runloop_get_flags ();
125124#if !TARGET_OS_TV && !defined(OSX)
126- if (runloop_flags & RUNLOOP_FLAG_FASTMOTION)
125+ if (runloop_get_flags () & RUNLOOP_FLAG_FASTMOTION)
127126#endif
128127 CFRunLoopWakeUp (CFRunLoopGetMain ());
129128#if TARGET_OS_IOS
@@ -183,8 +182,7 @@ -(void)step:(CADisplayLink*)target API_AVAILABLE(macos(14.0), ios(3.1), tvos(3.1
183182 }
184183
185184#if !TARGET_OS_TV
186- uint32_t runloop_flags = runloop_get_flags ();
187- if (runloop_flags & RUNLOOP_FLAG_FASTMOTION)
185+ if (runloop_get_flags () & RUNLOOP_FLAG_FASTMOTION)
188186 {
189187 /* Fast-forward: observer handles all iterations */
190188 rarch_start_draw_observer ();
0 commit comments