Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -Currently loaded dtm (verify its in playback mode and paused) used to attach too
- -UI: Select dtm to take data from (file browser)
- -UI: Select frame range from...to (from = empty, assume 0, to = empty, take total frame count) (text fields)
- -UI: Maybe allow to input bytes per input frame for legacy dtm support
- -UI: Select output destination
- -to - from = amount of frames to attach (add to total frame count of current dtm)
- -Get total amount of input frames from selected dtm and divide by total amount of visual frames = factor
- -factor * amount of frames to attach = number of input frames attached (add to total input count)
- -Add total tick amount to current total tick amount (very dirty, but its not used anyway)
- -(from (starting frame range) * factor) * 17 (bytes per input frame) = byte number to start copying data from
- -(to (end frame range) * factor) * 17 = byte number to stop at
- -Increase total bytes by 17 every time the loop copies data
- -Increase total input frames by 1 each loop to verify the code is correct (compare with previous calc)
- -Call SaveRecording to save new DTM under custom location
- -Set g_totalFrames and g_totalInputCount to their respective values
- -Make sure playback can be natively resumed with the newly spliced file (currentByte etc. is the same as when stopped playback)
- Maybe record RNG values too and check those to detect potential desyncs even earlier
Add Comment
Please, Sign In to add comment