Skip to content

Commit 10e6280

Browse files
committed
FIx some paths and warnings
1 parent dc4872c commit 10e6280

2 files changed

Lines changed: 24 additions & 24 deletions

File tree

gfx/drivers_context/cocoa_gl_ctx.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
#include "../../config.h"
1919
#endif
2020

21+
#include <TargetConditionals.h>
22+
2123
#if TARGET_OS_IPHONE
2224
#include <CoreGraphics/CoreGraphics.h>
2325
#else

ui/drivers/cocoa/cocoa_common.m

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,48 +17,49 @@
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
102103
static 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

Comments
 (0)