Commit Graph

576 Commits

Author SHA1 Message Date
Jeffrey Pfau 5002cf44f4 Fix savestate loading after prefetch changes 2014-08-29 00:34:12 -07:00
Jeffrey Pfau baa71027e3 Reimplement prefetch, temporarily removing busy loop optimization 2014-08-28 05:45:37 -07:00
Jeffrey Pfau 433f0ba360 Tighter looping for ARMRun 2014-08-28 05:00:38 -07:00
Jeffrey Pfau 2805cc5fea Fix gamepad input 2014-08-12 22:50:24 -07:00
Jeffrey Pfau 88695a5ab1 Rough FFmpeg video encoder 2014-08-09 03:59:31 -07:00
Jeffrey Pfau 6291a62860 Fix stream recording resumption 2014-08-07 02:01:17 -07:00
Jeffrey Pfau 484a7f299a Add rerecord count 2014-08-07 01:13:50 -07:00
Jeffrey Pfau e732448aa4 Write full finalization data when stopping recording 2014-08-07 01:13:34 -07:00
Jeffrey Pfau a4cd807b70 Fix writing max strem ID in RR metadata 2014-08-07 01:13:03 -07:00
Jeffrey Pfau ba993980dc Big cleanup to how RR handles separate segments, and adding lots of logging (fixes #106) 2014-08-07 00:24:25 -07:00
Jeffrey Pfau 06da7fcb09 Fix rr writing to the wrong file 2014-08-06 21:57:35 -07:00
Jeffrey Pfau 0389237fc6 Loading savestates now changes the active branch 2014-08-05 23:52:08 -07:00
Jeffrey Pfau 5ee336d274 Fix masking savegames so it can write to a masked savegame 2014-08-04 23:46:33 -07:00
Jeffrey Pfau 82b31c46f1 RR starting from savegame (currently broken) and savestate 2014-08-04 23:37:37 -07:00
Jeffrey Pfau 86a2edbdf1 Save/load state with file parameter 2014-08-04 22:40:11 -07:00
Jeffrey Pfau d979e04606 Unmask savedata if reseting while a movie is not recording or replaying 2014-08-04 22:24:43 -07:00
Jeffrey Pfau f8fff828e3 Start working on ability to bundle save data with movies 2014-08-04 01:11:46 -07:00
Jeffrey Pfau 220d836f13 Save initialization type and metadata magic number 2014-08-04 00:54:50 -07:00
Jeffrey Pfau fabdfc86f3 Add magic numbers to movie files 2014-08-03 20:15:34 -07:00
Jeffrey Pfau a09bb6d51a Detect basic desync in rr 2014-08-03 19:47:02 -07:00
Jeffrey Pfau 4534574f50 Fix game ID for Wario Ware Twisted override 2014-07-30 01:50:22 -07:00
Jeffrey Pfau 5ca6888840 Savestate loading during recording and replaying 2014-07-30 00:13:11 -07:00
Jeffrey Pfau 28218b2465 Fix .log -> .dat for the first chunk, and make sure it bails if the load fails 2014-07-30 00:03:19 -07:00
Jeffrey Pfau 9cc97410d3 Make sure not to reload an old rr stream chunk when reaching the end of a file 2014-07-29 23:39:55 -07:00
Jeffrey Pfau e3410fc457 Fix _readTag to not crash if the VFile has been closed 2014-07-29 23:15:08 -07:00
Jeffrey Pfau fade994137 Clean up logic with an EOF tag 2014-07-29 23:13:16 -07:00
Jeffrey Pfau 6845454969 Add more rr tags, some implemented 2014-07-29 22:50:46 -07:00
Jeffrey Pfau 35bf1f3990 Keep max stream ID separate from current stream ID 2014-07-29 22:50:19 -07:00
Jeffrey Pfau 0023613625 Clean up movie state when exiting 2014-07-29 22:49:24 -07:00
Jeffrey Pfau 9873da0eb7 Ability to chunk movie streams into multiple files 2014-07-27 19:06:30 -07:00
Jeffrey Pfau 45b8ffb9cf New movie format 2014-07-27 18:22:39 -07:00
Jeffrey Pfau f39d7e3640 Move screenshot function to gba-thread.h 2014-07-27 18:21:58 -07:00
Jeffrey Pfau b4d90e7e84 Restore pixels from PNG when loading savestate 2014-07-26 14:06:28 -07:00
Jeffrey Pfau a872bd3642 Remove some ifdefed code by adding a constant for number of bytes per pixel 2014-07-26 13:28:44 -07:00
Jeffrey Pfau 15ece309b7 PNG savestate loading 2014-07-26 13:20:29 -07:00
Jeffrey Pfau 89bb9c7eac Code for embedding savestates in PNG chunk, loading not yet implemented 2014-07-26 00:04:24 -07:00
Jeffrey Pfau deb278dc22 Add function to GBAVideoRenderer for taking screenshot 2014-07-26 00:03:54 -07:00
Jeffrey Pfau 103bef17c9 Avoid compiler warnings 2014-07-25 03:45:54 -07:00
Jeffrey Pfau 5189d9afd4 Add mechanism for adding halts to busy loops 2014-07-24 04:21:33 -07:00
Jeffrey Pfau 8e49360ffd Add missing dummy video functions 2014-07-24 03:20:12 -07:00
Jeffrey Pfau e2c3c4068d Pull out vram pointer 2014-07-24 02:52:02 -07:00
Jeffrey Pfau 553f345bbd Remember to initialize rr 2014-07-24 02:38:36 -07:00
Jeffrey Pfau 436c53b0a6 Remove redefinition of COMPOSITE_16_NO_OBJWIN 2014-07-24 02:37:04 -07:00
Jeffrey Pfau 900d1684a9 Fix window edge case that might cause 0-width windows to draw 2014-07-24 02:34:42 -07:00
Jeffrey Pfau a855f53355 Fix mosiac on edges of mode 0 regions 2014-07-24 02:02:44 -07:00
Jeffrey Pfau 5eb729faf6 Remove unused HLE BIOS length constant 2014-07-23 23:05:17 -07:00
Jeffrey Pfau ec4eb253e5 Unify swi state saving, keep I bit 2014-07-23 03:06:09 -07:00
Jeffrey Pfau f1a58c7254 Fix ObjAffineSet over multiple inputs 2014-07-23 00:54:11 -07:00
Jeffrey Pfau c7f7d0f752 Don't make empty savestate files when loading savestates 2014-07-23 00:19:50 -07:00
Jeffrey Pfau 3051143fa3 First pass at input mapping 2014-07-23 00:06:44 -07:00
Jeffrey Pfau f55d085162 Change log handler API 2014-07-22 22:34:08 -07:00
Jeffrey Pfau 2ce9806de5 Fix ability to make audio buffers as big as they initially were 2014-07-22 02:33:45 -07:00
Jeffrey Pfau d1eda4250d Thread pausing refining 2014-07-22 01:52:16 -07:00
Jeffrey Pfau 6e727db553 Set buffer size to 512 samples in the SDL/GL port 2014-07-21 00:29:38 -07:00
Jeffrey Pfau e527220398 Ability to resize internal sound buffers 2014-07-21 00:14:48 -07:00
Jeffrey Pfau eabac4c413 Variable FPS target 2014-07-20 23:45:30 -07:00
Jeffrey Pfau b14f22191c Function for calculating audio rate for target FPS 2014-07-20 23:24:02 -07:00
Jeffrey Pfau e77238e5ef Fix typos in savestate format documentation 2014-07-20 15:53:37 -07:00
Jeffrey Pfau 3915158c96 Update GPIO for serialization 2014-07-20 15:53:15 -07:00
Jeffrey Pfau 7a0f86ae99 Serialize ROM CRC32 for error checking 2014-07-20 15:10:59 -07:00
Jeffrey Pfau b4d6d11d19 Add ability to resume recording as soon as a movie ends 2014-07-20 03:14:55 -07:00
Jeffrey Pfau 74dae5033b Rewrite rr to be streaming-only 2014-07-20 02:50:43 -07:00
Jeffrey Pfau a95e2c06b7 Remove unused function 2014-07-20 01:40:05 -07:00
Jeffrey Pfau 16cf389986 Make writing to RO mapped memory perform COW 2014-07-20 01:36:18 -07:00
Jeffrey Pfau 7d4f1fb661 Fix loading too many states from a file 2014-07-19 17:54:29 -07:00
Jeffrey Pfau 7172e6428c Create concept of state directory 2014-07-19 17:48:37 -07:00
Jeffrey Pfau e8a78c9547 Very basic movie saving/loading 2014-07-19 17:38:25 -07:00
Jeffrey Pfau c6cd179101 Fix scanline rendering when parameters change mid-scanline 2014-07-19 15:59:27 -07:00
Jeffrey Pfau 3202811e41 Be more rigorous when reseting 2014-07-19 14:34:24 -07:00
Jeffrey Pfau 6456a88669 Reset memory when reseting the board (fixes #94) 2014-07-19 04:13:25 -07:00
Jeffrey Pfau 14636f5b8a Beginning of rerecording code, ability to record/replay from a savegame 2014-07-19 00:09:18 -07:00
Jeffrey Pfau c50bd95258 Fix naming of savegames from files with no . 2014-07-18 00:53:08 -07:00
Jeffrey Pfau 5a0247ac78 Place save files in directories when loading in dirmode 2014-07-18 00:52:53 -07:00
Jeffrey Pfau a14ce5c815 Add some missing cleanup 2014-07-18 00:52:22 -07:00
Jeffrey Pfau 2367abe67d Don't crash if no ROM is loaded 2014-07-17 02:55:13 -07:00
Jeffrey Pfau d2272ba9ba Support reading from ZIPs 2014-07-17 02:45:17 -07:00
Jeffrey Pfau ee5c918ff2 Directory mode for loading the first ROM in a directory, still a bit buggy 2014-07-17 00:53:17 -07:00
Jeffrey Pfau 73425e80b5 Move VFile to vfs.h and add VDirs 2014-07-17 00:52:21 -07:00
Jeffrey Pfau 80c61379a0 Clean up GBAThread variables 2014-07-16 23:53:11 -07:00
Jeffrey Pfau e53135a7b9 Clean up command line args 2014-07-16 23:47:47 -07:00
Jeffrey Pfau 42484bbcc3 Allow save file to be specified externally 2014-07-16 02:57:04 -07:00
Jeffrey Pfau 0584c19229 Remove declaration for unimplemented function 2014-07-16 02:09:19 -07:00
Jeffrey Pfau f1f55cea47 Use VFiles for all file operations 2014-07-16 02:08:54 -07:00
Jeffrey Pfau 377d8e60a7 VFiles for abstract file operations, used at first in patches 2014-07-16 01:31:10 -07:00
Jeffrey Pfau d8654f3b88 Use stdbool for readability 2014-07-16 01:02:34 -07:00
Jeffrey Pfau fce2fb9252 Move flags and masks into defines to avoid making enums with values that are too large 2014-07-15 23:38:44 -07:00
Jeffrey Pfau 6716b13621 Ability to reset emulator while running 2014-07-15 00:01:35 -07:00
Jeffrey Pfau 939c349533 Slightly more accurate waitstate emulation 2014-07-13 22:21:37 -07:00
Jeffrey Pfau 6c1476403e Reorder log levels so more important ones have lower numbers 2014-07-10 01:12:25 -07:00
Jeffrey Pfau b810e38bd7 Fix a compiler warning in SIO code 2014-07-10 01:05:28 -07:00
Jeffrey Pfau d56dec79e7 Fix function prototype for GBAThreadInterrupt 2014-07-10 01:03:02 -07:00
Jeffrey Pfau c2fc2dbac3 Remove unused variable 2014-07-10 01:02:13 -07:00
Jeffrey Pfau 55977796f3 Move UNUSED macro to common.h 2014-07-10 01:00:38 -07:00
Jeffrey Pfau 642cbf3429 Hopefully fix edge cases for windows for real this time (fixes #88) 2014-07-09 23:09:28 -07:00
Jeffrey Pfau b762ce41a0 Only take slow mosaic path when mosiac is actually in play 2014-07-09 23:01:03 -07:00
Jeffrey Pfau e6863a6cc5 Fix mosaic drawing of 256-color mirrored background tiles 2014-07-09 22:49:05 -07:00
Jeffrey Pfau c3136b914e Fix sampling order of sound channel 3 2014-07-09 03:53:23 -07:00
Jeffrey Pfau 3e827c24a8 Fix 8-bit IO writes on SOUND3CNT_X 2014-07-09 03:53:23 -07:00
Jeffrey Pfau 78bd884a05 Fix setting window sizes to 0xFFFF from actually making a window 2014-07-09 03:53:23 -07:00
Jeffrey Pfau f1b4e7039f Fix sprites whose tiles go out of bounds 2014-07-09 01:32:02 -07:00