Commit Graph
100 Commits
Author SHA1 Message Date
Steve Checkoway 1f79f25240 Fix crash by stopping the audio _on_ the real time thread. This ensures that the current buffer gets played but that it never gets called again. I'm not convinced that the property listeners won't get called but I'm not sure how to handle those sanely just yet, at least in a lockless manner.
This code doesn't handle external format changes very well yet--but then, neither does the other sound driver.
2006-11-12 09:04:14 +00:00
Steve Checkoway c4fe855aca Spacing. 2006-11-04 23:36:42 +00:00
Steve Checkoway 63bb4faf7d Make NotesWriterDWI also a namespace. 2006-11-04 23:36:11 +00:00
Steve Checkoway 0ed39a2f5e No persistent data so make it a namespace. 2006-11-04 23:28:33 +00:00
Steve Checkoway 4ab88447f4 Make static, nonmember functions. 2006-11-04 23:23:41 +00:00
Steve Checkoway d9a533bf9f Simplify. 2006-11-03 05:44:57 +00:00
Steve Checkoway 4f4c6b5e87 Fix compile. 2006-11-03 05:33:43 +00:00
Steve Checkoway 360f1e66d5 Simplify. 2006-11-03 04:49:29 +00:00
Steve Checkoway 24a5651f0e Remove all items from a collection equal to a particular element in linear time. Only really useful for Sequences. 2006-11-03 04:46:36 +00:00
Steve Checkoway d571048d2b This is overkill for such a simple operation. Doing it this way should optimize to a single add and it doesn't have any of the problems associated with breaking aliasing rules. 2006-11-01 11:30:41 +00:00
Steve Checkoway cf3a76b600 Doing these conversions through a union is not safe either but more to the point, it isn't what's happening here. 2006-11-01 11:19:52 +00:00
Steve Checkoway e3e5cf77e5 Don't include Foreach.h in RageUtil.h which does not use it. Instead, include it in the individual files that actually use it. 2006-11-01 11:18:46 +00:00
Steve Checkoway b7493d25f7 Style. 2006-11-01 10:58:59 +00:00
Steve Checkoway f241645ff5 Unneeded. 2006-11-01 10:58:29 +00:00
Steve Checkoway 30d9410b65 Unneeded. 2006-11-01 10:45:51 +00:00
Steve Checkoway c0a119bf10 Unneeded. 2006-11-01 10:34:20 +00:00
Steve Checkoway 5f851a47ca Make GetApplicableFiles() static and don't create a loader unless it can load from that directory. 2006-11-01 10:09:13 +00:00
Steve Checkoway a9e04a845a Unused. 2006-11-01 09:42:44 +00:00
Steve Checkoway 0276292b9f Revert. The encoding concerns brought up on the mailing have not been addressed. 2006-11-01 08:45:29 +00:00
Steve Checkoway b5e66c2712 "Foo\tBar - Baz" should be parsed as title = "Foo", subtitle = "Bar - Baz", not title = "Foo\tBar", subtitle = "- Baz" 2006-10-31 10:24:24 +00:00
Steve Checkoway 9ef4cf40e0 Scale GetTotalPossibleStepsSeconds() by fMusicRate. Fixes ComboGraph and GraphDisplay when using a different music rate. 2006-10-30 10:00:43 +00:00
Steve Checkoway 796aa48ba2 Fix life meter. 2006-10-30 09:23:58 +00:00
Steve Checkoway 021a4eb3aa ScreenEvaluationSummary is nearly the same as ScreenEvaluationStage. The Summary screen was not drawing correctly though. Just use the same Bar(Possible|Acutal).* as SEStage. 2006-10-30 08:59:34 +00:00
Steve Checkoway 5ba98d2584 unused. 2006-10-30 08:38:47 +00:00
Steve Checkoway 53a0cd432e fix 2006-10-29 09:34:57 +00:00
Steve Checkoway 0e8a2ecd5b Fix brain dead g++ 4.0.1's inability to have private constants without declaring storage for them. 2006-10-28 08:21:21 +00:00
Steve Checkoway 8588b48a15 Set the perspective when drawing in a subclass of ActorFrame, not just for children of subclasses. 2006-10-26 06:03:12 +00:00
Steve Checkoway 840a11d589 Unused. 2006-10-23 18:34:43 +00:00
Steve Checkoway 522cb68178 Comment. 2006-10-23 18:21:46 +00:00
Steve Checkoway 9d19fd5008 Simplify. 2006-10-23 03:35:34 +00:00
Steve Checkoway 802b2349a1 Simplify reverse iterators. There isn't a "past the beginning" iterator so this is hard to make a true bidirectional iterator. Instead restrict this to a single direction based on the m_bReverse parameter. Use the "past the end" iterator in place of the "past the beginning" iterator when in reverse. 2006-10-23 03:33:24 +00:00
Steve Checkoway 979f7843ed Optimize. It's a bit tricky to think about but pleasantly symmetric. 2006-10-23 01:03:49 +00:00
Steve Checkoway 4805c6889d Fix statement with no effect. = has a higher precedence than ?:. 2006-10-23 00:15:43 +00:00
Steve Checkoway a8d0c464e2 Unused. 2006-10-23 00:14:29 +00:00
Steve Checkoway cd9ec6d6c0 Pointers to a member function Foo::Bar() have the form &Foo::Bar. The & is mandatory, unlike pointers to functions. 2006-10-23 00:14:12 +00:00
Steve Checkoway 6a4e58a8fd Cannot pass nonPOD through ..., will abort at runtime. (Why gcc doesn't just make this an error, I'll never know.) 2006-10-21 08:59:00 +00:00
Steve Checkoway 89f60be8bf ctor. 2006-10-21 08:55:54 +00:00
Steve Checkoway 56d052f6f1 Fix potential crash if the style has more columns than the max allowed. 2006-10-20 07:50:20 +00:00
Steve Checkoway 228e566f21 Simplify. 2006-10-20 07:45:36 +00:00
Steve Checkoway 1b6b6f68c2 GenericTween(On|Off). 2006-10-20 07:29:23 +00:00
Steve Checkoway ea34c45ab3 Oops. Turn debugging off. 2006-10-20 07:27:19 +00:00
Steve Checkoway 80a0cf4e5b Metrics update. The timer is not shown. I am not quite sure why. 2006-10-20 07:24:11 +00:00
Steve Checkoway 035c833314 Unused. 2006-10-20 07:17:31 +00:00
Steve Checkoway 18ad948dac Simplify by inheriting from SWME. 2006-10-20 07:08:36 +00:00
Steve Checkoway 412413fa5c m_sName. 2006-10-20 06:47:20 +00:00
Steve Checkoway 5476c60b41 Stick the scrolling text into a separate actor and add that as a child. The scrolling text only needs a single BitmapText "stamp" that it moves around and draws. 2006-10-20 06:44:15 +00:00
Steve Checkoway dc10e741d7 Fix perspective. 2006-10-20 04:32:46 +00:00
Steve Checkoway eefc6e283f BlendMode 2006-10-17 21:07:00 +00:00
Steve Checkoway 200063c9a4 Add bitmap text in lua. Just an example, feel free to make this look good now. 2006-10-17 20:23:22 +00:00
Steve Checkoway 4ad2102387 Cleanup. 2006-10-17 10:00:18 +00:00
Steve Checkoway 96190e04b3 Stretch. Having widescreen graphics that we could just crop would be much better. Anyone want to make such backgrounds? 2006-10-17 09:25:25 +00:00
Steve Checkoway b863eef79a Difficulty. Remove unused deprecated. 2006-10-17 08:41:33 +00:00
Steve Checkoway 9b7c143048 Fix path 2006-10-17 08:34:18 +00:00
Steve Checkoway e00b841aec Fix extra stage. 2006-10-17 08:23:09 +00:00
Steve Checkoway 64138f7894 Enums. 2006-10-17 08:22:47 +00:00
Steve Checkoway f0bf9264c2 static. 2006-10-17 08:14:45 +00:00
Steve Checkoway b90d4f8769 Cleanup. 2006-10-17 07:56:48 +00:00
Steve Checkoway 22720e8338 Use filename. 2006-10-16 10:34:20 +00:00
Steve Checkoway a19dad4716 Fix input crash and add text as subactors. 2006-10-16 10:16:47 +00:00
Steve Checkoway 156322028e Play name entry music. 2006-10-16 09:31:28 +00:00
Steve Checkoway ea383df3e1 Static. 2006-10-16 09:01:39 +00:00
Steve Checkoway 52e55b8efc Cleanup. This is done in the metrics with lua. 2006-10-16 08:47:15 +00:00
Steve Checkoway baa0c8e6c8 It does. RString( num, c ). 2006-10-16 08:44:12 +00:00
Steve Checkoway 59a7aee9b5 Use metrics. 2006-10-16 08:42:54 +00:00
Steve Checkoway 15a60d7f9d Once CurrentStringIndex is equal to MAX_RANKING_NAME_LENGTH, it isn't going to change so break. 2006-10-16 08:27:49 +00:00
Steve Checkoway 07d33c3935 widescreen 2006-10-16 08:08:02 +00:00
Steve Checkoway 7fa809ed32 I am not totally positive that this is the correct way to do this, but it seems to work in widescreen now. 2006-10-16 08:05:53 +00:00
Steve Checkoway d07dc2335a static. 2006-10-16 07:30:25 +00:00
Steve Checkoway 8d02fa3eb3 Cleanup. 2006-10-16 07:18:03 +00:00
Steve Checkoway 793c616f38 Simplify. 2006-10-16 04:53:48 +00:00
Steve Checkoway bffe668d00 Real unique names now. 2006-10-16 04:52:12 +00:00
Steve Checkoway 75564786d4 Generate a "unique" name based on line numbers. 2006-10-16 04:51:46 +00:00
Steve Checkoway 1e3466997e Cleanup. 2006-10-15 09:53:27 +00:00
Steve Checkoway 061df3ccfa cleanup 2006-10-15 09:51:54 +00:00
Steve Checkoway 4590dea0b3 Partial revert. Glenn knew what he was doing with lua_next(), even if I did not. =) 2006-10-15 08:47:31 +00:00
Steve Checkoway 28df192f43 Remove debugging. 2006-10-15 08:07:34 +00:00
Steve Checkoway c3eccabd98 foo? 2006-10-15 08:00:28 +00:00
Steve Checkoway 1948d57161 Simplify. 2006-10-15 07:51:38 +00:00
Steve Checkoway 335227c095 Nothing is pushed when lua_next() returns 0. 2006-10-15 07:39:16 +00:00
Steve Checkoway a183541eed Use FOREACH_LUATABLE. 2006-10-15 03:16:06 +00:00
Steve Checkoway 943ba7e0fa FOREACH_LUATABLE simplifies iterating over all key-value pairs in the lua table at index. One difference with calling lua_next() is that the key is duplicated and pushed onto the stack above the value. At the beginning of the loop body the stack looks like:
-1 key
-2 value
-3 key
...
The top key and value can be removed or modified as required. The key at -3 should not be touched since it is required for the next iteration through the loop.

Stack management is simplified. Anything left on the stack above the key will be popped. After the loop terminates normally, the stack will be as it was before the loop was entered (no nil values to clean up).
2006-10-15 03:15:32 +00:00
Steve Checkoway f3c949486e NEver -> Never. 2006-10-15 01:33:36 +00:00
Steve Checkoway fbd0863d56 Unused. 2006-10-15 00:09:59 +00:00
Steve Checkoway e87789da7c Rename XToString2 to XToString. 2006-10-15 00:09:18 +00:00
Steve Checkoway 04bff6bc1d Use XToString2. 2006-10-15 00:00:22 +00:00
Steve Checkoway a6b3f71e67 Change some settings. 2006-10-14 22:20:24 +00:00
Steve Checkoway 3ef367e613 fix 2006-10-14 21:59:51 +00:00
Steve Checkoway daa4b4617c "0" is not a boolean. 2006-10-14 08:04:57 +00:00
Steve Checkoway 4195f10b80 LoadingScreen is a global. 2006-10-14 07:00:31 +00:00
Steve Checkoway 2568284699 Unbreak HighScoreForACourseAndTrail node creation. 2006-10-14 06:53:16 +00:00
Steve Checkoway bc6fb8d7ed Add targets for lua and luac since we build custom versions of them. 2006-10-14 04:29:32 +00:00
Steve Checkoway 3e913de2d2 Fix warning coming from system headers. Add a newline in error messages that will likely never be emitted... 2006-10-13 05:11:54 +00:00
Steve Checkoway 6f426c169a Make sure that the correct function is actually overridden. See list. 2006-10-12 07:04:20 +00:00
Steve Checkoway bf641a3510 Change some settings. 2006-10-12 06:45:54 +00:00
Steve Checkoway 6fd4694b79 Simplify. 2006-10-11 11:12:09 +00:00
Steve Checkoway 35a20193ef Fix "statement with no effect." 2006-10-11 10:50:17 +00:00
Steve Checkoway 8ef7317b57 Casting an rvalue to nonconst reference is illegal. I'm not positive why these are considered to be rvalues when they are cast. 2006-10-11 10:23:31 +00:00
Steve Checkoway 7046538f4e Casting an rvalue to nonconst reference is illegal. I'm not positive why these are considered to be rvalues when they are cast. 2006-10-11 10:15:36 +00:00
Steve Checkoway c532646ac1 Casting an rvalue to nonconst reference is illegal. I'm not positive why these are considered to be rvalues when they are cast. 2006-10-11 09:33:09 +00:00
Steve Checkoway 9ad5ac4b3e Fix warning. 2006-10-09 08:25:28 +00:00