aboutsummaryrefslogtreecommitdiff
path: root/libpcsxcore/cdrom.c
AgeCommit message (Collapse)Author
2020-02-08cdrom: add missing BCD->int convert in cdrFreeze()Daniel Silsby
For some Eboot .PBP game images, when loading a savestate, a zlib error like 'uncompress failed with -5 for block 5383, sector 86132' would be output to stdout/stderr. The savestate would still be playable, though. Traced it down to cdrFreeze() failing to convert cdr.Prev from BCD->int when calling ReadTrack(). Note that the odd 'cdr.Prev[0]++;' line seems to be someone's hacky way of forcing ReadTrack() to avoid skipping what it thinks is a duplicate sector read.
2019-08-03Silence warning -Wstringop-truncationretro-wertz
-strncpy replaced with strcpy and memcpy where appropriate
2016-04-01don't use __ARM_ARCH_7A__notaz
github issue #68
2015-02-05dma: some timing hacksnotaz
untested
2015-02-05dma: do some madr updatesnotaz
untested, but makes ff7 behave better with linked lists (dither problem)
2015-01-03mingw build fixesnotaz
2014-12-24cdrom: handle old savestates betternotaz
I still have to many of them and use them for testing..
2013-03-15cdrom: stopping read should stop seek toonotaz
2013-03-15cdrom: use single read/play cursor, handle cdlRead for cddanotaz
cdlRead on cdda tested on real hardware
2013-01-28merge minor fixes from pcsxrnotaz
my own code..
2013-01-18cdrom: move more handling to cdrInterruptnotaz
2013-01-18cdrom: cleanup, support errors, improve timingnotaz
most changes verified on real thing
2013-01-18cdrom: rewrite lid codenotaz
based on tests on real hardware
2013-01-13cdrom: some swap cd tuningnotaz
because last commit removed wrong read stop
2013-01-13cdrom: remove stopping on TNnotaz
breaks N2O, does not make sense too
2013-01-13cdrom: fix ID, againnotaz
2013-01-13cdrom: set proper reset valuesnotaz
fixes HLE
2013-01-11cdrom: minor cleanupnotaz
2013-01-11cdrom: fix IDnotaz
also adjust ReadTOC timing and logs
2013-01-03cdrom: implement attenuator/volume properlynotaz
2013-01-03cdrom: give up on cdda subq supportnotaz
this just won't currently work because atleast of: - reads racing with cdda thread - hw cdrom plugins - broken/unknown format .sub files
2013-01-03cdrom: attempt to deal with broken subq :(notaz
2013-01-03cdrom: keep savestate compatnotaz
2013-01-03cdrom: clean up subq handlingnotaz
keep track of it at all times
2013-01-03cdrom: clean up play command handlingnotaz
Once again, based on mednafen/nocash.
2013-01-03cdrom: rework seek hacknotaz
2013-01-03cdrom: cleanup irq reschedule and pause hacksnotaz
2013-01-02cdrom: cleanup various hacksnotaz
Most decisions were made based on Mednafen source on Nocash doc, so all credits for hardware info go to Ryphecha/Nocash. A few things confirmed on real hardware by me.
2013-01-01cdrom: cleanup loggingnotaz
2013-01-01cdrom: tune and log stat hacknotaz
2012-12-27cdrom: fix irq checknotaz
2012-12-17make non-zlib save compression possiblenotaz
2012-11-24cdrom: try different seeking approachnotaz
2012-11-24fix various warningsnotaz
the idea here was to disable them to avoid drifting from pcsx-reloaded, but there doesn't seems to be much need for syncing.
2012-11-18cdrom: some subq hacksnotaz
2012-11-13cdrom: only need to read for cddanotaz
otherwise it's already there?
2012-11-05sort out 32/64bit savestate compat issuesnotaz
2012-11-04handle bad cd images betternotaz
2012-11-03cdrom: read subq directly, not from threadnotaz
thread is doing 10 sectors at once, not that accurate..
2012-07-19cdrom: reset cmd buffer when cmd is acceptednotaz
wrong but hopefully not as much as it was
2012-07-19cdrom: mask selector bits correctlynotaz
2012-07-18cdrom: adjust report mode returnnotaz
based on mednafen which likely had this tested on the real thing. Also remove rearmed hack, the report shouldn't be that bad on performance.
2012-01-09cdrom: resume cdda on state loadnotaz
2011-12-09cdrom: don't emulate seek when set to same locnotaz
fixes C-12 (needs at least 5 sectors), let's see what this breaks..
2011-07-15cdrom: partially implement attenuationnotaz
based on pcsrx code.
2011-07-13cdrom: merge shalma's suggestionsnotaz
http://www.gp32x.com/board/index.php?/topic/57973-pcsx-rearmed/page__view__findpost__p__952591
2011-07-08dma: don't generate irqs after aborted DMAnotaz
An idea from Shalma. Verified on real thing with DMA2.
2011-07-08cdrom: make read reschedule optionalnotaz
Some really nasty timing issues, I guess can only be resolved for good when general timing is good and BIAS is gone.
2011-07-08cdrom: replace resched hack with another onenotaz
almost certainly wrong but hopefully better.
2011-07-08cdrom: remove play pregap hacknotaz
cdriso code handles this now