Commit c64ca435 authored by GnoStiC's avatar GnoStiC

puae 2.3.1

parent 397698e3
...@@ -2,7 +2,7 @@ dnl Process this file with autoconf to produce a configure script. ...@@ -2,7 +2,7 @@ dnl Process this file with autoconf to produce a configure script.
dnl Written 1996, 1997, 1998 Bernd Schmidt dnl Written 1996, 1997, 1998 Bernd Schmidt
dnl dnl
dnl Updated, re-written and generally mauled 2003 Richard Drummond 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 dnl
AC_PREREQ(2.55) AC_PREREQ(2.55)
......
...@@ -82,3 +82,8 @@ rm -rf src/td-posix/Makefile.in ...@@ -82,3 +82,8 @@ rm -rf src/td-posix/Makefile.in
rm -rf src/td-sdl/Makefile.in rm -rf src/td-sdl/Makefile.in
rm -rf src/td-win32/Makefile.in rm -rf src/td-win32/Makefile.in
rm -rf src/test/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 @@ ...@@ -10,7 +10,7 @@
<string>uaerc</string> <string>uaerc</string>
</array> </array>
<key>CFBundleTypeName</key> <key>CFBundleTypeName</key>
<string>UAE Configuration</string> <string>PUAE Configuration</string>
<key>CFBundleTypeRole</key> <key>CFBundleTypeRole</key>
<string>Viewer</string> <string>Viewer</string>
</dict> </dict>
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<key>CFBundleExecutable</key> <key>CFBundleExecutable</key>
<string>uae</string> <string>uae</string>
<key>CFBundleIconFile</key> <key>CFBundleIconFile</key>
<string>euae.icns</string> <string>puae.icns</string>
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
......
...@@ -52,7 +52,7 @@ static char **gArgv; ...@@ -52,7 +52,7 @@ static char **gArgv;
BOOL gFinderLaunch = NO; BOOL gFinderLaunch = NO;
BOOL gFinishedLaunching = NO; BOOL gFinishedLaunching = NO;
NSString *getApplicationName (void) NSString *getApplicationName ()
{ {
NSDictionary *dict; NSDictionary *dict;
NSString *appName = 0; NSString *appName = 0;
...@@ -68,6 +68,19 @@ NSString *getApplicationName (void) ...@@ -68,6 +68,19 @@ NSString *getApplicationName (void)
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 /* Fix warnings generated when using the setAppleMenu method and compiling
in Tiger or later */ in Tiger or later */
@interface NSApplication (EUAE) @interface NSApplication (EUAE)
...@@ -124,6 +137,17 @@ in Tiger or later */ ...@@ -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) static void setApplicationMenu (void)
{ {
/* warning: this code is very odd */ /* warning: this code is very odd */
...@@ -137,7 +161,7 @@ static void setApplicationMenu (void) ...@@ -137,7 +161,7 @@ static void setApplicationMenu (void)
/* Add menu items */ /* Add menu items */
title = [@"About " stringByAppendingString:appName]; title = [@"About " stringByAppendingString:appName];
[appleMenu addItemWithTitle:title action:@selector(orderFrontStandardAboutPanel:) keyEquivalent:@""]; [appleMenu addItemWithTitle:title action:@selector(performAbout:) keyEquivalent:@""];
[appleMenu addItem:[NSMenuItem separatorItem]]; [appleMenu addItem:[NSMenuItem separatorItem]];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment