Commit graph

953 commits

Author SHA1 Message Date
Mike Ryan
4650fb491f quiet warnings on OS X 2016-01-28 00:42:35 -05:00
Mike Ryan
a4c7397848 cmake: do not use -fsanitize=undefined on Apple debug builds
Feature is unavailable in Xcode's clang. lame
2016-01-28 00:42:35 -05:00
Jason Benaim
20e251ba75 One less annoying print. 2016-01-28 00:42:35 -05:00
Jason Benaim
c16561e388 Remove annoying print, add some comments 2016-01-28 00:42:35 -05:00
Jason Benaim
ee9e777701 Don't segfault if no tpak save was supplied. 2016-01-28 00:42:35 -05:00
Jason Benaim
b6c2e0bd7a Header fixes. 2016-01-28 00:42:35 -05:00
Jason Benaim
0c4a20abe1 Add support for MBC3. This is enough to get Pokemon games working with the transfer pak. 2016-01-28 00:42:35 -05:00
Tyler Stachecki
80cd82e571 Merge pull request #29 from mikeryan/sha1-validate
validate SHA1 of important files
2016-01-28 00:36:30 -05:00
Mike Ryan
1146c33755 sha1: validate NTSC-J pifrom
Thanks @vgturtle127 !
2016-01-27 19:40:43 -08:00
Mike Ryan
eaf3cee002 sha1: validate DD IPL 2016-01-27 13:28:32 -08:00
Mike Ryan
bc9f14c7f9 sha1: detect and validate PAL PIFROM 2016-01-27 09:38:42 -08:00
Tyler J. Stachecki
24350e2440 device: Tighter sync on AI/VR4300 with -multithread. 2016-01-27 03:14:05 -05:00
Tyler J. Stachecki
a4f0d7245a bus: Reduce number of MMIO address mappings. 2016-01-27 03:13:57 -05:00
Tyler J. Stachecki
b4a68338e1 ai: Fix some bugs and optimize just a little. 2016-01-27 01:44:35 -05:00
Mike Ryan
2803a304bc validate SHA1 of important files
Currently only validating pifdata.bin. Probably also worth validating DD
IPL and other known binaries.
2016-01-26 22:15:38 -08:00
Tyler J. Stachecki
15b4998b85 ai: Fire interrupts at proper time with -noaudio. 2016-01-27 01:00:12 -05:00
Tyler J. Stachecki
0a06f8850f Restore audio in Windows builds with -multithread.
Fixed the bug that was causing this a little bit ago.
2016-01-27 00:44:38 -05:00
Tyler J. Stachecki
54230639ce Fix typo in WinAPI cen64_cv_wait(...).
This fixes -multithread on Windows.
2016-01-27 00:26:34 -05:00
Tyler J. Stachecki
f6bd236834 This was overdue: update CONTRIBUTORS.
@mikeryan, please inspect diff.
2016-01-26 21:02:33 -05:00
Tyler Stachecki
11c7e527a1 Merge pull request #28 from mikeryan/build-osx
build on OS X
2016-01-26 21:02:00 -05:00
Mike Ryan
4360b6923b build on OS X 2016-01-26 17:51:42 -08:00
Tyler Stachecki
a429c2c5e8 Merge pull request #26 from mikeryan/si-fixes
Minor fixes to SI
2016-01-26 00:32:57 -05:00
Mike Ryan
abfa90185f transfer pak: send correct buffer to GB read function 2016-01-25 21:30:57 -08:00
Mike Ryan
5d9ace0226 si: clear top bit of status byte without blowing it away 2016-01-25 21:28:20 -08:00
Mike Ryan
14fe91df7d si: do not fail PIF commands when controller is not present 2016-01-25 21:28:20 -08:00
Tyler J. Stachecki
357fb92862 ai: Channels were backwards, swap them.
krom noticed that the channels were swapped. Good ear.

  Data comes off the RSP as:
  LH LL RH RL

  bswap 32 results in:
  RL RH LL LH

  Need to flip again to get:
  LL LH RL RH
