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
8de5abf2
Commit
8de5abf2
authored
Feb 24, 2011
by
GnoStiC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
puae 2.3.1
parent
674c7670
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
29 additions
and
45 deletions
+29
-45
configure.in
configure.in
+2
-1
Makefile.am
src/Makefile.am
+1
-1
cocoa_gfx.m
src/gfx-cocoa/cocoa_gfx.m
+1
-1
Info.plist
src/od-macosx/Info.plist
+2
-2
Info.plist.in
src/od-macosx/Info.plist.in
+2
-2
Makefile.am
src/od-macosx/Makefile.am
+2
-2
euae.icns
src/od-macosx/euae.icns
+0
-0
main.h
src/od-macosx/main.h
+1
-1
main.m
src/od-macosx/main.m
+18
-35
No files found.
configure.in
View file @
8de5abf2
...
...
@@ -6,7 +6,7 @@ dnl Updated and generally mauled 2008-2011 Mustafa Tufan
dnl
AC_PREREQ(2.55)
AC_INIT(PUAE, 2.3.1,
'mustafa.tufan@gmail.com'
, puae)
AC_INIT(PUAE, 2.3.1,
mustafa.tufan@gmail.com
, puae)
AC_CONFIG_SRCDIR([bootstrap.sh])
AM_CONFIG_HEADER([src/sysconfig.h])
AC_CANONICAL_TARGET
...
...
@@ -63,6 +63,7 @@ if test -z "$commit"; then
commit="not git"
fi
AC_DEFINE_UNQUOTED(PACKAGE_COMMIT, "$commit", [cloned git commit version])
AC_SUBST(PACKAGE_COMMIT, $commit)
dnl
dnl Prefer Gtk2.x over Gtk1.x if both are available
...
...
src/Makefile.am
View file @
8de5abf2
...
...
@@ -83,7 +83,7 @@ if BUILD_MACOSX_BUNDLE
mkdir
-p
$(bundle_contents)/Resources
$(INSTALL_DATA)
od-macosx/Info.plist
$(bundle_contents)
$(INSTALL_PROGRAM)
uae$(EXEEXT)
$(bundle_contents)/MacOS/
$(INSTALL_DATA)
$(srcdir)/od-macosx/
e
uae.icns
$(bundle_contents)/Resources/
$(INSTALL_DATA)
$(srcdir)/od-macosx/
p
uae.icns
$(bundle_contents)/Resources/
endif
noinst_LIBRARIES
=
\
...
...
src/gfx-cocoa/cocoa_gfx.m
View file @
8de5abf2
...
...
@@ -169,7 +169,7 @@ void toggle_mousegrab (void)
int
graphics_init
(
void
)
{
int
success
=
0
;
int
success
=
0
;
return
success
;
}
...
...
src/od-macosx/Info.plist
View file @
8de5abf2
...
...
@@ -27,8 +27,8 @@
<
string
>
????
<
/string
>
<
k
e
y
>
CFBundleName
<
/k
e
y
>
<
string
>
PUAE
<
/string
>
<
k
e
y
>
CFBundle
GetInfo
String
<
/k
e
y
>
<
string
>
@
PACKAGE_COMMIT
@
<
/string
>
<
k
e
y
>
CFBundle
ShortVersion
String
<
/k
e
y
>
<
string
>
2.3.1.397698e373c41c61eaab29f18e10f870c8c39819
<
/string
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
>
2.3.1
<
/string
>
<
/
d
i
c
t
>
...
...
src/od-macosx/Info.plist.in
View file @
8de5abf2
...
...
@@ -27,8 +27,8 @@
<string>
????
</string>
<key>
CFBundleName
</key>
<string>
@PACKAGE_NAME@
</string>
<key>
CFBundle
GetInfo
String
</key>
<string>
@PACKAGE_COMMIT@
</string>
<key>
CFBundle
ShortVersion
String
</key>
<string>
@
VERSION@-@
PACKAGE_COMMIT@
</string>
<key>
CFBundleVersion
</key>
<string>
@VERSION@
</string>
</dict>
...
...
src/od-macosx/Makefile.am
View file @
8de5abf2
...
...
@@ -7,6 +7,6 @@ noinst_LIBRARIES = libosdep.a
libosdep_a_SOURCES
=
main.m memory.c parser.c
noinst_HEADERS
=
main.h memory.h hrtimer.h
noinst_DATA
=
Info.plist.in
e
uae.icns
noinst_DATA
=
Info.plist.in
p
uae.icns
EXTRA_DIST
=
e
uae.icns
EXTRA_DIST
=
p
uae.icns
src/od-macosx/euae.icns
deleted
100644 → 0
View file @
674c7670
File deleted
src/od-macosx/main.h
View file @
8de5abf2
...
...
@@ -33,5 +33,5 @@ typedef unsigned int NSUInteger;
#import <Cocoa/Cocoa.h>
@interface
E
UAE_Main
:
NSObject
@interface
P
UAE_Main
:
NSObject
@end
src/od-macosx/main.m
View file @
8de5abf2
...
...
@@ -54,44 +54,31 @@ BOOL gFinishedLaunching = NO;
NSString
*
getApplicationName
()
{
NSDictionary
*
dict
;
NSString
*
appName
=
0
;
NSDictionary
*
dict
;
NSString
*
appName
=
0
;
/* Determine the application name */
dict
=
(
NSDictionary
*
)
CFBundleGetInfoDictionary
(
CFBundleGetMainBundle
());
/* Determine the application name */
dict
=
(
NSDictionary
*
)
CFBundleGetInfoDictionary
(
CFBundleGetMainBundle
());
if
(
dict
)
appName
=
[
dict
objectForKey
:
@"CFBundleName"
];
if
(
!
[
appName
length
])
appName
=
[[
NSProcessInfo
processInfo
]
processName
];
if
(
!
[
appName
length
])
appName
=
[[
NSProcessInfo
processInfo
]
processName
];
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
(
E
UAE
)
@interface
NSApplication
(
P
UAE
)
-
(
void
)
setAppleMenu
:(
NSMenu
*
)
menu
;
@end
@interface
E
UAE_Application
:
NSApplication
@interface
P
UAE_Application
:
NSApplication
@end
@implementation
E
UAE_Application
@implementation
P
UAE_Application
/* Invoked from the Quit menu item */
-
(
void
)
terminate
:(
id
)
sender
...
...
@@ -119,7 +106,7 @@ in Tiger or later */
/* The main class of the application, the application's delegate */
@implementation
E
UAE_Main
@implementation
P
UAE_Main
/* Set the working directory to the .app's parent directory */
-
(
void
)
setupWorkingDirectory
:(
BOOL
)
shouldChdir
...
...
@@ -139,12 +126,8 @@ 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
];
NSDictionary
*
nfo
;
nfo
=
(
NSDictionary
*
)
CFBundleGetInfoDictionary
(
CFBundleGetMainBundle
());
[
NSApp
orderFrontStandardAboutPanelWithOptions
:
nfo
];
}
...
...
@@ -227,10 +210,10 @@ static void setupWindowMenu (void)
static
void
CustomApplicationMain
(
int
argc
,
char
**
argv
)
{
NSAutoreleasePool
*
pool
=
[[
NSAutoreleasePool
alloc
]
init
];
EUAE_Main
*
e
uae_main
;
PUAE_Main
*
p
uae_main
;
/* Ensure the application object is initialised */
[
E
UAE_Application
sharedApplication
];
[
P
UAE_Application
sharedApplication
];
#ifdef SDL_USE_CPS
{
...
...
@@ -239,7 +222,7 @@ static void CustomApplicationMain (int argc, char **argv)
if
(
!
CPSGetCurrentProcess
(
&
PSN
))
if
(
!
CPSEnableForegroundOperation
(
&
PSN
,
0x03
,
0x3C
,
0x2C
,
0x1103
))
if
(
!
CPSSetFrontProcess
(
&
PSN
))
[
E
UAE_Application
sharedApplication
];
[
P
UAE_Application
sharedApplication
];
}
#endif
/* SDL_USE_CPS */
...
...
@@ -252,13 +235,13 @@ static void CustomApplicationMain (int argc, char **argv)
cocoa_gui_early_setup
();
/* Create SDLMain and make it the app delegate */
euae_main
=
[[
E
UAE_Main
alloc
]
init
];
[
NSApp
setDelegate
:
e
uae_main
];
puae_main
=
[[
P
UAE_Main
alloc
]
init
];
[
NSApp
setDelegate
:
p
uae_main
];
/* Start the main event loop */
[
NSApp
run
];
[
e
uae_main
release
];
[
p
uae_main
release
];
[
pool
release
];
}
...
...
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