Commit Graph

49 Commits

Author SHA1 Message Date
YoshiRulz dd4f9aaf64
Use ranges 2020-01-13 06:59:40 +10:00
YoshiRulz a8408ed3be
Improve exception docs in BizHawk.Client.Common 2020-01-02 21:51:27 +10:00
adelikat b80b367831 refactor IMovie to expose the movie mode, and make extension methods that do IsPlaying type logic. This way there can be direct checks, and more variety of methods without cluttering the interface 2019-12-21 16:34:29 -06:00
adelikat 5a1341dd47 misc cleanups 2019-11-15 17:00:43 -06:00
James Groom 779975f689
Use nameof 2019-03-28 14:17:14 +11:00
zeromus ba4b32f619 rename TempFileCleaner to TempFileManager; add global path config for temp files
I did this in a funny way (sets the environment for the process).
The idea is that any code which sloppily used Path.GetTempDirectory (etc.) would now have its pathing changed.
It is a little dangerous to allow this to be changed on the fly (I do allow it) since something may expect it to be stable, but I think it's OK.
So anyway. keep your eyes peeled for problems. It's possible I could do this differently and only affect a subset of safely managed things.

should fix #1252
2018-09-11 21:32:50 -04:00
zeromus 103bf484b6 fix racey crash during rewinder thread shutdown 2017-06-11 17:24:32 -05:00
adelikat 43cb50d5c3 Misc cleanups in Client.Common 2017-05-19 13:17:07 -05:00
adelikat 70baf9d306 Client.Common cleanups 2017-05-18 11:36:38 -05:00
adelikat 2a54517b52 more misc Client.Common cleanups 2017-05-17 13:18:26 -05:00
adelikat e0985465b6 misc Client.Common code cleanups 2017-05-09 13:19:55 -05:00
J.D. Purcell efb46d5fb2 Rewind initialization cleanup. 2017-04-30 20:38:10 -04:00
J.D. Purcell 3ebcaa8af0 Rewind cleanup / tweaks. 2017-04-29 14:04:19 -04:00
zeromus c4776a0c00 rewind: fix zero-size savestates, and maybe fix a possible 1 byte array overrun 2017-04-17 22:42:42 -05:00
J.D. Purcell ab155217e7 Random (small) cleanups. 2017-04-09 23:08:26 -04:00
J.D. Purcell 98c1ccab4d Cleanup. 2017-04-04 23:45:52 -04:00
J.D. Purcell 9bb4cc9917 Fix bug when allocating smaller than requested rewind buffer. 2017-04-04 23:29:43 -04:00
J.D. Purcell a47e69507f More rewind cleanup. 2017-04-04 23:26:22 -04:00
J.D. Purcell 9a7e7496c9 Comment the tricky parts of the rewind code. 2017-04-03 22:19:09 -04:00
J.D. Purcell eadea2481e Rewind: Re-order some methods (no code change). 2017-04-02 19:39:13 -04:00
J.D. Purcell 3f776dbf6f Rewind: Fix subtle off-by-one-frame bugs (only really noticeable when frame advancing). 2017-04-02 18:50:34 -04:00
J.D. Purcell 6cc5a914b7 Rewind cleanup. 2017-03-18 21:22:02 -04:00
zeromus 28eae0dcb1 Revert "Revert "common logic for tempfiles""
This reverts commit 5196fc6b70.
2015-11-17 17:26:03 -06:00
zeromus 5196fc6b70 Revert "common logic for tempfiles"
This reverts commit 5afa44bbec.

and also "fix regression in libretro core loading and streamline open advanced libretro ui"
59048264cd but tortoisegit didn't put that in the commit message.
2015-11-17 17:10:27 -06:00
zeromus 5afa44bbec common logic for tempfiles 2015-11-15 03:01:58 -06:00
zeromus aa3f916e7b fix error in previous rewind-related commit. im thinking it might not have been such a great idea now... 2015-11-09 20:52:04 -06:00
zeromus 2bf48e3c86 dont savestate at all if rewind is completely disabled 2015-11-08 22:18:04 -06:00
jdpurcell 0ca93f35ba Rewinder - small fix to memory allocation limit. 2015-01-19 19:48:04 +00:00
jdpurcell 45ae0bb207 Fix potential (but rare) rewind savestate corruption when threaded option is enabled. 2015-01-18 15:38:49 +00:00
jdpurcell 423376835c Rewinder - when reallocating buffer, make sure we have released all references to the old buffer first to free up memory for the new buffer. 2015-01-18 00:56:32 +00:00
jdpurcell bcb6b20ec2 Rewind - if memory allocation fails, back off the size until successful. 2015-01-18 00:20:49 +00:00
jdpurcell 40bfe91238 Rewinder - small optimization to previous bugfix and rename misleading method name. 2015-01-17 20:53:01 +00:00
jdpurcell c23e60ac62 Fix several pre-existing bugs (doubt they were triggered often). 2015-01-17 20:37:00 +00:00
jdpurcell 0a9b07ac32 Small cleanup. 2015-01-17 19:22:21 +00:00
jdpurcell 4a40408f1d Use variable length integers for the rewind state deltas to reduce size. 2015-01-17 19:16:22 +00:00
jdpurcell f11158ac86 Would be nice if it compiled though. 2015-01-17 06:20:00 +00:00
jdpurcell 112d794f11 More optimization. 2015-01-17 06:19:13 +00:00
jdpurcell b4a4c04844 Remove unnecessary bounds check. 2015-01-17 04:13:05 +00:00
jdpurcell f99338dc2e Optimization (25% faster or so). 2015-01-17 03:55:41 +00:00
jdpurcell 3d37e3dc5a Option to make rewind speed proportional to rewind frequency. 2015-01-12 05:30:27 +00:00
adelikat e2033c9d2e AsStatable() and also update statusbar saveslots on CloseRom() 2014-12-05 00:52:16 +00:00
adelikat 71c92cb87e don't freak out if someone attempts to rewind on a core that is not IStatable 2014-11-30 19:58:32 +00:00
adelikat 76148ae111 Break off savestate functionality from IEmulator into IStatable and refactor things accordingly. Still todo (a big todo): EmuHawk should gracefully handle a core that is not an IStatable by disabling functionality dependent upon it (Savestates, Rewind, Tastudio, etc) 2014-11-30 16:42:58 +00:00
zeromus 3dc3ede00a fix bugs in the delta rewinding code? 2014-04-08 00:22:14 +00:00
zeromus 45c6b9f095 fix bug in rewind buffer (StreamBlobDatabase) 2014-02-17 01:56:36 +00:00
adelikat 993845fe72 some mostly useless code reformatting in client.common 2014-02-04 03:08:20 +00:00
zeromus 2275ec234f massive displaymanager/renderpanel refactor. All useful logic is now compact and in DisplayManager. Also, remove the old filter infrastructure, its totally outdated now 2014-01-28 04:39:27 +00:00
adelikat 16f7c7fcdc A round of code cleanup on Rewind and some other misc things in Client.Common 2013-12-30 01:17:11 +00:00
adelikat b5d3f68126 Move rewind code to client.common 2013-12-27 01:14:17 +00:00