2013-08-14 10:07:36 -04:00
|
|
|
/* RetroArch - A frontend for libretro.
|
2014-01-01 01:50:59 +01:00
|
|
|
* Copyright (C) 2013-2014 - Jason Fetters
|
2015-01-07 18:24:13 +01:00
|
|
|
* Copyright (C) 2011-2015 - Daniel De Matteis
|
2013-08-14 10:07:36 -04:00
|
|
|
*
|
|
|
|
* 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-
|
|
|
|
* ation, either version 3 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE. See the GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along with RetroArch.
|
|
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __RARCH_OSX_PLATFORM_H
|
|
|
|
#define __RARCH_OSX_PLATFORM_H
|
|
|
|
|
2013-12-15 18:27:25 +01:00
|
|
|
#include <AppKit/AppKit.h>
|
2014-02-11 19:03:38 +11:00
|
|
|
#ifdef HAVE_LOCATION
|
2013-12-15 18:27:25 +01:00
|
|
|
#include <CoreLocation/CoreLocation.h>
|
2014-02-11 19:03:38 +11:00
|
|
|
#endif
|
2013-08-14 10:07:36 -04:00
|
|
|
|
2014-10-16 21:07:26 +02:00
|
|
|
#include "../common/CFExtensions.h"
|
2014-10-16 21:02:22 +02:00
|
|
|
|
2014-02-11 19:03:38 +11:00
|
|
|
@interface RAGameView : NSView
|
|
|
|
#ifdef HAVE_LOCATION
|
|
|
|
<CLLocationManagerDelegate>
|
|
|
|
#endif
|
2013-08-14 10:07:36 -04:00
|
|
|
|
|
|
|
+ (RAGameView*)get;
|
2014-11-17 03:21:19 +01:00
|
|
|
#ifndef OSX
|
2013-08-14 10:07:36 -04:00
|
|
|
- (void)display;
|
2014-11-17 03:21:19 +01:00
|
|
|
#endif
|
2013-08-14 10:07:36 -04:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
2014-05-23 00:45:24 +02:00
|
|
|
@interface RetroArch_OSX : NSObject<RetroArch_Platform>
|
2013-12-14 19:11:07 -05:00
|
|
|
{
|
|
|
|
NSWindow* _window;
|
|
|
|
NSWindowController* _settingsWindow;
|
|
|
|
NSWindow* _coreSelectSheet;
|
|
|
|
NSString* _file;
|
|
|
|
NSString* _core;
|
|
|
|
}
|
|
|
|
|
2013-12-13 19:23:22 -05:00
|
|
|
@property (nonatomic, retain) NSWindow IBOutlet* window;
|
2013-08-14 10:07:36 -04:00
|
|
|
|
|
|
|
+ (RetroArch_OSX*)get;
|
|
|
|
|
2013-11-22 15:30:02 +01:00
|
|
|
- (void)loadingCore:(NSString*)core withFile:(const char*)file;
|
2014-07-20 07:00:02 +02:00
|
|
|
- (void)unloadingCore;
|
2013-09-09 19:25:34 -04:00
|
|
|
|
2013-08-14 10:07:36 -04:00
|
|
|
@end
|
|
|
|
|
|
|
|
#endif
|