Commit Graph
100 Commits
Author SHA1 Message Date
Steve Checkoway 0bd653a607 Comment. 2006-06-14 04:13:28 +00:00
Steve Checkoway 5b2b0b4611 Show memory card icon for course edits. 2006-06-14 04:12:20 +00:00
Steve Checkoway 8bc4afd5fe Better assert message. 2006-06-14 04:10:24 +00:00
Steve Checkoway db89c9fe37 revert. This was already there. 2006-06-14 01:12:21 +00:00
Steve Checkoway 14068e1369 This does not belong here but it is needed to link so we have to put it somewhere. 2006-06-14 01:07:43 +00:00
Steve Checkoway 439a6f54f6 Fix script. 2006-06-14 00:56:02 +00:00
Steve Checkoway c6a49f62aa Fix script. 2006-06-14 00:34:18 +00:00
Steve Checkoway b9c12fbd86 It wants the version in the format major.minor.bug with any of them empty. 2006-06-13 23:26:11 +00:00
Steve Checkoway 2f93a9fa9b Don't have "StepMania CVS 4.0 CVS". 2006-06-13 23:09:51 +00:00
Steve Checkoway af5f6f4edb Cleanup. 2006-06-13 12:41:40 +00:00
Steve Checkoway b7c1412a70 Re-enable vector code. FastSoundWrite can now handle a dest that is not 16 byte aligned although it will be fastest if dest is 16 byte aligned and size is a multiple of 8. 2006-06-13 12:30:51 +00:00
Steve Checkoway f30c1d797e Disable vector code for now until I fix the case where dest is unaligned. 2006-06-13 07:58:58 +00:00
Steve Checkoway db3a540585 Fix warning (gcc was erroneously saying that it was reaching the end of a nonvoid function) and remove goto. 2006-06-13 06:25:49 +00:00
Steve Checkoway fee39b931d element 2006-06-13 04:47:33 +00:00
Steve Checkoway 7a50252a94 Work around stupid debug CRT. From MSDN:
When used with a debug CRT library, isspace will display a CRT assert if passed a parameter that isn't EOF or in the range of 0 through 0xFF.

We don't care about EOF, so just check for positive values. (I'm not sure why casting didn't work and I don't have a windows machine to test with anyway.)
2006-06-13 04:36:56 +00:00
Steve Checkoway e0b569d495 Trying to track down a debug assert. 2006-06-13 04:08:46 +00:00
Steve Checkoway 9e862f85f3 Add missing string. 2006-06-13 04:00:30 +00:00
Steve Checkoway 63272778c0 LifeTime is only for courses. 2006-06-12 11:18:08 +00:00
Steve Checkoway 47e7ba3657 Invalidate trail caches for edit courses on unlocks. 2006-06-12 10:49:44 +00:00
Steve Checkoway 2ea4cb1ead Don't allow locked songs in edit courses. Allow limiting the number of songs in an edit course to a preference. Nonpositive numbers are infinitely many songs per course (well, up to the hard limit of MAX_ENTRIES_PER_COURSE=50). 2006-06-12 10:49:04 +00:00
Steve Checkoway 4365b8eb62 Spelling. 2006-06-12 09:57:40 +00:00
Steve Checkoway 439ab6c58a Simplify. 2006-06-12 07:59:32 +00:00
Steve Checkoway 4dbf1d44ae Have FromString report failure when it read NaN or INF. 2006-06-12 07:58:54 +00:00
Steve Checkoway 2992fa865a Watch out for NaN, etc. That assert will never trigger unless PCRE stops working (or someone breaks the regex). 2006-06-12 07:56:27 +00:00
Steve Checkoway 3f27205e40 Don't throw on invalid options. If we know that they meant *123 and they have 123*, is there any reason not to simply handle it? 2006-06-12 07:22:26 +00:00
Steve Checkoway 82d6a154ed Earliest start time is zero. 2006-06-12 07:17:54 +00:00
Steve Checkoway d2f3a14495 strtof -> StringToFloat. 2006-06-12 06:42:25 +00:00
Steve Checkoway b61e1638dc Sanitize values a bit. Don't assert when loading songs. 2006-06-12 06:37:54 +00:00
Steve Checkoway a45880281a Wrap strtof. Return 0 on nonfinite values. 2006-06-12 06:36:36 +00:00
Steve Checkoway e0d0cb0c3a Just copy the rest of the macros. 2006-06-12 06:06:39 +00:00
Steve Checkoway 80218aa4dc Disable screen saver while running. 2006-06-11 12:10:52 +00:00
Steve Checkoway 9f6e26da47 Fix case. 2006-06-11 10:46:08 +00:00
Steve Checkoway f871ded721 Add files. 2006-06-11 07:38:30 +00:00
Steve Checkoway fa56d41c17 Use wchar_t. This doesn't actually compile on the mac using the 10.2.8 sdk because wctype.h is missing so no towupper function exists. 2006-06-10 22:36:25 +00:00
Steve Checkoway 52371ff5f7 Revert. See stepmania-devs. 2006-06-10 21:49:51 +00:00
Steve Checkoway f0f4433bf3 Convert URLs to file paths. If the key already exists, overwrite it. 2006-05-26 23:41:42 +00:00
Steve Checkoway 2d791f1b1b Use -O0 with the Debug target. 2006-05-21 22:47:18 +00:00
Steve Checkoway d4c05c2180 Use default as the default NoteSkin. 2006-05-20 09:00:57 +00:00
Steve Checkoway 34a63dd8db Fix crash on extra stage. 2006-05-20 09:00:35 +00:00
Steve Checkoway 9da602cec4 Use the theme metric rather than "default". 2006-05-20 09:00:09 +00:00
Steve Checkoway df6d8cb6ba Make the default NoteSkin a theme metric. That means we can't call GetNoteSkinNames() before the theme is loaded so split out the code to get the names of the the skins for a particular game. 2006-05-20 08:58:53 +00:00
Steve Checkoway 8de96799ad Add better logging. It'd be nice if these values were checked as they were read in from Preferences.ini. 2006-05-20 06:16:09 +00:00
Steve Checkoway 268624f8ec Minor spacing cleanup. 2006-05-20 05:40:09 +00:00
Steve Checkoway cd5a0546b0 Fix compile on newer gcc. 2006-05-20 05:38:23 +00:00
Steve Checkoway bc6cf3b9a3 missed commit 2006-05-20 05:37:03 +00:00
Steve Checkoway 76e98bdaf5 More logging, but less noisy logging (log instead of info). 2006-05-19 20:26:25 +00:00
Steve Checkoway 1bb8e66bf3 Remove unnecessary header files. 2006-05-19 11:05:19 +00:00
Steve Checkoway 59c663b238 Attempt to handle devices other than the built-in audio correctly. Not tested on anything but the built-in audio. 2006-05-19 08:09:38 +00:00
Steve Checkoway 6aa861a475 Just some cleanups. 2006-05-17 10:43:49 +00:00
Steve Checkoway fc3de67cbe While I am at it, create the zip file. 2006-05-17 10:42:37 +00:00
Steve Checkoway 2754fd0f18 Perform the same loop unrolling for Read. This eliminate all stalls in the loop for all processors with altivec (well, at least both G4s (IBM 7400 and 7450) and the G5 (IBM 970) processors. I didn't bother for the other read function since it isn't actually used and is included more for completeness than anything else (plus, these were a lot of fun to write). 2006-05-17 09:59:34 +00:00
Steve Checkoway 177e65a34c Do gcc's job for it and do sane loop unrolling. The (now second) while loop was stalling the pipeline almost as often as it was doing useful work. When gcc tried to do loop unrolling (i.e. when I changed the condition to size >= 8), it produced 4 _identical_ copies of the loop, each of which had the same number of stalls (this is all with the G5, the G4 had one stall in the loop). By unrolling and doing the most basic of instruction scheduling, this produces the same amount of code as gcc does but with 1 stall in the big loop (0 for the G4) but the same number in the second loop which is executed at most 3 times.
To keep gcc from unrolling the second loop, I'm using the bit masking condition which confuses the optimizer.

Note that this behavior won't change unless we stop targeting any OS below 10.3.9 and move to a more recent version of gcc (whose behavior I haven't bothered to test).
2006-05-17 09:27:54 +00:00
Steve Checkoway 8d83e1e3f8 Bah, revert. It still doesn't shut up the profiler. If it's not doing any work, it'll be quite quick. 2006-05-17 09:26:04 +00:00
Steve Checkoway 032c1269bc Pull size check out of the function. Profiling showed that a large number of samples (as in profiling samples, not sound samples) of Vector::FastSoundWrite() where in its prologue which was attributed to the early exit condition (basically just shuts the profiler up). 2006-05-17 09:13:08 +00:00
Steve Checkoway 060b68ff00 Add more logging: Check that the sample rate we just set matches what the device declares as it's sample rate; log if the device's sample rate changes while it's running. 2006-05-17 07:40:54 +00:00
Steve Checkoway 62acf89217 How many times do I have to remove this? 2006-05-17 01:57:08 +00:00
Steve Checkoway 51b2438668 Remove, again. 2006-05-14 09:14:28 +00:00
Steve Checkoway b912d61546 Following Wolfman's example, some comments so that maybe next time I look at this I won't see vec_ctf and think "capture the flag?" 2006-05-14 08:13:16 +00:00
Steve Checkoway 4995793c0b Quiet warning when building for i386. 2006-05-14 08:12:37 +00:00
Steve Checkoway 2b02ad8151 Cleanup. 2006-05-14 08:09:22 +00:00
Steve Checkoway f39e79efed The last of the changes, I hope. 2006-05-14 07:04:28 +00:00
Steve Checkoway ea19495a50 recommit, thanks sf 2006-05-14 06:57:32 +00:00
Steve Checkoway 90ec52aa55 recommit, thanks sf 2006-05-14 06:51:34 +00:00
Steve Checkoway 60d3b90552 I thought I fixed this already. This section ranges from 42 to 47. 2006-05-07 11:13:21 +00:00
Steve Checkoway 7a6d44c6c5 Ensure mad.framework is removed. 2006-05-07 07:39:54 +00:00
Steve Checkoway 57a97ac5f7 Remove files. 2006-05-06 11:20:11 +00:00
Steve Checkoway c2b857d01c Remove bloated c++ wrapper. 2006-05-06 11:19:25 +00:00
Steve Checkoway 431f13437b Unused otherwise. 2006-05-05 09:41:23 +00:00
Steve Checkoway 49d51f0a53 Remove file. 2006-05-05 09:41:16 +00:00
Steve Checkoway 7124e3360a Add MachineId(). 2006-05-05 09:27:26 +00:00
Steve Checkoway 2f95767104 Year. 2006-04-29 11:41:33 +00:00
Steve Checkoway 53f0531bba Reimplement without using Cocoa. Put crashinfo.txt into ~/Library/Logs/PRODUCT_ID along with log.txt and info.txt. 2006-04-29 11:38:49 +00:00
Steve Checkoway 414e2313a8 Reimplement without using Cocoa. 2006-04-29 09:44:02 +00:00
Steve Checkoway cb4c2f5c53 Cleanup. 2006-04-29 09:26:45 +00:00
Steve Checkoway 6869d2f0ba Implement GoToURL(). 2006-04-29 08:36:43 +00:00
Steve Checkoway 9350fe2427 Fix warnings. 2006-04-29 08:35:50 +00:00
Steve Checkoway 16c000665a Remove old files. 2006-04-26 05:14:41 +00:00
Steve Checkoway f2b10c2441 Remove unused search paths. 2006-04-07 07:39:41 +00:00
Steve Checkoway c7131c1b8c Use ~/Library/Preferences instead of ~/Library/Application Support. 2006-04-06 05:55:58 +00:00
Steve Checkoway e13fc56198 Initial linux ppc backtrace implementation. 2006-04-05 00:49:56 +00:00
Steve Checkoway 61363eff0b Use Frame*. 2006-03-29 11:21:44 +00:00
Steve Checkoway 8195572649 If we don't have gtk on linux, use the Null loading window, don't throw an exception. 2006-03-29 07:01:01 +00:00
Steve Checkoway 1a240d3b6c Cleanup. 2006-03-28 14:37:40 +00:00
Steve Checkoway 79fdd16a55 Add CrashHandlerInternal.cpp, remove libresample. 2006-03-28 14:31:14 +00:00
Steve Checkoway 5e898497d2 Add file. 2006-03-28 14:26:35 +00:00
Steve Checkoway 81afe152ec Oops, two changes in that last commit. Don't have the child kill the parent any longer. This doesn't work when gdb is tracing. Why is the parent waiting for the child anyway? It shouldn't really matter that much if the child is signaled.
Also, why doesn't RunCrashHandler call _exit()? ForceDeadlock() calls _exit() after RunCrashHandler(), but ForceCrash does not, it has to go back to sm_crash() before _exit() is called. It's all very mysterious at 6:30 am.
2006-03-28 14:26:22 +00:00
Steve Checkoway 746261d8bd Split out itoa, SignalName, and SignalCodeName. All of these are macros, so testing for them directly is okay (at least on OS X and linux). If some other system doesn't implement them as macros, then checks for them can be added to the configure.ac script.
All of these can be called under crash conditions.
2006-03-28 14:20:57 +00:00
Steve Checkoway 6d001dc761 Leave Save in Application Support, put Cache and Logs in Library, and put screenshots in Documents/PRODUCT_ID Screenshots. 2006-03-28 14:16:56 +00:00
Steve Checkoway 30624ab737 No optimizations in any Debug builds. 2006-03-28 10:02:19 +00:00
Steve Checkoway a649cce9a6 Disable the real time critical sections, it's causing audio problems on single processor machines. 2006-03-28 02:06:06 +00:00
Steve Checkoway 0766c4bf25 How did that happen? 2006-03-25 10:12:10 +00:00
Steve Checkoway 9fc2026e23 oops 2006-03-25 09:27:25 +00:00
Steve Checkoway bb1d5d4c05 Fix iFPS != 0 assertion, at least when a nonzero rate is returned. (Not sure what LCD displays will report.) 2006-03-20 19:59:11 +00:00
Steve Checkoway 568cc67a5b Allow disabling ffmpeg. 2006-03-20 19:01:19 +00:00
Steve Checkoway 7488850bb4 fix strtof check 2006-03-20 18:42:11 +00:00
Steve Checkoway 003adafdec Something about UB, c++, precompiled prefix headers, and -gfull fails so no strip dead code in universal binaries. 2006-03-20 18:37:58 +00:00
Steve Checkoway 4ca585dc01 npos. 2006-03-20 08:39:24 +00:00
Steve Checkoway c3e74bbecc Oops. 2006-03-20 08:06:51 +00:00
Steve Checkoway c1f2256399 Update...something. 2006-03-20 07:59:17 +00:00
Steve Checkoway acbfd4224f Use OS X text converter, not iconv (trying to keep the code base the same no matter for which arch it is compiling). 2006-03-20 07:58:42 +00:00