mirror of
https://github.com/libretro/PUAE.git
synced 2024-11-23 15:59:59 +00:00
puae 2.3.1
This commit is contained in:
parent
397698e373
commit
c64ca435d3
@ -2,7 +2,7 @@ dnl Process this file with autoconf to produce a configure script.
|
||||
dnl Written 1996, 1997, 1998 Bernd Schmidt
|
||||
dnl
|
||||
dnl Updated, re-written and generally mauled 2003 Richard Drummond
|
||||
dnl Updated and generally mauled 2008-2010 Mustafa Tufan
|
||||
dnl Updated and generally mauled 2008-2011 Mustafa Tufan
|
||||
dnl
|
||||
|
||||
AC_PREREQ(2.55)
|
||||
|
@ -82,3 +82,8 @@ rm -rf src/td-posix/Makefile.in
|
||||
rm -rf src/td-sdl/Makefile.in
|
||||
rm -rf src/td-win32/Makefile.in
|
||||
rm -rf src/test/Makefile.in
|
||||
|
||||
echo "=================================================="
|
||||
echo "Current Commit: "
|
||||
tail -1 .git/packed-refs | awk '{print $1}'
|
||||
echo "=================================================="
|
||||
|
@ -10,7 +10,7 @@
|
||||
<string>uaerc</string>
|
||||
</array>
|
||||
<key>CFBundleTypeName</key>
|
||||
<string>UAE Configuration</string>
|
||||
<string>PUAE Configuration</string>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>Viewer</string>
|
||||
</dict>
|
||||
@ -20,7 +20,7 @@
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>uae</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>euae.icns</string>
|
||||
<string>puae.icns</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleSignature</key>
|
||||
|
@ -52,20 +52,33 @@ static char **gArgv;
|
||||
BOOL gFinderLaunch = NO;
|
||||
BOOL gFinishedLaunching = NO;
|
||||
|
||||
NSString *getApplicationName (void)
|
||||
NSString *getApplicationName ()
|
||||
{
|
||||
NSDictionary *dict;
|
||||
NSString *appName = 0;
|
||||
|
||||
/* Determine the application name */
|
||||
dict = (NSDictionary *) CFBundleGetInfoDictionary (CFBundleGetMainBundle ());
|
||||
if (dict)
|
||||
appName = [dict objectForKey: @"CFBundleName"];
|
||||
if (dict)
|
||||
appName = [dict objectForKey: @"CFBundleName"];
|
||||
|
||||
if (![appName length])
|
||||
appName = [[NSProcessInfo processInfo] processName];
|
||||
|
||||
return appName;
|
||||
return appName;
|
||||
}
|
||||
|
||||
NSString *getApplicationVersion ()
|
||||
{
|
||||
NSDictionary *dict;
|
||||
NSString *appVersion = 0;
|
||||
|
||||
/* Determine the application name */
|
||||
dict = (NSDictionary *) CFBundleGetInfoDictionary (CFBundleGetMainBundle ());
|
||||
if (dict)
|
||||
appVersion = [dict objectForKey: @"CFBundleVersion"];
|
||||
|
||||
return appVersion;
|
||||
}
|
||||
|
||||
/* Fix warnings generated when using the setAppleMenu method and compiling
|
||||
@ -124,6 +137,17 @@ in Tiger or later */
|
||||
}
|
||||
}
|
||||
|
||||
-(void)performAbout:(id)sender
|
||||
{
|
||||
const NSDictionary *nfo;
|
||||
NSString *aName, *aVer;
|
||||
aName = getApplicationName ();
|
||||
aVer = getApplicationVersion ();
|
||||
|
||||
nfo = [NSDictionary dictionaryWithObjectsAndKeys: aName, @"ApplicationName", aVer, @"Version", nil];
|
||||
[NSApp orderFrontStandardAboutPanelWithOptions: nfo];
|
||||
}
|
||||
|
||||
static void setApplicationMenu (void)
|
||||
{
|
||||
/* warning: this code is very odd */
|
||||
@ -137,7 +161,7 @@ static void setApplicationMenu (void)
|
||||
|
||||
/* Add menu items */
|
||||
title = [@"About " stringByAppendingString:appName];
|
||||
[appleMenu addItemWithTitle:title action:@selector(orderFrontStandardAboutPanel:) keyEquivalent:@""];
|
||||
[appleMenu addItemWithTitle:title action:@selector(performAbout:) keyEquivalent:@""];
|
||||
|
||||
[appleMenu addItem:[NSMenuItem separatorItem]];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user