diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-07-08 23:46:22 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-07-08 23:46:22 +0000 |
| commit | 434c738fac452d5d75092aec3b3a2282e7a2bd24 (patch) | |
| tree | 976038e88196351abad8d76b4861733bd33ff42e /macosx/LaunchArg.h | |
| parent | e0fa342a42dbf21668bc923a0abd8261d203b95a (diff) | |
| download | pcsxr-434c738fac452d5d75092aec3b3a2282e7a2bd24.tar.gz | |
Have the arguments passed to the OS X app be done in a specific order, so i.e. you don't try to load a memory card after the emulator has started, or loading a freeze state before the emulator has started.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@85919 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/LaunchArg.h')
| -rw-r--r-- | macosx/LaunchArg.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/macosx/LaunchArg.h b/macosx/LaunchArg.h new file mode 100644 index 00000000..2ec8813e --- /dev/null +++ b/macosx/LaunchArg.h @@ -0,0 +1,30 @@ +// +// LaunchArg.h +// Pcsxr +// +// Created by C.W. Betts on 7/8/13. +// +// + +#import <Foundation/Foundation.h> +#import "ARCBridge.h" + +typedef enum _LaunchArgOrder { + LaunchArgPreRun = 0, + LaunchArgRun = 2, + LaunchArgPostRun = 4 +}LaunchArgOrder; + +@interface LaunchArg : NSObject +{ + LaunchArgOrder _launchOrder; + dispatch_block_t _theBlock; + NSString *_argument; +} +@property (readonly) LaunchArgOrder launchOrder; +@property (readonly, copy, nonatomic) dispatch_block_t theBlock; +@property (readonly, arcretain) NSString *argument; + +- (id)initWithLaunchOrder:(LaunchArgOrder)order block:(dispatch_block_t)block argument:(NSString*)arg; +- (void)addToDictionary:(NSMutableDictionary*)toAdd; +@end |
