101 Commits

Author SHA1 Message Date
Jeffrey Pfau
f6a7fedb28 All: Add MPL 2.0 license and associated headers 2014-12-03 00:39:06 -08:00
Jeffrey Pfau
64ba9d2d8e GBA: Make sure interrupting the thread actually pauses it 2014-11-27 00:06:49 -08:00
Jeffrey Pfau
d8b7452526 SDL: Fix SDL audio in some cases 2014-11-20 22:34:04 -08:00
Jeffrey Pfau
d83520c5a2 GBA Thread: Make GBAThreadInterrupt and -Continue check for the thread status, resolving several deadlocks 2014-11-09 20:31:24 -08:00
Jeffrey Pfau
f008c68761 GBA Thread: Make GBAThreadInterrupt thread-safe 2014-11-08 04:28:16 -08:00
Jeffrey Pfau
190ea71646 GBA Thread: Wakeup audio condition if trying to interrupt the thread to avoid a deadlock 2014-11-08 03:49:20 -08:00
Jeffrey Pfau
d75042ea38 GBA Input: Refactor SDL and Qt input code 2014-11-06 00:17:58 -08:00
Jeffrey Pfau
75557d11b2 GBA: const-correctness in GBAMap*ToContext 2014-11-04 01:56:59 -08:00
Jeffrey Pfau
4115b240eb GBA Config: Add audio/video sync setting 2014-11-04 01:19:10 -08:00
Jeffrey Pfau
a7dc4e3285 GBA Config: Add audio buffers and FPS target 2014-11-02 18:30:46 -08:00
Jeffrey Pfau
6afa678a41 GBA Config: Further separate arguments from options, renaming things in the process 2014-11-02 18:30:46 -08:00
Jeffrey Pfau
f36a74759a GBA Config: Begin refactor of separating out command line args from settings 2014-11-02 18:30:46 -08:00
Jeffrey Pfau
4bb8b7b1fd Shutdown thread preemptively if the loaded file is not a ROM 2014-10-21 22:24:32 -07:00
Jeffrey Pfau
f1afeae74c Properly reset after loading BIOS 2014-10-19 05:41:35 -07:00
Jeffrey Pfau
0a946a0b43 Don't wait on for a frame if we already have any pending 2014-10-19 00:30:07 -07:00
Jeffrey Pfau
b24b02d46c Screenshot numbering 2014-10-18 16:25:48 -07:00
Jeffrey Pfau
e3bfe86579 Disable drawing while the thread is shutting down 2014-10-18 04:10:34 -07:00
Jeffrey Pfau
4d9c375f0e If video sync is suspended, do not wait 2014-10-18 02:23:54 -07:00
Jeffrey Pfau
c0d1ca089c Expose GBASync{Suspend/Resume}Drawing 2014-10-18 02:08:20 -07:00
Jeffrey Pfau
830e6dbda6 Write back to GBAThread.audioBuffers if not previously initialized 2014-10-17 23:41:03 -07:00
Jeffrey Pfau
0867325b96 Fix GBASyncProduceAudio signature 2014-10-17 23:40:39 -07:00
Jeffrey Pfau
0d1b323e22 Fix edge case with video-frame sync where it may never wake up the display thread 2014-10-15 04:51:19 -07:00
Jeffrey Pfau
e293134a78 Unify optional directory file opening 2014-10-09 23:55:02 -07:00
Jeffrey Pfau
c035d97286 Make libPNG/zlib optional dependencies 2014-09-30 01:43:43 -07:00
Jeffrey Pfau
c1abe54ec9 Fix debuggers not logging 2014-09-01 02:05:37 -07:00
Jeffrey Pfau
be46f2bac9 Fix frames redrawing in the middle of syncing 2014-09-01 00:52:16 -07:00
Jeffrey Pfau
433f0ba360 Tighter looping for ARMRun 2014-08-28 05:00:38 -07:00
Jeffrey Pfau
88695a5ab1 Rough FFmpeg video encoder 2014-08-09 03:59:31 -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
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
d1eda4250d Thread pausing refining 2014-07-22 01:52:16 -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
7172e6428c Create concept of state directory 2014-07-19 17:48:37 -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
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
6716b13621 Ability to reset emulator while running 2014-07-15 00:01:35 -07:00