fix improper declaration/assignment variables

This commit is contained in:
jorsi 2020-09-22 12:17:14 -04:00
parent e40fb0b334
commit a9d993098c
4 changed files with 16 additions and 7 deletions

View File

@ -22,7 +22,7 @@
#import <snes9x_framework/snes9x_framework.h>
#import "S9xPreferences/S9xPreferencesWindowController.h"
static NSWindowFrameAutosaveName const kMainWindowIdentifier = @"s9xMainWindow";
extern NSWindowFrameAutosaveName const kMainWindowIdentifier;
@interface AppDelegate : NSObject <NSApplicationDelegate, S9xInputDelegate>

View File

@ -21,6 +21,8 @@
#import <Carbon/Carbon.h>
#import "AppDelegate.h"
NSWindowFrameAutosaveName const kMainWindowIdentifier = @"s9xMainWindow";
@implementation AppDelegate
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {

View File

@ -22,12 +22,12 @@
NS_ASSUME_NONNULL_BEGIN
static NSString * const kKeyboardPrefs = @"KeyboardConfig";
static NSString * const kJoypadInputPrefs = @"JoypadInputs";
static NSString * const kJoypadPlayerPrefs = @"JoypadPlayers";
static NSString * const kShowFPSPref = @"ShowFPS";
static NSString * const kVideoModePref = @"VideoMode";
static NSString * const kMacFrameSkipPref = @"FrameSkip";
extern NSString * const kKeyboardPrefs;
extern NSString * const kJoypadInputPrefs;
extern NSString * const kJoypadPlayerPrefs;
extern NSString * const kShowFPSPref;
extern NSString * const kVideoModePref;
extern NSString * const kMacFrameSkipPref;
@interface S9xPreferencesWindowController : NSWindowController<S9xInputDelegate>
@property (nonatomic, weak) IBOutlet NSTabView *tabView;

View File

@ -23,6 +23,13 @@
#import "S9xPreferencesWindowController.h"
#import "S9xButtonConfigTextField.h"
NSString * const kKeyboardPrefs = @"KeyboardConfig";
NSString * const kJoypadInputPrefs = @"JoypadInputs";
NSString * const kJoypadPlayerPrefs = @"JoypadPlayers";
NSString * const kShowFPSPref = @"ShowFPS";
NSString * const kVideoModePref = @"VideoMode";
NSString * const kMacFrameSkipPref = @"FrameSkip";
@implementation S9xPreferencesWindowController
@synthesize tabView, videoModePopup, showFPSCheckbox, devicePopUp, playerPopUp, macFrameSkipTextField, macFrameSkipStepper, macFrameSkipAutomaticButton, configTextFields;