Commit Graph
100 Commits
Author SHA1 Message Date
Steve Checkoway d9cd752f07 Fix crash on reload metrics due to faulty FlushDirCache logic. I will fix the optimization of flushing just a particular directory when I have time. 2009-11-04 11:19:45 +00:00
Steve Checkoway 976977e703 Do not use an AutoActor to keep track of the children. 2009-10-26 04:33:38 +00:00
Steve Checkoway 1f81a20838 Hack to get the decorations to be deleted. Fixes crashes, but probably not the best way to go about this. 2009-10-26 03:05:08 +00:00
Steve Checkoway 76f0af145b When Move()ing, Remove()ing, or Close()ing a file opened for writing, update the cache when possible (RageFileDriverDirect) or invalidate the directory cache for the directory containing that file (everything else). Remove most of the FlushDirCache() calls as they are no longer needed. This fixes a long standing bug where files added into the cache were stat(2)ed O(n^2) times--that is, each file is stat(2)ed O(n) times. 2009-09-14 08:08:06 +00:00
Steve Checkoway b60a92e633 Add debugging asserts for a divide by zero bug report. 2009-09-14 07:59:14 +00:00
Steve Checkoway 48361720d4 Make sure buffer is large enough to handle all the frames. Patch from Jindrich Makovicka, bug 2799116. 2009-09-13 14:18:26 +00:00
Steve Checkoway 6a222c173b Case. 2009-09-13 12:46:11 +00:00
Steve Checkoway 4758c14722 Fix more case problems. The animation is not correct, but I will leave that to someone with skill in that area. 2009-09-13 12:35:34 +00:00
Steve Checkoway e6e5f43032 Simplify. 2009-09-13 12:00:37 +00:00
Steve Checkoway d1afc07b39 zoom, zoom, zoom 2009-09-13 11:47:33 +00:00
Steve Checkoway c18459f663 revert added tab. 2009-09-13 11:36:13 +00:00
Steve Checkoway 61168f5866 Fix bug id 2838775: StepsDisplay crashes with StepsType_Invalid. 2009-09-13 10:34:11 +00:00
Steve Checkoway 895b987e53 Old missed commit. Make this const. 2009-09-13 10:31:49 +00:00
Steve Checkoway ac6052d737 Old missed commit, remove blank lines. 2009-09-13 10:29:38 +00:00
Steve Checkoway 1079f21b3a Fix warning messages by not trying to use nil values. 2009-09-13 09:46:35 +00:00
Steve Checkoway b40416c8b0 AfterSet does this. maxwidth is not defined for a TextBanner anyway. 2009-09-13 09:45:04 +00:00
Steve Checkoway 3782fbcea2 Short circuiting logic: IsBeingPressed() is const. 2009-06-07 21:41:04 +00:00
Steve Checkoway 50baa264d0 const 2009-06-07 21:39:48 +00:00
Steve Checkoway 19171aadd2 Simplify 2009-06-07 21:13:40 +00:00
Steve Checkoway 14e4a4a249 Remove unnecessary braces. 2009-05-24 01:38:42 +00:00
Steve Checkoway 5078e59066 Real implementation of MountUserFilesystems. Untested on linux. 2009-04-22 19:46:37 +00:00
Steve Checkoway e9ab0b9d77 Add stub so that it compiles. Will fix later when I have time. 2009-04-12 22:28:37 +00:00
Steve Checkoway 054942663e Remove files. 2009-04-11 21:02:31 +00:00
Steve Checkoway d3352fdfac Mount UserPackages 2009-04-11 20:59:03 +00:00
Steve Checkoway d6dcb9b81c Missed commit. There must be a better way of getting this though. 2009-04-10 16:46:24 +00:00
Steve Checkoway ca6f749219 Fix compile. I think this is a C++ standard bug, really. 2009-04-07 23:48:11 +00:00
Steve Checkoway 39d9a6c824 Implement new function by copying. 2009-04-07 23:47:38 +00:00
Steve Checkoway 94025ac745 Remove files. 2009-04-01 09:48:47 +00:00
Steve Checkoway 95645cdafb Optimize. The Unset() call was actually rather expensive. This speeds up SSMusic by a few frames per second for me in optimized builds. 2009-03-26 11:30:45 +00:00
Steve Checkoway 96650cc156 Load the actor for the current stage only and only show Event Mode during Regular play. 2009-03-25 08:03:46 +00:00
Steve Checkoway 941369dfb5 Use SMApplication as the main class, not NSApplication. 2009-03-24 14:04:49 +00:00
Steve Checkoway 5718527579 Add comment about SMApplication and remove poseAsClass hack. 2009-03-24 14:04:05 +00:00
Steve Checkoway 5a38444f7d Install .smzip files. 2009-03-24 14:01:20 +00:00
Steve Checkoway b828794f0a Set SM to be the owner of .smzip files. 2009-03-24 13:59:27 +00:00
Steve Checkoway d4cf111fff Fix warning. 2009-03-22 14:30:04 +00:00
Steve Checkoway 415e464926 Check that subversion AND (curl OR wget) are installed before downloading ffmpeg. Prevents running ./build.sh which fails if curl and wget are not installed and then running build.sh again which proceeds as if ffmpeg had been patched. Also add -j or --jobs option to pass to make. ./build -j3 works nicely. Now if someone wants to buy me one of those 16 context Macs, I would sure love to try -j17. 2009-03-21 05:53:52 +00:00
Steve Checkoway 736aa56b99 Remove testing metrics, back to ScreenCompany. 2009-03-21 02:12:31 +00:00
Steve Checkoway 6671cfa516 Add files. 2009-03-03 21:43:56 +00:00
Steve Checkoway b51ba2c6de Reorganize so that SMApplication's implementation is by its interface. 2009-03-02 09:37:53 +00:00
Steve Checkoway 6909760283 silence warning 2009-03-02 09:27:15 +00:00
Steve Checkoway 17cc65e8fd _DEBUG -> DEBUG 2009-01-06 17:54:21 +00:00
Steve Checkoway 3f800ece3d Actually look in the right place for subscriptions. 2009-01-05 08:46:22 +00:00
Steve Checkoway f6edbc8a28 Only subscribe to PlayerJoined a single time. 2009-01-05 07:00:49 +00:00
Steve Checkoway a15f9e4968 Add IsSubscribedToMessage() 2009-01-05 07:00:29 +00:00
Steve Checkoway dbca9eedf6 Revert. IF is a macro, if is a conditional statement. Furthermore, casting to an unsigned 32 bit integer on a 64 bit machine causes the the x<0 to always be false. But since there is a comma, the "bad integer" was evaluating to a nonzero address and so the conditional was always true and the empty statement would be executed. That is wrong. 2009-01-05 06:17:44 +00:00
Steve Checkoway d4209f54ce We have inttypes.h and we want the standard format macros. 2008-12-27 01:17:49 +00:00
Steve Checkoway 382dad70a1 On a 64 bit machines, uint32_t is promoted to unsigned int when compared with 0 and cannot ever be negative. cast it to int32_t first to force sign extension when comparing with 0. 2008-12-26 23:28:04 +00:00
Steve Checkoway 19e1c8bb4e Fix format strings. 2008-12-26 23:23:18 +00:00
Steve Checkoway 2258f21c2d Include inttypes.h, if we have it, and use the standard format macro PRIi64 if it is defined. 2008-12-26 23:21:20 +00:00
Steve Checkoway fc59d1f853 Constant format string. 2008-12-26 13:24:00 +00:00
Steve Checkoway b19f2fba56 Comparison is always false on x86_64. 2008-12-26 13:00:35 +00:00
Steve Checkoway 0132ef996b Fix possible crash with non constant format string. 2008-12-26 12:59:04 +00:00
Steve Checkoway fa7d3e5141 The first of these was correct, the second was actually incorrect, so fix and simplify. 2008-12-26 12:57:13 +00:00
Steve Checkoway 595a0f85d8 Gcc assumes that I do not know order of operation of && and ||, so add parentheses to silence warnings. 2008-12-26 12:37:29 +00:00
Steve Checkoway 45c642ec28 Fix issues on x86_64 where unsigned is not large enough to hold RString::npos and so the comparison is always false. Gcc would have been free to optimize that away. Not sure if it did or not. 2008-12-26 12:34:46 +00:00
Steve Checkoway a6b0a78d98 Use constant format string. 2008-12-26 12:33:29 +00:00
Steve Checkoway ef7749175e Initialize in the correct order. 2008-12-26 12:32:48 +00:00
Steve Checkoway 05a5a33cda Initialize in the correct order. 2008-12-26 12:32:14 +00:00
Steve Checkoway 436f6f48ec Initialize in the correct order. 2008-12-26 12:31:57 +00:00
Steve Checkoway b831f1d405 Without the do, this is a block followed by the no op statement "while(false){}". The breaks were thus breaking out of the outer loop. 2008-12-26 12:30:49 +00:00
Steve Checkoway 887174fcd3 Make sure all of the crash data is written. Also silences annoying gcc warning. execve takes char *const[] as arguments so copy magic parameter. I think that is a standards bug, personally. 2008-12-26 12:23:34 +00:00
Steve Checkoway 7f2d87315d Er, actually doing it correctly this time. 2008-12-26 12:11:00 +00:00
Steve Checkoway a92c75880a Handle failed and partial writes correctly. 2008-12-26 12:07:29 +00:00
Steve Checkoway 97024035e8 Fix spacing issues. Who wrote this code? Why is there no copyright? 2008-12-26 12:03:06 +00:00
Steve Checkoway 70be48e225 Fix possible crash converting to RString. 2008-12-26 11:51:03 +00:00
Steve Checkoway e47215222d Fix warning. 2008-12-26 11:48:20 +00:00
Steve Checkoway 0c83062440 Fix warnings about untested return value for system and nonconstant format string with no arguments for Throw. 2008-12-26 11:46:47 +00:00
Steve Checkoway e57268a9a9 Make ffmpeg stop complaining. 2008-12-26 11:38:47 +00:00
Steve Checkoway dc144f9ad0 Silence warning by doing something with the return value. 2008-12-26 11:36:21 +00:00
Steve Checkoway 8f46ca3b0c Fix warning on x86_64. 2008-12-26 11:11:48 +00:00
Steve Checkoway f630359630 Fix lua error. 2008-12-26 08:52:22 +00:00
Steve Checkoway af4c632f26 Pass PlayerNumber argument. 2008-12-26 08:51:52 +00:00
Steve Checkoway 1509d09ad4 Check that there is actually an argument at that position before attempting to do something with it. 2008-12-26 08:50:47 +00:00
Steve Checkoway a0d35509d3 Add gamma to release. 2008-12-26 03:51:35 +00:00
Steve Checkoway bd1284d43c Add new mac models, used for debug info. It would be really handy if this information could be gotten programatically. 2008-12-26 03:41:54 +00:00
Steve Checkoway c4b751ef02 Unnecessary includes. 2008-12-23 02:46:50 +00:00
Steve Checkoway 264121edb8 Remove BLAS stuff. These matrices are too small for this to be useful. 2008-12-23 02:42:10 +00:00
Steve Checkoway 902169718f Only grab the main display when going full screen. You cannot really interact with the other screens while in full screen, but you can at least see them. 2008-12-23 02:40:26 +00:00
Steve Checkoway 0624f2f207 Fix duplicate symbol link error. 2008-12-05 01:02:55 +00:00
Steve Checkoway c13b0bcb4a Missed one 64 bit to 32 bit conversion. 2008-11-24 07:55:11 +00:00
Steve Checkoway dacca25190 Silence gcc warnings by making explicit the cast from 64 bits to 32 bits. 2008-11-24 07:53:47 +00:00
Steve Checkoway 0efbd42aa3 Make explicit the conversion from 64 bits to 32 bits. In the case of files, perhaps we should be using an appropriate type such as off_t rather than int. I am not sure if anyone would actually want to use files larger than 2 GB with SM, but it seems possible while using .smzip. 2008-11-24 07:52:55 +00:00
Steve Checkoway d4f95e3cec Make this nonfatal except for debug builds. 2008-10-06 08:19:38 +00:00
Steve Checkoway 3be86da9b6 Remove debugging. 2008-10-06 08:10:47 +00:00
Steve Checkoway f364425674 Do not try to localize server names. 2008-10-06 08:09:58 +00:00
Steve Checkoway b01bc37053 Debugging. 2008-10-06 07:54:26 +00:00
Steve Checkoway 28730a1f3f Add temp debugging. 2008-10-06 07:27:58 +00:00
Steve Checkoway d8045f0994 Assert that text can be created. 2008-10-06 06:41:39 +00:00
Steve Checkoway 510daea1de Quiet noisy trace. Input problems were (probably) not SM's fault. 2008-10-06 06:10:55 +00:00
Steve Checkoway ab3ec3cf2f Fix potential, but unlikely memory leak. 2008-10-05 09:41:20 +00:00
Steve Checkoway c4cb740e3a Fix comment. 2008-10-05 09:32:09 +00:00
Steve Checkoway 46fbd1dce6 Not needed...I think. 2008-10-05 09:29:30 +00:00
Steve Checkoway a060bd33cb Log a successful device open. 2008-10-05 09:18:54 +00:00
Steve Checkoway f525c5ca8d Fix logging. Also fix typo. 2008-10-05 08:54:10 +00:00
Steve Checkoway 5fc76284c1 Log actually adding to the queue. 2008-10-05 08:53:19 +00:00
Steve Checkoway c4d53c94b1 Fix typo. 2008-10-05 08:35:38 +00:00
Steve Checkoway 5e7ea06c5f Use IOHIDElementCookie which is really a void* rather than int. 2008-10-05 08:25:31 +00:00
Steve Checkoway 05d91fe025 Add noisy logging. 2008-10-05 07:41:37 +00:00
Steve Checkoway 93c649d33d Warn if addElement fails. 2008-10-05 07:31:21 +00:00
Steve Checkoway 56d19ddd69 Different noisy logging. Remote debugging is painful. 2008-10-05 07:15:06 +00:00