mirror of
https://github.com/libretro/RetroArch
synced 2025-02-21 18:40:09 +00:00
(Apple) Cleanups
This commit is contained in:
parent
0e2ed7c746
commit
47f26386a8
@ -35,15 +35,8 @@
|
||||
#import "../OSX/platform.h"
|
||||
#endif
|
||||
|
||||
extern char** apple_argv;
|
||||
|
||||
extern id<RetroArch_Platform> apple_platform;
|
||||
|
||||
/* main.m */
|
||||
extern void apple_run_core(int argc, char **argv);
|
||||
extern void apple_start_iteration(void);
|
||||
extern void apple_stop_iteration(void);
|
||||
|
||||
/* utility.m */
|
||||
extern void apple_display_alert(const char *message, const char *title);
|
||||
|
||||
|
@ -84,7 +84,9 @@ void CFSearchPathForDirectoriesInDomains(unsigned flags,
|
||||
unsigned domain_mask, unsigned expand_tilde,
|
||||
char *buf, size_t sizeof_buf)
|
||||
{
|
||||
CFTypeRef array_val = (CFTypeRef)CFBridgingRetainCompat(NSSearchPathForDirectoriesInDomains(NSConvertFlagsCF(flags), NSConvertDomainFlagsCF(domain_mask), (BOOL)expand_tilde));
|
||||
CFTypeRef array_val = (CFTypeRef)CFBridgingRetainCompat(
|
||||
NSSearchPathForDirectoriesInDomains(NSConvertFlagsCF(flags),
|
||||
NSConvertDomainFlagsCF(domain_mask), (BOOL)expand_tilde));
|
||||
CFArrayRef array = array_val ? CFRetain(array_val) : NULL;
|
||||
CFTypeRef path_val = (CFTypeRef)CFArrayGetValueAtIndex(array, 0);
|
||||
CFStringRef path = path_val ? CFRetain(path_val) : NULL;
|
||||
@ -614,7 +616,8 @@ static bool apple_camera_poll(void *data, retro_camera_frame_raw_framebuffer_t f
|
||||
|
||||
if (frame_gl_cb && newFrame)
|
||||
{
|
||||
// FIXME: Identity for now. Use proper texture matrix as returned by iOS Camera (if at all?).
|
||||
/* FIXME: Identity for now.
|
||||
* Use proper texture matrix as returned by iOS Camera (if at all?). */
|
||||
static const float affine[] = {
|
||||
1.0f, 0.0f, 0.0f,
|
||||
0.0f, 1.0f, 0.0f,
|
||||
|
Loading…
x
Reference in New Issue
Block a user