Commit Graph

145 Commits

Author SHA1 Message Date
Jason Felds e1af1eb2b6 [editorKeysounds] Stop an editor closing crash.
If you close the program while in the editor
in debug mode, it can occasionally cause
a bad access violation with the mutexes.

If someone really wants this back, go ahead and
put it back in.

...this really should have gone in default first.
2012-02-10 19:18:40 -05:00
Jason Felds d55fa26567 Fix warning, ifdef another LOG->Trace. 2011-11-01 22:24:44 -04:00
AJ Kelly 5bde30c176 remove debug logging that I didn't mean to commit 2011-10-29 21:08:54 -05:00
AJ Kelly b8757ace53 not happy with this 2011-10-27 22:30:05 -05:00
Mark Cannon d16c77c1b4 fix log bloating like whoa (wrap every Trace() in TimingData with DEBUG ifdef) 2011-10-07 21:51:04 -04:00
AJ Kelly fb346d1bc2 uncomment a trace 2011-10-01 00:31:28 -05:00
AJ Kelly 7cea3ae90a put these debug print statements into a debug ifdef 2011-09-30 15:16:43 -05:00
AJ Kelly d782518c14 [ScreenEvaluation] Added RollingNumbersMaxComboClass metric. (also removed unused MaxComboNumDigits metric from C++-side) 2011-09-23 01:26:53 -05:00
Mark Cannon 561bdeeeb8 fix unnecessary vector copy 2011-09-22 09:19:20 -04:00
Mark Cannon f0880d6fd2 fix memory leak in TimingData, remove unnecessary structure copies in ScoreKeeperNormal 2011-09-18 19:07:39 +00:00
Thai Pangsakulyanont 9164eccfde oops, it did not erase, but it did not skip. 2011-09-16 21:15:47 +07:00
Thai Pangsakulyanont a03e6f0efa - use a straightforward binary search for GetSegmentIndexAtBeat
- fix a bug where adding a segment with the same value as the old one
  removes the old one [it should just skip adding the new segment].
