Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PUAE
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
PUAE
Commits
c64ca435
Commit
c64ca435
authored
Feb 23, 2011
by
GnoStiC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
puae 2.3.1
parent
397698e3
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
8 deletions
+37
-8
configure.in
configure.in
+1
-1
release_.sh
release_.sh
+5
-0
Info.plist.in
src/od-macosx/Info.plist.in
+2
-2
main.m
src/od-macosx/main.m
+29
-5
No files found.
configure.in
View file @
c64ca435
...
...
@@ -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-201
0
Mustafa Tufan
dnl Updated and generally mauled 2008-201
1
Mustafa Tufan
dnl
AC_PREREQ(2.55)
...
...
release_.sh
View file @
c64ca435
...
...
@@ -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
"=================================================="
src/od-macosx/Info.plist.in
View file @
c64ca435
...
...
@@ -10,7 +10,7 @@
<string>
uaerc
</string>
</array>
<key>
CFBundleTypeName
</key>
<string>
UAE Configuration
</string>
<string>
P
UAE Configuration
</string>
<key>
CFBundleTypeRole
</key>
<string>
Viewer
</string>
</dict>
...
...
@@ -20,7 +20,7 @@
<key>
CFBundleExecutable
</key>
<string>
uae
</string>
<key>
CFBundleIconFile
</key>
<string>
e
uae.icns
</string>
<string>
p
uae.icns
</string>
<key>
CFBundlePackageType
</key>
<string>
APPL
</string>
<key>
CFBundleSignature
</key>
...
...
src/od-macosx/main.m
View file @
c64ca435
...
...
@@ -52,7 +52,7 @@ static char **gArgv;
BOOL
gFinderLaunch
=
NO
;
BOOL
gFinishedLaunching
=
NO
;
NSString
*
getApplicationName
(
void
)
NSString
*
getApplicationName
()
{
NSDictionary
*
dict
;
NSString
*
appName
=
0
;
...
...
@@ -68,6 +68,19 @@ NSString *getApplicationName (void)
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
in Tiger or later */
@interface
NSApplication
(
EUAE
)
...
...
@@ -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
]];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment