Skip to content

Commit

Permalink
Mark functions in BXBinCueImageImort as static.
Browse files Browse the repository at this point in the history
  • Loading branch information
MaddTheSane committed Oct 10, 2023
1 parent 87d7264 commit 469a26e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions Boxer/BXBinCueImageImport.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ typedef NS_ENUM(NSInteger, BXDADiskOperationStatus)
BXDADiskOperationSucceeded = 1
};

BOOL _mountSynchronously(DASessionRef, DADiskRef disk, CFURLRef path, DADiskUnmountOptions options);
BOOL _unmountSynchronously(DASessionRef session, DADiskRef disk, DADiskMountOptions options);
void _mountCallback(DADiskRef disk, DADissenterRef dissenter, void *status);
static BOOL _mountSynchronously(DASessionRef, DADiskRef disk, CFURLRef path, DADiskUnmountOptions options);
static BOOL _unmountSynchronously(DASessionRef session, DADiskRef disk, DADiskMountOptions options);
static void _mountCallback(DADiskRef disk, DADissenterRef dissenter, void *status);

#pragma mark -
#pragma mark Implementation
Expand Down
20 changes: 10 additions & 10 deletions Boxer/DOS window/BXStatusBarController.m
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,10 @@ - (void) observeValueForKeyPath: (NSString *)keyPath
{
[self _syncSegmentedButtonStates];

NSArray *mouseLockModifiers = [NSArray arrayWithObjects:
@"DOSViewShown",
NSArray *mouseLockModifiers = @[@"DOSViewShown",
@"inputController.mouseActive",
@"inputController.mouseLocked",
@"inputController.trackMouseWhileUnlocked",
nil];
@"inputController.trackMouseWhileUnlocked"];

if ([mouseLockModifiers containsObject: keyPath])
{
Expand Down Expand Up @@ -160,17 +158,19 @@ - (void) _syncSegmentedButtonStates
[self.statusBarControls setEnabled: self.controller.inputController.mouseActive forSegment: BXStatusBarMouseLockSegment];

NSString *panelImageName;
if ([self.statusBarControls isSelectedForSegment: BXStatusBarProgramPanelSegment])
if ([self.statusBarControls isSelectedForSegment: BXStatusBarProgramPanelSegment]) {
panelImageName = @"PanelCollapseTemplate";
else
} else {
panelImageName = @"PanelExpandTemplate";
}
[self.statusBarControls setImage: [NSImage imageNamed: panelImageName] forSegment: BXStatusBarProgramPanelSegment];

NSString *lockImageName;
if ([self.statusBarControls isSelectedForSegment: BXStatusBarMouseLockSegment])
lockImageName = @"NSLockLockedTemplate";
else
lockImageName = @"NSLockUnlockedTemplate";
if ([self.statusBarControls isSelectedForSegment: BXStatusBarMouseLockSegment]) {
lockImageName = NSImageNameLockLockedTemplate;
} else {
lockImageName = NSImageNameLockUnlockedTemplate;
}
[self.statusBarControls setImage: [NSImage imageNamed: lockImageName] forSegment: BXStatusBarMouseLockSegment];
}

Expand Down

0 comments on commit 469a26e

Please sign in to comment.