mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-30 00:13:03 +00:00
c5310d1855
* add undo to instrument editor (check for diffs on the current DivInstrument in insEdit, record them in a stack) * style fixes * accidentally left some logs in * typo in style fix * cheat to avoid warning -Werror=class-memaccess on linux * warn instead of assert on case where MemPatch application would exceed size of target buffer (which should never happen, if you're applying the patch to the same type it was generated from) * instrument editor undo: don't check delta if no user input has come in that could potentially have dirtied the editor * don't run a delta against cached instrument if not insEditOpen * revert fixedQueue to before my 'fix' (if i touch it again i'll add unit tests) * explicitly cast to (DivInstrumentPOD*) when memsetting DivInstrumentPOD in DivInstrument constructor, rather than relying on implicit memory layout * use delete[] instead of free (whoops) * MemPatch/DivInstrumentUndoStep -- remove clear() function (ambiguous whether it should free data, it only existed to set data to null after the swap, so just do that directly now). Also set data to null after delete. * DivInstrument -- fix dangling undo-step pointers being created on duplicate (potentially leading to use-after-free), fix undo-step objects being shamelessly leaked --------- Co-authored-by: Adam Lederer <adam@adamlederer.com> |
||
---|---|---|
.. | ||
effect | ||
export | ||
fileOps | ||
platform | ||
blip_buf.c | ||
blip_buf.h | ||
blip_buf.txt | ||
brrUtils.c | ||
brrUtils.h | ||
bsr.h | ||
chipUtils.h | ||
cmdStream.cpp | ||
cmdStream.h | ||
cmdStreamOps.cpp | ||
config.cpp | ||
config.h | ||
configEngine.cpp | ||
dataErrors.h | ||
defines.h | ||
dispatch.h | ||
dispatchContainer.cpp | ||
effect.h | ||
effectContainer.cpp | ||
engine.cpp | ||
engine.h | ||
export.cpp | ||
export.h | ||
exportDef.cpp | ||
fileOpsIns.cpp | ||
fileOpsSample.cpp | ||
filter.cpp | ||
filter.h | ||
instrument.cpp | ||
instrument.h | ||
macroInt.cpp | ||
macroInt.h | ||
orders.h | ||
pattern.cpp | ||
pattern.h | ||
pitchTable.cpp | ||
playback.cpp | ||
safeReader.cpp | ||
safeReader.h | ||
safeWriter.cpp | ||
safeWriter.h | ||
sample.cpp | ||
sample.h | ||
sfWrapper.cpp | ||
sfWrapper.h | ||
song.cpp | ||
song.h | ||
sysDef.cpp | ||
vgmOps.cpp | ||
waveSynth.cpp | ||
waveSynth.h | ||
wavetable.cpp | ||
wavetable.h | ||
wavOps.cpp | ||
winStuff.cpp | ||
winStuff.h | ||
workPool.cpp | ||
workPool.h |