Steve Checkoway
|
5d2d6692c3
|
If we don't have a crash handler, don't try to invoke it.
|
2006-01-15 23:39:48 +00:00 |
|
Steve Checkoway
|
f4f0d604b3
|
Cleanup.
|
2006-01-15 23:20:13 +00:00 |
|
Steve Checkoway
|
d8dad3f4b5
|
Update to Xcode 2.2.1.
|
2006-01-15 13:22:49 +00:00 |
|
Steve Checkoway
|
b4a2e38f11
|
Cleanup spacing, fix check HAVE_WCSLEN, and use __BEGIN_DECL and __END_DECL to keep Xcode from wanting to indent all of the functions another level.
|
2006-01-15 13:01:30 +00:00 |
|
Steve Checkoway
|
1f8ee7124c
|
Use SM_ALIGN. Cleanup spacing.
|
2006-01-15 12:55:38 +00:00 |
|
Steve Checkoway
|
afe2e0efd9
|
The OS X 10.4u SDK defines ALIGN(p) as (((unsigned int)(p) + ALIGNBYTES) &~ ALIGNBYTES) so use SM_ALIGN instead.
|
2006-01-15 12:55:00 +00:00 |
|
Steve Checkoway
|
2979d02878
|
global.h should not be included by header files.
|
2006-01-15 12:53:22 +00:00 |
|
Steve Checkoway
|
75ec9b356c
|
PBXGetVolInfoSync is deprecated but there are something like 15 different functions with different prefixes that all do about the same thing. For now, just mark it as deprecated until I can figure out which I should be using.
|
2006-01-15 12:22:47 +00:00 |
|
Steve Checkoway
|
ca51dc9bd3
|
Apple decided to deprecate two perfectly good functions, replace them with lower level dyld code and use two-level namespace lookup instead.
|
2006-01-15 12:21:19 +00:00 |
|
Steve Checkoway
|
95ad9d9ac8
|
The 10.4u SDK doesn't contain this method so add it as a category on NSApplication but do not define it. This shuts gcc up and should still work.
|
2006-01-15 12:17:07 +00:00 |
|
Steve Checkoway
|
83e18b9a82
|
Virtual functions but no virtual dtor.
|
2006-01-15 11:46:01 +00:00 |
|
Steve Checkoway
|
3a1c0fa30e
|
Fix building for i386 OS X.
|
2006-01-15 11:45:03 +00:00 |
|
Steve Checkoway
|
286c978484
|
cleanup.
|
2006-01-15 11:10:23 +00:00 |
|
Steve Checkoway
|
d42617abf1
|
Remove unused.
|
2006-01-15 11:07:30 +00:00 |
|
Steve Checkoway
|
ac3f0f10da
|
Add files.
|
2006-01-15 05:31:04 +00:00 |
|
Steve Checkoway
|
7034879a79
|
Use SMMainThread with LLW_Cocoa. This fixes just about every GUI issue. For some reason, mousing over the button does not highlight them. Other than that, everything seems to work.
|
2006-01-15 05:30:48 +00:00 |
|
Steve Checkoway
|
0e1ca06a49
|
Use the ADD_ACTIONb macro.
|
2006-01-15 05:24:47 +00:00 |
|
Steve Checkoway
|
4eb7f0dbdf
|
Add method for passing one BOOL. Unlike NSObject's performSelector, an NSInvocation does not make any attempt to translate arguments. It just copies from the buffer passed to addArgument:atIndex: the size of paramter specified. A BOOL is one byte (as opposed to a _Bool bool, or boolean_t which are four bytes...) so it was copying just one byte of the address of the NSNumber object and invoking it with that.
|
2006-01-15 05:24:16 +00:00 |
|
Steve Checkoway
|
7449ae7420
|
Revert.
|
2006-01-15 04:48:05 +00:00 |
|
Steve Checkoway
|
2032f8f4fc
|
On deallocation, perform the actions.
|
2006-01-15 04:43:50 +00:00 |
|
Steve Checkoway
|
4c9fdec12b
|
Simplify.
|
2006-01-15 04:28:14 +00:00 |
|
Steve Checkoway
|
353453a9df
|
Add macros to simplify.
|
2006-01-15 04:28:03 +00:00 |
|
Steve Checkoway
|
56779e06e5
|
Cleanup.
|
2006-01-15 04:15:39 +00:00 |
|
Steve Checkoway
|
45cb8038bd
|
Use SMMainThread to perform a sequence of actions on the main thread as required by the App Kit.
|
2006-01-15 04:15:05 +00:00 |
|
Steve Checkoway
|
429b1dac0f
|
Add helper class to perform a sequence of actions on the main thread (that is, main from the perspective of OS X, i.e. the GUI thread).
|
2006-01-15 04:13:36 +00:00 |
|
Steve Checkoway
|
d2f8a2efdf
|
Update.
|
2006-01-15 00:59:22 +00:00 |
|
Steve Checkoway
|
1a00f1f4d7
|
Remove SDL completely.
|
2006-01-15 00:58:54 +00:00 |
|
Steve Checkoway
|
e21934cbdf
|
Cleanup.
|
2006-01-15 00:00:49 +00:00 |
|
Steve Checkoway
|
ec5ed59eb3
|
Fix warnings.
|
2006-01-14 23:51:27 +00:00 |
|
Steve Checkoway
|
3b45f4347d
|
Remove hack.
|
2006-01-14 23:44:21 +00:00 |
|
Steve Checkoway
|
3673740438
|
Cleanup.
|
2006-01-14 23:39:04 +00:00 |
|
Steve Checkoway
|
a0ed014d57
|
Remove hack for SDL.
|
2006-01-14 23:24:30 +00:00 |
|
Steve Checkoway
|
08173c6510
|
Handle swap interval in LLW_Cocoa itself.
|
2006-01-14 23:22:18 +00:00 |
|
Steve Checkoway
|
ca85424ec5
|
Fix memory leak, set OGL parameters.
|
2006-01-14 22:56:23 +00:00 |
|
Steve Checkoway
|
bb2a53fd6a
|
Fix double toggling of full screen and fix potential issue if 'q' was bound to do something and the user was really trying to quit without doing whatever that was. Both of these were OS X specific issues due to the fact that Quit and Enter Full Screen are two menu options and handled as such.
|
2006-01-14 11:04:05 +00:00 |
|
Steve Checkoway
|
a38e7abea0
|
View all files with 8 space tab stop, 8 space indent.
|
2006-01-14 10:45:22 +00:00 |
|
Steve Checkoway
|
07168018d1
|
Closing the window quits the program. Fix focus issues.
|
2006-01-14 10:40:09 +00:00 |
|
Steve Checkoway
|
713ecb81ce
|
Full screen works. Mouse hiding works. A few GUI issues remain. For example, closing the window does nothing more than close the window.
|
2006-01-14 10:08:42 +00:00 |
|
Steve Checkoway
|
7aa6310339
|
Make this usable. Some issues still exist. E.g., full screen does not work yet.
|
2006-01-14 05:49:26 +00:00 |
|
Steve Checkoway
|
da4303609d
|
Unused.
|
2006-01-14 03:01:50 +00:00 |
|
Steve Checkoway
|
bc3d7d8af4
|
Fix spacing issues (using 8 space tab stops and indents, but I think that should only matter for the final fprintf().
|
2006-01-14 01:54:22 +00:00 |
|
Steve Checkoway
|
a1a1061792
|
Unneeded.
|
2006-01-14 01:27:08 +00:00 |
|
Steve Checkoway
|
3a820b1c76
|
This code is a work in progress and does not currently work.
|
2006-01-14 01:09:33 +00:00 |
|
Steve Checkoway
|
b362a5969f
|
Simplify.
|
2006-01-14 01:04:48 +00:00 |
|
Steve Checkoway
|
77d8011e2c
|
Update projects.
|
2006-01-14 01:01:12 +00:00 |
|
Steve Checkoway
|
07c6998820
|
Fix. AC_CHECK_DECLS always defines HAVE_DECL_*.
|
2006-01-12 09:36:02 +00:00 |
|
Steve Checkoway
|
5ce90c8e01
|
Fix
|
2006-01-12 09:34:56 +00:00 |
|
Steve Checkoway
|
195ff933db
|
Unmaintained.
|
2006-01-12 03:28:17 +00:00 |
|
Steve Checkoway
|
90585d9af2
|
Check for SIGUSR1. Untested since the configure script does not respect my CXXFLAGS and cannot find png.h, even though it is there.
|
2006-01-11 06:21:20 +00:00 |
|
Steve Checkoway
|
2336182b6a
|
We have SIGUSR1
|
2006-01-11 06:20:13 +00:00 |
|
Steve Checkoway
|
963e3aab2a
|
Split out BacktraceAllThreads() and do so when signaled with SIGUSR1.
|
2006-01-11 06:19:47 +00:00 |
|
Steve Checkoway
|
db70c7fc8d
|
Fix abort at runtime.
|
2006-01-11 05:35:41 +00:00 |
|
Steve Checkoway
|
fa3a61eb34
|
Add files, rearrange structure a bit.
|
2006-01-09 03:38:57 +00:00 |
|
Steve Checkoway
|
e7943393b9
|
Cleanup
|
2006-01-09 02:10:14 +00:00 |
|
Steve Checkoway
|
7858052c43
|
Localize menu items.
|
2006-01-09 02:00:00 +00:00 |
|
Steve Checkoway
|
59ec8965d1
|
Add Japanese for good measure.
|
2006-01-09 01:59:35 +00:00 |
|
Steve Checkoway
|
834cb81ff0
|
Add English localization of menus.
|
2006-01-09 01:54:13 +00:00 |
|
Steve Checkoway
|
40dea8c1f7
|
Not used.
|
2006-01-09 01:21:44 +00:00 |
|
Steve Checkoway
|
bc5582d639
|
Fix memory leak.
|
2006-01-08 00:28:17 +00:00 |
|
Steve Checkoway
|
3608694a18
|
Do memory card stuff (more) correctly.
|
2006-01-08 00:23:33 +00:00 |
|
Steve Checkoway
|
f842f51a22
|
Add the line correctly.
|
2006-01-07 22:23:33 +00:00 |
|
Steve Checkoway
|
e603adfe89
|
Revert, again. This time non-ASCII characters (and the BOM) were destroyed.
|
2006-01-07 22:21:57 +00:00 |
|
Steve Checkoway
|
032db7ae56
|
Revert.
|
2006-01-07 20:58:11 +00:00 |
|
Steve Checkoway
|
ab718fdd6e
|
Fix warning. Should NUM_PLAYERS go away?
|
2006-01-07 08:19:13 +00:00 |
|
Steve Checkoway
|
173cbb3372
|
Missing metrics.
|
2006-01-04 19:54:59 +00:00 |
|
Steve Checkoway
|
cd8788c941
|
Newlines do not work here.
|
2006-01-04 19:54:34 +00:00 |
|
Steve Checkoway
|
f5f1097587
|
Delay init to work around static init dependencies.
|
2006-01-03 18:14:18 +00:00 |
|
Steve Checkoway
|
c7c10fa06d
|
fix compile.
|
2006-01-03 02:57:24 +00:00 |
|
Steve Checkoway
|
be00b88919
|
Partial revert of byte swapping macros, just copy them out of the header. Simplify and fix CHECK macro.
|
2005-12-30 14:54:43 +00:00 |
|
Steve Checkoway
|
e9d4fb0cdf
|
machine/endian.h is getting picked up on OS X with gcc 4.0 but no endian.h exists.
|
2005-12-30 14:30:39 +00:00 |
|
Steve Checkoway
|
e6ff11e0b0
|
Remove file.
|
2005-12-30 13:29:31 +00:00 |
|
Steve Checkoway
|
3c8f18483b
|
Make ASSERT_M and FAIL_M into safe function-like macros.
|
2005-12-30 13:26:22 +00:00 |
|
Steve Checkoway
|
ada5f4f00f
|
Use ASSERT like a function.
|
2005-12-30 13:19:40 +00:00 |
|
Steve Checkoway
|
118297bdd5
|
Add Debug build configuration.
|
2005-12-29 11:59:46 +00:00 |
|
Steve Checkoway
|
8d70bcdbf4
|
Lookup the bundle identifier and the version number at runtime. Simplify logic (slightly).
|
2005-12-29 11:54:54 +00:00 |
|
Steve Checkoway
|
0e366eef75
|
Fix compile and warnings.
|
2005-12-29 11:36:20 +00:00 |
|
Steve Checkoway
|
bc22d83f6f
|
Cleanup.
|
2005-12-29 11:35:52 +00:00 |
|
Steve Checkoway
|
9d4719c112
|
Fix crash if Data/splash.png is not found.
|
2005-12-29 11:35:10 +00:00 |
|
Steve Checkoway
|
7dd0014caa
|
Section 3.6.2 clause 2 of the c++ standard basically says we cannot rely on the order of initialization.
|
2005-12-29 11:15:28 +00:00 |
|
Steve Checkoway
|
811e488bb5
|
Try _very_ hard to ensure that y is a compile time constant by forcing gcc to inline. For some reason if I have __attribute__((always_inline)) without the inline keyword, it does not inline correctly.
|
2005-12-29 10:00:43 +00:00 |
|
Steve Checkoway
|
2985f1a6ec
|
Fix warnings.
|
2005-12-29 02:03:14 +00:00 |
|
Steve Checkoway
|
451bb4c396
|
SetExtension does not modify sName. Also, after calling SetExtension( sName, "" ), the period is removed so if the file name is foo.bar.baz, then calling SetExtension with "" followed by "bur" you end up with foo.bur. Instead, just append "." + sExt.
|
2005-12-29 02:01:10 +00:00 |
|
Steve Checkoway
|
2301565b2a
|
Fix threaded input not actually running in the created thread. Allow nonthreaded input (by using the gui--i.e. main event loop--thread) according to PREFSMAN->m_bThreadedInput.
|
2005-12-27 05:55:06 +00:00 |
|
Steve Checkoway
|
3f14485b5d
|
Make default values correspond to the defaults in DialogDriver.h. When the user clicks Ignore, make sure it really does get ignored. Implement AbortRety.
|
2005-12-24 02:08:01 +00:00 |
|
Steve Checkoway
|
b58452d48e
|
Implement fullscreen and give the correct key equiv. to the menu item.
|
2005-12-23 14:41:03 +00:00 |
|
Steve Checkoway
|
c577c65ecc
|
The input has been handled.
|
2005-12-23 14:39:49 +00:00 |
|
Steve Checkoway
|
29b0689d76
|
Fix quotes in About box.
|
2005-12-23 14:33:45 +00:00 |
|
Steve Checkoway
|
b0177e38a4
|
Add support for toggling windowed mode other than alt-enter. E.g. from a menu item.
|
2005-12-23 14:19:43 +00:00 |
|
Steve Checkoway
|
8c47a17f67
|
I think this should be s not g.
|
2005-12-23 13:36:56 +00:00 |
|
Steve Checkoway
|
77d9169679
|
Add/remove files.
|
2005-12-23 13:14:35 +00:00 |
|
Steve Checkoway
|
1f78c80200
|
Put written files in ~/Library/Application Support/PRODUCT_ID.
|
2005-12-23 13:11:59 +00:00 |
|
Steve Checkoway
|
bfd39f66ac
|
Fix screenshot crash.
|
2005-12-23 13:10:21 +00:00 |
|
Steve Checkoway
|
417461540b
|
dstwidth, dstheight >= 0
|
2005-12-23 12:54:45 +00:00 |
|
Steve Checkoway
|
4e84abb2b6
|
Fix warnings.
|
2005-12-23 09:51:09 +00:00 |
|
Steve Checkoway
|
8d93b172ef
|
Cleanup comment, flatten preprocessor directives.
|
2005-12-23 07:34:38 +00:00 |
|
Steve Checkoway
|
f688db98a8
|
Fix compile. "The keyword __attribute__ allows you to specify special attributes when making a declaration." -- http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html
|
2005-12-23 06:15:43 +00:00 |
|
Steve Checkoway
|
87c3fd131a
|
Cleanup.
|
2005-12-21 07:12:45 +00:00 |
|
Steve Checkoway
|
0311b4256b
|
Cleanup.
|
2005-12-20 03:27:17 +00:00 |
|
Steve Checkoway
|
99c41cde08
|
Cleanup registered threads.
|
2005-12-20 03:20:31 +00:00 |
|
Steve Checkoway
|
06d3eb564b
|
Fix implicit typenames.
|
2005-12-19 04:20:58 +00:00 |
|