Steve Checkoway
|
003454ccfd
|
Deprecated. Note that lua_objlen() doesn't actually return the number of elements in the table. It simply evaluates the new # operator which will return the first integer n such that t[n] is not nil and t[n+1] is nil. Note that this means that this is only useful for tables which have no "holes" and integer indexes (starting at 1).
If you really want the table size, you have to walk the whole table (using next() or pairs() in Lua or lua_next() in C).
|
2006-09-26 09:13:11 +00:00 |
|
Steve Checkoway
|
9914f50ade
|
Safe macros. (Probably only needed if the type of argument is not known at compile time and accessed with something other than a constant.)
|
2006-09-26 05:50:40 +00:00 |
|
Steve Checkoway
|
c56d379860
|
Stop uglifying the ternary operator.
|
2006-09-26 05:44:44 +00:00 |
|
Steve Checkoway
|
6fe6baa241
|
Unused. The purpose of this connivence function as stated in the comments (which isn't quite what it did) is exactly what RunExpression does.
|
2006-09-26 05:35:24 +00:00 |
|
Steve Checkoway
|
4a545228a9
|
Simplify.
|
2006-09-26 05:34:18 +00:00 |
|
Steve Checkoway
|
b722c135c6
|
Add file.
|
2006-09-26 04:31:54 +00:00 |
|
Steve Checkoway
|
d1d56a999c
|
Missing header.
|
2006-09-26 04:07:22 +00:00 |
|
Steve Checkoway
|
68dd073282
|
Pasting "PlayMode_" and "Index" does not make a valid preprocessing token.
|
2006-09-26 04:06:03 +00:00 |
|
Steve Checkoway
|
880a97aa3b
|
Remove old lua library build.
|
2006-09-25 10:56:16 +00:00 |
|
Steve Checkoway
|
c8cd4cfc6e
|
Add lua target.
|
2006-09-25 10:55:54 +00:00 |
|
Steve Checkoway
|
4d41a8de08
|
Add files.
|
2006-09-25 02:14:52 +00:00 |
|
Steve Checkoway
|
9facfc2731
|
Dialogs can be thrown before INPUTFILTER is constructed.
|
2006-09-25 02:14:41 +00:00 |
|
Steve Checkoway
|
56186f2bee
|
Missing strings.
|
2006-09-25 01:59:10 +00:00 |
|
Steve Checkoway
|
1345a2cd5f
|
LogType -> string. Done.
|
2006-09-24 03:57:40 +00:00 |
|
Steve Checkoway
|
c8a2b7601c
|
LogType -> string.
|
2006-09-24 03:57:26 +00:00 |
|
Steve Checkoway
|
b1a6f94d69
|
This was breaking encapsulation. The api is more or less the same. The only purpose for breaking the error message apart like that is it allows a consistent look to the messages. (Other files coming soon.)
|
2006-09-24 03:56:04 +00:00 |
|
Steve Checkoway
|
883b45a8df
|
Maybe these should stay as strings. For now just make them work.
|
2006-09-23 19:19:41 +00:00 |
|
Steve Checkoway
|
a4aa69b148
|
Remove ThemeMetricEnum. Since all metrics are evaluated as lua, use lua integer constants.
|
2006-09-23 07:21:26 +00:00 |
|
Steve Checkoway
|
930af9db5c
|
Add file.
|
2006-09-22 06:58:14 +00:00 |
|
Steve Checkoway
|
1598deda7f
|
Fix crash if lua_tostring() returns NULL.
|
2006-09-21 09:42:08 +00:00 |
|
Steve Checkoway
|
3943ba773c
|
Fix crash if lua_tostring() returns NULL. (Maybe not accepting NULL in RString wasn't a good idea.)
|
2006-09-21 07:33:51 +00:00 |
|
Steve Checkoway
|
6ad2454400
|
Cleanup.
|
2006-09-21 07:25:38 +00:00 |
|
Steve Checkoway
|
175ae8cac4
|
I ended up not using this.
|
2006-09-21 07:19:13 +00:00 |
|
Steve Checkoway
|
93a5184cfd
|
Simplify. Now FromStack() is unused except for Pop().
|
2006-09-21 07:12:49 +00:00 |
|
Steve Checkoway
|
d7e64dc979
|
Simplify. PushStack was only calling Push and possibly generating a function for each enumerated type which in the end only called Push. Rename PopStack -> Pop to be symmetric with Push.
|
2006-09-21 07:06:18 +00:00 |
|
Steve Checkoway
|
064f147f84
|
Unneeded.
|
2006-09-21 06:52:39 +00:00 |
|
Steve Checkoway
|
a70080c094
|
Static.
|
2006-09-21 06:52:13 +00:00 |
|
Steve Checkoway
|
01c4e531d9
|
Remove files.
|
2006-09-21 03:54:03 +00:00 |
|
Steve Checkoway
|
2e927c3636
|
Simplify.
|
2006-09-21 01:51:27 +00:00 |
|
Steve Checkoway
|
c9e0e7e51d
|
Don't return NULL.
|
2006-09-20 00:04:19 +00:00 |
|
Steve Checkoway
|
6016440012
|
Don't return NULL.
|
2006-09-19 23:52:34 +00:00 |
|
Steve Checkoway
|
ea1e408b24
|
Simplify.
|
2006-09-19 04:47:09 +00:00 |
|
Steve Checkoway
|
32c209a322
|
Cleanup.
|
2006-09-19 04:44:59 +00:00 |
|
Steve Checkoway
|
4a81774221
|
Remove empty duplicate.
|
2006-09-18 10:30:24 +00:00 |
|
Steve Checkoway
|
7f6ccd1688
|
Cleanup. Don't return NULL when RString is expected.
|
2006-09-18 10:04:05 +00:00 |
|
Steve Checkoway
|
b1ccf2e5ff
|
The correct syntax for theme metrics is "class::name".
|
2006-09-17 05:37:42 +00:00 |
|
Steve Checkoway
|
941dac27b3
|
Fix memory leak and possible buffer overflow. CFStringGetMaximumSizeForEncoding() doesn't mention anything about NULL terminators so add one to protect against that.
|
2006-09-17 05:14:20 +00:00 |
|
Steve Checkoway
|
a5ecf51f8a
|
Fix linux compile (not tested).
|
2006-09-17 03:56:28 +00:00 |
|
Steve Checkoway
|
6cd7373a95
|
Change other languges. We should probably use correct quotes for others languages.
|
2006-09-17 03:32:46 +00:00 |
|
Steve Checkoway
|
af711bb8d5
|
update string
|
2006-09-17 03:26:58 +00:00 |
|
Steve Checkoway
|
6ea2a41b00
|
Cleanup RageException::Throw(). Do not use ssprintf() inside of Throw() and do not pass it bare error messages. Use RageException::Throw( "%s", sError.c_str() ); instead. Be consistent with quoting file names "%s" and theme metrics as "%s : %s". Try to make them complete English sentences when possible.
|
2006-09-17 01:19:19 +00:00 |
|
Steve Checkoway
|
c9fa49b7ba
|
Use UserLog. Also clean up RageException::Throw() calls.
|
2006-09-17 01:14:39 +00:00 |
|
Steve Checkoway
|
79446f6ef5
|
Theme element and theme metric.
|
2006-09-17 01:13:40 +00:00 |
|
Steve Checkoway
|
e2a56902c9
|
Check the format.
|
2006-09-16 23:20:13 +00:00 |
|
Steve Checkoway
|
420846a012
|
oops, missed one.
|
2006-09-16 19:56:00 +00:00 |
|
Steve Checkoway
|
ba8b31a1cf
|
Simplify at the top then cleanup the breaks.
|
2006-09-16 19:28:44 +00:00 |
|
Steve Checkoway
|
4e7afa70fb
|
Use the course song index, not the stage index (which is always STAGE_1 rather than STAGE_ONI for some reason).
|
2006-09-16 19:15:36 +00:00 |
|
Steve Checkoway
|
6051deb2a8
|
Comment.
|
2006-09-16 03:59:02 +00:00 |
|
Steve Checkoway
|
951741153b
|
Only flush the directory into which we're writing.
|
2006-09-16 03:44:47 +00:00 |
|
Steve Checkoway
|
e7e034949b
|
Only flush the modified dir. Why do we need to flush this at all?
|
2006-09-16 03:39:11 +00:00 |
|
Steve Checkoway
|
1b35499f4e
|
Only flush the directories of the NoteSkins in question.
|
2006-09-16 03:34:44 +00:00 |
|
Steve Checkoway
|
335f6a4790
|
Only flush songs/courses/edits directories.
|
2006-09-16 03:31:27 +00:00 |
|
Steve Checkoway
|
a22b349e81
|
Only flush the directory of the theme in question.
|
2006-09-16 03:26:23 +00:00 |
|
Steve Checkoway
|
d15318cc42
|
Only flush "Save/".
|
2006-09-16 03:17:18 +00:00 |
|
Steve Checkoway
|
ed9ae19afd
|
Only flush the screen shot directory.
|
2006-09-16 03:16:03 +00:00 |
|
Steve Checkoway
|
f8522927cc
|
reply -> replay
|
2006-09-16 03:12:07 +00:00 |
|
Steve Checkoway
|
363e726652
|
Only flush the directory cache of the screen shot directory.
|
2006-09-16 03:09:42 +00:00 |
|
Steve Checkoway
|
5265df4393
|
Fix memory leak if screenshot fails.
|
2006-09-16 03:04:04 +00:00 |
|
Steve Checkoway
|
2cf71907ee
|
Fix comment. Only 5 numbers.
|
2006-09-16 02:26:14 +00:00 |
|
Steve Checkoway
|
bdcdba3811
|
Simplify.
|
2006-09-16 00:14:20 +00:00 |
|
Steve Checkoway
|
a95ce5ecdb
|
Cleanup.
|
2006-09-15 23:58:23 +00:00 |
|
Steve Checkoway
|
db88a9a4fd
|
Fix compile.
|
2006-09-15 23:36:05 +00:00 |
|
Steve Checkoway
|
06268ef92b
|
Use AppFocusChanged().
|
2006-09-15 23:34:24 +00:00 |
|
Steve Checkoway
|
37314eb432
|
While running, it's possible to lose focus and regain focus before an update has ended (for example if the main thread is block on a dialog return) such that it appears that focus was never lost. AppFocusChanged() will return true if the focus has changed since the last time it was called.
|
2006-09-15 23:33:43 +00:00 |
|
Steve Checkoway
|
f3f17b1ae3
|
Level range is 0 to 1.
|
2006-09-15 22:52:05 +00:00 |
|
Steve Checkoway
|
5734377d37
|
Fix confusing local and global variables having the same name.
|
2006-09-15 22:51:29 +00:00 |
|
Steve Checkoway
|
a5dc103bc2
|
Fix. s is upper case, sGrade is not.
|
2006-09-15 22:50:15 +00:00 |
|
Steve Checkoway
|
e262e7902a
|
No need for static.
|
2006-09-15 22:11:08 +00:00 |
|
Steve Checkoway
|
7ca6b10016
|
s -> g.
|
2006-09-15 22:04:29 +00:00 |
|
Steve Checkoway
|
eff3e0d91c
|
Break on exception.
|
2006-09-15 19:40:32 +00:00 |
|
Steve Checkoway
|
87d3d0e043
|
Cleanup.
|
2006-09-15 19:03:21 +00:00 |
|
Steve Checkoway
|
89c3ef56d4
|
Remove Xbox hack. (Unless there's a DEL defined as well.)
|
2006-09-15 18:21:41 +00:00 |
|
Steve Checkoway
|
e8cf81a759
|
Spacing.
|
2006-09-15 18:21:12 +00:00 |
|
Steve Checkoway
|
125fccc33c
|
Simplify. Don't pass the button pressed bool along. This can be derived from the level every time.
|
2006-09-15 08:31:53 +00:00 |
|
Steve Checkoway
|
a0e54b55e9
|
Support rotations. I'm not sure what it means to rotate left, right, etc., so I just picked left to be negative values to be left/up and positive values to be right/down.
Use make_pair.
|
2006-09-15 08:04:21 +00:00 |
|
Steve Checkoway
|
2f2338021d
|
Update.
|
2006-09-15 04:42:08 +00:00 |
|
Steve Checkoway
|
ac68dd3c57
|
Don't use ints for enums.
|
2006-09-15 04:40:27 +00:00 |
|
Steve Checkoway
|
1fc4b23cfa
|
Factor out code detection and simplify. The "Tricky" comment was out of date.
|
2006-09-15 03:09:23 +00:00 |
|
Steve Checkoway
|
b342279547
|
Fix back. Simplify.
|
2006-09-15 02:53:15 +00:00 |
|
Steve Checkoway
|
88baa838a8
|
Unwrap. Also make start only trigger on the first press. Without this, alt-enter will start the song.
|
2006-09-15 02:28:05 +00:00 |
|
Steve Checkoway
|
23221ec7bf
|
Screen::MenuStart() doesn't do anything.
|
2006-09-15 02:08:47 +00:00 |
|
Steve Checkoway
|
4b7edef4d7
|
Allow repeating left/right.
|
2006-09-15 01:54:21 +00:00 |
|
Steve Checkoway
|
944a913790
|
PlayerNumber -> IEP.
|
2006-09-15 01:47:24 +00:00 |
|
Steve Checkoway
|
7dc2867dd2
|
PlayerNumber -> IEP.
|
2006-09-15 01:13:39 +00:00 |
|
Steve Checkoway
|
416a5e3ddc
|
Add patcher/upgrader/installer thingy.
|
2006-09-15 00:27:02 +00:00 |
|
Steve Checkoway
|
5bea54f406
|
Initialize all members.
|
2006-09-14 21:50:40 +00:00 |
|
Steve Checkoway
|
7b636c506b
|
Add debugging for 1555891.
|
2006-09-14 21:30:35 +00:00 |
|
Steve Checkoway
|
222b082f55
|
This assert was triggered in bug 1554335. Debugging.
|
2006-09-14 21:02:55 +00:00 |
|
Steve Checkoway
|
af20d30581
|
Unused.
|
2006-09-14 09:33:06 +00:00 |
|
Steve Checkoway
|
b5f57abc4e
|
longchar -> wchar_t
|
2006-09-14 09:32:04 +00:00 |
|
Steve Checkoway
|
5083893317
|
Use UCKeyTranslate if the 'uchr' resource exists. If not, fall back on the 'KCHR' resource.
|
2006-09-14 09:13:46 +00:00 |
|
Steve Checkoway
|
6e8d262f8f
|
Simplify and optimize by building a reverse lookup table the first time it is called.
|
2006-09-14 07:21:44 +00:00 |
|
Steve Checkoway
|
dd0e3ce082
|
Cleanup.
|
2006-09-14 07:20:05 +00:00 |
|
Steve Checkoway
|
4dd57b99bd
|
Don't hard code joystick and pump numbers.
|
2006-09-14 06:06:53 +00:00 |
|
Steve Checkoway
|
b30cc9d9d1
|
IsPump().
|
2006-09-14 06:06:04 +00:00 |
|
Steve Checkoway
|
abe6090775
|
Simplify.
|
2006-09-14 05:53:13 +00:00 |
|
Steve Checkoway
|
51ab7b551f
|
Initialize pn.
|
2006-09-13 10:57:58 +00:00 |
|
Steve Checkoway
|
5e203c6dcb
|
Match other thread names, e.g. Decode thread.
|
2006-09-13 10:29:54 +00:00 |
|
Steve Checkoway
|
8612011f08
|
Add license.
|
2006-09-13 10:22:37 +00:00 |
|
Steve Checkoway
|
af2bd3b70a
|
Launching via the Finder includes a single argument that looks like: -psn_0_3801089. there's some mapping between this number and pids but I don't know what off hand (or why it's even used at all). Don't pass it along to our main().
|
2006-09-13 10:20:25 +00:00 |
|