2016-01-26 00:23:10 -05:00
Tyler Stachecki
800cfc5b6f Merge pull request #25 from mikeryan/flashram-save
FlashRAM saves
2016-01-25 23:17:51 -05:00
Mike Ryan
e48d982023 flashram: implement FlashRAM in PI, with mapped reads 2016-01-25 20:09:46 -08:00
Mike Ryan
782b8cb826 flashram: take command line option and pass into PI 2016-01-25 20:09:46 -08:00
Tyler J. Stachecki
c548e9b7e2 Prevent audio problems with -multithread. 2016-01-25 03:55:16 -05:00
Tyler J. Stachecki
5b2bb550fd OpenAL: Try to dynamically adjust frequency.
Most carts only seem to use one frequency. Add a dirty
hack to change the frequency on the fly so things sound
less horrendous.
2016-01-25 03:37:01 -05:00
Tyler J. Stachecki
b0082df3ca Add experimental multithreading support. 2016-01-25 01:10:10 -05:00
Tyler J. Stachecki
376dcc2f86 Add more options for running without audio/video.
This commit does the following:
  * Renames the -nointerface argument to -headless
  * Adds -noaudio and -novideo arguments
2016-01-24 23:29:46 -05:00
Tyler J. Stachecki
1c5360b97a Implement open_gb_save for WinAPI's save_file. 2016-01-24 23:12:04 -05:00
Tyler J. Stachecki
5e6b3181ca Prevent segfaults with unconfigured EEPROM. 2016-01-24 22:22:32 -05:00
Tyler J. Stachecki
401811c33f Drop in atomics (required for multithreading). 2016-01-24 22:13:36 -05:00
Tyler J. Stachecki
76c633598a Implement save_file for WinAPI. 2016-01-24 21:58:15 -05:00
Tyler Stachecki
33f425bb19 Merge pull request #22 from mikeryan/transfer-pak
Transfer pak
2016-01-24 21:57:50 -05:00
Mike Ryan
e83da838f7 transfer pak: implement transfer pak read and write
This code will not boot Pokemon Stadium 1 or 2 after extensive
debugging. The code lacks Game Boy MBC support (though this is not the
reason the games refuse to boot).
2016-01-24 17:46:44 -08:00
Mike Ryan
799b2af628 transfer pak: parse command line and load tpak ROM/saves 2016-01-24 17:46:44 -08:00
Tyler J. Stachecki
cdd3c44aea Add a subsystem for detecting carts. 2016-01-24 19:01:51 -05:00
Tyler Stachecki
25e8e201ee Merge pull request #21 from mikeryan/sram-save
Implement SRAM saves
2016-01-24 17:27:19 -05:00
Mike Ryan
b07994687f sram: do not memcpy to NULL buffer 2016-01-24 14:20:27 -08:00
Mike Ryan
21d588c6ed sram: copy data between RDRAM and SRAM 2016-01-24 14:18:18 -08:00
Mike Ryan
3ba39b536d sram: load on command line and stuff into PI 2016-01-24 14:18:18 -08:00
Mike Ryan
4e8f3d3406 pi: correct memory ranges for SRAM and DD modem 2016-01-24 14:18:18 -08:00
Tyler J. Stachecki
7b57685baf Print VI/s when using -nointerface. 2016-01-24 16:30:53 -05:00
Tyler J. Stachecki
f255fc94c3 Restore -nointerface functionality.
-nointerface was horribly broken when the device model was
refactored a few months ago. This commit unbreaks it and
restores functionality.
2016-01-24 16:13:43 -05:00
Tyler Stachecki
30b53ca3eb Merge pull request #20 from mikeryan/mempak-save
Implement mempak saves and stub out rumble and transfer paks
2016-01-24 15:34:46 -05:00
Mike Ryan
e7bbc4f822 pak: implement mempak and stub out rumble and transfer pak 2016-01-24 12:28:48 -08:00