aboutsummaryrefslogtreecommitdiff
path: root/backends/taskbar/macosx/dockplugin/dockplugin.m
diff options
context:
space:
mode:
Diffstat (limited to 'backends/taskbar/macosx/dockplugin/dockplugin.m')
-rw-r--r--backends/taskbar/macosx/dockplugin/dockplugin.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/backends/taskbar/macosx/dockplugin/dockplugin.m b/backends/taskbar/macosx/dockplugin/dockplugin.m
index 9d864ef2a8..95f961a39d 100644
--- a/backends/taskbar/macosx/dockplugin/dockplugin.m
+++ b/backends/taskbar/macosx/dockplugin/dockplugin.m
@@ -72,7 +72,7 @@
NSString *gameId = [recentGame valueForKey:@"game"];
NSString *desc = [recentGame valueForKey:@"description"];
NSString *iconFile = [recentGame valueForKey:@"icon"];
-
+
StartGameMenuItem *menuItem = [[StartGameMenuItem alloc] initWithGame:gameId description:desc icon:iconFile];
[recentGamesMenu addItem:menuItem];
[menuItem release];
@@ -88,7 +88,7 @@
- (NSMenuItem*)initWithGame:(NSString *)gameId description:(NSString*)desc icon:(NSString*)iconFile {
self = [super initWithTitle:(desc == nil ? gameId : desc) action:@selector(startGame) keyEquivalent:@""];
[self setTarget:self];
-
+
if (iconFile != nil) {
NSImage *image = [[NSImage alloc] initWithContentsOfFile:iconFile];
[self setImage:image];
@@ -97,7 +97,7 @@
game = gameId;
[game retain];
-
+
return self;
}
@@ -108,7 +108,7 @@
- (IBAction) startGame {
NSLog(@"Starting Game %@...", game);
-
+
NSString *scummVMPath = [[NSWorkspace sharedWorkspace] absolutePathForAppBundleWithIdentifier:@"org.scummvm.scummvm"];
if (scummVMPath == nil) {
NSLog(@"Cannot find ScummVM.app!");