2011-09-16 21:03:06 +07:00
Mark Cannon 8099e25dcc stage 3 of TimingData changes: changed external interface, enforce encapsulation more strictly 2011-09-15 03:28:58 +00:00
Mark Cannon df9c4d8142 segment renovation stage 2: redefine TimingSegments as simple structs, standardize names and functions, use only rows for constructors (we'll limit allocation through TimingData::AddSegment in the near future) 2011-09-11 17:13:10 +00:00
Mark Cannon 0d4e43f9e3 stage 1 of TimingSegment cleanup: consolidate genericizable code in TimingData, use a proper variable name 2011-09-10 03:08:59 +00:00
Jason Felds 52d7f6c68b Make it better: don't duplicate code. 2011-08-15 19:23:43 -04:00
Jason Felds e26973d71d THERE! 2011-08-15 18:12:12 -04:00
Jason Felds 6e8137500d Partial revert. Restore most delays/stops.
The only thing to fix properly
is when stops and delays share the same row.
2011-08-15 17:54:06 -04:00
AJ Kelly ad9cec03aa [TimingData] Add HasDelays() Lua binding; HasStops() now only checks stops. 2011-08-07 13:48:42 -05:00
Jason Felds 07a74caace [timing] The gamble paid off. :D 2011-07-27 23:55:58 -04:00
Jason Felds ddf09cac60 [timing] It builds again. Time for failure. :D 2011-07-27 23:43:52 -04:00
Jason Felds 18ff542910 [timing] All but the Beat <-> Time functions.
Alright Thai...let's see if I can modify your work properly.
2011-07-27 23:32:37 -04:00
Jason Felds b6fe8a0de0 [timing] Notes* mostly covered. 2011-07-27 22:33:50 -04:00
Jason Felds 9505e09f58 Add the copy/paste selected timing data feature.
Not perfect at this stage, but...well, everyone wanted it.
2011-07-26 16:05:14 -04:00
Jason Felds 4eeb2e6442 Only one loop needed. 2011-07-26 14:13:50 -04:00
Jason Felds bf5c3791cc This can be const: no members changed. 2011-07-26 14:13:10 -04:00
Jason Felds 480cda836e Allow for checking if the TimingData is empty.
AKA, no segments in use.

Again, this is mainly for the editor.

As for why a lowercase empty? Blame vectors.
2011-07-26 14:10:51 -04:00
Jason Felds 4f7bddd8cc Seriously, how do we remove sm-ssc.app?
I can't kill this thing.
2011-07-26 13:56:23 -04:00
Jason Felds 75b3a67e2a Add a function to copy TimingData over a range.
This is primarily for the editor. Still, it may
have other uses.
2011-07-26 13:41:41 -04:00
Thai Pangsakulyanont 8bad512433 Fix performance issue: remove the slow assertion code.
GetDisplayedBeat and GetDisplayedSpeedPercent are called so many times in one frame
so they need to be as fast as possible.
2011-07-27 00:29:22 +07:00
Jason Felds 679b81705b Not needed. 2011-07-26 12:57:48 -04:00
Jason Felds 5c34929600 Fix timing segment scaling.
When in doubt, use the direct approach.
2011-07-26 11:35:58 -04:00
Jason Felds d96a300a50 Remove out of bounds errors.
......I REALLY need a vacation now.
2011-07-21 17:25:02 -04:00
Jason Felds 59686a46b0 Fix out of bounds error. 2011-07-20 15:29:24 -04:00
Alberto Ramos 3b475db699 why 2011-07-19 23:42:32 -06:00
Alberto Ramos 0c1a33cbe3 things
ksfs are still broken
2011-07-19 18:35:29 -06:00
Jason Felds 0944948cad Fix Stops and Delays on the timing bar. 2011-07-17 23:58:22 -04:00
Jason Felds 48226f2027 No longer store #NOTES in cache.
Use the #STEPFILENAME tag to access the files
as appropriate.

To the betting pool fans: file cache version is 192.
2011-07-17 16:06:40 -04:00
Thai Pangsakulyanont e6be564be8 [timing] make sure the segments are sorted 2011-07-17 13:03:21 +07:00
Thai Pangsakulyanont de3916297e it runs, but scrolls stop working. 2011-07-17 12:30:09 +07:00
Jason Felds 4e58239255 [timing] TimingData.* should be good.
Now to try to adjust the JSON files.
2011-07-15 00:54:11 -04:00
Jason Felds 4e7c3282ec [timing] Caveat #2 fixed.
Caveat #1 won't be until we make Delays their own
segment...and somehow don't screw up the timing.
2011-07-15 00:14:13 -04:00
Jason Felds 01dacd9746 [timing] More abstraction.
This commit has 2 caveats.

1) Stops and Delays are treated the same in the editor right now.
2) TimingSegments.cpp: XToString should not require NUM_TimingSegmentTypes.

Ideas?
2011-07-14 23:54:06 -04:00
Jason Felds 6f5ab98dec [timing] More respect of pointers.
Again going to trust virtual functions to do the right thing.
2011-07-14 23:15:48 -04:00
Jason Felds c9a6bbbafe [timing] More progress.
Soon going to enter the real big functions.
2011-07-14 22:19:32 -04:00
Jason Felds 6255a84be4 [timing] More abstractions of common functions. 2011-07-14 21:51:09 -04:00
Jason Felds 48a8113336 [timing] Set*AtRow error free. 2011-07-14 21:25:17 -04:00
Jason Felds 4f490c3d3b [timing] Some more stuff.
Need dinner though.
2011-07-14 19:52:37 -04:00
Jason Felds 2c85e902b4 [timing] Better be sure we clean up afterwards.
If this is going a bit too far, feel free
to leave a little bit more mess.
2011-07-14 19:29:52 -04:00
Jason Felds 199af25f31 Get inserts working via passing TimingSegments.
Unsure if this is the right way:
code review may be needed.
2011-07-14 19:01:12 -04:00