├── .github
└── FUNDING.yml
├── .gitignore
├── Mednafen
├── English.lproj
│ └── InfoPlist.strings
├── Info.plist
├── Mednafen.icns
├── MednafenGameCore.h
├── MednafenGameCore.mm
├── PVMednafen.xcodeproj
│ ├── TemplateIcon.icns
│ ├── project.pbxproj
│ ├── xcshareddata
│ │ └── xcschemes
│ │ │ └── PVMednafen.xcscheme
│ └── xcuserdata
│ │ └── tomkidd.xcuserdatad
│ │ └── xcschemes
│ │ └── xcschememanagement.plist
├── PVMednafen
│ ├── Info.plist
│ └── PVMednafen.h
├── include
│ └── trio
│ │ ├── CHANGES
│ │ ├── MEDNAFEN-MODIFICATIONS
│ │ ├── trio.h
│ │ ├── triodef.h
│ │ ├── trionan.h
│ │ ├── triop.h
│ │ └── triostr.h
├── libsndfile
│ ├── libsndfile_FLAC.a
│ ├── libvorbis.a
│ ├── libvorbisenc.a
│ └── sndfile.h
├── mednafen
│ ├── FileStream.cpp
│ ├── FileStream.h
│ ├── IPSPatcher.cpp
│ ├── IPSPatcher.h
│ ├── Makefile.am
│ ├── Makefile.in
│ ├── MemoryStream.cpp
│ ├── MemoryStream.h
│ ├── PSFLoader.cpp
│ ├── PSFLoader.h
│ ├── SNSFLoader.cpp
│ ├── SNSFLoader.h
│ ├── SPCReader.cpp
│ ├── SPCReader.h
│ ├── Stream.cpp
│ ├── Stream.h
│ ├── cdplay
│ │ ├── Makefile.am
│ │ ├── Makefile.in
│ │ └── cdplay.cpp
│ ├── cdrom
│ │ ├── CDAFReader.cpp
│ │ ├── CDAFReader.h
│ │ ├── CDAFReader_MPC.cpp
│ │ ├── CDAFReader_MPC.h
│ │ ├── CDAFReader_SF.cpp
│ │ ├── CDAFReader_SF.h
│ │ ├── CDAFReader_Vorbis.cpp
│ │ ├── CDAFReader_Vorbis.h
│ │ ├── CDAccess.cpp
│ │ ├── CDAccess.h
│ │ ├── CDAccess_CCD.cpp
│ │ ├── CDAccess_CCD.h
│ │ ├── CDAccess_Image.cpp
│ │ ├── CDAccess_Image.h
│ │ ├── CDUtility.cpp
│ │ ├── CDUtility.h
│ │ ├── Makefile.am.inc
│ │ ├── SimpleFIFO.h
│ │ ├── cdromif.cpp
│ │ ├── cdromif.h
│ │ ├── crc32.cpp
│ │ ├── dvdisaster.h
│ │ ├── galois-inlines.h
│ │ ├── galois.cpp
│ │ ├── l-ec.cpp
│ │ ├── lec.cpp
│ │ ├── lec.h
│ │ ├── recover-raw.cpp
│ │ ├── scsicd-pce-commands.inc
│ │ ├── scsicd.cpp
│ │ ├── scsicd.h
│ │ └── scsicd_cdda_filter.inc
│ ├── compress
│ │ ├── GZFileStream.cpp
│ │ ├── GZFileStream.h
│ │ ├── Makefile.am.inc
│ │ ├── README.LZO
│ │ ├── ZLInflateFilter.cpp
│ │ ├── ZLInflateFilter.h
│ │ ├── ioapi.c
│ │ ├── ioapi.h
│ │ ├── lzoconf.h
│ │ ├── lzodefs.h
│ │ ├── minilzo.c
│ │ ├── minilzo.h
│ │ ├── unzip.c
│ │ └── unzip.h
│ ├── cputest
│ │ ├── Makefile.am.inc
│ │ ├── README
│ │ ├── arm_cpu.c
│ │ ├── cputest.c
│ │ ├── cputest.h
│ │ ├── ppc_cpu.c
│ │ ├── x86_cpu.c
│ │ └── x86_cpu.h
│ ├── debug.cpp
│ ├── debug.h
│ ├── demo
│ │ ├── Makefile.am
│ │ ├── Makefile.in
│ │ └── demo.cpp
│ ├── desa68
│ │ ├── Makefile.am
│ │ ├── Makefile.in
│ │ ├── desa68.c
│ │ └── desa68.h
│ ├── dis6502.cpp
│ ├── dis6502.h
│ ├── driver.h
│ ├── drivers
│ │ ├── 2xSaI.cpp
│ │ ├── 2xSaI.h
│ │ ├── Joystick.cpp
│ │ ├── Joystick.h
│ │ ├── Joystick_DX5.cpp
│ │ ├── Joystick_DX5.h
│ │ ├── Joystick_Linux.cpp
│ │ ├── Joystick_Linux.h
│ │ ├── Joystick_SDL.cpp
│ │ ├── Joystick_SDL.h
│ │ ├── Joystick_XInput.cpp
│ │ ├── Joystick_XInput.h
│ │ ├── Makefile.am
│ │ ├── Makefile.in
│ │ ├── NetClient.h
│ │ ├── NetClient_POSIX.cpp
│ │ ├── NetClient_POSIX.h
│ │ ├── NetClient_WS2.cpp
│ │ ├── NetClient_WS2.h
│ │ ├── README.WIN32
│ │ ├── args.cpp
│ │ ├── args.h
│ │ ├── cheat.cpp
│ │ ├── cheat.h
│ │ ├── console.cpp
│ │ ├── console.h
│ │ ├── debugger.cpp
│ │ ├── debugger.h
│ │ ├── ers.cpp
│ │ ├── ers.h
│ │ ├── fps.cpp
│ │ ├── fps.h
│ │ ├── gfxdebugger.cpp
│ │ ├── gfxdebugger.h
│ │ ├── help.cpp
│ │ ├── help.h
│ │ ├── hq2x.cpp
│ │ ├── hq3x.cpp
│ │ ├── hq4x.cpp
│ │ ├── hqxx-common.cpp
│ │ ├── hqxx-common.h
│ │ ├── icon.h
│ │ ├── input-config.cpp
│ │ ├── input-config.h
│ │ ├── input-default-buttons.h
│ │ ├── input.cpp
│ │ ├── input.h
│ │ ├── logdebugger.cpp
│ │ ├── logdebugger.h
│ │ ├── main.cpp
│ │ ├── main.h
│ │ ├── memdebugger.cpp
│ │ ├── memdebugger.h
│ │ ├── netplay.cpp
│ │ ├── netplay.h
│ │ ├── nnx.cpp
│ │ ├── nnx.h
│ │ ├── nongl.cpp
│ │ ├── nongl.h
│ │ ├── opengl.cpp
│ │ ├── opengl.h
│ │ ├── overlay.cpp
│ │ ├── overlay.h
│ │ ├── prompt.cpp
│ │ ├── prompt.h
│ │ ├── remote.cpp
│ │ ├── remote.h
│ │ ├── rmdui.cpp
│ │ ├── rmdui.h
│ │ ├── scale2x.c
│ │ ├── scale2x.h
│ │ ├── scale3x.c
│ │ ├── scale3x.h
│ │ ├── scalebit.c
│ │ ├── scalebit.h
│ │ ├── shader.cpp
│ │ ├── shader.h
│ │ ├── shader_sabr.inc
│ │ ├── sound.cpp
│ │ ├── sound.h
│ │ ├── thread_sdl.cpp
│ │ ├── thread_win32.cpp
│ │ ├── video-state.cpp
│ │ ├── video-state.h
│ │ ├── video.cpp
│ │ ├── video.h
│ │ ├── win-manifest.xml
│ │ └── win-resource.rc
│ ├── drivers_dos
│ │ ├── Joystick.cpp
│ │ ├── Joystick.h
│ │ ├── Joystick_DOS_Standard.cpp
│ │ ├── Joystick_DOS_Standard.h
│ │ ├── Makefile.am
│ │ ├── Makefile.in
│ │ ├── Sound.h
│ │ ├── Video.h
│ │ ├── Video_VGA.cpp
│ │ ├── Video_VGA.h
│ │ ├── args.cpp
│ │ ├── args.h
│ │ ├── ers.cpp
│ │ ├── ers.h
│ │ ├── input-config.cpp
│ │ ├── input-config.h
│ │ ├── input-default-buttons.h
│ │ ├── input.cpp
│ │ ├── input.h
│ │ ├── main.cpp
│ │ ├── main.h
│ │ ├── nnx.cpp
│ │ ├── nnx.h
│ │ ├── nongl.cpp
│ │ ├── nongl.h
│ │ ├── sound.cpp
│ │ └── video.cpp
│ ├── endian.cpp
│ ├── endian.h
│ ├── error.cpp
│ ├── error.h
│ ├── file.cpp
│ ├── file.h
│ ├── gb
│ │ ├── Makefile.am
│ │ ├── Makefile.in
│ │ ├── gb.cpp
│ │ ├── gb.h
│ │ ├── gbCodes.h
│ │ ├── gbCodesCB.h
│ │ ├── gbGlobals.cpp
│ │ ├── gbGlobals.h
│ │ ├── gfx.cpp
│ │ ├── memory.cpp
│ │ ├── memory.h
│ │ ├── sound.cpp
│ │ ├── sound.h
│ │ ├── z80.cpp
│ │ └── z80.h
│ ├── gba
│ │ ├── GBA.cpp
│ │ ├── GBA.h
│ │ ├── GBAinline.cpp
│ │ ├── GBAinline.h
│ │ ├── Gfx.cpp
│ │ ├── Gfx.h
│ │ ├── Globals.cpp
│ │ ├── Globals.h
│ │ ├── Makefile.am
│ │ ├── Makefile.in
│ │ ├── Mode0.cpp
│ │ ├── Mode1.cpp
│ │ ├── Mode2.cpp
│ │ ├── Mode3.cpp
│ │ ├── Mode4.cpp
│ │ ├── Mode5.cpp
│ │ ├── Port.h
│ │ ├── RTC.cpp
│ │ ├── RTC.h
│ │ ├── Sound.cpp
│ │ ├── Sound.h
│ │ ├── arm.cpp
│ │ ├── arm.h
│ │ ├── bios.cpp
│ │ ├── bios.h
│ │ ├── eeprom.cpp
│ │ ├── eeprom.h
│ │ ├── flash.cpp
│ │ ├── flash.h
│ │ ├── gfx-draw.h
│ │ ├── myrom.h
│ │ ├── sram.cpp
│ │ ├── sram.h
│ │ ├── thumb.cpp
│ │ └── thumb.h
│ ├── general.cpp
│ ├── general.h
│ ├── gettext.h
│ ├── git.cpp
│ ├── git.h
│ ├── hash
│ │ ├── Makefile.am.inc
│ │ ├── md5.cpp
│ │ ├── md5.h
│ │ ├── sha1.cpp
│ │ ├── sha1.h
│ │ ├── sha256.cpp
│ │ └── sha256.h
│ ├── hw_cpu
│ │ ├── Makefile.am
│ │ ├── Makefile.in
│ │ ├── c68k
│ │ │ ├── c68k.cpp
│ │ │ ├── c68k.h
│ │ │ ├── c68k_ini.inc
│ │ │ ├── c68k_op0.inc
│ │ │ ├── c68k_op1.inc
│ │ │ ├── c68k_op2.inc
│ │ │ ├── c68k_op3.inc
│ │ │ ├── c68k_op4.inc
│ │ │ ├── c68k_op5.inc
│ │ │ ├── c68k_op6.inc
│ │ │ ├── c68k_op7.inc
│ │ │ ├── c68k_op8.inc
│ │ │ ├── c68k_op9.inc
│ │ │ ├── c68k_opA.inc
│ │ │ ├── c68k_opB.inc
│ │ │ ├── c68k_opC.inc
│ │ │ ├── c68k_opD.inc
│ │ │ ├── c68k_opE.inc
│ │ │ ├── c68k_opF.inc
│ │ │ ├── c68kexec.cpp
│ │ │ ├── c68kmac.inc
│ │ │ ├── gen68k.cpp
│ │ │ ├── gen68k.h
│ │ │ └── gen68k.inc
│ │ ├── huc6280
│ │ │ ├── dis6280.cpp
│ │ │ ├── dis6280.h
│ │ │ ├── huc6280.cpp
│ │ │ ├── huc6280.h
│ │ │ ├── huc6280_step.inc
│ │ │ └── ops.inc
│ │ ├── v810
│ │ │ ├── v810_cpu.cpp
│ │ │ ├── v810_cpu.h
│ │ │ ├── v810_cpuD.cpp
│ │ │ ├── v810_cpuD.h
│ │ │ ├── v810_do_am.h
│ │ │ ├── v810_fp_ops.cpp
│ │ │ ├── v810_fp_ops.h
│ │ │ ├── v810_oploop.inc
│ │ │ └── v810_opt.h
│ │ └── z80-fuse
│ │ │ ├── opcodes_base.c
│ │ │ ├── z80.cpp
│ │ │ ├── z80.h
│ │ │ ├── z80_cb.c
│ │ │ ├── z80_ddfd.c
│ │ │ ├── z80_ddfdcb.c
│ │ │ ├── z80_ed.c
│ │ │ ├── z80_macros.h
│ │ │ └── z80_ops.cpp
│ ├── hw_misc
│ │ ├── Makefile.am
│ │ ├── Makefile.in
│ │ └── arcade_card
│ │ │ ├── arcade_card.cpp
│ │ │ └── arcade_card.h
│ ├── hw_sound
│ │ ├── Makefile.am
│ │ ├── Makefile.in
│ │ ├── gb_apu
│ │ │ ├── Gb_Apu.cpp
│ │ │ ├── Gb_Apu.h
│ │ │ ├── Gb_Apu_State.cpp
│ │ │ ├── Gb_Oscs.cpp
│ │ │ ├── Gb_Oscs.h
│ │ │ ├── blargg_common.h
│ │ │ ├── blargg_config.h
│ │ │ └── blargg_source.h
│ │ ├── pce_psg
│ │ │ ├── pce_psg.cpp
│ │ │ └── pce_psg.h
│ │ ├── sms_apu
│ │ │ ├── Sms_Apu.cpp
│ │ │ ├── Sms_Apu.h
│ │ │ └── Sms_Oscs.h
│ │ ├── ym2413
│ │ │ ├── 2413tone.h
│ │ │ ├── emu2413.cpp
│ │ │ └── emu2413.h
│ │ └── ym2612
│ │ │ ├── Ym2612_Emu.cpp
│ │ │ ├── Ym2612_Emu.h
│ │ │ └── ym2612_opeg.inc
│ ├── hw_video
│ │ ├── Makefile.am
│ │ ├── Makefile.in
│ │ └── huc6270
│ │ │ ├── vdc.cpp
│ │ │ └── vdc.h
│ ├── lepacker.h
│ ├── lynx
│ │ ├── Makefile.am
│ │ ├── Makefile.in
│ │ ├── c6502mak.h
│ │ ├── c65c02.cpp
│ │ ├── c65c02.h
│ │ ├── cart.cpp
│ │ ├── cart.h
│ │ ├── license.txt
│ │ ├── lynxbase.h
│ │ ├── lynxdef.h
│ │ ├── machine.h
│ │ ├── memmap.cpp
│ │ ├── memmap.h
│ │ ├── mikie.cpp
│ │ ├── mikie.h
│ │ ├── ram.cpp
│ │ ├── ram.h
│ │ ├── rom.cpp
│ │ ├── rom.h
│ │ ├── susie.cpp
│ │ ├── susie.h
│ │ ├── sysbase.h
│ │ ├── system.cpp
│ │ └── system.h
│ ├── math_ops.h
│ ├── md
│ │ ├── Makefile.am
│ │ ├── Makefile.in
│ │ ├── cart
│ │ │ ├── cart.cpp
│ │ │ ├── cart.h
│ │ │ ├── map_eeprom.cpp
│ │ │ ├── map_eeprom.h
│ │ │ ├── map_ff.cpp
│ │ │ ├── map_ff.h
│ │ │ ├── map_realtec.cpp
│ │ │ ├── map_realtec.h
│ │ │ ├── map_rmx3.cpp
│ │ │ ├── map_rmx3.h
│ │ │ ├── map_rom.cpp
│ │ │ ├── map_rom.h
│ │ │ ├── map_sbb.cpp
│ │ │ ├── map_sbb.h
│ │ │ ├── map_sram.cpp
│ │ │ ├── map_sram.h
│ │ │ ├── map_ssf2.cpp
│ │ │ ├── map_ssf2.h
│ │ │ ├── map_svp.cpp
│ │ │ ├── map_svp.h
│ │ │ ├── map_yase.cpp
│ │ │ ├── map_yase.h
│ │ │ ├── ssp16.c
│ │ │ └── ssp16.h
│ │ ├── cd
│ │ │ ├── cd.cpp
│ │ │ ├── cd.h
│ │ │ ├── cdc_cdd.cpp
│ │ │ ├── cdc_cdd.h
│ │ │ ├── interrupt.cpp
│ │ │ ├── interrupt.h
│ │ │ ├── pcm.cpp
│ │ │ ├── pcm.h
│ │ │ ├── timer.cpp
│ │ │ └── timer.h
│ │ ├── debug.cpp
│ │ ├── debug.h
│ │ ├── genesis.cpp
│ │ ├── genesis.h
│ │ ├── genio.cpp
│ │ ├── genio.h
│ │ ├── header.cpp
│ │ ├── header.h
│ │ ├── hvc.h
│ │ ├── input
│ │ │ ├── 4way.cpp
│ │ │ ├── 4way.h
│ │ │ ├── gamepad.cpp
│ │ │ ├── gamepad.h
│ │ │ ├── megamouse.cpp
│ │ │ ├── megamouse.h
│ │ │ ├── multitap.cpp
│ │ │ └── multitap.h
│ │ ├── macros.h
│ │ ├── mem68k.cpp
│ │ ├── mem68k.h
│ │ ├── membnk.cpp
│ │ ├── membnk.h
│ │ ├── memvdp.cpp
│ │ ├── memvdp.h
│ │ ├── memz80.cpp
│ │ ├── memz80.h
│ │ ├── shared.h
│ │ ├── sound.cpp
│ │ ├── sound.h
│ │ ├── system.cpp
│ │ ├── system.h
│ │ ├── vcnt.h
│ │ ├── vdp.cpp
│ │ ├── vdp.h
│ │ └── vdp_run.inc
│ ├── mednafen-driver.h
│ ├── mednafen.cpp
│ ├── mednafen.h
│ ├── memory.cpp
│ ├── memory.h
│ ├── mempatcher-driver.h
│ ├── mempatcher.cpp
│ ├── mempatcher.h
│ ├── movie-driver.h
│ ├── movie.cpp
│ ├── movie.h
│ ├── mpcdec
│ │ ├── !VERSION
│ │ ├── AUTHORS
│ │ ├── CMakeLists.txt
│ │ ├── COPYING
│ │ ├── ChangeLog
│ │ ├── Makefile.am
│ │ ├── Makefile.in
│ │ ├── README
│ │ ├── crc32.c
│ │ ├── datatypes.h
│ │ ├── decoder.h
│ │ ├── huffman.c
│ │ ├── huffman.h
│ │ ├── internal.h
│ │ ├── minimax.h
│ │ ├── mpc_bits_reader.c
│ │ ├── mpc_bits_reader.h
│ │ ├── mpc_decoder.c
│ │ ├── mpc_demux.c
│ │ ├── mpc_reader.c
│ │ ├── mpc_types.h
│ │ ├── mpcdec.h
│ │ ├── mpcdec_math.h
│ │ ├── mpcmath.h
│ │ ├── reader.h
│ │ ├── requant.c
│ │ ├── requant.h
│ │ ├── streaminfo.c
│ │ ├── streaminfo.h
│ │ └── synth_filter.c
│ ├── nes
│ │ ├── Makefile.am
│ │ ├── Makefile.in
│ │ ├── NES-TODO
│ │ ├── boards
│ │ │ ├── 107.cpp
│ │ │ ├── 112.cpp
│ │ │ ├── 113.cpp
│ │ │ ├── 114.cpp
│ │ │ ├── 117.cpp
│ │ │ ├── 140.cpp
│ │ │ ├── 15.cpp
│ │ │ ├── 151.cpp
│ │ │ ├── 152.cpp
│ │ │ ├── 156.cpp
│ │ │ ├── 16.cpp
│ │ │ ├── 163.cpp
│ │ │ ├── 18.cpp
│ │ │ ├── 180.cpp
│ │ │ ├── 182.cpp
│ │ │ ├── 184.cpp
│ │ │ ├── 185.cpp
│ │ │ ├── 187.cpp
│ │ │ ├── 189.cpp
│ │ │ ├── 193.cpp
│ │ │ ├── 208.cpp
│ │ │ ├── 21.cpp
│ │ │ ├── 22.cpp
│ │ │ ├── 222.cpp
│ │ │ ├── 228.cpp
│ │ │ ├── 23.cpp
│ │ │ ├── 232.cpp
│ │ │ ├── 234.cpp
│ │ │ ├── 240.cpp
│ │ │ ├── 241.cpp
│ │ │ ├── 242.cpp
│ │ │ ├── 244.cpp
│ │ │ ├── 246.cpp
│ │ │ ├── 248.cpp
│ │ │ ├── 25.cpp
│ │ │ ├── 32.cpp
│ │ │ ├── 33.cpp
│ │ │ ├── 34.cpp
│ │ │ ├── 38.cpp
│ │ │ ├── 41.cpp
│ │ │ ├── 42.cpp
│ │ │ ├── 46.cpp
│ │ │ ├── 51.cpp
│ │ │ ├── 65.cpp
│ │ │ ├── 67.cpp
│ │ │ ├── 68.cpp
│ │ │ ├── 70.cpp
│ │ │ ├── 72.cpp
│ │ │ ├── 73.cpp
│ │ │ ├── 75.cpp
│ │ │ ├── 76.cpp
│ │ │ ├── 77.cpp
│ │ │ ├── 78.cpp
│ │ │ ├── 8.cpp
│ │ │ ├── 80.cpp
│ │ │ ├── 82.cpp
│ │ │ ├── 8237.cpp
│ │ │ ├── 86.cpp
│ │ │ ├── 87.cpp
│ │ │ ├── 88.cpp
│ │ │ ├── 89.cpp
│ │ │ ├── 90.cpp
│ │ │ ├── 92.cpp
│ │ │ ├── 93.cpp
│ │ │ ├── 94.cpp
│ │ │ ├── 95.cpp
│ │ │ ├── 96.cpp
│ │ │ ├── 97.cpp
│ │ │ ├── 99.cpp
│ │ │ ├── Makefile.am.inc
│ │ │ ├── codemasters.cpp
│ │ │ ├── colordreams.cpp
│ │ │ ├── deirom.cpp
│ │ │ ├── emu2413.cpp
│ │ │ ├── emu2413.h
│ │ │ ├── emutypes.h
│ │ │ ├── ffe.cpp
│ │ │ ├── fme7.cpp
│ │ │ ├── h2288.cpp
│ │ │ ├── malee.cpp
│ │ │ ├── mapinc.h
│ │ │ ├── maxicart.cpp
│ │ │ ├── mmc1.cpp
│ │ │ ├── mmc2and4.cpp
│ │ │ ├── mmc3.cpp
│ │ │ ├── mmc5.cpp
│ │ │ ├── n106.cpp
│ │ │ ├── nina06.cpp
│ │ │ ├── novel.cpp
│ │ │ ├── sachen.cpp
│ │ │ ├── simple.cpp
│ │ │ ├── super24.cpp
│ │ │ ├── supervision.cpp
│ │ │ ├── tengen.cpp
│ │ │ ├── vrc6.cpp
│ │ │ ├── vrc7.cpp
│ │ │ └── vrc7tone.h
│ │ ├── cart.cpp
│ │ ├── cart.h
│ │ ├── debug.cpp
│ │ ├── debug.h
│ │ ├── fds-sound.cpp
│ │ ├── fds-sound.h
│ │ ├── fds.cpp
│ │ ├── fds.h
│ │ ├── filter.cpp
│ │ ├── filter.h
│ │ ├── ines-bad.inc
│ │ ├── ines-correct.inc
│ │ ├── ines.cpp
│ │ ├── ines.h
│ │ ├── input.cpp
│ │ ├── input.h
│ │ ├── input
│ │ │ ├── Makefile.am.inc
│ │ │ ├── arkanoid.cpp
│ │ │ ├── bworld.cpp
│ │ │ ├── cursor.cpp
│ │ │ ├── cursor.h
│ │ │ ├── fkb.cpp
│ │ │ ├── fkb.h
│ │ │ ├── ftrainer.cpp
│ │ │ ├── hypershot.cpp
│ │ │ ├── mahjong.cpp
│ │ │ ├── oekakids.cpp
│ │ │ ├── partytap.cpp
│ │ │ ├── powerpad.cpp
│ │ │ ├── shadow.cpp
│ │ │ ├── share.h
│ │ │ ├── suborkb.cpp
│ │ │ ├── suborkb.h
│ │ │ ├── toprider.cpp
│ │ │ └── zapper.cpp
│ │ ├── nes.cpp
│ │ ├── nes.h
│ │ ├── nsf.cpp
│ │ ├── nsf.h
│ │ ├── nsfe.cpp
│ │ ├── nsfe.h
│ │ ├── ntsc
│ │ │ ├── LGPL.txt
│ │ │ ├── benchmark.c
│ │ │ ├── changes.txt
│ │ │ ├── demo.c
│ │ │ ├── nes.raw
│ │ │ ├── nes_ntsc.cpp
│ │ │ ├── nes_ntsc.h
│ │ │ ├── nes_ntsc.txt
│ │ │ └── readme.txt
│ │ ├── ops.h
│ │ ├── ppu
│ │ │ ├── Makefile.am.inc
│ │ │ ├── fast-pputile.h
│ │ │ ├── palette.cpp
│ │ │ ├── palette.h
│ │ │ ├── palettes
│ │ │ │ ├── default.h
│ │ │ │ ├── rp2c04-0001.h
│ │ │ │ ├── rp2c04-0002.h
│ │ │ │ ├── rp2c04-0003.h
│ │ │ │ ├── rp2c04-0004.h
│ │ │ │ └── rp2c0x.h
│ │ │ ├── ppu-fastrl.h
│ │ │ ├── ppu-subline.h
│ │ │ ├── ppu.cpp
│ │ │ └── ppu.h
│ │ ├── sound.cpp
│ │ ├── sound.h
│ │ ├── unif.cpp
│ │ ├── unif.h
│ │ ├── vsuni.cpp
│ │ ├── vsuni.h
│ │ ├── x6502.cpp
│ │ ├── x6502.h
│ │ └── x6502struct.h
│ ├── netplay-driver.h
│ ├── netplay.cpp
│ ├── netplay.h
│ ├── ngp
│ │ ├── Makefile.am
│ │ ├── Makefile.in
│ │ ├── T6W28_Apu.cpp
│ │ ├── T6W28_Apu.h
│ │ ├── T6W28_Oscs.h
│ │ ├── TLCS-900h
│ │ │ ├── TLCS900h_disassemble.cpp
│ │ │ ├── TLCS900h_disassemble.h
│ │ │ ├── TLCS900h_disassemble_dst.cpp
│ │ │ ├── TLCS900h_disassemble_extra.cpp
│ │ │ ├── TLCS900h_disassemble_reg.cpp
│ │ │ ├── TLCS900h_disassemble_src.cpp
│ │ │ ├── TLCS900h_interpret.cpp
│ │ │ ├── TLCS900h_interpret.h
│ │ │ ├── TLCS900h_interpret_dst.cpp
│ │ │ ├── TLCS900h_interpret_dst.h
│ │ │ ├── TLCS900h_interpret_reg.cpp
│ │ │ ├── TLCS900h_interpret_reg.h
│ │ │ ├── TLCS900h_interpret_single.cpp
│ │ │ ├── TLCS900h_interpret_single.h
│ │ │ ├── TLCS900h_interpret_src.cpp
│ │ │ ├── TLCS900h_interpret_src.h
│ │ │ ├── TLCS900h_registers.cpp
│ │ │ ├── TLCS900h_registers.h
│ │ │ ├── TLCS900h_registers_mapB.h
│ │ │ ├── TLCS900h_registers_mapCodeB0.h
│ │ │ ├── TLCS900h_registers_mapCodeB1.h
│ │ │ ├── TLCS900h_registers_mapCodeB2.h
│ │ │ ├── TLCS900h_registers_mapCodeB3.h
│ │ │ ├── TLCS900h_registers_mapCodeL0.h
│ │ │ ├── TLCS900h_registers_mapCodeL1.h
│ │ │ ├── TLCS900h_registers_mapCodeL2.h
│ │ │ ├── TLCS900h_registers_mapCodeL3.h
│ │ │ ├── TLCS900h_registers_mapCodeW0.h
│ │ │ ├── TLCS900h_registers_mapCodeW1.h
│ │ │ ├── TLCS900h_registers_mapCodeW2.h
│ │ │ ├── TLCS900h_registers_mapCodeW3.h
│ │ │ ├── TLCS900h_registers_mapL.h
│ │ │ └── TLCS900h_registers_mapW.h
│ │ ├── Z80_interface.cpp
│ │ ├── Z80_interface.h
│ │ ├── bios.cpp
│ │ ├── bios.h
│ │ ├── biosHLE.cpp
│ │ ├── dma.cpp
│ │ ├── dma.h
│ │ ├── flash.cpp
│ │ ├── flash.h
│ │ ├── gfx.cpp
│ │ ├── gfx.h
│ │ ├── gfx_scanline_colour.cpp
│ │ ├── gfx_scanline_mono.cpp
│ │ ├── interrupt.cpp
│ │ ├── interrupt.h
│ │ ├── mem.cpp
│ │ ├── mem.h
│ │ ├── neopop.cpp
│ │ ├── neopop.h
│ │ ├── rom.cpp
│ │ ├── rtc.cpp
│ │ ├── rtc.h
│ │ ├── sound.cpp
│ │ └── sound.h
│ ├── pce
│ │ ├── Makefile.am
│ │ ├── Makefile.in
│ │ ├── debug.cpp
│ │ ├── debug.h
│ │ ├── hes.cpp
│ │ ├── hes.h
│ │ ├── huc.cpp
│ │ ├── huc.h
│ │ ├── input.cpp
│ │ ├── input.h
│ │ ├── input
│ │ │ ├── gamepad.cpp
│ │ │ ├── gamepad.h
│ │ │ ├── mouse.cpp
│ │ │ ├── mouse.h
│ │ │ ├── tsushinkb.cpp
│ │ │ └── tsushinkb.h
│ │ ├── mcgenjin.cpp
│ │ ├── mcgenjin.h
│ │ ├── notes
│ │ │ ├── EVENT_SYSTEM_NOTES
│ │ │ ├── GAME_NOTES
│ │ │ └── PATENTS
│ │ ├── pce.cpp
│ │ ├── pce.h
│ │ ├── pcecd.cpp
│ │ ├── pcecd.h
│ │ ├── tsushin.cpp
│ │ ├── tsushin.h
│ │ ├── vce.cpp
│ │ ├── vce.h
│ │ └── vce_sync.inc
│ ├── pce_fast
│ │ ├── Makefile.am
│ │ ├── Makefile.in
│ │ ├── hes.cpp
│ │ ├── hes.h
│ │ ├── huc.cpp
│ │ ├── huc.h
│ │ ├── huc6280.cpp
│ │ ├── huc6280.h
│ │ ├── huc6280_ops.inc
│ │ ├── input.cpp
│ │ ├── input.h
│ │ ├── ioread.inc
│ │ ├── pce.cpp
│ │ ├── pce.h
│ │ ├── pcecd.cpp
│ │ ├── pcecd.h
│ │ ├── pcecd_drive.cpp
│ │ ├── pcecd_drive.h
│ │ ├── psg.cpp
│ │ ├── psg.h
│ │ ├── vdc.cpp
│ │ ├── vdc.h
│ │ └── vpc_mix_inner.inc
│ ├── pcfx
│ │ ├── Makefile.am
│ │ ├── Makefile.in
│ │ ├── debug.cpp
│ │ ├── debug.h
│ │ ├── fxscsi.cpp
│ │ ├── fxscsi.h
│ │ ├── gamedb.inc
│ │ ├── huc6273.cpp
│ │ ├── huc6273.h
│ │ ├── input.cpp
│ │ ├── input.h
│ │ ├── input
│ │ │ ├── gamepad.cpp
│ │ │ ├── gamepad.h
│ │ │ ├── mouse.cpp
│ │ │ └── mouse.h
│ │ ├── interrupt.cpp
│ │ ├── interrupt.h
│ │ ├── io-handler.inc
│ │ ├── jrevdct.cpp
│ │ ├── jrevdct.h
│ │ ├── king-bgfast-blit.inc
│ │ ├── king-bgfast.inc
│ │ ├── king.cpp
│ │ ├── king.h
│ │ ├── king_mix_body.inc
│ │ ├── mem-handler.inc
│ │ ├── notes
│ │ │ └── GAME_NOTES
│ │ ├── pcfx.cpp
│ │ ├── pcfx.h
│ │ ├── rainbow.cpp
│ │ ├── rainbow.h
│ │ ├── soundbox.cpp
│ │ ├── soundbox.h
│ │ ├── timer.cpp
│ │ └── timer.h
│ ├── player.cpp
│ ├── player.h
│ ├── psx
│ │ ├── FastFIFO.h
│ │ ├── Makefile.am
│ │ ├── Makefile.in
│ │ ├── cdc.cpp
│ │ ├── cdc.h
│ │ ├── cpu.cpp
│ │ ├── cpu.h
│ │ ├── debug.cpp
│ │ ├── debug.h
│ │ ├── dis.cpp
│ │ ├── dis.h
│ │ ├── dma.cpp
│ │ ├── dma.h
│ │ ├── frontio.cpp
│ │ ├── frontio.h
│ │ ├── gpu.cpp
│ │ ├── gpu.h
│ │ ├── gpu_common.inc
│ │ ├── gpu_line.cpp
│ │ ├── gpu_polygon.cpp
│ │ ├── gpu_sprite.cpp
│ │ ├── gte.cpp
│ │ ├── gte.h
│ │ ├── input
│ │ │ ├── dualanalog.cpp
│ │ │ ├── dualanalog.h
│ │ │ ├── dualshock.cpp
│ │ │ ├── dualshock.h
│ │ │ ├── gamepad.cpp
│ │ │ ├── gamepad.h
│ │ │ ├── guncon.cpp
│ │ │ ├── guncon.h
│ │ │ ├── justifier.cpp
│ │ │ ├── justifier.h
│ │ │ ├── memcard.cpp
│ │ │ ├── memcard.h
│ │ │ ├── mouse.cpp
│ │ │ ├── mouse.h
│ │ │ ├── multitap.cpp
│ │ │ ├── multitap.h
│ │ │ ├── negcon.cpp
│ │ │ └── negcon.h
│ │ ├── irq.cpp
│ │ ├── irq.h
│ │ ├── masmem.h
│ │ ├── mdec.cpp
│ │ ├── mdec.h
│ │ ├── notes
│ │ │ ├── MULTITAP
│ │ │ ├── PROBLEMATIC-GAMES
│ │ │ ├── PSX-TODO
│ │ │ ├── SOURCES
│ │ │ ├── SPU-IRQ
│ │ │ └── tristep.cpp
│ │ ├── psx.cpp
│ │ ├── psx.h
│ │ ├── sio.cpp
│ │ ├── sio.h
│ │ ├── spu.cpp
│ │ ├── spu.h
│ │ ├── spu_fir_table.inc
│ │ ├── spu_reverb.inc
│ │ ├── timer.cpp
│ │ └── timer.h
│ ├── qtrecord.cpp
│ ├── qtrecord.h
│ ├── quicklz
│ │ ├── Makefile.am
│ │ ├── Makefile.in
│ │ ├── quicklz.c
│ │ └── quicklz.h
│ ├── resampler
│ │ ├── Makefile.am.inc
│ │ ├── arch.h
│ │ ├── fixed_generic.h
│ │ ├── resample.c
│ │ ├── resample_sse.h
│ │ ├── resampler.h
│ │ └── stack_alloc.h
│ ├── settings-common.h
│ ├── settings-driver.h
│ ├── settings.cpp
│ ├── settings.h
│ ├── sexyal
│ │ ├── COPYING
│ │ ├── Makefile.am
│ │ ├── Makefile.in
│ │ ├── README
│ │ ├── convert.cpp
│ │ ├── convert.h
│ │ ├── drivers
│ │ │ ├── alsa.cpp
│ │ │ ├── cmi8738.cpp
│ │ │ ├── dos_common.cpp
│ │ │ ├── dos_common.h
│ │ │ ├── dsound.cpp
│ │ │ ├── dummy.cpp
│ │ │ ├── es1370.cpp
│ │ │ ├── es1371.cpp
│ │ │ ├── jack.cpp
│ │ │ ├── oss.cpp
│ │ │ ├── sb.cpp
│ │ │ ├── sdl.cpp
│ │ │ ├── wasapi.cpp
│ │ │ └── wasapish.cpp
│ │ ├── sexyal.cpp
│ │ └── sexyal.h
│ ├── sms
│ │ ├── Makefile.am
│ │ ├── Makefile.in
│ │ ├── cart.cpp
│ │ ├── cart.h
│ │ ├── docs
│ │ │ ├── changelog
│ │ │ ├── compatability.txt
│ │ │ ├── license
│ │ │ ├── porting.txt
│ │ │ └── readme.txt
│ │ ├── hvc.inc
│ │ ├── memz80.cpp
│ │ ├── memz80.h
│ │ ├── pio.cpp
│ │ ├── pio.h
│ │ ├── render.cpp
│ │ ├── render.h
│ │ ├── romdb.cpp
│ │ ├── romdb.h
│ │ ├── shared.h
│ │ ├── sms.cpp
│ │ ├── sms.h
│ │ ├── sound.cpp
│ │ ├── sound.h
│ │ ├── system.cpp
│ │ ├── system.h
│ │ ├── tms.cpp
│ │ ├── tms.h
│ │ ├── vdp.cpp
│ │ └── vdp.h
│ ├── snes
│ │ ├── Makefile.am
│ │ ├── Makefile.in
│ │ ├── VERSION.BSNES
│ │ ├── interface.cpp
│ │ └── src
│ │ │ ├── base.hpp
│ │ │ ├── cartridge
│ │ │ ├── cartridge.cpp
│ │ │ ├── cartridge.hpp
│ │ │ ├── gameboyheader.cpp
│ │ │ ├── header.cpp
│ │ │ └── serialization.cpp
│ │ │ ├── cheat
│ │ │ ├── cheat-inline.hpp
│ │ │ ├── cheat.cpp
│ │ │ └── cheat.hpp
│ │ │ ├── chip
│ │ │ ├── bsx
│ │ │ │ ├── bsx.cpp
│ │ │ │ ├── bsx.hpp
│ │ │ │ ├── bsx_base.cpp
│ │ │ │ ├── bsx_cart.cpp
│ │ │ │ └── bsx_flash.cpp
│ │ │ ├── chip.hpp
│ │ │ ├── cx4
│ │ │ │ ├── cx4.cpp
│ │ │ │ ├── cx4.hpp
│ │ │ │ ├── data.cpp
│ │ │ │ ├── functions.cpp
│ │ │ │ ├── oam.cpp
│ │ │ │ ├── opcodes.cpp
│ │ │ │ └── serialization.cpp
│ │ │ ├── dsp1
│ │ │ │ ├── dsp1.cpp
│ │ │ │ ├── dsp1.hpp
│ │ │ │ ├── dsp1emu.cpp
│ │ │ │ ├── dsp1emu.hpp
│ │ │ │ └── serialization.cpp
│ │ │ ├── dsp2
│ │ │ │ ├── dsp2.cpp
│ │ │ │ ├── dsp2.hpp
│ │ │ │ ├── opcodes.cpp
│ │ │ │ └── serialization.cpp
│ │ │ ├── dsp3
│ │ │ │ ├── dsp3.cpp
│ │ │ │ ├── dsp3.hpp
│ │ │ │ └── dsp3emu.c
│ │ │ ├── dsp4
│ │ │ │ ├── dsp4.cpp
│ │ │ │ ├── dsp4.hpp
│ │ │ │ ├── dsp4emu.c
│ │ │ │ └── dsp4emu.h
│ │ │ ├── obc1
│ │ │ │ ├── obc1.cpp
│ │ │ │ ├── obc1.hpp
│ │ │ │ └── serialization.cpp
│ │ │ ├── sa1
│ │ │ │ ├── bus
│ │ │ │ │ ├── bus.cpp
│ │ │ │ │ └── bus.hpp
│ │ │ │ ├── dma
│ │ │ │ │ ├── dma.cpp
│ │ │ │ │ └── dma.hpp
│ │ │ │ ├── memory
│ │ │ │ │ ├── memory.cpp
│ │ │ │ │ └── memory.hpp
│ │ │ │ ├── mmio
│ │ │ │ │ ├── mmio.cpp
│ │ │ │ │ └── mmio.hpp
│ │ │ │ ├── sa1.cpp
│ │ │ │ ├── sa1.hpp
│ │ │ │ └── serialization.cpp
│ │ │ ├── sdd1
│ │ │ │ ├── sdd1.cpp
│ │ │ │ ├── sdd1.hpp
│ │ │ │ ├── sdd1emu.cpp
│ │ │ │ ├── sdd1emu.hpp
│ │ │ │ └── serialization.cpp
│ │ │ ├── spc7110
│ │ │ │ ├── decomp.cpp
│ │ │ │ ├── decomp.hpp
│ │ │ │ ├── serialization.cpp
│ │ │ │ ├── spc7110.cpp
│ │ │ │ └── spc7110.hpp
│ │ │ ├── srtc
│ │ │ │ ├── serialization.cpp
│ │ │ │ ├── srtc.cpp
│ │ │ │ └── srtc.hpp
│ │ │ ├── st010
│ │ │ │ ├── serialization.cpp
│ │ │ │ ├── st010.cpp
│ │ │ │ ├── st010.hpp
│ │ │ │ ├── st010_data.hpp
│ │ │ │ └── st010_op.cpp
│ │ │ └── superfx
│ │ │ │ ├── bus
│ │ │ │ ├── bus.cpp
│ │ │ │ └── bus.hpp
│ │ │ │ ├── core
│ │ │ │ ├── core.cpp
│ │ │ │ ├── core.hpp
│ │ │ │ ├── opcode_table.cpp
│ │ │ │ ├── opcodes.cpp
│ │ │ │ └── registers.hpp
│ │ │ │ ├── disasm
│ │ │ │ ├── disasm.cpp
│ │ │ │ └── disasm.hpp
│ │ │ │ ├── memory
│ │ │ │ ├── memory.cpp
│ │ │ │ └── memory.hpp
│ │ │ │ ├── mmio
│ │ │ │ ├── mmio.cpp
│ │ │ │ └── mmio.hpp
│ │ │ │ ├── serialization.cpp
│ │ │ │ ├── superfx.cpp
│ │ │ │ ├── superfx.hpp
│ │ │ │ └── timing
│ │ │ │ ├── timing.cpp
│ │ │ │ └── timing.hpp
│ │ │ ├── cpu
│ │ │ ├── core
│ │ │ │ ├── algorithms.cpp
│ │ │ │ ├── core.cpp
│ │ │ │ ├── core.hpp
│ │ │ │ ├── disassembler
│ │ │ │ │ ├── disassembler.cpp
│ │ │ │ │ └── disassembler.hpp
│ │ │ │ ├── memory.hpp
│ │ │ │ ├── opcode_misc.cpp
│ │ │ │ ├── opcode_pc.cpp
│ │ │ │ ├── opcode_read.cpp
│ │ │ │ ├── opcode_rmw.cpp
│ │ │ │ ├── opcode_write.cpp
│ │ │ │ ├── registers.hpp
│ │ │ │ ├── serialization.cpp
│ │ │ │ └── table.cpp
│ │ │ ├── cpu.cpp
│ │ │ ├── cpu.hpp
│ │ │ └── scpu
│ │ │ │ ├── debugger
│ │ │ │ ├── debugger.cpp
│ │ │ │ └── debugger.hpp
│ │ │ │ ├── dma
│ │ │ │ ├── dma.cpp
│ │ │ │ └── dma.hpp
│ │ │ │ ├── memory
│ │ │ │ ├── memory.cpp
│ │ │ │ └── memory.hpp
│ │ │ │ ├── mmio
│ │ │ │ ├── mmio.cpp
│ │ │ │ └── mmio.hpp
│ │ │ │ ├── scpu.cpp
│ │ │ │ ├── scpu.hpp
│ │ │ │ ├── serialization.cpp
│ │ │ │ └── timing
│ │ │ │ ├── event.cpp
│ │ │ │ ├── irq.cpp
│ │ │ │ ├── joypad.cpp
│ │ │ │ ├── timing.cpp
│ │ │ │ └── timing.hpp
│ │ │ ├── data
│ │ │ ├── documentation.html
│ │ │ └── license.html
│ │ │ ├── interface.hpp
│ │ │ ├── lib
│ │ │ ├── libco
│ │ │ │ ├── amd64.c
│ │ │ │ ├── blargg_libco_ppc64-5
│ │ │ │ │ ├── benchmark.c
│ │ │ │ │ ├── benchmark_impl.c
│ │ │ │ │ ├── libco
│ │ │ │ │ │ ├── libco.c
│ │ │ │ │ │ ├── libco.h
│ │ │ │ │ │ └── ppc.c
│ │ │ │ │ ├── ppc.S
│ │ │ │ │ ├── ppc_regs.S
│ │ │ │ │ ├── ppc_regs.h
│ │ │ │ │ ├── readme.txt
│ │ │ │ │ ├── run_tests
│ │ │ │ │ ├── run_tests.txt
│ │ │ │ │ ├── test_libco.c
│ │ │ │ │ ├── test_regs.c
│ │ │ │ │ ├── test_threads.c
│ │ │ │ │ └── testing.h
│ │ │ │ ├── fiber.c
│ │ │ │ ├── libco.c
│ │ │ │ ├── libco.h
│ │ │ │ ├── ppc-elf.c
│ │ │ │ ├── ppc.c
│ │ │ │ ├── ppc.s
│ │ │ │ ├── ppc64.s
│ │ │ │ ├── sjlj.c
│ │ │ │ ├── ucontext.c
│ │ │ │ └── x86.c
│ │ │ └── nall
│ │ │ │ ├── algorithm.hpp
│ │ │ │ ├── any.hpp
│ │ │ │ ├── array.hpp
│ │ │ │ ├── bit.hpp
│ │ │ │ ├── crc32.hpp
│ │ │ │ ├── detect.hpp
│ │ │ │ ├── endian.hpp
│ │ │ │ ├── function.hpp
│ │ │ │ ├── moduloarray.hpp
│ │ │ │ ├── platform.hpp
│ │ │ │ ├── priorityqueue.hpp
│ │ │ │ ├── property.hpp
│ │ │ │ ├── serial.hpp
│ │ │ │ ├── serializer.hpp
│ │ │ │ ├── static.hpp
│ │ │ │ ├── stdint.hpp
│ │ │ │ ├── traits.hpp
│ │ │ │ ├── utility.hpp
│ │ │ │ ├── varint.hpp
│ │ │ │ └── vector.hpp
│ │ │ ├── memory
│ │ │ ├── memory-inline.hpp
│ │ │ ├── memory.cpp
│ │ │ ├── memory.hpp
│ │ │ └── smemory
│ │ │ │ ├── generic.cpp
│ │ │ │ ├── serialization.cpp
│ │ │ │ ├── smemory.cpp
│ │ │ │ ├── smemory.hpp
│ │ │ │ └── system.cpp
│ │ │ ├── ppu
│ │ │ ├── debugger
│ │ │ │ ├── debugger.cpp
│ │ │ │ ├── debugger.hpp
│ │ │ │ └── render.cpp
│ │ │ ├── memory
│ │ │ │ ├── memory.cpp
│ │ │ │ └── memory.hpp
│ │ │ ├── mmio
│ │ │ │ ├── mmio.cpp
│ │ │ │ └── mmio.hpp
│ │ │ ├── ppu-inline.hpp
│ │ │ ├── ppu.cpp
│ │ │ ├── ppu.hpp
│ │ │ ├── render
│ │ │ │ ├── addsub.cpp
│ │ │ │ ├── bg.cpp
│ │ │ │ ├── cache.cpp
│ │ │ │ ├── line.cpp
│ │ │ │ ├── mode7.cpp
│ │ │ │ ├── oam.cpp
│ │ │ │ ├── render.cpp
│ │ │ │ ├── render.hpp
│ │ │ │ └── windows.cpp
│ │ │ └── serialization.cpp
│ │ │ ├── sdsp
│ │ │ ├── brr.cpp
│ │ │ ├── counter.cpp
│ │ │ ├── echo.cpp
│ │ │ ├── envelope.cpp
│ │ │ ├── gaussian.cpp
│ │ │ ├── misc.cpp
│ │ │ ├── sdsp.cpp
│ │ │ ├── sdsp.hpp
│ │ │ ├── serialization.cpp
│ │ │ └── voice.cpp
│ │ │ ├── smp
│ │ │ ├── core
│ │ │ │ ├── algorithms.cpp
│ │ │ │ ├── core.cpp
│ │ │ │ ├── core.hpp
│ │ │ │ ├── disassembler
│ │ │ │ │ ├── disassembler.cpp
│ │ │ │ │ └── disassembler.hpp
│ │ │ │ ├── memory.hpp
│ │ │ │ ├── opcode_misc.cpp
│ │ │ │ ├── opcode_mov.cpp
│ │ │ │ ├── opcode_pc.cpp
│ │ │ │ ├── opcode_read.cpp
│ │ │ │ ├── opcode_rmw.cpp
│ │ │ │ ├── registers.hpp
│ │ │ │ ├── serialization.cpp
│ │ │ │ └── table.cpp
│ │ │ ├── smp.cpp
│ │ │ ├── smp.hpp
│ │ │ └── ssmp
│ │ │ │ ├── debugger
│ │ │ │ ├── debugger.cpp
│ │ │ │ └── debugger.hpp
│ │ │ │ ├── memory
│ │ │ │ ├── memory.cpp
│ │ │ │ └── memory.hpp
│ │ │ │ ├── serialization.cpp
│ │ │ │ ├── ssmp.cpp
│ │ │ │ ├── ssmp.hpp
│ │ │ │ └── timing
│ │ │ │ ├── timing.cpp
│ │ │ │ └── timing.hpp
│ │ │ └── system
│ │ │ ├── audio
│ │ │ ├── audio.cpp
│ │ │ └── audio.hpp
│ │ │ ├── config
│ │ │ ├── config.cpp
│ │ │ └── config.hpp
│ │ │ ├── debugger
│ │ │ ├── debugger.cpp
│ │ │ └── debugger.hpp
│ │ │ ├── input
│ │ │ ├── input.cpp
│ │ │ └── input.hpp
│ │ │ ├── interface
│ │ │ └── interface.hpp
│ │ │ ├── scheduler
│ │ │ ├── scheduler.cpp
│ │ │ └── scheduler.hpp
│ │ │ ├── serialization.cpp
│ │ │ ├── system.cpp
│ │ │ ├── system.hpp
│ │ │ └── video
│ │ │ ├── video.cpp
│ │ │ └── video.hpp
│ ├── snes_faust
│ │ ├── Makefile.am
│ │ ├── Makefile.in
│ │ ├── PPU_DESIGN
│ │ ├── apu.cpp
│ │ ├── apu.h
│ │ ├── cart.cpp
│ │ ├── cart.h
│ │ ├── cpu.cpp
│ │ ├── cpu.h
│ │ ├── cpu_loop_body.inc
│ │ ├── dma.inc
│ │ ├── dsp.inc
│ │ ├── input.cpp
│ │ ├── input.h
│ │ ├── ppu.cpp
│ │ ├── ppu.h
│ │ ├── snes.cpp
│ │ ├── snes.h
│ │ └── spc700.inc
│ ├── sound
│ │ ├── Blip_Buffer.cpp
│ │ ├── Blip_Buffer.h
│ │ ├── Fir_Resampler.cpp
│ │ ├── Fir_Resampler.h
│ │ ├── Makefile.am
│ │ ├── Makefile.in
│ │ ├── OwlResampler.cpp
│ │ ├── OwlResampler.h
│ │ ├── Stereo_Buffer.cpp
│ │ ├── Stereo_Buffer.h
│ │ ├── WAVRecord.cpp
│ │ ├── WAVRecord.h
│ │ ├── fir_blargg_common.h
│ │ ├── fir_blargg_config.h
│ │ ├── fir_blargg_endian.h
│ │ ├── fir_blargg_source.h
│ │ ├── okiadpcm-deltatable.h
│ │ ├── okiadpcm.cpp
│ │ ├── okiadpcm.h
│ │ └── okiadpcm_generate.cpp
│ ├── state-common.h
│ ├── state-driver.h
│ ├── state.cpp
│ ├── state.h
│ ├── state_rewind.cpp
│ ├── state_rewind.h
│ ├── string
│ │ ├── ConvertUTF.cpp
│ │ ├── ConvertUTF.h
│ │ ├── Makefile.am.inc
│ │ ├── escape.cpp
│ │ ├── escape.h
│ │ ├── trim.cpp
│ │ └── trim.h
│ ├── tests.cpp
│ ├── tests.h
│ ├── tremor
│ │ ├── !!!VERSION
│ │ ├── CHANGELOG
│ │ ├── COPYING
│ │ ├── Makefile.am
│ │ ├── Makefile.in
│ │ ├── README
│ │ ├── Version_script.in
│ │ ├── asm_arm.h
│ │ ├── backends.h
│ │ ├── bitwise.c
│ │ ├── block.c
│ │ ├── block.h
│ │ ├── codebook.c
│ │ ├── codebook.h
│ │ ├── codec_internal.h
│ │ ├── configure.in
│ │ ├── floor0.c
│ │ ├── floor1.c
│ │ ├── framing.c
│ │ ├── info.c
│ │ ├── iseeking_example.c
│ │ ├── ivorbiscodec.h
│ │ ├── ivorbisfile.h
│ │ ├── ivorbisfile_example.c
│ │ ├── lsp_lookup.h
│ │ ├── mapping0.c
│ │ ├── mdct.c
│ │ ├── mdct.h
│ │ ├── mdct_lookup.h
│ │ ├── misc.h
│ │ ├── ogg.h
│ │ ├── os.h
│ │ ├── os_types.h
│ │ ├── registry.c
│ │ ├── registry.h
│ │ ├── res012.c
│ │ ├── sharedbook.c
│ │ ├── synthesis.c
│ │ ├── vorbisfile.c
│ │ ├── vorbisidec.pc.in
│ │ ├── window.c
│ │ ├── window.h
│ │ └── window_lookup.h
│ ├── trio
│ │ ├── CHANGES
│ │ ├── Makefile.am
│ │ ├── Makefile.in
│ │ ├── trio.c
│ │ ├── trionan.c
│ │ └── triostr.c
│ ├── types.h
│ ├── vb
│ │ ├── Makefile.am
│ │ ├── Makefile.in
│ │ ├── debug.cpp
│ │ ├── debug.h
│ │ ├── input.cpp
│ │ ├── input.h
│ │ ├── timer.cpp
│ │ ├── timer.h
│ │ ├── vb.cpp
│ │ ├── vb.h
│ │ ├── vip.cpp
│ │ ├── vip.h
│ │ ├── vip_draw.h
│ │ ├── vsu.cpp
│ │ └── vsu.h
│ ├── video-driver.h
│ ├── video.h
│ ├── video
│ │ ├── Deinterlacer.cpp
│ │ ├── Deinterlacer.h
│ │ ├── Makefile.am.inc
│ │ ├── README.FONTS
│ │ ├── font-data-12x13.c
│ │ ├── font-data-18x18.c
│ │ ├── font-data.cpp
│ │ ├── font-data.h
│ │ ├── font12x13.h
│ │ ├── font18x18.h
│ │ ├── font4x5.h
│ │ ├── font5x7.h
│ │ ├── font6x13.h
│ │ ├── font9x18.h
│ │ ├── png.cpp
│ │ ├── png.h
│ │ ├── primitives.cpp
│ │ ├── primitives.h
│ │ ├── resize.cpp
│ │ ├── resize.h
│ │ ├── surface.cpp
│ │ ├── surface.h
│ │ ├── tblur.cpp
│ │ ├── tblur.h
│ │ ├── text.cpp
│ │ ├── text.h
│ │ ├── video-common.h
│ │ └── video.cpp
│ └── wswan
│ │ ├── Makefile.am
│ │ ├── Makefile.in
│ │ ├── comm.cpp
│ │ ├── comm.h
│ │ ├── debug.cpp
│ │ ├── debug.h
│ │ ├── dis
│ │ ├── dis_decode.cpp
│ │ ├── dis_groups.cpp
│ │ ├── dis_tables.h
│ │ ├── dis_tables.inc
│ │ ├── disasm.h
│ │ ├── opcodes.inc
│ │ ├── resolve.cpp
│ │ └── syntax.cpp
│ │ ├── eeprom.cpp
│ │ ├── eeprom.h
│ │ ├── gfx.cpp
│ │ ├── gfx.h
│ │ ├── interrupt.cpp
│ │ ├── interrupt.h
│ │ ├── main.cpp
│ │ ├── memory.cpp
│ │ ├── memory.h
│ │ ├── rtc.cpp
│ │ ├── rtc.h
│ │ ├── sound.cpp
│ │ ├── sound.h
│ │ ├── start.inc
│ │ ├── tcache.cpp
│ │ ├── v30mz-ea.inc
│ │ ├── v30mz-modrm.inc
│ │ ├── v30mz-private.h
│ │ ├── v30mz.cpp
│ │ ├── v30mz.h
│ │ ├── wstech24.txt
│ │ └── wswan.h
├── stubs.cpp
├── thread.cpp
├── thread.h
└── version.plist
├── PVSupport
├── DebugUtils.h
├── PVSupport.xcodeproj
│ ├── project.pbxproj
│ ├── xcshareddata
│ │ └── xcschemes
│ │ │ └── PVSupport.xcscheme
│ └── xcuserdata
│ │ └── tomkidd.xcuserdatad
│ │ └── xcschemes
│ │ └── xcschememanagement.plist
└── PVSupport
│ ├── Audio
│ ├── OEGameAudio.h
│ ├── OEGameAudio.m
│ ├── OERingBuffer.h
│ ├── OERingBuffer.m
│ ├── TPCircularBuffer.c
│ └── TPCircularBuffer.h
│ ├── Info.plist
│ ├── NSFileManager+OEHashingAdditions.h
│ ├── NSFileManager+OEHashingAdditions.m
│ ├── NSObject+PVAbstractAdditions.h
│ ├── NSObject+PVAbstractAdditions.m
│ ├── OEGeometry.h
│ ├── PVEmulatorCore.h
│ ├── PVEmulatorCore.m
│ ├── PVGameControllerUtilities.h
│ ├── PVGameControllerUtilities.m
│ ├── PVSupport-Prefix.pch
│ ├── PVSupport.h
│ ├── RealTimeThread.h
│ └── RealTimeThread.m
├── Podfile
├── Podfile.lock
├── README.md
├── VirtualBoyVR-iOS.xcodeproj
├── project.pbxproj
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ ├── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
│ └── xcuserdata
│ │ └── tomkidd.xcuserdatad
│ │ └── UserInterfaceState.xcuserstate
└── xcuserdata
│ └── tomkidd.xcuserdatad
│ └── xcschemes
│ ├── VirtualBoyVR-iOS.xcscheme
│ └── xcschememanagement.plist
├── VirtualBoyVR-iOS.xcworkspace
├── contents.xcworkspacedata
├── xcshareddata
│ └── IDEWorkspaceChecks.plist
└── xcuserdata
│ └── tomkidd.xcuserdatad
│ ├── UserInterfaceState.xcuserstate
│ └── xcdebugger
│ └── Breakpoints_v2.xcbkptlist
├── VirtualBoyVR-iOS
├── AppDelegate.swift
├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-1024.png
│ │ ├── Icon-120.png
│ │ ├── Icon-121.png
│ │ ├── Icon-152.png
│ │ ├── Icon-167.png
│ │ ├── Icon-180.png
│ │ ├── Icon-20.png
│ │ ├── Icon-29.png
│ │ ├── Icon-40.png
│ │ ├── Icon-41.png
│ │ ├── Icon-42.png
│ │ ├── Icon-58.png
│ │ ├── Icon-59.png
│ │ ├── Icon-60.png
│ │ ├── Icon-76.png
│ │ ├── Icon-80.png
│ │ ├── Icon-81.png
│ │ └── Icon-87.png
│ ├── Contents.json
│ ├── button-pressed.imageset
│ │ ├── Contents.json
│ │ └── button-pressed.pdf
│ ├── button-thin-pressed.imageset
│ │ ├── Contents.json
│ │ └── button-thin-pressed.pdf
│ ├── button-thin.imageset
│ │ ├── Contents.json
│ │ └── button-thin.pdf
│ ├── button.imageset
│ │ ├── Contents.json
│ │ └── button.pdf
│ ├── dPad-Down.imageset
│ │ ├── Contents.json
│ │ └── dPad-Down.pdf
│ ├── dPad-DownLeft.imageset
│ │ ├── Contents.json
│ │ └── dPad-DownLeft.pdf
│ ├── dPad-DownRight.imageset
│ │ ├── Contents.json
│ │ └── dPad-DownRight.pdf
│ ├── dPad-Left.imageset
│ │ ├── Contents.json
│ │ └── dPad-Left.pdf
│ ├── dPad-None.imageset
│ │ ├── Contents.json
│ │ └── dPad-None.pdf
│ ├── dPad-Right.imageset
│ │ ├── Contents.json
│ │ └── dPad-Right.pdf
│ ├── dPad-Up.imageset
│ │ ├── Contents.json
│ │ └── dPad-Up.pdf
│ ├── dPad-UpLeft.imageset
│ │ ├── Contents.json
│ │ └── dPad-UpLeft.pdf
│ ├── dPad-UpRight.imageset
│ │ ├── Contents.json
│ │ └── dPad-UpRight.pdf
│ ├── gear.imageset
│ │ ├── Contents.json
│ │ └── gear.pdf
│ ├── questionMark.imageset
│ │ ├── Contents.json
│ │ └── questionMark.pdf
│ └── vblogo.imageset
│ │ ├── Contents.json
│ │ └── vblogo.png
├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
├── EmulatorViewController.swift
├── HomeViewController.swift
├── Info.plist
├── Provenance
│ ├── Categories
│ │ ├── MBProgressHUD.h
│ │ ├── MBProgressHUD.m
│ │ ├── NSData+Hashing.h
│ │ ├── NSData+Hashing.m
│ │ ├── NSDate+NSDate_SignificantDates.h
│ │ ├── NSDate+NSDate_SignificantDates.m
│ │ ├── NSFileManager+Hashing.h
│ │ ├── NSFileManager+Hashing.m
│ │ ├── NSString+Hashing.h
│ │ ├── NSString+Hashing.m
│ │ ├── PVGame+Sizing.h
│ │ ├── PVGame+Sizing.m
│ │ ├── RLMRealmConfiguration+Config.h
│ │ ├── RLMRealmConfiguration+Config.m
│ │ ├── UIActionSheet+BlockAdditions.h
│ │ ├── UIActionSheet+BlockAdditions.m
│ │ ├── UIAlertView+BlockAdditions.h
│ │ ├── UIAlertView+BlockAdditions.m
│ │ ├── UIDevice+Hardware.h
│ │ ├── UIDevice+Hardware.m
│ │ ├── UIImage+Color.h
│ │ ├── UIImage+Color.m
│ │ ├── UIImage+ImageEffects.h
│ │ ├── UIImage+ImageEffects.m
│ │ ├── UIImage+Scaling.h
│ │ ├── UIImage+Scaling.m
│ │ ├── UIView+FrameAdditions.h
│ │ └── UIView+FrameAdditions.m
│ ├── Controller
│ │ ├── JSButton.h
│ │ ├── JSButton.m
│ │ ├── JSDPad.h
│ │ ├── JSDPad.m
│ │ ├── PV32XControllerViewController.h
│ │ ├── PV32XControllerViewController.m
│ │ ├── PVAtari5200ControllerViewController.h
│ │ ├── PVAtari5200ControllerViewController.m
│ │ ├── PVAtari7800ControllerViewController.h
│ │ ├── PVAtari7800ControllerViewController.m
│ │ ├── PVButtonGroupOverlayView.h
│ │ ├── PVButtonGroupOverlayView.m
│ │ ├── PVControllerManager.h
│ │ ├── PVControllerManager.m
│ │ ├── PVControllerSelectionViewController.h
│ │ ├── PVControllerSelectionViewController.m
│ │ ├── PVControllerViewController.h
│ │ ├── PVControllerViewController.m
│ │ ├── PVGBAControllerViewController.h
│ │ ├── PVGBAControllerViewController.m
│ │ ├── PVGBControllerViewController.h
│ │ ├── PVGBControllerViewController.m
│ │ ├── PVGenesisControllerViewController.h
│ │ ├── PVGenesisControllerViewController.m
│ │ ├── PVLynxControllerViewController.h
│ │ ├── PVLynxControllerViewController.m
│ │ ├── PVNESControllerViewController.h
│ │ ├── PVNESControllerViewController.m
│ │ ├── PVNeoGeoPocketControllerViewController.h
│ │ ├── PVNeoGeoPocketControllerViewController.m
│ │ ├── PVPCEControllerViewController.h
│ │ ├── PVPCEControllerViewController.m
│ │ ├── PVPSXControllerViewController.h
│ │ ├── PVPSXControllerViewController.m
│ │ ├── PVPokeMiniControllerViewController.h
│ │ ├── PVPokeMiniControllerViewController.m
│ │ ├── PVSNESControllerViewController.h
│ │ ├── PVSNESControllerViewController.m
│ │ ├── PVStellaControllerViewController.h
│ │ ├── PVStellaControllerViewController.m
│ │ ├── PVVBControllerViewController.h
│ │ ├── PVVBControllerViewController.m
│ │ ├── PVWonderSwanControllerViewController.h
│ │ ├── PVWonderSwanControllerViewController.m
│ │ └── iCade
│ │ │ ├── PViCade8BitdoController.h
│ │ │ ├── PViCade8BitdoController.m
│ │ │ ├── PViCadeController.h
│ │ │ ├── PViCadeController.m
│ │ │ ├── PViCadeControllerViewController.h
│ │ │ ├── PViCadeControllerViewController.m
│ │ │ ├── PViCadeGamepad.h
│ │ │ ├── PViCadeGamepad.m
│ │ │ ├── PViCadeGamepadButtonInput.h
│ │ │ ├── PViCadeGamepadButtonInput.m
│ │ │ ├── PViCadeGamepadDirectionPad.h
│ │ │ ├── PViCadeGamepadDirectionPad.m
│ │ │ ├── PViCadeInputAxis.h
│ │ │ ├── PViCadeInputAxis.m
│ │ │ ├── PViCadeReader.h
│ │ │ ├── PViCadeReader.m
│ │ │ ├── PViCadeSteelSeriesController.h
│ │ │ ├── PViCadeSteelSeriesController.m
│ │ │ ├── iCadeReaderView.h
│ │ │ ├── iCadeReaderView.m
│ │ │ ├── iCadeState.h
│ │ │ ├── kICadeControllerSetting.h
│ │ │ └── kICadeControllerSetting.m
│ ├── Emulator
│ │ ├── PVEmulatorConfiguration.h
│ │ ├── PVEmulatorConfiguration.m
│ │ ├── PVEmulatorConstants.h
│ │ ├── PVEmulatorConstants.m
│ │ ├── PVEmulatorViewController.h
│ │ ├── PVEmulatorViewController.m
│ │ ├── PVGCVRViewController.h
│ │ ├── PVGCVRViewController.m
│ │ ├── PVGLViewController.h
│ │ └── PVGLViewController.m
│ ├── Game Library
│ │ ├── OESQLiteDatabase.h
│ │ ├── OESQLiteDatabase.m
│ │ ├── PVConflictViewController.h
│ │ ├── PVConflictViewController.m
│ │ ├── PVDirectoryWatcher.h
│ │ ├── PVDirectoryWatcher.m
│ │ ├── PVGame.h
│ │ ├── PVGame.m
│ │ ├── PVGameImporter.h
│ │ ├── PVGameImporter.m
│ │ ├── PVGameLibraryCollectionViewCell.h
│ │ ├── PVGameLibraryCollectionViewCell.m
│ │ ├── PVGameLibrarySectionHeaderView.h
│ │ ├── PVGameLibrarySectionHeaderView.m
│ │ ├── PVGameLibraryViewController.h
│ │ ├── PVGameLibraryViewController.m
│ │ ├── PVMediaCache.h
│ │ ├── PVMediaCache.m
│ │ ├── PVRecentGame.h
│ │ ├── PVRecentGame.m
│ │ ├── PVSynchronousURLSession.h
│ │ └── PVSynchronousURLSession.m
│ ├── LzmaSDKObjC
│ │ ├── .gitignore
│ │ ├── .travis.yml
│ │ ├── CHANGELOG
│ │ ├── LICENSE
│ │ ├── LzmaSDK-ObjC.podspec
│ │ ├── LzmaSDKObjC.podspec
│ │ ├── NSArray+Inlineobjc.h
│ │ ├── NSString+Inlineobjc.h
│ │ ├── README.md
│ │ ├── lzma
│ │ │ ├── C
│ │ │ │ ├── 7z.h
│ │ │ │ ├── 7zAlloc.c
│ │ │ │ ├── 7zAlloc.h
│ │ │ │ ├── 7zArcIn.c
│ │ │ │ ├── 7zBuf.c
│ │ │ │ ├── 7zBuf.h
│ │ │ │ ├── 7zBuf2.c
│ │ │ │ ├── 7zCrc.c
│ │ │ │ ├── 7zCrc.h
│ │ │ │ ├── 7zCrcOpt.c
│ │ │ │ ├── 7zDec.c
│ │ │ │ ├── 7zFile.c
│ │ │ │ ├── 7zFile.h
│ │ │ │ ├── 7zStream.c
│ │ │ │ ├── 7zTypes.h
│ │ │ │ ├── 7zVersion.h
│ │ │ │ ├── Aes.c
│ │ │ │ ├── Aes.h
│ │ │ │ ├── AesOpt.c
│ │ │ │ ├── Alloc.c
│ │ │ │ ├── Alloc.h
│ │ │ │ ├── Bcj2.c
│ │ │ │ ├── Bcj2.h
│ │ │ │ ├── Bcj2Enc.c
│ │ │ │ ├── Bra.c
│ │ │ │ ├── Bra.h
│ │ │ │ ├── Bra86.c
│ │ │ │ ├── BraIA64.c
│ │ │ │ ├── Compiler.h
│ │ │ │ ├── CpuArch.c
│ │ │ │ ├── CpuArch.h
│ │ │ │ ├── Delta.c
│ │ │ │ ├── Delta.h
│ │ │ │ ├── LzFind.c
│ │ │ │ ├── LzFind.h
│ │ │ │ ├── LzFindMt.c
│ │ │ │ ├── LzFindMt.h
│ │ │ │ ├── LzHash.h
│ │ │ │ ├── Lzma2Dec.c
│ │ │ │ ├── Lzma2Dec.h
│ │ │ │ ├── Lzma2Enc.c
│ │ │ │ ├── Lzma2Enc.h
│ │ │ │ ├── Lzma86.h
│ │ │ │ ├── Lzma86Dec.c
│ │ │ │ ├── Lzma86Enc.c
│ │ │ │ ├── LzmaDec.c
│ │ │ │ ├── LzmaDec.h
│ │ │ │ ├── LzmaEnc.c
│ │ │ │ ├── LzmaEnc.h
│ │ │ │ ├── LzmaLib.c
│ │ │ │ ├── LzmaLib.h
│ │ │ │ ├── MtCoder.c
│ │ │ │ ├── MtCoder.h
│ │ │ │ ├── Ppmd.h
│ │ │ │ ├── Ppmd7.c
│ │ │ │ ├── Ppmd7.h
│ │ │ │ ├── Ppmd7Dec.c
│ │ │ │ ├── Ppmd7Enc.c
│ │ │ │ ├── Precomp.h
│ │ │ │ ├── RotateDefs.h
│ │ │ │ ├── Sha256.c
│ │ │ │ ├── Sha256.h
│ │ │ │ ├── Sort.c
│ │ │ │ ├── Sort.h
│ │ │ │ ├── Threads.c
│ │ │ │ ├── Threads.h
│ │ │ │ ├── Xz.c
│ │ │ │ ├── Xz.h
│ │ │ │ ├── XzCrc64.c
│ │ │ │ ├── XzCrc64.h
│ │ │ │ ├── XzCrc64Opt.c
│ │ │ │ ├── XzDec.c
│ │ │ │ ├── XzEnc.c
│ │ │ │ ├── XzEnc.h
│ │ │ │ └── XzIn.c
│ │ │ └── CPP
│ │ │ │ ├── 7zip
│ │ │ │ ├── Archive
│ │ │ │ │ ├── 7z
│ │ │ │ │ │ ├── 7zCompressionMode.cpp
│ │ │ │ │ │ ├── 7zCompressionMode.h
│ │ │ │ │ │ ├── 7zDecode.cpp
│ │ │ │ │ │ ├── 7zDecode.h
│ │ │ │ │ │ ├── 7zEncode.cpp
│ │ │ │ │ │ ├── 7zEncode.h
│ │ │ │ │ │ ├── 7zExtract.cpp
│ │ │ │ │ │ ├── 7zFolderInStream.cpp
│ │ │ │ │ │ ├── 7zFolderInStream.h
│ │ │ │ │ │ ├── 7zHandler.cpp
│ │ │ │ │ │ ├── 7zHandler.h
│ │ │ │ │ │ ├── 7zHandlerOut.cpp
│ │ │ │ │ │ ├── 7zHeader.cpp
│ │ │ │ │ │ ├── 7zHeader.h
│ │ │ │ │ │ ├── 7zIn.cpp
│ │ │ │ │ │ ├── 7zIn.h
│ │ │ │ │ │ ├── 7zItem.h
│ │ │ │ │ │ ├── 7zOut.cpp
│ │ │ │ │ │ ├── 7zOut.h
│ │ │ │ │ │ ├── 7zProperties.cpp
│ │ │ │ │ │ ├── 7zProperties.h
│ │ │ │ │ │ ├── 7zRegister.cpp
│ │ │ │ │ │ ├── 7zSpecStream.cpp
│ │ │ │ │ │ ├── 7zSpecStream.h
│ │ │ │ │ │ ├── 7zUpdate.cpp
│ │ │ │ │ │ ├── 7zUpdate.h
│ │ │ │ │ │ └── StdAfx.h
│ │ │ │ │ ├── ArchiveExports.cpp
│ │ │ │ │ ├── Common
│ │ │ │ │ │ ├── CoderMixer2.cpp
│ │ │ │ │ │ ├── CoderMixer2.h
│ │ │ │ │ │ ├── DummyOutStream.cpp
│ │ │ │ │ │ ├── DummyOutStream.h
│ │ │ │ │ │ ├── HandlerOut.cpp
│ │ │ │ │ │ ├── HandlerOut.h
│ │ │ │ │ │ ├── InStreamWithCRC.cpp
│ │ │ │ │ │ ├── InStreamWithCRC.h
│ │ │ │ │ │ ├── ItemNameUtils.cpp
│ │ │ │ │ │ ├── ItemNameUtils.h
│ │ │ │ │ │ ├── MultiStream.cpp
│ │ │ │ │ │ ├── MultiStream.h
│ │ │ │ │ │ ├── OutStreamWithCRC.cpp
│ │ │ │ │ │ ├── OutStreamWithCRC.h
│ │ │ │ │ │ ├── ParseProperties.cpp
│ │ │ │ │ │ ├── ParseProperties.h
│ │ │ │ │ │ └── StdAfx.h
│ │ │ │ │ ├── DllExports2.cpp
│ │ │ │ │ ├── DllExports2.h
│ │ │ │ │ ├── IArchive.h
│ │ │ │ │ ├── LzmaHandler.cpp
│ │ │ │ │ ├── SplitHandler.cpp
│ │ │ │ │ └── StdAfx.h
│ │ │ │ ├── Common
│ │ │ │ │ ├── CWrappers.cpp
│ │ │ │ │ ├── CWrappers.h
│ │ │ │ │ ├── CreateCoder.cpp
│ │ │ │ │ ├── CreateCoder.h
│ │ │ │ │ ├── FilePathAutoRename.cpp
│ │ │ │ │ ├── FilePathAutoRename.h
│ │ │ │ │ ├── FileStreams.cpp
│ │ │ │ │ ├── FileStreams.h
│ │ │ │ │ ├── FilterCoder.cpp
│ │ │ │ │ ├── FilterCoder.h
│ │ │ │ │ ├── InBuffer.cpp
│ │ │ │ │ ├── InBuffer.h
│ │ │ │ │ ├── InOutTempBuffer.cpp
│ │ │ │ │ ├── InOutTempBuffer.h
│ │ │ │ │ ├── LimitedStreams.cpp
│ │ │ │ │ ├── LimitedStreams.h
│ │ │ │ │ ├── LockedStream.cpp
│ │ │ │ │ ├── LockedStream.h
│ │ │ │ │ ├── MethodId.cpp
│ │ │ │ │ ├── MethodId.h
│ │ │ │ │ ├── MethodProps.cpp
│ │ │ │ │ ├── MethodProps.h
│ │ │ │ │ ├── OffsetStream.cpp
│ │ │ │ │ ├── OffsetStream.h
│ │ │ │ │ ├── OutBuffer.cpp
│ │ │ │ │ ├── OutBuffer.h
│ │ │ │ │ ├── ProgressUtils.cpp
│ │ │ │ │ ├── ProgressUtils.h
│ │ │ │ │ ├── PropId.cpp
│ │ │ │ │ ├── RegisterArc.h
│ │ │ │ │ ├── RegisterCodec.h
│ │ │ │ │ ├── StdAfx.h
│ │ │ │ │ ├── StreamBinder.cpp
│ │ │ │ │ ├── StreamBinder.h
│ │ │ │ │ ├── StreamObjects.cpp
│ │ │ │ │ ├── StreamObjects.h
│ │ │ │ │ ├── StreamUtils.cpp
│ │ │ │ │ ├── StreamUtils.h
│ │ │ │ │ ├── UniqBlocks.cpp
│ │ │ │ │ ├── UniqBlocks.h
│ │ │ │ │ ├── VirtThread.cpp
│ │ │ │ │ └── VirtThread.h
│ │ │ │ ├── Compress
│ │ │ │ │ ├── Bcj2Coder.cpp
│ │ │ │ │ ├── Bcj2Coder.h
│ │ │ │ │ ├── Bcj2Register.cpp
│ │ │ │ │ ├── BcjCoder.cpp
│ │ │ │ │ ├── BcjCoder.h
│ │ │ │ │ ├── BcjRegister.cpp
│ │ │ │ │ ├── BranchMisc.cpp
│ │ │ │ │ ├── BranchMisc.h
│ │ │ │ │ ├── BranchRegister.cpp
│ │ │ │ │ ├── ByteSwap.cpp
│ │ │ │ │ ├── CodecExports.cpp
│ │ │ │ │ ├── CopyCoder.cpp
│ │ │ │ │ ├── CopyCoder.h
│ │ │ │ │ ├── CopyRegister.cpp
│ │ │ │ │ ├── DeltaFilter.cpp
│ │ │ │ │ ├── Lzma2Decoder.cpp
│ │ │ │ │ ├── Lzma2Decoder.h
│ │ │ │ │ ├── Lzma2Encoder.cpp
│ │ │ │ │ ├── Lzma2Encoder.h
│ │ │ │ │ ├── Lzma2Register.cpp
│ │ │ │ │ ├── LzmaDecoder.cpp
│ │ │ │ │ ├── LzmaDecoder.h
│ │ │ │ │ ├── LzmaEncoder.cpp
│ │ │ │ │ ├── LzmaEncoder.h
│ │ │ │ │ ├── LzmaRegister.cpp
│ │ │ │ │ ├── PpmdDecoder.cpp
│ │ │ │ │ ├── PpmdDecoder.h
│ │ │ │ │ ├── PpmdEncoder.cpp
│ │ │ │ │ ├── PpmdEncoder.h
│ │ │ │ │ ├── PpmdRegister.cpp
│ │ │ │ │ └── StdAfx.h
│ │ │ │ ├── Crypto
│ │ │ │ │ ├── 7zAes.cpp
│ │ │ │ │ ├── 7zAes.h
│ │ │ │ │ ├── 7zAesRegister.cpp
│ │ │ │ │ ├── MyAes.cpp
│ │ │ │ │ ├── MyAes.h
│ │ │ │ │ ├── MyAesReg.cpp
│ │ │ │ │ ├── RandGen.cpp
│ │ │ │ │ ├── RandGen.h
│ │ │ │ │ └── StdAfx.h
│ │ │ │ ├── ICoder.h
│ │ │ │ ├── IDecl.h
│ │ │ │ ├── IPassword.h
│ │ │ │ ├── IProgress.h
│ │ │ │ ├── IStream.h
│ │ │ │ ├── MyVersion.h
│ │ │ │ └── PropID.h
│ │ │ │ ├── Common
│ │ │ │ ├── AutoPtr.h
│ │ │ │ ├── CRC.cpp
│ │ │ │ ├── C_FileIO.cpp
│ │ │ │ ├── C_FileIO.h
│ │ │ │ ├── ComTry.h
│ │ │ │ ├── CommandLineParser.cpp
│ │ │ │ ├── CommandLineParser.h
│ │ │ │ ├── Common.h
│ │ │ │ ├── CrcReg.cpp
│ │ │ │ ├── Defs.h
│ │ │ │ ├── DynamicBuffer.h
│ │ │ │ ├── IntToString.cpp
│ │ │ │ ├── IntToString.h
│ │ │ │ ├── ListFileUtils.cpp
│ │ │ │ ├── ListFileUtils.h
│ │ │ │ ├── MyBuffer.h
│ │ │ │ ├── MyCom.h
│ │ │ │ ├── MyException.h
│ │ │ │ ├── MyGuidDef.h
│ │ │ │ ├── MyInitGuid.h
│ │ │ │ ├── MyLinux.h
│ │ │ │ ├── MyString.cpp
│ │ │ │ ├── MyString.h
│ │ │ │ ├── MyTypes.h
│ │ │ │ ├── MyUnknown.h
│ │ │ │ ├── MyVector.cpp
│ │ │ │ ├── MyVector.h
│ │ │ │ ├── MyWindows.cpp
│ │ │ │ ├── MyWindows.h
│ │ │ │ ├── NewHandler.cpp
│ │ │ │ ├── NewHandler.h
│ │ │ │ ├── Sha256Reg.cpp
│ │ │ │ ├── StdAfx.h
│ │ │ │ ├── StdInStream.cpp
│ │ │ │ ├── StdInStream.h
│ │ │ │ ├── StdOutStream.cpp
│ │ │ │ ├── StdOutStream.h
│ │ │ │ ├── StringConvert.cpp
│ │ │ │ ├── StringConvert.h
│ │ │ │ ├── StringToInt.cpp
│ │ │ │ ├── StringToInt.h
│ │ │ │ ├── TextConfig.cpp
│ │ │ │ ├── TextConfig.h
│ │ │ │ ├── UTFConvert.cpp
│ │ │ │ ├── UTFConvert.h
│ │ │ │ ├── Wildcard.cpp
│ │ │ │ ├── Wildcard.h
│ │ │ │ └── XzCrc64Reg.cpp
│ │ │ │ └── Windows
│ │ │ │ ├── Defs.h
│ │ │ │ ├── FileIO.cpp
│ │ │ │ ├── PropVariant.cpp
│ │ │ │ ├── PropVariant.h
│ │ │ │ ├── PropVariantConv.cpp
│ │ │ │ ├── PropVariantConv.h
│ │ │ │ ├── StdAfx.h
│ │ │ │ ├── Synchronization.h
│ │ │ │ └── Thread.h
│ │ └── src
│ │ │ ├── LzmaAppleCommon.h
│ │ │ ├── LzmaSDKObjC.h
│ │ │ ├── LzmaSDKObjC.mm
│ │ │ ├── LzmaSDKObjCBaseCoder.cpp
│ │ │ ├── LzmaSDKObjCBaseCoder.h
│ │ │ ├── LzmaSDKObjCBufferProcessor.h
│ │ │ ├── LzmaSDKObjCBufferProcessor.mm
│ │ │ ├── LzmaSDKObjCCommon.cpp
│ │ │ ├── LzmaSDKObjCCommon.h
│ │ │ ├── LzmaSDKObjCError.h
│ │ │ ├── LzmaSDKObjCError.mm
│ │ │ ├── LzmaSDKObjCExtern.h
│ │ │ ├── LzmaSDKObjCExtern.mm
│ │ │ ├── LzmaSDKObjCExtractCallback.h
│ │ │ ├── LzmaSDKObjCExtractCallback.mm
│ │ │ ├── LzmaSDKObjCFileDecoder.cpp
│ │ │ ├── LzmaSDKObjCFileDecoder.h
│ │ │ ├── LzmaSDKObjCFileEncoder.cpp
│ │ │ ├── LzmaSDKObjCFileEncoder.h
│ │ │ ├── LzmaSDKObjCInFile.cpp
│ │ │ ├── LzmaSDKObjCInFile.h
│ │ │ ├── LzmaSDKObjCItem+Private.h
│ │ │ ├── LzmaSDKObjCItem.h
│ │ │ ├── LzmaSDKObjCItem.mm
│ │ │ ├── LzmaSDKObjCMutableItem+Private.h
│ │ │ ├── LzmaSDKObjCMutableItem.h
│ │ │ ├── LzmaSDKObjCMutableItem.mm
│ │ │ ├── LzmaSDKObjCOpenCallback.cpp
│ │ │ ├── LzmaSDKObjCOpenCallback.h
│ │ │ ├── LzmaSDKObjCOutFile.cpp
│ │ │ ├── LzmaSDKObjCOutFile.h
│ │ │ ├── LzmaSDKObjCReader.h
│ │ │ ├── LzmaSDKObjCReader.mm
│ │ │ ├── LzmaSDKObjCTypes.h
│ │ │ ├── LzmaSDKObjCUpdateCallback.h
│ │ │ ├── LzmaSDKObjCUpdateCallback.mm
│ │ │ ├── LzmaSDKObjCWriter.h
│ │ │ └── LzmaSDKObjCWriter.mm
│ ├── PVAppConstants.h
│ ├── PVAppConstants.m
│ ├── PVAvailability.h
│ ├── Provenance-Prefix.pch
│ ├── Resources
│ │ ├── shader_crt_fragment.glsl
│ │ ├── shader_crt_vertex.glsl
│ │ └── systems.plist
│ ├── SSZipArchive
│ │ ├── SSZipArchive.h
│ │ ├── SSZipArchive.m
│ │ └── minizip
│ │ │ ├── crypt.h
│ │ │ ├── ioapi.c
│ │ │ ├── ioapi.h
│ │ │ ├── mztools.c
│ │ │ ├── mztools.h
│ │ │ ├── unzip.c
│ │ │ ├── unzip.h
│ │ │ ├── zip.c
│ │ │ └── zip.h
│ └── Settings
│ │ ├── PVAppearanceViewController.h
│ │ ├── PVAppearanceViewController.m
│ │ ├── PVLicensesViewController.h
│ │ ├── PVLicensesViewController.m
│ │ ├── PVSettingsModel.h
│ │ ├── PVSettingsModel.m
│ │ ├── PVSettingsViewController.h
│ │ └── PVSettingsViewController.m
├── Resources
│ └── virtual_logo.ttf
├── SettingsViewController.swift
├── Utilities.swift
├── ViewController.swift
└── bridging.h
├── folders.png
└── vbwl.jpg
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: schnapple
7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
13 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | Pods/
--------------------------------------------------------------------------------
/Mednafen/English.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/Mednafen/English.lproj/InfoPlist.strings
--------------------------------------------------------------------------------
/Mednafen/Mednafen.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/Mednafen/Mednafen.icns
--------------------------------------------------------------------------------
/Mednafen/PVMednafen.xcodeproj/TemplateIcon.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/Mednafen/PVMednafen.xcodeproj/TemplateIcon.icns
--------------------------------------------------------------------------------
/Mednafen/PVMednafen.xcodeproj/xcuserdata/tomkidd.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | PVMednafen.xcscheme_^#shared#^_
8 |
9 | orderHint
10 | 4
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/Mednafen/PVMednafen/PVMednafen.h:
--------------------------------------------------------------------------------
1 | //
2 | // PVMednafen.h
3 | // PVMednafen
4 | //
5 | // Created by Mattiello, Joseph R on 12/19/16.
6 | //
7 | //
8 |
9 | #import
10 |
11 | //! Project version number for PVMednafen.
12 | FOUNDATION_EXPORT double PVMednafenVersionNumber;
13 |
14 | //! Project version string for PVMednafen.
15 | FOUNDATION_EXPORT const unsigned char PVMednafenVersionString[];
16 |
17 | // In this header, you should import all the public headers of your framework using statements like #import
18 | #import
19 |
20 |
--------------------------------------------------------------------------------
/Mednafen/include/trio/CHANGES:
--------------------------------------------------------------------------------
1 | ../../src/trio/CHANGES
--------------------------------------------------------------------------------
/Mednafen/libsndfile/libsndfile_FLAC.a:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/Mednafen/libsndfile/libsndfile_FLAC.a
--------------------------------------------------------------------------------
/Mednafen/libsndfile/libvorbis.a:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/Mednafen/libsndfile/libvorbis.a
--------------------------------------------------------------------------------
/Mednafen/libsndfile/libvorbisenc.a:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/Mednafen/libsndfile/libvorbisenc.a
--------------------------------------------------------------------------------
/Mednafen/mednafen/IPSPatcher.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_IPSPATCHER_H
2 | #define __MDFN_IPSPATCHER_H
3 |
4 | #include
5 |
6 | struct IPSPatcher
7 | {
8 | // Returns the number of patches encountered(!= bytes patched, usually).
9 | static uint32 Apply(Stream* ips, Stream* targ);
10 | };
11 |
12 |
13 | #endif
14 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/SNSFLoader.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_SNSFLOADER_H
2 | #define __MDFN_SNSFLOADER_H
3 |
4 | #include
5 | #include
6 |
7 | class SNSFLoader : public PSFLoader
8 | {
9 | public:
10 |
11 | SNSFLoader(Stream *fp);
12 | virtual ~SNSFLoader();
13 |
14 | static bool TestMagic(Stream* fp);
15 |
16 | virtual void HandleEXE(Stream* fp, bool ignore_pcsp = false) override;
17 | virtual void HandleReserved(Stream* fp, uint32 len) override;
18 |
19 | PSFTags tags;
20 |
21 | MemoryStream ROM_Data;
22 | };
23 |
24 |
25 | #endif
26 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/cdplay/Makefile.am:
--------------------------------------------------------------------------------
1 | AUTOMAKE_OPTIONS = subdir-objects
2 | DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@
3 | DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
4 |
5 | noinst_LIBRARIES = libcdplay.a
6 |
7 | libcdplay_a_SOURCES = cdplay.cpp
8 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/cdrom/CDAFReader_MPC.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_CDAFREADER_MPC_H
2 | #define __MDFN_CDAFREADER_MPC_H
3 |
4 | CDAFReader* CDAFR_MPC_Open(Stream* fp);
5 |
6 | #endif
7 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/cdrom/CDAFReader_SF.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_CDAFREADER_SF_H
2 | #define __MDFN_CDAFREADER_SF_H
3 |
4 | CDAFReader* CDAFR_SF_Open(Stream* fp);
5 |
6 | #endif
7 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/cdrom/CDAFReader_Vorbis.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_CDAFREADER_VORBIS_H
2 | #define __MDFN_CDAFREADER_VORBIS_H
3 |
4 | CDAFReader* CDAFR_Vorbis_Open(Stream* fp);
5 |
6 | #endif
7 |
8 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/cdrom/Makefile.am.inc:
--------------------------------------------------------------------------------
1 | mednafen_SOURCES += cdrom/cdromif.cpp cdrom/scsicd.cpp
2 | mednafen_SOURCES += cdrom/CDUtility.cpp cdrom/crc32.cpp cdrom/galois.cpp cdrom/l-ec.cpp cdrom/recover-raw.cpp
3 | mednafen_SOURCES += cdrom/lec.cpp cdrom/CDAccess.cpp cdrom/CDAccess_Image.cpp cdrom/CDAccess_CCD.cpp
4 |
5 | mednafen_SOURCES += cdrom/CDAFReader.cpp
6 | mednafen_SOURCES += cdrom/CDAFReader_Vorbis.cpp
7 | mednafen_SOURCES += cdrom/CDAFReader_MPC.cpp
8 |
9 | if HAVE_LIBSNDFILE
10 | mednafen_SOURCES += cdrom/CDAFReader_SF.cpp
11 | endif
12 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/compress/Makefile.am.inc:
--------------------------------------------------------------------------------
1 | mednafen_SOURCES += compress/minilzo.c compress/ioapi.c compress/unzip.c compress/GZFileStream.cpp compress/ZLInflateFilter.cpp
2 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/cputest/Makefile.am.inc:
--------------------------------------------------------------------------------
1 | mednafen_SOURCES += cputest/cputest.c
2 |
3 | if ARCH_X86
4 | mednafen_SOURCES += cputest/x86_cpu.c
5 | endif
6 |
7 | if ARCH_POWERPC
8 | mednafen_SOURCES += cputest/ppc_cpu.c
9 | endif
10 |
11 | #if ARCH_ARM
12 | #mednafen_SOURCES += cputest/arm_cpu.c
13 | #endif
14 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/cputest/README:
--------------------------------------------------------------------------------
1 | modified slightly for usage in Mednafen
2 |
3 | ARM stuff not compiled in, for now.
4 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/demo/Makefile.am:
--------------------------------------------------------------------------------
1 | AUTOMAKE_OPTIONS = subdir-objects
2 | DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@
3 | DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
4 |
5 | noinst_LIBRARIES = libdemo.a
6 |
7 | libdemo_a_SOURCES = demo.cpp
8 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/desa68/Makefile.am:
--------------------------------------------------------------------------------
1 | #lib_LTLIBRARIES = libdesa68.la
2 | #libdesa68_la_SOURCES = desa68.c desa68.h
3 | #libdesa68_la_LDFLAGS = -version-info 2:0:0 -release @VERSION@
4 | #libdesa68_la_CFLAGS = -Wno-multichar $(AM_CFLAGS)
5 | ##EXTRA_DIST = desa68.vcproj
6 |
7 | AUTOMAKE_OPTIONS = subdir-objects
8 | AM_CFLAGS = @AM_CFLAGS@ -Wno-multichar
9 | DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@
10 | DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
11 |
12 | noinst_LIBRARIES = libdesa68.a
13 | libdesa68_a_SOURCES = desa68.c
14 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/dis6502.h:
--------------------------------------------------------------------------------
1 | class Dis6502
2 | {
3 | public:
4 | Dis6502(bool);
5 | virtual ~Dis6502();
6 |
7 | virtual uint8 Read(uint16 A);
8 | virtual uint8 GetX(void);
9 | virtual uint8 GetY(void);
10 |
11 | void Disassemble(uint16 &a, uint16 SpecialA, char *);
12 |
13 | private:
14 | bool IsCMOS;
15 | };
16 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/driver.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_DRIVER_H
2 | #define __MDFN_DRIVER_H
3 |
4 | #include "mednafen.h"
5 | #include "settings-driver.h"
6 | #include "mednafen-driver.h"
7 | #include "netplay-driver.h"
8 | #include "state-driver.h"
9 | #include "movie-driver.h"
10 | #include "mempatcher-driver.h"
11 | #include "video-driver.h"
12 |
13 | #endif
14 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers/Joystick_DX5.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_DRIVERS_JOYSTICK_DX5_H
2 | #define __MDFN_DRIVERS_JOYSTICK_DX5_H
3 |
4 | JoystickDriver *JoystickDriver_DX5_New(bool exclude_xinput);
5 |
6 | #endif
7 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers/Joystick_Linux.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_DRIVERS_JOYSTICK_LINUX_H
2 | #define __MDFN_DRIVERS_JOYSTICK_LINUX_H
3 | JoystickDriver *JoystickDriver_Linux_New(void);
4 | #endif
5 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers/Joystick_SDL.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_DRIVERS_JOYSTICK_SDL_H
2 | #define __MDFN_DRIVERS_JOYSTICK_SDL_H
3 | JoystickDriver *JoystickDriver_SDL_New(void);
4 | #endif
5 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers/Joystick_XInput.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_DRIVERS_JOYSTICK_XINPUT_H
2 | #define __MDFN_DRIVERS_JOYSTICK_XINPUT_H
3 | // Returns NULL if XInput is not available, or if no attached XInput controllers were found.
4 | JoystickDriver *JoystickDriver_XInput_New(void);
5 | #endif
6 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers/NetClient_POSIX.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_DRIVERS_NETCLIENT_POSIX_H
2 | #define __MDFN_DRIVERS_NETCLIENT_POSIX_H
3 |
4 | #include "NetClient.h"
5 |
6 | class NetClient_POSIX : public NetClient
7 | {
8 | public:
9 |
10 | NetClient_POSIX(); //const char *host);
11 | virtual ~NetClient_POSIX();
12 |
13 | virtual void Connect(const char *host, unsigned int port);
14 |
15 | virtual void Disconnect(void);
16 |
17 | virtual bool IsConnected(void);
18 |
19 | virtual bool CanSend(int32 timeout = 0);
20 | virtual bool CanReceive(int32 timeout = 0);
21 |
22 | virtual uint32 Send(const void *data, uint32 len);
23 |
24 | virtual uint32 Receive(void *data, uint32 len);
25 |
26 | private:
27 |
28 | int fd;
29 | };
30 |
31 | #endif
32 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers/NetClient_WS2.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_DRIVERS_NETCLIENT_WS2_H
2 | #define __MDFN_DRIVERS_NETCLIENT_WS2_H
3 |
4 | #include "NetClient.h"
5 |
6 | class NetClient_WS2 : public NetClient
7 | {
8 | public:
9 |
10 | NetClient_WS2();
11 | virtual ~NetClient_WS2();
12 |
13 | virtual void Connect(const char *host, unsigned int port);
14 |
15 | virtual void Disconnect(void);
16 |
17 | virtual bool IsConnected(void);
18 |
19 | virtual bool CanSend(int32 timeout = 0);
20 | virtual bool CanReceive(int32 timeout = 0);
21 |
22 | virtual uint32 Send(const void *data, uint32 len);
23 |
24 | virtual uint32 Receive(void *data, uint32 len);
25 |
26 | private:
27 |
28 | void *sd;
29 | };
30 |
31 | #endif
32 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers/README.WIN32:
--------------------------------------------------------------------------------
1 | Remember to use: __attribute__((force_align_arg_pointer));
2 | on callback functions from the SDL and Win32 APIs!
3 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers/args.h:
--------------------------------------------------------------------------------
1 | #ifndef _DRIVERS_ARGH
2 |
3 | enum
4 | {
5 | SUBSTYPE_INTEGER = 0,
6 | SUBSTYPE_STRING = 1,
7 | SUBSTYPE_DOUBLE = 2,
8 |
9 | SUBSTYPE_FUNCTION = 0x2000,
10 |
11 | SUBSTYPE_STRING_ALLOC = 0x4001,
12 | };
13 |
14 | typedef struct {
15 | const char *name;
16 | const char *description;
17 | int *var;
18 |
19 | void *subs;
20 | int substype;
21 | } ARGPSTRUCT;
22 |
23 | int ParseArguments(int argc, char *argv[], ARGPSTRUCT *argsps, char **);
24 | int ShowArgumentsHelp(ARGPSTRUCT *argsps, bool show_linked = true);
25 |
26 | #define _DRIVERS_ARGH
27 | #endif
28 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers/cheat.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_DRIVERS_CHEAT_H
2 | #define __MDFN_DRIVERS_CHEAT_H
3 |
4 | void CheatIF_GT_Show(bool show);
5 | bool CheatIF_Active(void);
6 | void CheatIF_MT_Draw(MDFN_Surface *surface, const MDFN_Rect *src_rect);
7 | int CheatIF_MT_EventHook(const SDL_Event *event);
8 |
9 | #endif
10 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers/ers.h:
--------------------------------------------------------------------------------
1 | class EmuRealSyncher
2 | {
3 | public:
4 | EmuRealSyncher();
5 | ~EmuRealSyncher()
6 | {
7 |
8 | }
9 |
10 | void SetEmuClock(int64 EmuClock_arg);
11 |
12 | bool NeedFrameSkip(void);
13 | void Sync();
14 | void AddEmuTime(const int64 zetime, bool frame_end = true);
15 |
16 | void SetETtoRT(void);
17 |
18 | private:
19 | int64 EmuClock;
20 |
21 | int64 EmuTime;
22 |
23 | int64 ForcedCatchupTH;
24 | int64 FrameSkipTH;
25 | int64 NoFrameSkipTH;
26 |
27 | int64 LastNoFrameSkipTime;
28 |
29 | int64 AvgTimePerFrame; // 56.8
30 |
31 | int64 tmp_frame_accumtime;
32 | };
33 |
34 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers/fps.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_DRIVERS_FPS_H
2 | #define __MDFN_DRIVERS_FPS_H
3 |
4 | void FPS_Init(void); // GT
5 | void FPS_IncVirtual(void); // GT
6 | void FPS_IncDrawn(void); // GT
7 | void FPS_IncBlitted(void); // GT
8 | void FPS_UpdateCalc(void); // GT
9 |
10 | void FPS_Draw(MDFN_Surface *target, const int xpos, const int ypos); // MT
11 | void FPS_DrawToScreen(SDL_Surface *screen, int rs, int gs, int bs, int as, unsigned offsx, unsigned offsy); // MT
12 |
13 | bool FPS_IsActive(int *w, int *h);
14 | void FPS_ToggleView(void); // GT
15 |
16 | #endif
17 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers/gfxdebugger.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_DRIVERS_GFXDEBUGGER_H
2 | #define __MDFN_DRIVERS_GFXDEBUGGER_H
3 |
4 | void GfxDebugger_Draw(MDFN_Surface *surface, const MDFN_Rect *rect, const MDFN_Rect *screen_rect);
5 | int GfxDebugger_Event(const SDL_Event *event);
6 | void GfxDebugger_SetActive(bool newia);
7 |
8 | #endif
9 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers/help.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_DRIVERS_HELP_H
2 | #define __MDFN_DRIVERS_HELP_H
3 |
4 | void Help_Draw(MDFN_Surface *surface, const MDFN_Rect *rect);
5 | bool Help_IsActive(void);
6 | bool Help_Toggle(void);
7 | void Help_Init(void);
8 | void Help_Close(void);
9 |
10 | #endif
11 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers/hqxx-common.cpp:
--------------------------------------------------------------------------------
1 | #include "main.h"
2 |
3 | #include "hqxx-common.h"
4 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers/logdebugger.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_DRIVERS_LOGDEBUGGER_H
2 | #define __MDFN_DRIVERS_LOGDEBUGGER_H
3 |
4 | void LogDebugger_Draw(MDFN_Surface *surface, const MDFN_Rect *rect, const MDFN_Rect *screen_rect);
5 | int LogDebugger_Event(const SDL_Event *event);
6 | void LogDebugger_SetActive(bool newia);
7 |
8 | #endif
9 |
10 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers/netplay.h:
--------------------------------------------------------------------------------
1 | int MDFND_NetworkConnect(void);
2 | void DrawNetplayTextBuffer(MDFN_Surface *surface, const MDFN_Rect *src_rect);
3 | void NetplayText_InMainThread(uint8 *text, bool NetEcho);
4 |
5 | int NetplayEventHook(const SDL_Event *event);
6 | int NetplayEventHook_GT(const SDL_Event *event);
7 |
8 | void Netplay_ToggleTextView(void);
9 | int Netplay_GetTextView(void);
10 | bool Netplay_IsTextInput(void);
11 | bool Netplay_TryTextExit(void);
12 |
13 | extern int MDFNDnetplay;
14 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers/nnx.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_DRIVERS_NNX_H
2 | #define __MDFN_DRIVERS_NNX_H
3 |
4 | void nnx(int factor, MDFN_Surface *src, MDFN_Rect *src_rect, MDFN_Surface *dest, MDFN_Rect *dest_rect);
5 | void nnyx(int factor, MDFN_Surface *src, MDFN_Rect *src_rect, MDFN_Surface *dest, MDFN_Rect *dest_rect);
6 |
7 | #endif
8 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers/nongl.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_DRIVERS_NONGL_H
2 | #define __MDFN_DRIVERS_NONGL_H
3 |
4 | // This function DOES NOT handle format conversions; IE the src_surface and dest_surface should be in the same color formats.
5 | // Also, clipping is...sketchy. Just don't pass negative coordinates in the rects, and it should be ok.
6 | void MDFN_StretchBlitSurface(MDFN_Surface *src_surface, const MDFN_Rect *src_rect, MDFN_Surface *dest_surface, const MDFN_Rect *dest_rect, bool source_alpha = false, int scanlines = 0, const MDFN_Rect *original_src_rect = NULL, int rotated = MDFN_ROTATE0, int InterlaceField = -1);
7 |
8 | #endif
9 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers/overlay.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_DRIVERS_OVERLAY_H
2 | #define __MDFN_DRIVERS_OVERLAY_H
3 |
4 | void OV_Blit(MDFN_Surface *src_surface, const MDFN_Rect *src_rect, const MDFN_Rect *original_src_rect,
5 | const SDL_Rect *dest_rect, SDL_Surface *dest_surface, int softscale, int scanlines, int rotated);
6 |
7 | void OV_Kill(void);
8 |
9 | #endif
10 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers/remote.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_DRIVERS_REMOTE_H
2 | #define __MDFN_DRIVERS_REMOTE_H
3 |
4 | // Call all of these from the game(emulation) thread(or main thread if we haven't split off yet).
5 |
6 | void CheckForSTDIOMessages(void);
7 | bool InitSTDIOInterface(const char *key);
8 | void Remote_SendStatusMessage(const char *message);
9 | void Remote_SendErrorMessage(const char *message);
10 |
11 | #endif
12 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers/rmdui.h:
--------------------------------------------------------------------------------
1 |
2 | void RMDUI_Init(MDFNGI* gi);
3 | void RMDUI_Kill(void);
4 | void RMDUI_Toggle_InsertEject(void);
5 | void RMDUI_Select(void);
6 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers/sound.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_DRIVERS_SOUND_H
2 | #define __MDFN_DRIVERS_SOUND_H
3 |
4 | bool Sound_NeedReInit(void);
5 |
6 | bool Sound_Init(MDFNGI *gi);
7 | void Sound_Write(int16 *Buffer, int Count);
8 | void Sound_WriteSilence(int ms);
9 | bool Sound_Kill(void);
10 |
11 | uint32 Sound_CanWrite(void);
12 |
13 | int16 *Sound_GetEmuModBuffer(int32 *max_size);
14 |
15 | double Sound_GetRate(void);
16 |
17 | #endif
18 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers/video-state.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_DRIVERS_VIDEO_STATE_H
2 | #define __MDFN_DRIVERS_VIDEO_STATE_H
3 |
4 | void DrawSaveStates(SDL_Surface *screen, double, double, int, int, int, int);
5 | bool SaveStatesActive(void);
6 |
7 | void MT_SetStateStatus(StateStatusStruct *status);
8 | void MT_SetMovieStatus(StateStatusStruct *status);
9 |
10 | #endif
11 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers/win-manifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | true/pm
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers/win-resource.rc:
--------------------------------------------------------------------------------
1 | #include "winuser.h"
2 |
3 | CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "win-manifest.xml"
4 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers_dos/Joystick.cpp:
--------------------------------------------------------------------------------
1 | ../drivers/Joystick.cpp
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers_dos/Joystick.h:
--------------------------------------------------------------------------------
1 | ../drivers/Joystick.h
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers_dos/Joystick_DOS_Standard.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_DRIVERS_JOYSTICK_DOS_STANDARD_H
2 | #define __MDFN_DRIVERS_JOYSTICK_DOS_STANDARD_H
3 |
4 |
5 | #endif
6 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers_dos/Makefile.am:
--------------------------------------------------------------------------------
1 | AUTOMAKE_OPTIONS = subdir-objects
2 | DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@ @SDL_CFLAGS@
3 | DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
4 |
5 | noinst_LIBRARIES = libmdfndos.a
6 |
7 | libmdfndos_a_SOURCES = main.cpp sound.cpp ers.cpp args.cpp
8 | # input.cpp input-config.cpp
9 | #libmdfndos_a_SOURCES += fps.cpp video-state.cpp
10 |
11 | libmdfndos_a_SOURCES += video.cpp
12 |
13 | libmdfndos_a_SOURCES += nongl.cpp nnx.cpp
14 |
15 | libmdfndos_a_SOURCES += Joystick.cpp
16 | #Joystick_DOS_Standard.cpp
17 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers_dos/Sound.h:
--------------------------------------------------------------------------------
1 | ../drivers/sound.h
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers_dos/Video_VGA.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_DRIVERS_VIDEO_VGA_H
2 | #define __MDFN_DRIVERS_VIDEO_VGA_H
3 |
4 | #include
5 |
6 | class VideoDriver_VGA : public VideoDriver
7 | {
8 | public:
9 |
10 | VideoDriver_VGA();
11 | ~VideoDriver_VGA();
12 |
13 | void SetMode(ModeParams* mode);
14 | void BlitSurface(const MDFN_Surface *src_surface, const MDFN_Rect *src_rect, const MDFN_Rect *dest_rect, bool source_alpha = false, unsigned ip = 0, int scanlines = 0, const MDFN_Rect *original_src_rect = NULL, int rotated = MDFN_ROTATE0);
15 | void Flip(void);
16 |
17 | private:
18 |
19 | void SaveRestoreState(bool restore);
20 |
21 | std::vector saved_state;
22 | };
23 |
24 | #endif
25 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers_dos/args.cpp:
--------------------------------------------------------------------------------
1 | ../drivers/args.cpp
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers_dos/args.h:
--------------------------------------------------------------------------------
1 | ../drivers/args.h
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers_dos/ers.cpp:
--------------------------------------------------------------------------------
1 | ../drivers/ers.cpp
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers_dos/ers.h:
--------------------------------------------------------------------------------
1 | ../drivers/ers.h
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers_dos/input-config.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_DRIVERS_INPUT_CONFIG_H
2 | #define __MDFN_DRIVERS_INPUT_CONFIG_H
3 |
4 | int DTestButton(std::vector &bc, const char *KeyState, const uint32* MouseData, bool analog = false);
5 | int DTestButton(ButtConfig &bc, const char *KeyState, const uint32 *MouseData, bool analog = false);
6 |
7 | int DTestButtonCombo(std::vector &bc, const char *KeyState, const uint32 *MouseData, bool AND_Mode = false);
8 | int DTestButtonCombo(ButtConfig &bc, const char *KeyState, const uint32 *MouseData, bool AND_Mode = false);
9 |
10 | int DTryButtonBegin(ButtConfig *bc, int commandkey);
11 | int DTryButton(void);
12 | int DTryButtonEnd(ButtConfig *bc);
13 |
14 | #endif
15 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers_dos/main.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_DRIVERS_DOS_MAIN_H
2 | #define __MDFN_DRIVERS_DOS_MAIN_H
3 |
4 | #include "../driver.h"
5 | #include "../mednafen.h"
6 | #include "../settings.h"
7 | #include "config.h"
8 | #include "args.h"
9 |
10 | #include
11 | #include
12 | #include
13 | #include
14 | #include
15 |
16 | #include "../gettext.h"
17 |
18 | #ifndef _
19 | #define _(String) gettext(String)
20 | #endif
21 |
22 | extern MDFNGI *CurGame;
23 | int CloseGame(void);
24 |
25 | void RefreshThrottleFPS(double);
26 | void MainRequestExit(void);
27 |
28 | extern bool pending_save_state, pending_snapshot, pending_save_movie;
29 |
30 | #endif
31 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers_dos/nnx.cpp:
--------------------------------------------------------------------------------
1 | ../drivers/nnx.cpp
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers_dos/nnx.h:
--------------------------------------------------------------------------------
1 | ../drivers/nnx.h
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers_dos/nongl.cpp:
--------------------------------------------------------------------------------
1 | ../drivers/nongl.cpp
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers_dos/nongl.h:
--------------------------------------------------------------------------------
1 | ../drivers/nongl.h
--------------------------------------------------------------------------------
/Mednafen/mednafen/drivers_dos/sound.cpp:
--------------------------------------------------------------------------------
1 | ../drivers/sound.cpp
--------------------------------------------------------------------------------
/Mednafen/mednafen/gb/Makefile.am:
--------------------------------------------------------------------------------
1 | AUTOMAKE_OPTIONS = subdir-objects
2 | DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@
3 | DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
4 |
5 | noinst_LIBRARIES = libgb.a
6 | gb_SOURCES = gb.cpp gfx.cpp gbGlobals.cpp memory.cpp sound.cpp z80.cpp
7 |
8 | libgb_a_SOURCES = $(gb_SOURCES)
9 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/gb/sound.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_GB_SOUND_H
2 | #define __MDFN_GB_SOUND_H
3 |
4 | namespace MDFN_IEN_GB
5 | {
6 |
7 | uint32 SOUND_Read(int ts, uint32_t addr);
8 | void SOUND_Write(int ts, uint32 addr, uint8 val);
9 |
10 | int32 SOUND_Flush(int ts, int16 *SoundBuf, const int32 MaxSoundFrames);
11 | void SOUND_Init(void) MDFN_COLD;
12 | void SOUND_Kill(void) MDFN_COLD;
13 | void SOUND_Reset(void) MDFN_COLD;
14 | void SOUND_StateAction(StateMem *sm, int load, int data_only);
15 |
16 | bool MDFNGB_SetSoundRate(uint32 rate);
17 |
18 | }
19 |
20 | #endif
21 |
22 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/gb/z80.h:
--------------------------------------------------------------------------------
1 | #ifndef __GB_Z80_H
2 | #define __GB_Z80_H
3 |
4 | namespace MDFN_IEN_GB
5 | {
6 |
7 | int GBZ80_RunOp(void);
8 | void GBZ80_Reset(void);
9 | void GBZ80_Interrupt(int which);
10 | void GBZ80_StateAction(StateMem *sm, int load, int data_only);
11 |
12 | }
13 | #endif
14 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/gba/Makefile.am:
--------------------------------------------------------------------------------
1 | AUTOMAKE_OPTIONS = subdir-objects
2 | DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@
3 | DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
4 |
5 | noinst_LIBRARIES = libgba.a
6 | libgba_a_SOURCES = GBAinline.cpp arm.cpp thumb.cpp bios.cpp eeprom.cpp flash.cpp GBA.cpp Gfx.cpp Globals.cpp Mode0.cpp Mode1.cpp Mode2.cpp Mode3.cpp Mode4.cpp Mode5.cpp RTC.cpp Sound.cpp sram.cpp
7 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/gba/arm.h:
--------------------------------------------------------------------------------
1 | namespace MDFN_IEN_GBA
2 | {
3 |
4 | unsigned int RunARM(void);
5 |
6 | }
7 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/gba/thumb.h:
--------------------------------------------------------------------------------
1 | namespace MDFN_IEN_GBA
2 | {
3 |
4 | unsigned int RunTHUMB(void);
5 |
6 | }
7 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/hash/Makefile.am.inc:
--------------------------------------------------------------------------------
1 | mednafen_SOURCES += hash/md5.cpp hash/sha1.cpp hash/sha256.cpp
2 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/hw_cpu/c68k/c68k_ini.inc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/Mednafen/mednafen/hw_cpu/c68k/c68k_ini.inc
--------------------------------------------------------------------------------
/Mednafen/mednafen/hw_cpu/huc6280/dis6280.h:
--------------------------------------------------------------------------------
1 | class Dis6280
2 | {
3 | public:
4 | Dis6280(void);
5 | ~Dis6280();
6 |
7 | virtual uint8 Read(uint16 A);
8 | virtual uint8 GetX(void);
9 | virtual uint8 GetY(void);
10 |
11 | void Disassemble(uint16 &a, uint16 SpecialA, char *);
12 |
13 | private:
14 | };
15 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/hw_cpu/v810/v810_cpuD.h:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////////////////////
2 | // Defines for the V810 CPU debug
3 |
4 | #ifndef V810_CPU_D_H_
5 | #define V810_CPU_D_H_
6 |
7 | #include
8 | #include
9 | #include "v810_opt.h"
10 |
11 | // Dissasemble num lines of code starting at tPC (If tPC == -1 start at PC)
12 | void v810_dis(uint32 &PC, int num, char *, uint16 (*rhword)(uint32), bool vbmode = false);
13 |
14 | #endif
15 |
16 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/hw_misc/Makefile.am:
--------------------------------------------------------------------------------
1 | AUTOMAKE_OPTIONS = subdir-objects
2 | DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@
3 | DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
4 |
5 | noinst_LIBRARIES = libmdfnhwmisc.a
6 |
7 | libmdfnhwmisc_a_SOURCES =
8 |
9 | if NEED_ARCADE_CARD_EMU
10 | libmdfnhwmisc_a_SOURCES += arcade_card/arcade_card.cpp
11 | endif
12 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/hw_video/Makefile.am:
--------------------------------------------------------------------------------
1 | AUTOMAKE_OPTIONS = subdir-objects
2 | DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@
3 | DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
4 |
5 | noinst_LIBRARIES = libmdfnhwvideo.a
6 |
7 | libmdfnhwvideo_a_SOURCES =
8 |
9 | if NEED_HUC6270_EMU
10 | libmdfnhwvideo_a_SOURCES += huc6270/vdc.cpp
11 | endif
12 |
13 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/lynx/Makefile.am:
--------------------------------------------------------------------------------
1 | AUTOMAKE_OPTIONS = subdir-objects
2 | DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@
3 | DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
4 |
5 | noinst_LIBRARIES = liblynx.a
6 | liblynx_a_SOURCES = cart.cpp c65c02.cpp memmap.cpp mikie.cpp ram.cpp rom.cpp susie.cpp system.cpp
7 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/md/cart/map_eeprom.h:
--------------------------------------------------------------------------------
1 | #ifndef __MD_MAP_EEPROM_H
2 | #define __MD_MAP_EEPROM_H
3 |
4 | enum
5 | {
6 | EEP_NONE = 0,
7 | EEP_ACCLAIM_24C02_OLD = 1,
8 | EEP_ACCLAIM_24C02,
9 | EEP_ACCLAIM_24C04,
10 | EEP_ACCLAIM_24C16,
11 | EEP_ACCLAIM_24C65,
12 |
13 | EEP_EA_24C01,
14 |
15 | EEP_SEGA_24C01,
16 |
17 | EEP_CM_24C08,
18 | EEP_CM_24C16,
19 | EEP_CM_24C65,
20 | EEP_TOTAL
21 | };
22 |
23 | MD_Cart_Type *MD_Make_Cart_Type_EEPROM(const md_game_info *ginfo, const uint8 *ROM, const uint32 ROM_size, const uint32 iparam, const char *sparam);
24 |
25 | #endif
26 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/md/cart/map_ff.h:
--------------------------------------------------------------------------------
1 | MD_Cart_Type *MD_Make_Cart_Type_FF(const md_game_info *ginfo, const uint8 *ROM, const uint32 ROM_size, const uint32 iparam, const char *sparam);
2 |
3 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/md/cart/map_realtec.h:
--------------------------------------------------------------------------------
1 | #ifndef __MD_MAP_REALTEC_H
2 | #define __MD_MAP_REALTEC_H
3 |
4 | MD_Cart_Type *MD_Make_Cart_Type_REALTEC(const md_game_info *ginfo, const uint8 *ROM, const uint32 ROM_size, const uint32 iparam, const char *sparam);
5 |
6 | #endif
7 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/md/cart/map_rmx3.h:
--------------------------------------------------------------------------------
1 | MD_Cart_Type *MD_Make_Cart_Type_RMX3(const md_game_info *ginfo, const uint8 *ROM, const uint32 ROM_size, const uint32 iparam, const char *sparam);
2 |
3 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/md/cart/map_rom.h:
--------------------------------------------------------------------------------
1 | #ifndef __MD_MAP_ROM_H
2 | #define __MD_MAP_ROM_H
3 |
4 | MD_Cart_Type *MD_Make_Cart_Type_ROM(const md_game_info *ginfo, const uint8 *ROM, const uint32 ROM_size, const uint32 iparam, const char *sparam);
5 |
6 | #endif
7 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/md/cart/map_sbb.h:
--------------------------------------------------------------------------------
1 | MD_Cart_Type *MD_Make_Cart_Type_SBB(const md_game_info *ginfo, const uint8 *ROM, const uint32 ROM_size, const uint32 iparam, const char *sparam);
2 |
3 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/md/cart/map_sram.h:
--------------------------------------------------------------------------------
1 | #ifndef __MD_MAP_SRAM_H
2 | #define __MD_MAP_SRAM_H
3 |
4 | MD_Cart_Type *MD_Make_Cart_Type_SRAM(const md_game_info *ginfo, const uint8 *ROM, const uint32 ROM_size, const uint32 iparam, const char *sparam);
5 |
6 | #endif
7 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/md/cart/map_ssf2.h:
--------------------------------------------------------------------------------
1 | #ifndef __MD_MAP_SSF2_H
2 | #define __MD_MAP_SSF2_H
3 |
4 | MD_Cart_Type *MD_Make_Cart_Type_SSF2(const md_game_info *ginfo, const uint8 *ROM, const uint32 ROM_size, const uint32 iparam, const char *sparam);
5 |
6 | #endif
7 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/md/cart/map_svp.h:
--------------------------------------------------------------------------------
1 | #ifndef __MD_MAP_SVP_H
2 | #define __MD_MAP_SVP_H
3 |
4 | MD_Cart_Type *MD_Make_Cart_Type_SVP(const md_game_info *ginfo, const uint8 *ROM, const uint32 ROM_size, const uint32 iparam, const char *sparam);
5 |
6 | #endif
7 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/md/cart/map_yase.h:
--------------------------------------------------------------------------------
1 | MD_Cart_Type *MD_Make_Cart_Type_YaSe(const md_game_info *ginfo, const uint8 *ROM, const uint32 ROM_size, const uint32 iparam, const char *sparam);
2 |
3 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/md/cd/cd.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_MD_CD_H
2 | #define __MDFN_MD_CD_H
3 |
4 | extern c68k_struc Sub68K;
5 |
6 | void MDCD_Run(int32 md_master_cycles);
7 | void MDCD_PCM_Run(int32 cycles);
8 | void MDCD_Reset(bool poweron);
9 | void MDCD_Load(std::vector *CDInterfaces, md_game_info *);
10 | bool MDCD_TestMagic(std::vector *CDInterfaces);
11 | void MDCD_Close(void);
12 |
13 | #endif
14 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/md/cd/cdc_cdd.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_MDCD_CDCCDD_H
2 | #define __MDFN_MDCD_CDCCDD_H
3 |
4 | void MDCD_CDC_MainWrite8(uint32 A, uint8 V);
5 | void MDCD_CDC_MainWrite16(uint32 A, uint16 V);
6 | uint8 MDCD_CDC_MainRead8(uint32 A);
7 | uint16 MDCD_CDC_MainRead16(uint32 A);
8 |
9 | void MDCD_CDC_SubWrite8(uint32 A, uint8 V);
10 | void MDCD_CDC_SubWrite16(uint32 A, uint16 V);
11 | uint8 MDCD_CDC_SubRead8(uint32 A);
12 | uint16 MDCD_CDC_SubRead16(uint32 A);
13 |
14 |
15 | void MDCD_CDD_Write8(uint32 A, uint8 V);
16 | void MDCD_CDD_Write16(uint32 A, uint16 V);
17 | uint8 MDCD_CDD_Read8(uint32 A);
18 | uint16 MDCD_CDD_Read16(uint32 A);
19 |
20 | #endif
21 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/md/cd/interrupt.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_MDCD_INTERRUPT_H
2 | #define __MDFN_MDCD_INTERRUPT_H
3 |
4 | bool MDCD_InterruptGetMask(int level);
5 | bool MDCD_InterruptGetAsserted(int level);
6 | int MDCD_InterruptAck(int level);
7 | void MDCD_InterruptAssert(int level, bool status);
8 | void MDCD_InterruptReset(void);
9 |
10 | uint8 MDCD_InterruptRead(void);
11 | void MDCD_InterruptWrite(uint8 V);
12 |
13 | #endif
14 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/md/cd/pcm.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_MD_PCM_H
2 | #define __MDFN_MD_PCM_H
3 |
4 | void MDCD_PCM_Write(uint32 A, uint8 V);
5 | void MDCD_PCM_Reset(void);
6 |
7 | #endif
8 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/md/cd/timer.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_MDCD_TIMER_H
2 | #define __MDFN_MDCD_TIMER_H
3 |
4 | void MDCD_Timer_Reset(void);
5 | void MDCD_Timer_Run(int32 clocks);
6 | void MDCD_Timer_Write(uint8 V);
7 | uint8 MDCD_Timer_Read(void);
8 |
9 | #endif
10 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/md/debug.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_MD_DEBUG_H
2 | #define __MDFN_MD_DEBUG_H
3 |
4 | #ifdef WANT_DEBUGGER
5 | namespace MDFN_IEN_MD
6 | {
7 |
8 |
9 | extern DebuggerInfoStruct DBGInfo;
10 | bool MDDBG_Init(void);
11 | void MDDBG_CPUHook(void);
12 |
13 | extern bool MD_DebugMode;
14 |
15 |
16 | };
17 |
18 | #endif
19 |
20 | #endif
21 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/md/input/gamepad.h:
--------------------------------------------------------------------------------
1 | extern const IDIISG Gamepad2IDII;
2 | extern const IDIISG GamepadIDII;
3 | extern const IDIISG Gamepad6IDII;
4 | MD_Input_Device *MDInput_MakeMS2B(void);
5 | MD_Input_Device *MDInput_MakeMD3B(void);
6 | MD_Input_Device *MDInput_MakeMD6B(void);
7 |
8 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/md/input/megamouse.h:
--------------------------------------------------------------------------------
1 | extern const IDIISG MegaMouseIDII;
2 | MD_Input_Device *MDInput_MakeMegaMouse(void);
3 |
4 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/md/mem68k.h:
--------------------------------------------------------------------------------
1 | #ifndef _MEM68K_H_
2 | #define _MEM68K_H_
3 |
4 | namespace MDFN_IEN_MD
5 | {
6 |
7 | /* Function prototypes */
8 | unsigned int m68k_read_bus_8(unsigned int address);
9 | unsigned int m68k_read_bus_16(unsigned int address);
10 |
11 | void m68k_lockup_w_8(unsigned int address, unsigned int value);
12 | void m68k_lockup_w_16(unsigned int address, unsigned int value);
13 | unsigned int m68k_lockup_r_8(unsigned int address);
14 | unsigned int m68k_lockup_r_16(unsigned int address);
15 |
16 |
17 | uint8 MD_ReadMemory8(uint32 address);
18 | uint16 MD_ReadMemory16(uint32 address);
19 | void MD_WriteMemory8(uint32 address, uint8 value);
20 | void MD_WriteMemory16(uint32 address, uint16 value);
21 |
22 | }
23 |
24 | #endif /* _MEM68K_H_ */
25 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/md/membnk.h:
--------------------------------------------------------------------------------
1 |
2 | #ifndef _MEMBNK_H_
3 | #define _MEMBNK_H_
4 |
5 | namespace MDFN_IEN_MD
6 | {
7 |
8 | /* Function prototypes */
9 | void z80_write_banked_memory(unsigned int address, unsigned int data);
10 | int z80_read_banked_memory(unsigned int address);
11 |
12 | void z80bank_vdp_w(int address, int data);
13 | int z80bank_vdp_r(int address);
14 |
15 | void z80bank_unused_w(int address, int data);
16 | int z80bank_unused_r(int address);
17 | void z80bank_lockup_w(int address, int data);
18 | int z80bank_lockup_r(int address);
19 |
20 | }
21 |
22 | #endif /* _MEMBNK_H_ */
23 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/md/memvdp.h:
--------------------------------------------------------------------------------
1 |
2 | #ifndef _MEMVDP_H_
3 | #define _MEMVDP_H_
4 |
5 | namespace MDFN_IEN_MD
6 | {
7 |
8 |
9 | /* Function prototypes */
10 | unsigned int vdp_dma_r(unsigned int address);
11 |
12 | }
13 |
14 | #endif /* _MEMVDP_H_ */
15 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/md/memz80.h:
--------------------------------------------------------------------------------
1 |
2 | #ifndef _MEMZ80_H_
3 | #define _MEMZ80_H_
4 |
5 | namespace MDFN_IEN_MD
6 | {
7 |
8 | /* Function prototypes */
9 | uint8 MD_Z80_ReadByte(uint16 address);
10 | void MD_Z80_WriteByte(uint16 address, uint8 data);
11 | uint8 MD_Z80_ReadPort(uint16 address);
12 | void MD_Z80_WritePort(uint16 address, uint8 data);
13 |
14 | void z80_unused_w(int address, int data);
15 | int z80_unused_r(int address);
16 | void z80_lockup_w(int address, int data);
17 | int z80_lockup_r(int address);
18 | int z80_vdp_r(int address);
19 | void z80_vdp_w(int address, int data);
20 |
21 | }
22 |
23 | #endif /* _MEMZ80_H_ */
24 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/md/shared.h:
--------------------------------------------------------------------------------
1 | #ifndef _SHARED_H_
2 | #define _SHARED_H_
3 |
4 | #include
5 |
6 | #include
7 | #include
8 | #include
9 |
10 | #include
11 | #include
12 |
13 | enum
14 | {
15 | CLOCK_NTSC = 53693175,
16 | CLOCK_PAL = 53203424 // Is this correct?
17 | };
18 |
19 | #include "macros.h"
20 | #include "header.h"
21 | #include "debug.h"
22 | #include "genesis.h"
23 | #include "mem68k.h"
24 | #include "memz80.h"
25 | #include "membnk.h"
26 | #include "memvdp.h"
27 | #include "system.h"
28 | #include "genio.h"
29 | #include "sound.h"
30 | #include "vdp.h"
31 |
32 | using namespace MDFN_IEN_MD;
33 |
34 | #endif /* _SHARED_H_ */
35 |
36 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/md/sound.h:
--------------------------------------------------------------------------------
1 |
2 | #ifndef _SOUND_H_
3 | #define _SOUND_H_
4 |
5 | namespace MDFN_IEN_MD
6 | {
7 |
8 | /* Function prototypes */
9 | void fm_write(int address, int data);
10 | void psg_write(int data);
11 |
12 | void MDSound_SetYM2612Reset(bool new_reset);
13 | int MDSound_ReadFM(int address);
14 | void MDSound_SetSoundMultiplier(double multiplier);
15 | bool MDSound_SetSoundRate(uint32 rate);
16 | int32 MDSound_Flush(int16 *SoundBuf, const int32 MaxSoundFrames);
17 | void MDSound_Init(void);
18 | void MDSound_Kill(void);
19 | void MDSound_Power(void);
20 |
21 | void MDSound_StateAction(StateMem *sm, const unsigned load, const bool data_only);
22 |
23 | };
24 |
25 | #endif /* _SOUND_H_ */
26 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/movie-driver.h:
--------------------------------------------------------------------------------
1 |
2 | void MDFNI_SelectMovie(int);
3 |
4 | void MDFNI_SaveMovie(char *fname, const MDFN_Surface *surface, const MDFN_Rect *DisplayRect, const int32 *LineWidths);
5 | void MDFNI_LoadMovie(char *fname);
6 |
7 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/movie.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_MOVIE_H
2 | #define __MDFN_MOVIE_H
3 |
4 | class MemoryStream;
5 |
6 | #include "movie-driver.h"
7 | #include "state.h"
8 |
9 | void MDFNMOV_ProcessInput(uint8 *PortData[], uint32 PortLen[], int NumPorts) noexcept;
10 | void MDFNMOV_Stop(void) noexcept;
11 | void MDFNMOV_AddCommand(uint8 cmd, uint32 data_len = 0, uint8* data = NULL) noexcept;
12 | bool MDFNMOV_IsPlaying(void) noexcept;
13 | bool MDFNMOV_IsRecording(void) noexcept;
14 | void MDFNMOV_RecordState(void) noexcept;
15 |
16 | // For state rewinding only.
17 | void MDFNMOV_StateAction(StateMem* sm, const unsigned load);
18 |
19 | void MDFNI_SelectMovie(int);
20 | void MDFNMOV_CheckMovies(void);
21 | #endif
22 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/mpcdec/!VERSION:
--------------------------------------------------------------------------------
1 | http://svn.musepack.net/libmpc/trunk/
2 |
3 | libmpcdec from r484
4 |
5 | perl -p -i -e "s/include ]*)>/include \"\1\"/" *.c *.h
6 |
7 | Added
8 |
9 | #ifdef HAVE_CONFIG_H
10 | #include
11 | #endif
12 |
13 | to:
14 |
15 | mpc_types.h
16 |
17 |
18 |
19 | Renamed "log2" LUT in mpc_bits_reader.c to "log2_tab"
20 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/mpcdec/AUTHORS:
--------------------------------------------------------------------------------
1 | libmpcdec is the result of the work of many people:
2 |
3 | * Andree Buschmann and Frank Klemm
4 | Original implementation and core development.
5 |
6 | * Peter Pawlowski and Benoit Amiaux
7 | Portability and further optimizations.
8 |
9 | * Miles Egan
10 | Port to pure C, documentation, and api refinements.
11 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/mpcdec/Makefile.am:
--------------------------------------------------------------------------------
1 | DEFS = @DEFS@ @CFLAG_VISIBILITY@ -DMPC_FIXED_POINT=1
2 |
3 | noinst_LIBRARIES = libmpcdec.a
4 |
5 | libmpcdec_a_SOURCES = huffman.c mpc_decoder.c mpc_reader.c \
6 | requant.c streaminfo.c synth_filter.c mpc_bits_reader.c mpc_demux.c \
7 | crc32.c
8 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/mpcdec/README:
--------------------------------------------------------------------------------
1 | Musepack Decoder Library:
2 |
3 | run "./configure [--prefix=/usr]; make"
4 |
5 | To create a sample app using the musepack decoder library
6 | Check ../mpcdec/mpcdec.c and ../include/mpc/mpcdec.h for more details.
7 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/nes/Makefile.am:
--------------------------------------------------------------------------------
1 | AUTOMAKE_OPTIONS = subdir-objects
2 | DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@
3 | DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
4 |
5 | noinst_LIBRARIES = libnes.a
6 | libnes_a_SOURCES = nes.cpp x6502.cpp cart.cpp fds.cpp ines.cpp input.cpp nsf.cpp nsfe.cpp unif.cpp vsuni.cpp sound.cpp filter.cpp fds-sound.cpp
7 |
8 | if WANT_DEBUGGER
9 | libnes_a_SOURCES += debug.cpp
10 | endif
11 |
12 | include ppu/Makefile.am.inc
13 | include boards/Makefile.am.inc
14 | include input/Makefile.am.inc
15 |
16 | libnes_a_SOURCES += ntsc/nes_ntsc.cpp
17 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/nes/boards/mapinc.h:
--------------------------------------------------------------------------------
1 | #include "../nes.h"
2 | #include "../x6502.h"
3 | #include "../ppu/ppu.h"
4 | #include "../sound.h"
5 | #include "../cart.h"
6 | #include "../unif.h"
7 | #include
8 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/nes/fds-sound.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_NES_FDSSOUND_H
2 | #define __MDFN_NES_FDSSOUND_H
3 |
4 | namespace MDFN_IEN_NES
5 | {
6 | bool FDSSound_Init(void);
7 | void FDSSound_Power(void);
8 | void FDSSound_StateAction(StateMem *sm, const unsigned load, const bool data_only);
9 | }
10 |
11 | #endif
12 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/nes/fds.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_NES_FDS_H
2 | #define __MDFN_NES_FDS_H
3 |
4 | namespace MDFN_IEN_NES
5 | {
6 | void FDSSoundReset(void);
7 | bool FDS_SetMedia(uint32 drive_idx, uint32 state_idx, uint32 media_idx, uint32 orientation_idx);
8 | }
9 |
10 | #endif
11 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/nes/input/Makefile.am.inc:
--------------------------------------------------------------------------------
1 | libnes_a_SOURCES += input/cursor.cpp input/zapper.cpp input/powerpad.cpp input/arkanoid.cpp input/shadow.cpp input/fkb.cpp input/fkb.h input/hypershot.cpp input/mahjong.cpp input/oekakids.cpp input/ftrainer.cpp input/partytap.cpp input/toprider.cpp input/bworld.cpp input/suborkb.cpp
2 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/nes/input/cursor.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_NES_INPUT_CURSOR_H
2 | #define __MDFN_NES_INPUT_CURSOR_H
3 |
4 | void NESCURSOR_PaletteChanged(void);
5 | void NESCURSOR_DrawCursor(uint8 *pix, int pix_y, int xc, int yc);
6 | void NESCURSOR_DrawGunSight(int w, uint8 *pix, int pix_y, int xc, int yc);
7 |
8 | #endif
9 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/nes/input/share.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_NES_INPUT_SHARE_H
2 | #define __MDFN_NES_INPUT_SHARE_H
3 |
4 | #include "../nes.h"
5 | #include "../input.h"
6 | #include "../ppu/ppu.h"
7 | #include "../x6502.h"
8 | #include "../ppu/palette.h"
9 | #include
10 |
11 | #include "cursor.h"
12 |
13 | using namespace MDFN_IEN_NES;
14 |
15 | #endif
16 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/nes/nsfe.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_NES_NSFE_H
2 | #define __MDFN_NES_NSFE_H
3 |
4 | namespace MDFN_IEN_NES
5 | {
6 | void LoadNSFE(NSFINFO *nfe, Stream* fp, int info_only);
7 | }
8 |
9 | #endif
10 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/nes/ppu/Makefile.am.inc:
--------------------------------------------------------------------------------
1 | libnes_a_SOURCES += ppu/ppu.cpp ppu/palette.cpp
2 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/nes/ppu/palette.h:
--------------------------------------------------------------------------------
1 | #ifndef _PPU_PALETTEH
2 | #define _PPU_PALETTEH
3 |
4 | namespace MDFN_IEN_NES
5 | {
6 |
7 | typedef struct {
8 | uint8 r,g,b;
9 | } MDFNPalStruct;
10 |
11 | extern MDFNPalStruct ActiveNESPalette[0x200];
12 |
13 | extern const CustomPalette_Spec NES_CPInfo[];
14 |
15 | void MDFN_InitPalette(const unsigned int which, const uint8* custom_palette, const unsigned cp_numentries);
16 |
17 | }
18 |
19 | #endif
20 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/nes/vsuni.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_NES_VSUNI_H
2 | #define __MDFN_NES_VSUNI_H
3 |
4 | namespace MDFN_IEN_NES
5 | {
6 |
7 | void MDFN_VSUniPower(void);
8 | void MDFN_VSUniCheck(uint64 md5partial, int *, int *);
9 | void MDFN_VSUniDraw(MDFN_Surface *surface);
10 |
11 | void MDFN_VSUniToggleDIPView(void);
12 | void MDFN_VSUniToggleDIP(int); /* For movies and netplay */
13 | void MDFN_VSUniCoin(void);
14 | void MDFN_VSUniSwap(uint8 *j0, uint8 *j1);
15 |
16 | void MDFNNES_VSUNIStateAction(StateMem *sm, const unsigned load, const bool data_only);
17 |
18 | void MDFN_VSUniInstallRWHooks(void);
19 |
20 | unsigned int MDFN_VSUniGetPaletteNum(void);
21 |
22 | }
23 |
24 | #endif
25 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/ngp/rtc.h:
--------------------------------------------------------------------------------
1 | #ifndef __NGP_RTC_H
2 | #define __NGP_RTC_H
3 |
4 | uint8 rtc_read8(uint32 address);
5 |
6 | #endif
7 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/pce/Makefile.am:
--------------------------------------------------------------------------------
1 | AUTOMAKE_OPTIONS = subdir-objects
2 | DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@
3 | DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
4 |
5 | noinst_LIBRARIES = libpce.a
6 | libpce_a_SOURCES = pce.cpp vce.cpp input.cpp huc.cpp pcecd.cpp hes.cpp tsushin.cpp mcgenjin.cpp
7 | libpce_a_SOURCES += input/gamepad.cpp input/tsushinkb.cpp input/mouse.cpp
8 | if WANT_DEBUGGER
9 | libpce_a_SOURCES += debug.cpp
10 | endif
11 |
12 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/pce/hes.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_PCE_HES_H
2 | #define __MDFN_PCE_HES_H
3 |
4 | namespace MDFN_IEN_PCE
5 | {
6 |
7 | uint8 ReadIBP(unsigned int A);
8 | void HES_Load(MDFNFILE* fp);
9 | void HES_Reset(void);
10 | void HES_Update(EmulateSpecStruct *espec, uint16 jp_data);
11 | void HES_Close(void);
12 |
13 | };
14 |
15 | #endif
16 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/pce/input/gamepad.h:
--------------------------------------------------------------------------------
1 | #ifndef __PCE_INPUT_GAMEPAD_H
2 | #define __PCE_INPUT_GAMEPAD_H
3 |
4 | namespace MDFN_IEN_PCE
5 | {
6 | extern const IDIISG PCE_GamepadIDII;
7 | PCE_Input_Device *PCEINPUT_MakeGamepad(void);
8 | };
9 |
10 | #endif
11 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/pce/input/mouse.h:
--------------------------------------------------------------------------------
1 | #ifndef __PCE_INPUT_MOUSE_H
2 | #define __PCE_INPUT_MOUSE_H
3 |
4 | namespace MDFN_IEN_PCE
5 | {
6 |
7 | extern const IDIISG PCE_MouseIDII;
8 |
9 | PCE_Input_Device *PCEINPUT_MakeMouse(void);
10 |
11 | };
12 |
13 | #endif
14 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/pce/input/tsushinkb.h:
--------------------------------------------------------------------------------
1 | #ifndef __PCE_INPUT_TSUSHINKB_H
2 | #define __PCE_INPUT_TSUSHINKB_H
3 |
4 | namespace MDFN_IEN_PCE
5 | {
6 |
7 | extern const IDIISG PCE_TsushinKBIDII;
8 |
9 | PCE_Input_Device *PCEINPUT_MakeTsushinKB(void);
10 |
11 | };
12 |
13 | #endif
14 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/pce/notes/EVENT_SYSTEM_NOTES:
--------------------------------------------------------------------------------
1 | On virtual power/reset, don't reset event system(timestamps such as lastts and such; but recalculating events based on new emulated register settings caused by the
2 | power/reset is good).
3 |
4 | All Reset()/Power() functions should be passed a timestamp(of the reset/power event).
5 |
6 | All users of the event system should initialize internal timestamp(lastts) to 0 on initialization, and only reset to 0 when its EndFrame() or ResetTS() or similar
7 | function is called.
8 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/pce/notes/PATENTS:
--------------------------------------------------------------------------------
1 | 5,319,786 - Apparatus for controlling a scanning type video display to be divided into plural display regions
2 | 5,226,140 - Apparatus for controlling the transfer of data
3 | 5,059,955 - Apparatus for producing video signals
4 | 5,034,886 - Computer system for reducing number of dedicated registers using memory stock and sharing of address and general purpose registers
5 | 5,030,946 - Apparatus for the control of an access to a video memory
6 | 4,970,642 - An apparatus for accessing a memory
7 | 4,951,038 - Apparatus for displaying a sprite on a screen
8 | 4,924,744 - Apparatus for generating sound through low frequency and noise modulation
9 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/pce/pce.h:
--------------------------------------------------------------------------------
1 | #ifndef _PCE_H
2 |
3 | #include
4 | #include
5 | #include
6 |
7 | namespace MDFN_IEN_PCE
8 | {
9 |
10 | #define PCE_MASTER_CLOCK 21477272.727273
11 |
12 | #define DECLFR(x) uint8 x (uint32 A)
13 | #define DECLFW(x) void x (uint32 A, uint8 V)
14 |
15 | };
16 |
17 | #include
18 |
19 | namespace MDFN_IEN_PCE
20 | {
21 | extern HuC6280 *HuCPU;
22 |
23 | extern uint32 PCE_InDebug;
24 | extern bool PCE_ACEnabled; // Arcade Card emulation enabled?
25 | void PCE_Power(void);
26 |
27 | uint8 PCE_PeekMainRAM(uint32 A);
28 | void PCE_PokeMainRAM(uint32 A, uint8 V);
29 |
30 | };
31 |
32 | #define _PCE_H
33 | #endif
34 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/pce/tsushin.h:
--------------------------------------------------------------------------------
1 | #ifndef __PCE_TSUSHIN_H
2 | #define __PCE_TSUSHIN_H
3 |
4 | namespace MDFN_IEN_PCE
5 | {
6 |
7 | DECLFR(PCE_TsushinRead);
8 | DECLFW(PCE_TsushinWrite);
9 |
10 | };
11 |
12 | #endif
13 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/pce_fast/Makefile.am:
--------------------------------------------------------------------------------
1 | AUTOMAKE_OPTIONS = subdir-objects
2 | DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@
3 | DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
4 |
5 | noinst_LIBRARIES = libpce_fast.a
6 | libpce_fast_a_SOURCES = huc6280.cpp pce.cpp vdc.cpp input.cpp huc.cpp hes.cpp pcecd.cpp pcecd_drive.cpp psg.cpp
7 |
8 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/pce_fast/hes.h:
--------------------------------------------------------------------------------
1 | namespace PCE_Fast
2 | {
3 |
4 | uint8 ReadIBP(unsigned int A);
5 | void HES_Draw(MDFN_Surface *surface, MDFN_Rect *DisplayRect, int16 *samples, int32 sampcount);
6 |
7 | void HES_Load(MDFNFILE* fp) MDFN_COLD;
8 | void HES_Reset(void) MDFN_COLD;
9 | void HES_Close(void) MDFN_COLD;
10 |
11 | };
12 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/pce_fast/input.h:
--------------------------------------------------------------------------------
1 | #ifndef __PCE_INPUT_H
2 | #define __PCE_INPUT_H
3 |
4 | namespace PCE_Fast
5 | {
6 |
7 | void PCEINPUT_Init(void);
8 | void PCEINPUT_SettingChanged(const char *name);
9 | void PCEINPUT_SetInput(unsigned port, const char *type, uint8 *ptr);
10 | uint8 INPUT_Read(unsigned int A);
11 | void INPUT_Write(unsigned int A, uint8 V);
12 | void INPUT_Frame(void);
13 | void INPUT_TransformInput(void);
14 | int INPUT_StateAction(StateMem *sm, int load, int data_only);
15 | extern const std::vector PCEPortInfo;
16 | void INPUT_FixTS(void);
17 |
18 | };
19 |
20 | #endif
21 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/pcfx/Makefile.am:
--------------------------------------------------------------------------------
1 | AUTOMAKE_OPTIONS = subdir-objects
2 | DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@
3 | DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
4 |
5 | noinst_LIBRARIES = libpcfx.a
6 | libpcfx_a_SOURCES = king.cpp soundbox.cpp pcfx.cpp interrupt.cpp input.cpp timer.cpp rainbow.cpp jrevdct.cpp huc6273.cpp fxscsi.cpp
7 |
8 | libpcfx_a_SOURCES += input/gamepad.cpp input/mouse.cpp
9 |
10 | if WANT_DEBUGGER
11 | libpcfx_a_SOURCES += debug.cpp
12 | endif
13 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/pcfx/debug.h:
--------------------------------------------------------------------------------
1 | #ifndef __PCFX_DEBUG_H
2 | #define __PCFX_DEBUG_H
3 |
4 | #ifdef WANT_DEBUGGER
5 |
6 | void PCFXDBG_CheckBP(int type, uint32 address, uint32 value, unsigned int len);
7 |
8 | void PCFXDBG_SetLogFunc(void (*func)(const char *, const char *));
9 |
10 | void PCFXDBG_DoLog(const char *type, const char *format, ...);
11 | char *PCFXDBG_ShiftJIS_to_UTF8(const uint16 sjc);
12 |
13 |
14 | extern bool PCFX_LoggingOn;
15 |
16 | void PCFXDBG_Init(void);
17 | extern DebuggerInfoStruct PCFXDBGInfo;
18 |
19 | #endif
20 |
21 | #endif
22 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/pcfx/fxscsi.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_FXSCSI_H
2 | #define __MDFN_FXSCSI_H
3 |
4 | bool FXSCSI_Init(void);
5 | uint8 FXSCSI_CtrlRead(uint32 A);
6 | void FXSCSI_CtrlWrite(uint32 A, uint8 V);
7 |
8 | #endif
9 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/pcfx/huc6273.h:
--------------------------------------------------------------------------------
1 | #ifndef __PCFX_HUC6273_H
2 | #define __PCFX_HUC6273_H
3 |
4 | bool HuC6273_Init(void);
5 |
6 | uint8 HuC6273_Read8(uint32 A);
7 | uint16 HuC6273_Read16(uint32 A);
8 | void HuC6273_Write16(uint32 A, uint16 V);
9 | void HuC6273_Write8(uint32 A, uint8 V);
10 | void HuC6273_Reset(void);
11 |
12 |
13 | #endif
14 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/pcfx/input/gamepad.h:
--------------------------------------------------------------------------------
1 | #ifndef __PCFX_INPUT_GAMEPAD_H
2 | #define __PCFX_INPUT_GAMEPAD_H
3 |
4 | extern const IDIISG PCFX_GamepadIDII;
5 | extern const IDIISG PCFX_GamepadIDII_DSR;
6 |
7 | PCFX_Input_Device *PCFXINPUT_MakeGamepad(void);
8 |
9 | #endif
10 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/pcfx/input/mouse.h:
--------------------------------------------------------------------------------
1 | #ifndef __PCFX_INPUT_MOUSE_H
2 | #define __PCFX_INPUT_MOUSE_H
3 |
4 | extern const IDIISG PCFX_MouseIDII;
5 |
6 | PCFX_Input_Device *PCFXINPUT_MakeMouse(int which);
7 |
8 | #endif
9 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/pcfx/jrevdct.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_JREVDCT_H
2 | #define __MDFN_JREVDCT_H
3 |
4 | typedef int32* DCTBLOCK;
5 | typedef int32 DCTELEM;
6 |
7 | void j_rev_dct(DCTBLOCK data);
8 |
9 | typedef int32 INT32;
10 |
11 | #endif
12 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/player.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_PLAYER_H
2 | #define __MDFN_PLAYER_H
3 |
4 | int Player_Init(int tsongs, const std::string &album, const std::string &artist, const std::string ©right,const std::vector &snames = std::vector());
5 | int Player_Init(int tsongs, const std::string &album, const std::string &artist, const std::string ©right, char **snames);
6 |
7 | void Player_Draw(MDFN_Surface *surface, MDFN_Rect *dr, int CurrentSong, int16 *samples, int32 sampcount);
8 |
9 | #endif
10 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/psx/Makefile.am:
--------------------------------------------------------------------------------
1 | AUTOMAKE_OPTIONS = subdir-objects
2 | DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@ @MMX_CFLAGS@ @SSE_CFLAGS@ @SSE2_CFLAGS@ -funroll-loops
3 | DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
4 |
5 | noinst_LIBRARIES = libpsx.a
6 | libpsx_a_SOURCES = psx.cpp irq.cpp timer.cpp dma.cpp frontio.cpp sio.cpp cpu.cpp gte.cpp dis.cpp cdc.cpp spu.cpp mdec.cpp
7 | libpsx_a_SOURCES += gpu.cpp gpu_polygon.cpp gpu_line.cpp gpu_sprite.cpp
8 | libpsx_a_SOURCES += input/gamepad.cpp input/dualanalog.cpp input/dualshock.cpp input/memcard.cpp input/multitap.cpp input/mouse.cpp input/negcon.cpp input/guncon.cpp input/justifier.cpp
9 |
10 | if WANT_DEBUGGER
11 | libpsx_a_SOURCES += debug.cpp
12 | endif
13 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/psx/debug.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_PSX_DEBUG_H
2 | #define __MDFN_PSX_DEBUG_H
3 |
4 | #ifdef WANT_DEBUGGER
5 |
6 | namespace MDFN_IEN_PSX
7 | {
8 |
9 | extern DebuggerInfoStruct PSX_DBGInfo;
10 |
11 | bool DBG_Init(void);
12 |
13 | void DBG_Break(void);
14 |
15 | void DBG_GPUScanlineHook(unsigned scanline);
16 |
17 | }
18 |
19 | #endif
20 |
21 | #endif
22 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/psx/dis.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_PSX_DIS_H
2 | #define __MDFN_PSX_DIS_H
3 |
4 | namespace MDFN_IEN_PSX
5 | {
6 |
7 | std::string DisassembleMIPS(uint32 PC, uint32 instr);
8 |
9 | }
10 |
11 | #endif
12 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/psx/dma.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_PSX_DMA_H
2 | #define __MDFN_PSX_DMA_H
3 |
4 | namespace MDFN_IEN_PSX
5 | {
6 |
7 | pscpu_timestamp_t DMA_Update(const pscpu_timestamp_t timestamp);
8 | void DMA_Write(const pscpu_timestamp_t timestamp, uint32 A, uint32 V);
9 | uint32 DMA_Read(const pscpu_timestamp_t timestamp, uint32 A);
10 |
11 | void DMA_ResetTS(void);
12 |
13 | void DMA_Power(void) MDFN_COLD;
14 |
15 | void DMA_Init(void) MDFN_COLD;
16 | void DMA_Kill(void) MDFN_COLD;
17 |
18 | void DMA_StateAction(StateMem *sm, const unsigned load, const bool data_only);
19 |
20 | }
21 |
22 | #endif
23 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/psx/gte.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_PSX_GTE_H
2 | #define __MDFN_PSX_GTE_H
3 |
4 | namespace MDFN_IEN_PSX
5 | {
6 |
7 | void GTE_Init(void) MDFN_COLD;
8 | void GTE_Power(void) MDFN_COLD;
9 | void GTE_StateAction(StateMem *sm, const unsigned load, const bool data_only);
10 |
11 | int32 GTE_Instruction(uint32 instr);
12 |
13 | void GTE_WriteCR(unsigned int which, uint32 value);
14 | void GTE_WriteDR(unsigned int which, uint32 value);
15 |
16 | uint32 GTE_ReadCR(unsigned int which);
17 | uint32 GTE_ReadDR(unsigned int which);
18 |
19 |
20 | }
21 |
22 | #endif
23 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/psx/input/dualanalog.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_PSX_INPUT_DUALANALOG_H
2 | #define __MDFN_PSX_INPUT_DUALANALOG_H
3 |
4 | namespace MDFN_IEN_PSX
5 | {
6 |
7 | InputDevice *Device_DualAnalog_Create(bool joystick_mode);
8 | extern IDIISG Device_DualAnalog_IDII;
9 | extern IDIISG Device_AnalogJoy_IDII;
10 | }
11 | #endif
12 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/psx/input/dualshock.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_PSX_INPUT_DUALSHOCK_H
2 | #define __MDFN_PSX_INPUT_DUALSHOCK_H
3 |
4 | namespace MDFN_IEN_PSX
5 | {
6 | InputDevice *Device_DualShock_Create(void);
7 | extern const IDIISG Device_DualShock_IDII;
8 | }
9 | #endif
10 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/psx/input/gamepad.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_PSX_INPUT_GAMEPAD_H
2 | #define __MDFN_PSX_INPUT_GAMEPAD_H
3 |
4 | namespace MDFN_IEN_PSX
5 | {
6 |
7 | InputDevice *Device_Gamepad_Create(void);
8 | extern IDIISG Device_Gamepad_IDII;
9 | extern IDIISG Device_Dancepad_IDII;
10 |
11 | }
12 | #endif
13 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/psx/input/guncon.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_PSX_INPUT_GUNCON_H
2 | #define __MDFN_PSX_INPUT_GUNCON_H
3 |
4 | namespace MDFN_IEN_PSX
5 | {
6 |
7 | InputDevice *Device_GunCon_Create(void);
8 | extern IDIISG Device_GunCon_IDII;
9 |
10 | }
11 | #endif
12 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/psx/input/justifier.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_PSX_INPUT_JUSTIFIER_H
2 | #define __MDFN_PSX_INPUT_JUSTIFIER_H
3 |
4 | namespace MDFN_IEN_PSX
5 | {
6 |
7 | InputDevice *Device_Justifier_Create(void);
8 | extern IDIISG Device_Justifier_IDII;
9 |
10 | }
11 | #endif
12 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/psx/input/memcard.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_PSX_INPUT_MEMCARD_H
2 | #define __MDFN_PSX_INPUT_MEMCARD_H
3 |
4 | namespace MDFN_IEN_PSX
5 | {
6 |
7 | InputDevice *Device_Memcard_Create(void);
8 |
9 | }
10 |
11 | #endif
12 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/psx/input/mouse.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_PSX_INPUT_MOUSE_H
2 | #define __MDFN_PSX_INPUT_MOUSE_H
3 |
4 | namespace MDFN_IEN_PSX
5 | {
6 |
7 | InputDevice *Device_Mouse_Create(void);
8 | extern IDIISG Device_Mouse_IDII;
9 |
10 | }
11 | #endif
12 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/psx/input/negcon.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_PSX_INPUT_NEGCON_H
2 | #define __MDFN_PSX_INPUT_NEGCON_H
3 |
4 | namespace MDFN_IEN_PSX
5 | {
6 | InputDevice *Device_neGcon_Create(void);
7 | extern IDIISG Device_neGcon_IDII;
8 | }
9 | #endif
10 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/psx/mdec.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_PSX_MDEC_H
2 | #define __MDFN_PSX_MDEC_H
3 |
4 | namespace MDFN_IEN_PSX
5 | {
6 |
7 | void MDEC_DMAWrite(uint32 V);
8 |
9 | uint32 MDEC_DMARead(uint32* offs);
10 |
11 | void MDEC_Write(const pscpu_timestamp_t timestamp, uint32 A, uint32 V);
12 | uint32 MDEC_Read(const pscpu_timestamp_t timestamp, uint32 A);
13 |
14 |
15 | void MDEC_Power(void) MDFN_COLD;
16 |
17 | bool MDEC_DMACanWrite(void);
18 | bool MDEC_DMACanRead(void);
19 | void MDEC_Run(int32 clocks);
20 |
21 | void MDEC_StateAction(StateMem *sm, const unsigned load, const bool data_only);
22 | }
23 |
24 | #endif
25 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/psx/notes/MULTITAP:
--------------------------------------------------------------------------------
1 | Atari Collection 2 = Port 1 (and have to enable 4-player mode in a menu in Gauntlet; multitap technically also works on port 2, but not very conveniently) (but having multitap on port 1 breaks 2-player Marble Madness, ARGH)
2 | Capcom Generations 4 = Port 1 or 2 (3-player)
3 | Captain Commando = Port 1 or 2 (3-player)
4 | Crash Bash = Port 1
5 | Crash Team Racing = Port 1
6 | Need for Speed - P.U. = Port 1
7 | Quake II = Port 1
8 | Rampage - Through Time = Port 2? (3-player)
9 | Tales of Phantasia = Port 1 or 2
10 | Tales of Destiny II = Port 1 or 2
11 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/psx/sio.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_PSX_SIO_H
2 | #define __MDFN_PSX_SIO_H
3 |
4 | namespace MDFN_IEN_PSX
5 | {
6 |
7 | void SIO_Write(pscpu_timestamp_t timestamp, uint32 A, uint32 V);
8 | uint32 SIO_Read(pscpu_timestamp_t timestamp, uint32 A);
9 | void SIO_Power(void);
10 |
11 | void SIO_StateAction(StateMem *sm, const unsigned load, const bool data_only);
12 |
13 | }
14 |
15 | #endif
16 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/quicklz/Makefile.am:
--------------------------------------------------------------------------------
1 | AM_CFLAGS = @AM_CFLAGS@ -fno-strict-aliasing -Wno-shadow -Wno-unused-but-set-variable
2 | AUTOMAKE_OPTIONS = subdir-objects
3 | DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@ -fno-strict-aliasing
4 | DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
5 |
6 | noinst_LIBRARIES = libmdfnquicklz.a
7 |
8 | libmdfnquicklz_a_SOURCES = quicklz.c
9 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/resampler/Makefile.am.inc:
--------------------------------------------------------------------------------
1 | mednafen_SOURCES += resampler/resample.c
2 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/sexyal/convert.h:
--------------------------------------------------------------------------------
1 | void SexiALI_Convert(const SexyAL_format *srcformat, const SexyAL_format *destformat, const void *vsrc, void *vdest, uint32_t frames);
2 |
3 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/sms/Makefile.am:
--------------------------------------------------------------------------------
1 | AUTOMAKE_OPTIONS = subdir-objects
2 | DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@
3 | DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
4 |
5 | noinst_LIBRARIES = libsms.a
6 |
7 | sms_SOURCES = cart.cpp memz80.cpp pio.cpp render.cpp romdb.cpp sms.cpp sound.cpp system.cpp tms.cpp vdp.cpp
8 |
9 | libsms_a_SOURCES = $(sms_SOURCES)
10 |
11 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/sms/cart.h:
--------------------------------------------------------------------------------
1 | #ifndef __SMS_CART_H
2 | #define __SMS_CART_H
3 |
4 | namespace MDFN_IEN_SMS
5 | {
6 |
7 | void Cart_Init(MDFNFILE *fp);
8 | void Cart_Close(void);
9 |
10 | void Cart_Reset(void);
11 |
12 | void Cart_LoadNV(void);
13 | void Cart_SaveNV(void);
14 |
15 | void Cart_Write(uint16 A, uint8 V);
16 | uint8 Cart_Read(uint16 A);
17 |
18 | int Cart_StateAction(StateMem *sm, int load, int data_only);
19 |
20 | }
21 | #endif
22 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/sms/docs/compatability.txt:
--------------------------------------------------------------------------------
1 |
2 | Cool Spot
3 |
4 | Menu area has gap after the screen blanking part.
5 | Caused by new interrupt handling code.
6 |
7 | F16 Fighting Falcon, Rozetta no Shouzou
8 |
9 | Uses TMS9918 display modes which are not supported yet.
10 |
11 | Y's (J)
12 |
13 | Uses specific features of SMS 1 VDP.
14 |
15 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/sms/memz80.h:
--------------------------------------------------------------------------------
1 |
2 | #ifndef _MEMZ80_H_
3 | #define _MEMZ80_H_
4 |
5 | namespace MDFN_IEN_SMS
6 | {
7 |
8 | /* Global data */
9 | extern uint8 data_bus_pullup;
10 | extern uint8 data_bus_pulldown;
11 |
12 | /* Function prototypes */
13 | uint8 z80_read_unmapped(void);
14 | void gg_port_w(uint16 port, uint8 data);
15 | uint8 gg_port_r(uint16 port);
16 | void ggms_port_w(uint16 port, uint8 data);
17 | uint8 ggms_port_r(uint16 port);
18 | void sms_port_w(uint16 port, uint8 data);
19 | uint8 sms_port_r(uint16 port);
20 | void smsj_port_w(uint16 port, uint8 data);
21 | uint8 smsj_port_r(uint16 port);
22 | void md_port_w(uint16 port, uint8 data);
23 | uint8 md_port_r(uint16 port);
24 |
25 | }
26 |
27 | #endif /* _MEMZ80_H_ */
28 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/sms/romdb.h:
--------------------------------------------------------------------------------
1 | #ifndef __ROMDB_H
2 | #define __ROMDB_H
3 |
4 | namespace MDFN_IEN_SMS
5 | {
6 |
7 | typedef struct {
8 | uint32 crc;
9 | int mapper;
10 | int display;
11 | int territory;
12 | int system;
13 | const char *name;
14 | } rominfo_t;
15 |
16 | const rominfo_t *find_rom_in_db(uint32 crc);
17 |
18 | }
19 |
20 | #endif
21 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/sms/shared.h:
--------------------------------------------------------------------------------
1 | #ifndef _SHARED_H_
2 | #define _SHARED_H_
3 |
4 | #include
5 | #include
6 | #include "sms.h"
7 | #include "pio.h"
8 | #include "memz80.h"
9 | #include "vdp.h"
10 | #include "render.h"
11 | #include "sound.h"
12 | #include "system.h"
13 | #include "tms.h"
14 | #include "cart.h"
15 |
16 | using namespace MDFN_IEN_SMS;
17 |
18 | #endif /* _SHARED_H_ */
19 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/sms/sound.h:
--------------------------------------------------------------------------------
1 | #ifndef __SMS_SOUND_H
2 | #define __SMS_SOUND_H
3 |
4 | namespace MDFN_IEN_SMS
5 | {
6 |
7 | /* Function prototypes */
8 | void psg_write(int data);
9 | void psg_stereo_w(int data);
10 | int fmunit_detect_r(void);
11 | void fmunit_detect_w(int data);
12 | void fmunit_write(int offset, int data);
13 |
14 | void SMS_SoundClose(void);
15 | int32 SMS_SoundFlush(int16 *SoundBuf, int32 MaxSoundFrames);
16 | void SMS_SoundReset(void);
17 | bool SMS_SetSoundRate(uint32 rate);
18 | int SMS_SoundStateAction(StateMem *sm, int load, int data_only);
19 | void SMS_SoundInit(uint32 clock, bool WantFM);
20 |
21 | }
22 | #endif
23 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/sms/tms.h:
--------------------------------------------------------------------------------
1 | #ifndef _TMS_H_
2 | #define _TMS_H_
3 |
4 | namespace MDFN_IEN_SMS
5 | {
6 |
7 | extern int text_counter;
8 |
9 |
10 | void make_tms_tables(void);
11 | void render_bg_tms(int line);
12 | void render_bg_m0(int line);
13 | void render_bg_m1(int line);
14 | void render_bg_m1x(int line);
15 | void render_bg_inv(int line);
16 | void render_bg_m3(int line);
17 | void render_bg_m3x(int line);
18 | void render_bg_m2(int line);
19 | void render_obj_tms(int line);
20 | void parse_line(int line);
21 |
22 | }
23 |
24 | #endif /* _TMS_H_ */
25 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/VERSION.BSNES:
--------------------------------------------------------------------------------
1 | bsnes v0.059 + Cx4 Op10 fix patch + blargg_libco_ppc64-5 + a few minor timing/scheduler related changes for Mednafen + LOTS OF OTHER CRAZY STUFF
2 |
3 | for ALT Linux:
4 | strlcat->nall_strlcat
5 | strlcpy->nall_strlcpy
6 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/cartridge/gameboyheader.cpp:
--------------------------------------------------------------------------------
1 | #ifdef CARTRIDGE_CPP
2 |
3 | unsigned Cartridge::gameboy_ram_size() const {
4 | if(memory::gbrom.size() < 512) return 0;
5 | switch(memory::gbrom[0x0149]) {
6 | case 0x00: return 0 * 1024;
7 | case 0x01: return 8 * 1024;
8 | case 0x02: return 8 * 1024;
9 | case 0x03: return 32 * 1024;
10 | case 0x04: return 128 * 1024;
11 | case 0x05: return 128 * 1024;
12 | default: return 128 * 1024;
13 | }
14 | }
15 |
16 | unsigned Cartridge::gameboy_rtc_size() const {
17 | if(memory::gbrom.size() < 512) return 0;
18 | if(memory::gbrom[0x0147] == 0x0f || memory::gbrom[0x0147] == 0x10) return 4;
19 | return 0;
20 | }
21 |
22 | #endif
23 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/cheat/cheat-inline.hpp:
--------------------------------------------------------------------------------
1 | bool Cheat::active() const { return system_enabled; }
2 | bool Cheat::exists(unsigned addr) const { return bitmask[addr >> 3] & 1 << (addr & 7); }
3 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/cheat/cheat.hpp:
--------------------------------------------------------------------------------
1 | struct CheatCode {
2 | unsigned addr;
3 | uint8 data;
4 | signed compare;
5 | };
6 |
7 | class Cheat : public vector {
8 | public:
9 | bool enabled() const;
10 | void enable(bool);
11 | void synchronize();
12 | void read(unsigned, uint8&) const;
13 |
14 | inline bool active() const;
15 | inline bool exists(unsigned addr) const;
16 |
17 | Cheat();
18 |
19 | void remove_read_patches(void);
20 | void install_read_patch(const CheatCode& c);
21 |
22 | private:
23 | uint8 bitmask[0x200000];
24 | bool system_enabled;
25 | };
26 |
27 | extern Cheat cheat;
28 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/chip/bsx/bsx.cpp:
--------------------------------------------------------------------------------
1 | #include <../base.hpp>
2 |
3 | #define BSX_CPP
4 | namespace bSNES_v059 {
5 |
6 | #include "bsx_base.cpp"
7 | #include "bsx_cart.cpp"
8 | #include "bsx_flash.cpp"
9 | };
10 |
11 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/chip/chip.hpp:
--------------------------------------------------------------------------------
1 | #include "superfx/superfx.hpp"
2 | #include "sa1/sa1.hpp"
3 | #include "bsx/bsx.hpp"
4 | #include "srtc/srtc.hpp"
5 | #include "sdd1/sdd1.hpp"
6 | #include "spc7110/spc7110.hpp"
7 | #include "cx4/cx4.hpp"
8 | #include "dsp1/dsp1.hpp"
9 | #include "dsp2/dsp2.hpp"
10 | #include "dsp3/dsp3.hpp"
11 | #include "dsp4/dsp4.hpp"
12 | #include "obc1/obc1.hpp"
13 | #include "st010/st010.hpp"
14 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/chip/dsp1/dsp1.hpp:
--------------------------------------------------------------------------------
1 | #include "dsp1emu.hpp"
2 |
3 | class DSP1 : public Memory {
4 | public:
5 | void init();
6 | void enable();
7 | void power();
8 | void reset();
9 |
10 | uint8 read(unsigned addr);
11 | void write(unsigned addr, uint8 data);
12 |
13 | void serialize(serializer&);
14 |
15 | private:
16 | Dsp1 dsp1;
17 | bool addr_decode(uint16 addr);
18 | };
19 |
20 | extern DSP1 dsp1;
21 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/chip/dsp3/dsp3.hpp:
--------------------------------------------------------------------------------
1 | class DSP3 : public Memory {
2 | public:
3 | void init();
4 | void enable();
5 | void power();
6 | void reset();
7 |
8 | uint8 read (unsigned addr);
9 | void write(unsigned addr, uint8 data);
10 | };
11 |
12 | extern DSP3 dsp3;
13 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/chip/dsp4/dsp4.hpp:
--------------------------------------------------------------------------------
1 | class DSP4 : public Memory {
2 | public:
3 | void init();
4 | void enable();
5 | void power();
6 | void reset();
7 |
8 | uint8 read (unsigned addr);
9 | void write(unsigned addr, uint8 data);
10 | };
11 |
12 | extern DSP4 dsp4;
13 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/chip/obc1/obc1.hpp:
--------------------------------------------------------------------------------
1 | class OBC1 : public Memory {
2 | public:
3 | void init();
4 | void enable();
5 | void power();
6 | void reset();
7 |
8 | uint8 read(unsigned addr);
9 | void write(unsigned addr, uint8 data);
10 |
11 | void serialize(serializer&);
12 | OBC1();
13 | ~OBC1();
14 |
15 | private:
16 | uint8 ram_read(unsigned addr);
17 | void ram_write(unsigned addr, uint8 data);
18 |
19 | struct {
20 | uint16 address;
21 | uint16 baseptr;
22 | uint16 shift;
23 | } status;
24 | };
25 |
26 | extern OBC1 obc1;
27 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/chip/obc1/serialization.cpp:
--------------------------------------------------------------------------------
1 | #ifdef OBC1_CPP
2 |
3 | void OBC1::serialize(serializer &s) {
4 | s.integer(status.address);
5 | s.integer(status.baseptr);
6 | s.integer(status.shift);
7 | }
8 |
9 | #endif
10 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/chip/sa1/dma/dma.hpp:
--------------------------------------------------------------------------------
1 | struct DMA {
2 | enum CDEN { DmaNormal = 0, DmaCharConversion = 1 };
3 | enum SD { SourceROM = 0, SourceBWRAM = 1, SourceIRAM = 2 };
4 | enum DD { DestIRAM = 0, DestBWRAM = 1 };
5 | unsigned line;
6 | } dma;
7 |
8 | void dma_normal();
9 | void dma_cc1();
10 | uint8 dma_cc1_read(unsigned addr);
11 | void dma_cc2();
12 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/chip/sa1/memory/memory.cpp:
--------------------------------------------------------------------------------
1 | #ifdef SA1_CPP
2 |
3 | //ROM, I-RAM and MMIO registers are accessed at ~10.74MHz (2 clock ticks)
4 | //BW-RAM is accessed at ~5.37MHz (4 clock ticks)
5 | //tick() == 2 clock ticks
6 | //note: bus conflict delays are not emulated at this time
7 |
8 | void SA1::op_io() {
9 | tick();
10 | }
11 |
12 | uint8 SA1::op_read(unsigned addr) {
13 | tick();
14 | if(((addr & 0x40e000) == 0x006000) || ((addr & 0xd00000) == 0x400000)) tick();
15 | return sa1bus.read(addr);
16 | }
17 |
18 | void SA1::op_write(unsigned addr, uint8 data) {
19 | tick();
20 | if(((addr & 0x40e000) == 0x006000) || ((addr & 0xd00000) == 0x400000)) tick();
21 | sa1bus.write(addr, data);
22 | }
23 |
24 | #endif
25 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/chip/sa1/memory/memory.hpp:
--------------------------------------------------------------------------------
1 | alwaysinline void op_io();
2 | alwaysinline uint8 op_read(unsigned addr);
3 | alwaysinline void op_write(unsigned addr, uint8 data);
4 |
5 | uint8_t vbr_read(unsigned addr);
6 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/chip/sdd1/serialization.cpp:
--------------------------------------------------------------------------------
1 | #ifdef SDD1_CPP
2 |
3 | void SDD1::serialize(serializer &s) {
4 | s.integer(sdd1_enable);
5 | s.integer(xfer_enable);
6 | s.array(mmc);
7 |
8 | for(unsigned n = 0; n < 8; n++) {
9 | s.integer(dma[n].addr);
10 | s.integer(dma[n].size);
11 | }
12 |
13 | s.array(buffer.data);
14 | s.integer(buffer.offset);
15 | s.integer(buffer.size);
16 | s.integer(buffer.ready);
17 | }
18 |
19 | #endif
20 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/chip/srtc/serialization.cpp:
--------------------------------------------------------------------------------
1 | #ifdef SRTC_CPP
2 |
3 | void SRTC::serialize(serializer &s) {
4 | s.integer(rtc_mode);
5 | s.integer(rtc_index);
6 | }
7 |
8 | #endif
9 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/chip/srtc/srtc.hpp:
--------------------------------------------------------------------------------
1 | class SRTC : public MMIO {
2 | public:
3 | void init();
4 | void enable();
5 | void power();
6 | void reset();
7 |
8 | uint8 mmio_read(unsigned addr);
9 | void mmio_write(unsigned addr, uint8 data);
10 |
11 | void serialize(serializer&);
12 | SRTC();
13 |
14 | private:
15 | static const unsigned months[12];
16 | enum RtcMode { RtcReady, RtcCommand, RtcRead, RtcWrite };
17 | unsigned rtc_mode;
18 | signed rtc_index;
19 |
20 | void update_time();
21 | unsigned weekday(unsigned year, unsigned month, unsigned day);
22 | };
23 |
24 | extern SRTC srtc;
25 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/chip/st010/serialization.cpp:
--------------------------------------------------------------------------------
1 | #ifdef ST010_CPP
2 |
3 | void ST010::serialize(serializer &s) {
4 | s.array(ram);
5 | }
6 |
7 | #endif
8 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/chip/superfx/bus/bus.hpp:
--------------------------------------------------------------------------------
1 | struct SuperFXBus
2 | {
3 | void init();
4 | void power();
5 | void reset();
6 | uint8 read(uint32 addr);
7 | void write(uint32 addr, uint8 val);
8 | uint8* rom_ptr;
9 | uint8* ram_ptr;
10 | uint32 ram_mask;
11 | };
12 |
13 | struct SuperFXCPUROM : Memory {
14 | unsigned size() const;
15 | uint8 read(unsigned);
16 | void write(unsigned, uint8);
17 | };
18 |
19 | struct SuperFXCPURAM : Memory {
20 | unsigned size() const;
21 | uint8 read(unsigned);
22 | void write(unsigned, uint8);
23 | };
24 |
25 | namespace memory {
26 | extern SuperFXCPUROM fxrom;
27 | extern SuperFXCPURAM fxram;
28 | }
29 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/chip/superfx/disasm/disasm.hpp:
--------------------------------------------------------------------------------
1 | void disassemble_opcode(char *output);
2 | void disassemble_alt0(char *output);
3 | void disassemble_alt1(char *output);
4 | void disassemble_alt2(char *output);
5 | void disassemble_alt3(char *output);
6 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/chip/superfx/memory/memory.hpp:
--------------------------------------------------------------------------------
1 | uint8 op_read(uint16 addr);
2 | alwaysinline uint8 peekpipe();
3 | alwaysinline uint8 pipe();
4 |
5 | void cache_flush();
6 | uint8 cache_mmio_read(uint16 addr);
7 | void cache_mmio_write(uint16 addr, uint8 data);
8 |
9 | void memory_reset();
10 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/chip/superfx/mmio/mmio.hpp:
--------------------------------------------------------------------------------
1 | uint8 mmio_read(unsigned addr);
2 | void mmio_write(unsigned addr, uint8 data);
3 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/chip/superfx/superfx.hpp:
--------------------------------------------------------------------------------
1 | #include "bus/bus.hpp"
2 |
3 | class SuperFX : public MMIO {
4 | public:
5 | #include "core/core.hpp"
6 | #include "memory/memory.hpp"
7 | #include "mmio/mmio.hpp"
8 | #include "timing/timing.hpp"
9 | #include "disasm/disasm.hpp"
10 |
11 | void enter();
12 |
13 | void init();
14 | void enable();
15 | void power();
16 | void reset();
17 |
18 | void serialize(serializer&);
19 |
20 | private:
21 | unsigned clockmode;
22 | unsigned instruction_counter;
23 | };
24 |
25 | extern SuperFX superfx;
26 | extern SuperFXBus superfxbus;
27 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/chip/superfx/timing/timing.hpp:
--------------------------------------------------------------------------------
1 | unsigned cache_access_speed;
2 | unsigned memory_access_speed;
3 | uint8 r15_NOT_modified; // stores 0 and 1 only.
4 |
5 | void add_clocks(unsigned clocks);
6 |
7 | void rombuffer_sync();
8 | void rombuffer_update();
9 | uint8 rombuffer_read();
10 |
11 | void rambuffer_sync();
12 | uint8 rambuffer_read(uint16 addr);
13 | void rambuffer_write(uint16 addr, uint8 data);
14 |
15 | void r14_modify(uint16);
16 | void r15_modify(uint16);
17 |
18 | void update_speed();
19 | void timing_reset();
20 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/cpu/cpu.cpp:
--------------------------------------------------------------------------------
1 | #include <../base.hpp>
2 |
3 | #define CPU_CPP
4 | namespace bSNES_v059 {
5 |
6 | #if defined(DEBUGGER)
7 | #include "cpu-debugger.cpp"
8 | #endif
9 |
10 | void CPU::power() {
11 | cpu_version = config.cpu.version;
12 | }
13 |
14 | void CPU::reset() {
15 | PPUcounter::reset();
16 | }
17 |
18 | void CPU::serialize(serializer &s) {
19 | PPUcounter::serialize(s);
20 | s.integer(cpu_version);
21 | }
22 |
23 | CPU::CPU() {
24 | }
25 |
26 | CPU::~CPU() {
27 | }
28 |
29 | };
30 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/cpu/cpu.hpp:
--------------------------------------------------------------------------------
1 | #if defined(DEBUGGER)
2 | #include "cpu-debugger.hpp"
3 | #endif
4 |
5 | class CPU : public PPUcounter, public MMIO {
6 | public:
7 | virtual void enter() = 0;
8 |
9 | //CPU version number
10 | //* 1 and 2 are known
11 | //* reported by $4210
12 | //* affects timing (DRAM refresh, HDMA init, etc)
13 | uint8 cpu_version;
14 |
15 | virtual uint8 pio() = 0;
16 | virtual bool joylatch() = 0;
17 | virtual uint8 port_read(uint8 port) = 0;
18 | virtual void port_write(uint8 port, uint8 value) = 0;
19 |
20 | virtual void scanline() = 0;
21 | virtual void power();
22 | virtual void reset();
23 |
24 | virtual void serialize(serializer&);
25 | CPU();
26 | virtual ~CPU();
27 | };
28 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/cpu/scpu/memory/memory.hpp:
--------------------------------------------------------------------------------
1 | //============================
2 | //CPU<>APU communication ports
3 | //============================
4 |
5 | uint8 apu_port[4];
6 | uint8 port_read(uint8 port) { return apu_port[port & 3]; }
7 | void port_write(uint8 port, uint8 data) { apu_port[port & 3] = data; }
8 |
9 | //======================
10 | //core CPU bus functions
11 | //======================
12 |
13 | void op_io();
14 | debugvirtual uint8 op_read(uint32 addr);
15 | debugvirtual void op_write(uint32 addr, uint8 data);
16 | alwaysinline unsigned speed(unsigned addr) const;
17 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/cpu/scpu/timing/joypad.cpp:
--------------------------------------------------------------------------------
1 | #ifdef SCPU_CPP
2 |
3 | void sCPU::run_auto_joypad_poll() {
4 | uint16 joy1 = 0, joy2 = 0, joy3 = 0, joy4 = 0;
5 | for(unsigned i = 0; i < 16; i++) {
6 | uint8 port0 = input.port_read(0);
7 | uint8 port1 = input.port_read(1);
8 |
9 | joy1 |= (port0 & 1) ? (0x8000 >> i) : 0;
10 | joy2 |= (port1 & 1) ? (0x8000 >> i) : 0;
11 | joy3 |= (port0 & 2) ? (0x8000 >> i) : 0;
12 | joy4 |= (port1 & 2) ? (0x8000 >> i) : 0;
13 | }
14 |
15 | status.joy1l = joy1;
16 | status.joy1h = joy1 >> 8;
17 |
18 | status.joy2l = joy2;
19 | status.joy2h = joy2 >> 8;
20 |
21 | status.joy3l = joy3;
22 | status.joy3h = joy3 >> 8;
23 |
24 | status.joy4l = joy4;
25 | status.joy4h = joy4 >> 8;
26 | }
27 |
28 | #endif
29 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/lib/libco/blargg_libco_ppc64-5/benchmark_impl.c:
--------------------------------------------------------------------------------
1 |
2 | /* Function timing */
3 | void benchmark_func( void )
4 | {
5 | }
6 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/lib/libco/blargg_libco_ppc64-5/libco/libco.c:
--------------------------------------------------------------------------------
1 | /*
2 | libco
3 | auto-selection module
4 | license: public domain
5 | */
6 |
7 | #if defined(__GNUC__) && defined(__i386__)
8 | #include "x86.c"
9 | #elif defined(__GNUC__) && defined(__amd64__)
10 | #include "amd64.c"
11 | #elif defined(__GNUC__) && defined(_ARCH_PPC)
12 | #include "ppc.c"
13 | #elif defined(__GNUC__)
14 | #include "sjlj.c"
15 | #elif defined(_MSC_VER) && defined(_M_IX86)
16 | #include "x86.c"
17 | #elif defined(_MSC_VER) && defined(_M_AMD64)
18 | #include "amd64.c"
19 | #elif defined(_MSC_VER)
20 | #include "fiber.c"
21 | #else
22 | #error "libco: unsupported processor, compiler or operating system"
23 | #endif
24 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/lib/libco/blargg_libco_ppc64-5/libco/libco.h:
--------------------------------------------------------------------------------
1 | /*
2 | libco
3 | version: 0.15 (2009-10-12)
4 | license: public domain
5 | */
6 |
7 | #ifndef LIBCO_H
8 | #define LIBCO_H
9 |
10 | #ifdef LIBCO_C
11 | #ifdef LIBCO_MP
12 | #define thread_local __thread
13 | #else
14 | #define thread_local
15 | #endif
16 | #endif
17 |
18 | #ifdef __cplusplus
19 | extern "C" {
20 | #endif
21 |
22 | typedef void* cothread_t;
23 |
24 | cothread_t co_active();
25 | cothread_t co_create(unsigned int, void (*)(void));
26 | void co_delete(cothread_t);
27 | void co_switch(cothread_t);
28 |
29 | #ifdef __cplusplus
30 | }
31 | #endif
32 |
33 | /* ifndef LIBCO_H */
34 | #endif
35 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/lib/libco/blargg_libco_ppc64-5/ppc_regs.h:
--------------------------------------------------------------------------------
1 | /* Saves/loads most user-level PowerPC registers */
2 |
3 | #ifndef PPC_REGS_H
4 | #define PPC_REGS_H
5 |
6 | #include
7 |
8 | typedef __attribute__((aligned(16))) struct ppc_regs_t
9 | {
10 | uint64_t vr [32] [2];
11 | double fpr [32];
12 | uint64_t gpr [32];
13 | uint32_t cr;
14 | uint32_t vrsave;
15 | uint32_t ctr;
16 | uint32_t xer;
17 | uint32_t garbage;
18 | uint32_t fpscr;
19 | } ppc_regs_t;
20 |
21 | #ifdef __cplusplus
22 | extern "C" {
23 | #endif
24 |
25 | void save_ppc_regs( ppc_regs_t* );
26 | void load_ppc_regs( ppc_regs_t const* );
27 |
28 | #ifdef __cplusplus
29 | }
30 | #endif
31 |
32 | #endif
33 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/lib/libco/blargg_libco_ppc64-5/testing.h:
--------------------------------------------------------------------------------
1 | #if _ARCH_PPC64 || __PPC64__ || __ppc64__ || __powerpc64__
2 | #define LIBCO_PPC32 0
3 | #else
4 | #define LIBCO_PPC32 1
5 | #endif
6 |
7 | #ifdef LIBCO_PPC_NOFP
8 | #define LIBCO_PPC_FP 0
9 | #else
10 | #define LIBCO_PPC_FP 1
11 | #endif
12 |
13 | #ifdef __ALTIVEC__
14 | #define LIBCO_PPC_ALTIVEC 1
15 | #else
16 | #define LIBCO_PPC_ALTIVEC 0
17 | #endif
18 |
19 | static void print_libco_opts( void )
20 | {
21 | #if LIBCO_PPC32
22 | printf( "PPC32 " );
23 | #else
24 | printf( "PPC64 " );
25 | #endif
26 |
27 | #if LIBCO_PPC_FP
28 | printf( "FP " );
29 | #endif
30 |
31 | #if LIBCO_PPC_ALTIVEC
32 | printf( "ALTIVEC " );
33 | #endif
34 |
35 | printf( "\n" );
36 | }
37 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/lib/libco/libco.c:
--------------------------------------------------------------------------------
1 | /*
2 | libco
3 | auto-selection module
4 | license: public domain
5 | */
6 |
7 | #if defined(__GNUC__) && defined(__i386__)
8 | #include "x86.c"
9 | #elif defined(__GNUC__) && defined(__amd64__)
10 | #include "amd64.c"
11 | #elif defined(__GNUC__) && defined(_ARCH_PPC)
12 | #include "ppc.c"
13 | #elif defined(__GNUC__)
14 | #include "sjlj.c"
15 | #elif defined(_MSC_VER) && defined(_M_IX86)
16 | #include "x86.c"
17 | #elif defined(_MSC_VER) && defined(_M_AMD64)
18 | #include "amd64.c"
19 | #elif defined(_MSC_VER)
20 | #include "fiber.c"
21 | #else
22 | #error "libco: unsupported processor, compiler or operating system"
23 | #endif
24 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/lib/libco/libco.h:
--------------------------------------------------------------------------------
1 | /*
2 | libco
3 | version: 0.15 (2009-10-12)
4 | license: public domain
5 | */
6 |
7 | #ifndef LIBCO_H
8 | #define LIBCO_H
9 |
10 | #ifdef LIBCO_C
11 | #ifdef LIBCO_MP
12 | #define thread_local __thread
13 | #else
14 | #define thread_local
15 | #endif
16 | #endif
17 |
18 | #ifdef __cplusplus
19 | extern "C" {
20 | #endif
21 |
22 | typedef void* cothread_t;
23 |
24 | cothread_t co_active();
25 | cothread_t co_create(unsigned int, void (*)(void));
26 | void co_delete(cothread_t);
27 | void co_switch(cothread_t);
28 |
29 | #ifdef __cplusplus
30 | }
31 | #endif
32 |
33 | /* ifndef LIBCO_H */
34 | #endif
35 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/lib/nall/algorithm.hpp:
--------------------------------------------------------------------------------
1 | #ifndef NALL_ALGORITHM_HPP
2 | #define NALL_ALGORITHM_HPP
3 |
4 | #undef min
5 | #undef max
6 |
7 | namespace nall_v059 {
8 | template T min(const T& t, const U& u) {
9 | return t < u ? t : u;
10 | }
11 |
12 | template T max(const T& t, const U& u) {
13 | return t > u ? t : u;
14 | }
15 | }
16 |
17 | #endif
18 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/lib/nall/static.hpp:
--------------------------------------------------------------------------------
1 | #ifndef NALL_STATIC_HPP
2 | #define NALL_STATIC_HPP
3 |
4 | namespace nall_v059 {
5 | template struct nall_static_assert;
6 | template<> struct nall_static_assert {};
7 |
8 | template struct static_if {
9 | typedef true_type type;
10 | };
11 |
12 | template struct static_if {
13 | typedef false_type type;
14 | };
15 | }
16 |
17 | #endif
18 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/memory/smemory/serialization.cpp:
--------------------------------------------------------------------------------
1 | #ifdef SMEMORY_CPP
2 |
3 | void sBus::serialize(serializer &s) {
4 | s.array(memory::wram.data(), memory::wram.size());
5 | s.array(memory::apuram.data(), memory::apuram.size());
6 | s.array(memory::vram.data(), memory::vram.size());
7 | s.array(memory::oam.data(), memory::oam.size());
8 | s.array(memory::cgram.data(), memory::cgram.size());
9 | }
10 |
11 | #endif
12 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/memory/smemory/smemory.hpp:
--------------------------------------------------------------------------------
1 | class sBus : public Bus {
2 | public:
3 | bool load_cart();
4 | void unload_cart();
5 |
6 | void power();
7 | void reset();
8 |
9 | inline uint8 read(unsigned addr)
10 | {
11 | uint8 r;
12 |
13 | r = Bus::read(addr);
14 |
15 | #if defined(CHEAT_SYSTEM)
16 | if(cheat.active() && cheat.exists(addr)) {
17 | cheat.read(addr, r);
18 | }
19 | #endif
20 |
21 | return r;
22 | }
23 |
24 | void serialize(serializer&);
25 | sBus();
26 | ~sBus();
27 |
28 | private:
29 | void map_reset();
30 | void map_system();
31 | void map_generic();
32 | void map_generic_sram();
33 | };
34 |
35 | extern sBus bus;
36 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/memory/smemory/system.cpp:
--------------------------------------------------------------------------------
1 | #ifdef SMEMORY_CPP
2 |
3 | void sBus::map_reset() {
4 | map(MapDirect, 0x00, 0xff, 0x0000, 0xffff, memory::memory_unmapped);
5 | for(unsigned i = 0x2000; i <= 0x5fff; i++) memory::mmio.map(i, memory::mmio_unmapped);
6 | }
7 |
8 | void sBus::map_system() {
9 | map(MapDirect, 0x00, 0x3f, 0x2000, 0x5fff, memory::mmio);
10 | map(MapDirect, 0x80, 0xbf, 0x2000, 0x5fff, memory::mmio);
11 |
12 | map(MapLinear, 0x00, 0x3f, 0x0000, 0x1fff, memory::wram, 0x000000, 0x002000);
13 | map(MapLinear, 0x80, 0xbf, 0x0000, 0x1fff, memory::wram, 0x000000, 0x002000);
14 |
15 | map(MapLinear, 0x7e, 0x7f, 0x0000, 0xffff, memory::wram);
16 | }
17 |
18 | #endif
19 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/ppu/memory/memory.hpp:
--------------------------------------------------------------------------------
1 | uint16 get_vram_address();
2 |
3 | debugvirtual uint8 vram_mmio_read(uint16 addr);
4 | debugvirtual void vram_mmio_write(uint16 addr, uint8 data);
5 |
6 | debugvirtual uint8 oam_mmio_read(uint16 addr);
7 | debugvirtual void oam_mmio_write(uint16 addr, uint8 data);
8 |
9 | debugvirtual uint8 cgram_mmio_read(uint16 addr);
10 | debugvirtual void cgram_mmio_write(uint16 addr, uint8 data);
11 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/smp/core/core.cpp:
--------------------------------------------------------------------------------
1 | //#include <../base.hpp>
2 |
3 | #define SMPCORE_CPP
4 | namespace bSNES_v059 {
5 |
6 | #include "serialization.cpp"
7 | #include "algorithms.cpp"
8 | #include "disassembler/disassembler.cpp"
9 |
10 | #define A 0
11 | #define X 1
12 | #define Y 2
13 | #define SP 3
14 |
15 | #include "opcode_mov.cpp"
16 | #include "opcode_pc.cpp"
17 | #include "opcode_read.cpp"
18 | #include "opcode_rmw.cpp"
19 | #include "opcode_misc.cpp"
20 | #include "table.cpp"
21 |
22 | #undef A
23 | #undef X
24 | #undef Y
25 | #undef SP
26 |
27 | };
28 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/smp/core/disassembler/disassembler.hpp:
--------------------------------------------------------------------------------
1 | void disassemble_opcode(char *output, uint16 addr);
2 | inline uint16 __relb(int8 offset, int op_len);
3 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/smp/core/memory.hpp:
--------------------------------------------------------------------------------
1 | alwaysinline uint8_t op_readpc() {
2 | return op_read(regs.pc++);
3 | }
4 |
5 | alwaysinline uint8_t op_readstack() {
6 | return op_read(0x0100 | ++regs.sp);
7 | }
8 |
9 | alwaysinline void op_writestack(uint8_t data) {
10 | op_write(0x0100 | regs.sp--, data);
11 | }
12 |
13 | alwaysinline uint8_t op_readaddr(uint16_t addr) {
14 | return op_read(addr);
15 | }
16 |
17 | alwaysinline void op_writeaddr(uint16_t addr, uint8_t data) {
18 | op_write(addr, data);
19 | }
20 |
21 | alwaysinline uint8_t op_readdp(uint8_t addr) {
22 | return op_read(((unsigned)regs.p.p << 8) + addr);
23 | }
24 |
25 | alwaysinline void op_writedp(uint8_t addr, uint8_t data) {
26 | op_write(((unsigned)regs.p.p << 8) + addr, data);
27 | }
28 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/smp/core/serialization.cpp:
--------------------------------------------------------------------------------
1 | #ifdef SMPCORE_CPP
2 |
3 | void SMP::core_serialize(serializer &s) {
4 | s.integer(regs.pc);
5 | s.integer(regs.a);
6 | s.integer(regs.x);
7 | s.integer(regs.y);
8 | s.integer(regs.sp);
9 | s.integer(regs.p.n);
10 | s.integer(regs.p.v);
11 | s.integer(regs.p.p);
12 | s.integer(regs.p.b);
13 | s.integer(regs.p.h);
14 | s.integer(regs.p.i);
15 | s.integer(regs.p.z);
16 | s.integer(regs.p.c);
17 |
18 | s.integer(dp);
19 | s.integer(sp);
20 | s.integer(rd);
21 | s.integer(wr);
22 | s.integer(bit);
23 | s.integer(ya);
24 | }
25 |
26 | #endif
27 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/smp/smp.hpp:
--------------------------------------------------------------------------------
1 | class SMP {
2 | public:
3 | static const uint8_t iplrom[64];
4 |
5 | #include "core/core.hpp"
6 | #include "ssmp/ssmp.hpp"
7 |
8 | SMP() {}
9 | ~SMP() {}
10 | };
11 |
12 | #if defined(DEBUGGER)
13 | #include "debugger/debugger.hpp"
14 | extern sSMPDebugger smp;
15 | #else
16 | extern SMP smp;
17 | #endif
18 |
19 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/smp/ssmp/debugger/debugger.hpp:
--------------------------------------------------------------------------------
1 | class sSMPDebugger : public sSMP {
2 | public:
3 | function step_event;
4 |
5 | enum Usage {
6 | UsageRead = 0x80,
7 | UsageWrite = 0x40,
8 | UsageExec = 0x20,
9 | };
10 | uint8 *usage;
11 | uint16 opcode_pc;
12 |
13 | void op_step();
14 | uint8 op_read(uint16 addr);
15 | void op_write(uint16 addr, uint8 data);
16 |
17 | sSMPDebugger();
18 | ~sSMPDebugger();
19 | };
20 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/smp/ssmp/memory/memory.hpp:
--------------------------------------------------------------------------------
1 | uint8 ram_read(uint16 addr);
2 | void ram_write(uint16 addr, uint8 data);
3 |
4 | uint8 port_read(uint8 port);
5 | void port_write(uint8 port, uint8 data);
6 |
7 | uint8 op_busread(uint16 addr);
8 | void op_buswrite(uint16 addr, uint8 data);
9 |
10 | void op_io();
11 | debugvirtual uint8 op_read(uint16 addr);
12 | debugvirtual void op_write(uint16 addr, uint8 data);
13 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/smp/ssmp/ssmp.hpp:
--------------------------------------------------------------------------------
1 | void enter();
2 | debugvirtual void op_step();
3 |
4 | #include "memory/memory.hpp"
5 | #include "timing/timing.hpp"
6 |
7 | struct {
8 |
9 | uint8 opcode;
10 | bool in_opcode;
11 |
12 | //timing
13 | uint32 clock_counter;
14 | uint32 dsp_counter;
15 |
16 | //$00f0
17 | uint8 clock_speed;
18 | bool mmio_disabled;
19 | bool ram_writable;
20 |
21 | //$00f1
22 | bool iplrom_enabled;
23 |
24 | //$00f2
25 | uint8 dsp_addr;
26 |
27 | //$00f8,$00f9
28 | uint8 smp_f8, smp_f9;
29 | } status;
30 |
31 | //ssmp.cpp
32 | void power();
33 | void reset();
34 |
35 | void serialize(serializer&);
36 |
37 | friend class sSMPDebug;
38 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/system/audio/audio.hpp:
--------------------------------------------------------------------------------
1 | class Audio {
2 | public:
3 | void coprocessor_enable(bool state);
4 | void coprocessor_frequency(double frequency);
5 | void sample(int16 left, int16 right);
6 | void coprocessor_sample(int16 left, int16 right);
7 | void init();
8 |
9 | private:
10 | bool coprocessor;
11 | uint32 dsp_buffer[32768], cop_buffer[32768];
12 | unsigned dsp_rdoffset, cop_rdoffset;
13 | unsigned dsp_wroffset, cop_wroffset;
14 | unsigned dsp_length, cop_length;
15 |
16 | double r_step, r_frac;
17 | int r_sum_l, r_sum_r;
18 |
19 | void flush();
20 | };
21 |
22 | extern Audio audio;
23 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/system/interface/interface.hpp:
--------------------------------------------------------------------------------
1 | class Interface {
2 | public:
3 | void video_scanline(uint16_t *data, unsigned line, unsigned width, unsigned height, bool interlace, bool field);
4 | void audio_sample(uint16_t l_sample, uint16_t r_sample);
5 | void input_poll();
6 | int16_t input_poll(bool port, unsigned device, unsigned index, unsigned id);
7 | };
8 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes/src/system/video/video.hpp:
--------------------------------------------------------------------------------
1 | class Video {
2 | public:
3 | enum Mode {
4 | ModeNTSC,
5 | ModePAL,
6 | };
7 | void set_mode(Mode);
8 |
9 | private:
10 | Mode mode;
11 | bool frame_interlace;
12 | bool frame_field;
13 |
14 | void update();
15 | void scanline();
16 | void render_scanline(unsigned line);
17 | void init();
18 |
19 | static const uint8_t cursor[15][16];
20 | void draw_cursor(const int rline, const bool hires, const uint16_t color, const int x, const int y);
21 |
22 | friend class System;
23 | friend class PPU; // Just for render_scanline()
24 | };
25 |
26 | extern Video video;
27 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes_faust/Makefile.am:
--------------------------------------------------------------------------------
1 | AUTOMAKE_OPTIONS = subdir-objects
2 | DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@ @MMX_CFLAGS@ @SSE_CFLAGS@ @SSE2_CFLAGS@ -funroll-loops
3 | DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
4 |
5 | noinst_LIBRARIES = libsnes_faust.a
6 | libsnes_faust_a_SOURCES = cpu.cpp snes.cpp apu.cpp cart.cpp input.cpp ppu.cpp
7 |
8 | #if WANT_DEBUGGER
9 | #libsnes_faust_a_SOURCES+= debug.cpp
10 | #endif
11 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes_faust/apu.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_SNES_FAUST_APU_H
2 | #define __MDFN_SNES_FAUST_APU_H
3 |
4 | #include
5 |
6 | namespace MDFN_IEN_SNES_FAUST
7 | {
8 |
9 | void APU_Init(void);
10 | void APU_Kill(void);
11 | void APU_Reset(bool powering_up);
12 | int32 APU_EndFrame(int16* SoundBuf);
13 | void APU_StartFrame(double rate);
14 | void APU_SetSPC(SPCReader* s); // Call after APU_Reset()
15 |
16 | void APU_StateAction(StateMem* sm, const unsigned load, const bool data_only);
17 |
18 | }
19 |
20 | #endif
21 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes_faust/cart.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_SNES_FAUST_CART_H
2 | #define __MDFN_SNES_FAUST_CART_H
3 |
4 | namespace MDFN_IEN_SNES_FAUST
5 | {
6 | void CART_Init(Stream* fp, uint8 id[16]);
7 | void CART_Kill(void);
8 | void CART_Reset(bool powering_up);
9 | void CART_StateAction(StateMem* sm, const unsigned load, const bool data_only);
10 |
11 | bool CART_LoadNV(void);
12 | void CART_SaveNV(void);
13 | }
14 |
15 | #endif
16 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes_faust/input.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_SNES_FAUST_INPUT_H
2 | #define __MDFN_SNES_FAUST_INPUT_H
3 |
4 | namespace MDFN_IEN_SNES_FAUST
5 | {
6 | void INPUT_Init(void);
7 | void INPUT_Kill(void);
8 | void INPUT_Reset(bool powering_up);
9 | void INPUT_StateAction(StateMem* sm, const unsigned load, const bool data_only);
10 | void INPUT_Set(unsigned port, const char* type, uint8* ptr);
11 | void INPUT_UpdatePhysicalState(void);
12 |
13 |
14 | void INPUT_AutoRead(void);
15 |
16 | extern const std::vector INPUT_PortInfo;
17 | }
18 |
19 | #endif
20 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/snes_faust/ppu.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_SNES_FAUST_PPU_H
2 | #define __MDFN_SNES_FAUST_PPU_H
3 |
4 | namespace MDFN_IEN_SNES_FAUST
5 | {
6 |
7 | void PPU_Init(void);
8 | void PPU_Kill(void);
9 | void PPU_Reset(bool powering_up);
10 | void PPU_ResetTS(void);
11 |
12 | void PPU_StateAction(StateMem* sm, const unsigned load, const bool data_only);
13 |
14 | void PPU_StartFrame(EmulateSpecStruct* espec);
15 |
16 | uint32 PPU_Update(uint32 timestamp);
17 |
18 | }
19 |
20 | #endif
21 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/sound/Makefile.am:
--------------------------------------------------------------------------------
1 | AUTOMAKE_OPTIONS = subdir-objects
2 | DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@
3 | DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
4 |
5 | noinst_LIBRARIES = libmdfnsound.a
6 |
7 | libmdfnsound_a_SOURCES = Blip_Buffer.cpp Stereo_Buffer.cpp Fir_Resampler.cpp WAVRecord.cpp
8 |
9 | libmdfnsound_a_SOURCES += OwlResampler.cpp
10 |
11 | libmdfnsound_a_SOURCES += okiadpcm.cpp
12 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/sound/WAVRecord.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_WAVRECORD_H
2 | #define __MDFN_WAVRECORD_H
3 |
4 | #include "../mednafen.h"
5 | #include "../FileStream.h"
6 |
7 | class WAVRecord
8 | {
9 | public:
10 |
11 | WAVRecord(const char *path, double SoundRate, uint32 SoundChan);
12 |
13 | void WriteSound(const int16 *SoundBuf, uint32 NumSoundFrames);
14 |
15 | void Finish();
16 |
17 | ~WAVRecord();
18 |
19 | private:
20 |
21 | FileStream wavfile;
22 | bool Finished;
23 |
24 | uint8 raw_headers[0x2C];
25 | int64 PCMBytesWritten;
26 | uint32 SoundRate;
27 | uint32 SoundChan;
28 | };
29 |
30 |
31 | #endif
32 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/state-common.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_STATE_COMMON_H
2 | #define __MDFN_STATE_COMMON_H
3 |
4 | typedef struct
5 | {
6 | int status[10];
7 | int current;
8 | int current_movie; // For movies only, status(recording/playback)
9 |
10 | // The most recently-saved-to slot
11 | int recently_saved;
12 |
13 | // R, G, B, R, G, B, R, G, B, ... for w * h * 3
14 | uint8 *gfx;
15 | uint32 w, h;
16 | } StateStatusStruct;
17 |
18 | #endif
19 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/state_rewind.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_STATE_REWIND_H
2 | #define __MDFN_STATE_REWIND_H
3 |
4 | bool MDFNSRW_IsRunning(void) noexcept;
5 | void MDFNSRW_Begin(void) noexcept;
6 | void MDFNSRW_End(void) noexcept;
7 | bool MDFNSRW_Frame(bool) noexcept;
8 |
9 | #endif
10 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/string/Makefile.am.inc:
--------------------------------------------------------------------------------
1 | mednafen_SOURCES += string/escape.cpp string/trim.cpp string/ConvertUTF.cpp
2 |
3 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/string/escape.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_ESCAPE_H
2 | #define __MDFN_ESCAPE_H
3 |
4 | // These functions are safe to call before calling MDFNI_Initialize().
5 |
6 | void unescape_string(char *string);
7 | char* escape_string(const char *text);
8 |
9 | #endif
10 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/string/trim.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_STRING_TRIM_H
2 | #define __MDFN_STRING_TRIM_H
3 |
4 | void MDFN_ltrim(char *string);
5 | void MDFN_rtrim(char *string);
6 | void MDFN_trim(char *string);
7 |
8 | void MDFN_ltrim(std::string &string);
9 | void MDFN_rtrim(std::string &string);
10 | void MDFN_trim(std::string &string);
11 |
12 | char *MDFN_RemoveControlChars(char *str);
13 | void MDFN_RemoveControlChars(std::string& string);
14 |
15 | #endif
16 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/tests.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_TESTS_H
2 | #define __MDFN_TESTS_H
3 |
4 | bool MDFN_RunMathTests(void);
5 |
6 | #endif
7 |
8 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/tremor/!!!VERSION:
--------------------------------------------------------------------------------
1 | tremor svn 18222
2 | libogg 1.3.0
3 |
4 | With modifications like:
5 | perl -p -i -e "s//\"ogg.h\"/g" * && perl -p -i -e "s//\"os_types.h\"/g" * && perl -p -i -e "s//\"config_types.h\"/g" *
6 |
7 | Jan 20, 2013:
8 | Mednafen-specific modifications to os_types.h, os.h, and misc.h - config_types.h was removed.
9 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/tremor/CHANGELOG:
--------------------------------------------------------------------------------
1 | *** 20020517: 1.0.2 ***
2 |
3 | Playback bugfix to floor1; mode mistakenly used for sizing instead
4 | of blockflag
5 |
6 | *** 20020515: 1.0.1 ***
7 |
8 | Added complete API documentation to source tarball. No code
9 | changes.
10 |
11 | *** 20020412: 1.0.1 ***
12 |
13 | Fixed a clipping bug that affected ARM processors; negative
14 | overflows were being properly clipped, but then clobbered to
15 | positive by the positive overflow chec (asm_arm.h:CLIP_TO_15)
16 |
17 | *** 20020403: 1.0.0 ***
18 |
19 | Initial version
--------------------------------------------------------------------------------
/Mednafen/mednafen/tremor/Makefile.am:
--------------------------------------------------------------------------------
1 | DEFS = @DEFS@ @CFLAG_VISIBILITY@
2 | INCLUDES = -I./
3 |
4 | noinst_LIBRARIES = libvorbisidec.a
5 |
6 | libvorbisidec_a_SOURCES = mdct.c block.c window.c \
7 | synthesis.c info.c \
8 | floor1.c floor0.c vorbisfile.c \
9 | res012.c mapping0.c registry.c codebook.c \
10 | sharedbook.c framing.c bitwise.c \
11 | codebook.h misc.h mdct_lookup.h\
12 | os.h mdct.h block.h ivorbisfile.h lsp_lookup.h\
13 | registry.h window.h window_lookup.h\
14 | codec_internal.h backends.h ogg.h \
15 | asm_arm.h ivorbiscodec.h
16 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/tremor/vorbisidec.pc.in:
--------------------------------------------------------------------------------
1 | # libvorbisidec pkg-config source file
2 |
3 | prefix=@prefix@
4 | exec_prefix=@exec_prefix@
5 | libdir=@libdir@
6 | includedir=@includedir@
7 |
8 | Name: vorbisidec
9 | Description: vorbisidec is the integer Ogg Vorbis library
10 | Version: @VERSION@
11 | Requires: ogg
12 | Conflicts:
13 | Libs: -L${libdir} -lvorbisidec -lm
14 | Cflags: -I${includedir}
15 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/trio/Makefile.am:
--------------------------------------------------------------------------------
1 | AUTOMAKE_OPTIONS = subdir-objects
2 | DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@ @TRIO_CFLAGS@
3 | DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
4 |
5 | noinst_LIBRARIES = libtrio.a
6 | libtrio_a_SOURCES = trio.c trionan.c triostr.c
7 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/vb/Makefile.am:
--------------------------------------------------------------------------------
1 | AUTOMAKE_OPTIONS = subdir-objects
2 | DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@ -fno-strict-aliasing
3 | DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
4 |
5 | noinst_LIBRARIES = libvb.a
6 | libvb_a_SOURCES = vb.cpp timer.cpp input.cpp vip.cpp vsu.cpp
7 |
8 | if WANT_DEBUGGER
9 | libvb_a_SOURCES += debug.cpp
10 | endif
11 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/vb/input.h:
--------------------------------------------------------------------------------
1 | #ifndef __VB_INPUT_H
2 | #define __VB_INPUT_H
3 |
4 | namespace MDFN_IEN_VB
5 | {
6 |
7 | void VBINPUT_Init(void);
8 | void VBINPUT_SetInstantReadHack(bool);
9 |
10 | void VBINPUT_SetInput(unsigned port, const char *type, uint8 *ptr);
11 |
12 | uint8 VBINPUT_Read(v810_timestamp_t ×tamp, uint32 A);
13 |
14 | void VBINPUT_Write(v810_timestamp_t ×tamp, uint32 A, uint8 V);
15 |
16 | void VBINPUT_Frame(void);
17 | void VBINPUT_StateAction(StateMem *sm, const unsigned load, const bool data_only);
18 |
19 | int32 VBINPUT_Update(const int32 timestamp);
20 | void VBINPUT_ResetTS(void);
21 |
22 |
23 | void VBINPUT_Power(void);
24 |
25 |
26 | int VBINPUT_StateAction(StateMem *sm, int load, int data_only);
27 |
28 | }
29 | #endif
30 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/video-driver.h:
--------------------------------------------------------------------------------
1 | #ifndef __VIDEO_DRIVER_H
2 | #define __VIDEO_DRIVER_H
3 |
4 | #include "video.h"
5 |
6 | void MDFND_DispMessage(char* text);
7 | void MDFNI_SaveSnapshot(const MDFN_Surface *src, const MDFN_Rect *rect, const int32 *LineWidths);
8 |
9 | #endif
10 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/video.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_VIDEO_H
2 | #define __MDFN_VIDEO_H
3 |
4 | #include "video/surface.h"
5 | #include "video/primitives.h"
6 | #include "video/text.h"
7 |
8 | #include
9 |
10 | void MDFN_ResetMessages(void);
11 | void MDFN_InitFontData(void);
12 | void MDFN_DispMessage(const char *format, ...) noexcept MDFN_FORMATSTR(gnu_printf, 1, 2);
13 |
14 | int MDFN_InitVirtualVideo(void);
15 | void MDFN_KillVirtualVideo(void);
16 |
17 |
18 | #endif
19 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/video/Makefile.am.inc:
--------------------------------------------------------------------------------
1 | mednafen_SOURCES += video/surface.cpp video/font-data.cpp video/font-data-18x18.c video/font-data-12x13.c video/png.cpp video/primitives.cpp video/text.cpp video/video.cpp video/tblur.cpp video/resize.cpp video/Deinterlacer.cpp
2 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/video/README.FONTS:
--------------------------------------------------------------------------------
1 | Bitmap font sources:
2 |
3 | http://www.cl.cam.ac.uk/~mgk25/ucs-fonts.html
4 | http://www.cl.cam.ac.uk/~mgk25/download/ucs-fonts.tar.gz
5 | http://www.cl.cam.ac.uk/~mgk25/download/ucs-fonts-asian.tar.gz
6 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/video/primitives.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_VIDEO_PRIMITIVES_H
2 | #define __MDFN_VIDEO_PRIMITIVES_H
3 |
4 | // Note: For simplicity, these functions do NOT perform surface dimension clipping.
5 |
6 | void MDFN_DrawRect(MDFN_Surface *surface, uint32 x, uint32 y, uint32 w, uint32 h, uint32 border_color);
7 | void MDFN_DrawFillRect(MDFN_Surface *surface, uint32 x, uint32 y, uint32 w, uint32 h, uint32 border_color, uint32 fill_color);
8 | void MDFN_DrawFillRect(MDFN_Surface *surface, uint32 x, uint32 y, uint32 w, uint32 h, uint32 fill_color);
9 | void MDFN_DrawLine(MDFN_Surface *surface, int x0, int y0, int x1, int y1, uint32 color);
10 | #endif
11 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/video/resize.h:
--------------------------------------------------------------------------------
1 | bool MDFN_ResizeSurface(const MDFN_Surface *src, const MDFN_Rect *src_rect, const int32 *LineWidths, MDFN_Surface *dest, const MDFN_Rect *dest_rect);
2 |
3 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/video/tblur.h:
--------------------------------------------------------------------------------
1 | #ifndef __MDFN_TBLUR_H
2 | #define __MDFN_TBLUR_H
3 |
4 | #include "../video.h"
5 |
6 | void TBlur_Init(void);
7 | void TBlur_Kill(void);
8 | void TBlur_Run(EmulateSpecStruct *espec);
9 | bool TBlur_IsOn(void);
10 |
11 | #endif
12 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/video/video-common.h:
--------------------------------------------------------------------------------
1 | #include "../mednafen.h"
2 | #include "../video.h"
3 | #include "../general.h"
4 | #include "../driver.h"
5 |
6 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/wswan/Makefile.am:
--------------------------------------------------------------------------------
1 | AUTOMAKE_OPTIONS = subdir-objects
2 | DEFS = -DLOCALEDIR=\"$(datadir)/locale\" @DEFS@
3 | DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/intl
4 |
5 | noinst_LIBRARIES = libwswan.a
6 |
7 | wswan_SOURCES = gfx.cpp main.cpp memory.cpp comm.cpp v30mz.cpp sound.cpp tcache.cpp interrupt.cpp eeprom.cpp rtc.cpp
8 |
9 | if WANT_DEBUGGER
10 | wswan_SOURCES += dis/dis_decode.cpp dis/dis_groups.cpp dis/resolve.cpp dis/syntax.cpp debug.cpp
11 | endif
12 |
13 | libwswan_a_SOURCES = $(wswan_SOURCES)
14 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/wswan/eeprom.h:
--------------------------------------------------------------------------------
1 | #ifndef __WSWAN_EEPROM_H
2 | #define __WSWAN_EEPROM_H
3 |
4 | namespace MDFN_IEN_WSWAN
5 | {
6 |
7 | uint8 WSwan_EEPROMRead(uint32 A);
8 | void WSwan_EEPROMWrite(uint32 A, uint8 V);
9 | void WSwan_EEPROMStateAction(StateMem *sm, const unsigned load, const bool data_only);
10 | void WSwan_EEPROMReset(void);
11 | void WSwan_EEPROMInit(const char *Name, const uint16 BYear, const uint8 BMonth, const uint8 BDay, const uint8 Sex, const uint8 Blood);
12 |
13 | }
14 |
15 | #endif
16 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/wswan/rtc.h:
--------------------------------------------------------------------------------
1 | #ifndef __WSWAN_RTC_H
2 | #define __WSWAN_RTC_H
3 |
4 | namespace MDFN_IEN_WSWAN
5 | {
6 |
7 | void RTC_Write(uint8 A, uint8 V);
8 | uint8 RTC_Read(uint8 A);
9 |
10 | void RTC_Init(void);
11 | void RTC_Reset(void);
12 |
13 | void RTC_Clock(uint32 cycles);
14 | void RTC_StateAction(StateMem *sm, const unsigned load, const bool data_only);
15 |
16 | }
17 |
18 | #endif
19 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/wswan/sound.h:
--------------------------------------------------------------------------------
1 | #ifndef __WSWAN_SOUND_H
2 | #define __WSWAN_SOUND_H
3 |
4 | namespace MDFN_IEN_WSWAN
5 | {
6 |
7 | int32 WSwan_SoundFlush(int16 *SoundBuf, const int32 MaxSoundFrames);
8 |
9 | void WSwan_SoundInit(void);
10 | void WSwan_SoundKill(void);
11 | void WSwan_SetSoundMultiplier(double multiplier);
12 | bool WSwan_SetSoundRate(uint32 rate);
13 | void WSwan_SoundStateAction(StateMem *sm, const unsigned load, const bool data_only);
14 |
15 | void WSwan_SoundWrite(uint32, uint8);
16 | uint8 WSwan_SoundRead(uint32);
17 | void WSwan_SoundReset(void);
18 | void WSwan_SoundCheckRAMWrite(uint32 A);
19 |
20 | }
21 |
22 | #endif
23 |
--------------------------------------------------------------------------------
/Mednafen/mednafen/wswan/wswan.h:
--------------------------------------------------------------------------------
1 | #ifndef __WSWAN_H
2 | #define __WSWAN_H
3 |
4 | #include
5 | #include
6 | #include
7 |
8 | #include "interrupt.h"
9 |
10 | namespace MDFN_IEN_WSWAN
11 | {
12 |
13 | #define mBCD(value) (((value)/10)<<4)|((value)%10)
14 |
15 | extern uint32 WS_InDebug;
16 | extern uint32 rom_size;
17 | extern int wsc;
18 |
19 | enum
20 | {
21 | WSWAN_SEX_MALE = 1,
22 | WSWAN_SEX_FEMALE = 2
23 | };
24 |
25 | enum
26 | {
27 | WSWAN_BLOOD_A = 1,
28 | WSWAN_BLOOD_B = 2,
29 | WSWAN_BLOOD_O = 3,
30 | WSWAN_BLOOD_AB = 4
31 | };
32 |
33 | }
34 |
35 | #endif
36 |
--------------------------------------------------------------------------------
/Mednafen/version.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | BuildVersion
6 | 3
7 | CFBundleVersion
8 | 1.0
9 | ProductBuildVersion
10 | 9M2729
11 | ProjectName
12 | DevToolsWizardTemplates
13 | SourceVersion
14 | 11600000
15 | OEProjectURL
16 | http://findout.com
17 |
18 |
19 |
--------------------------------------------------------------------------------
/PVSupport/DebugUtils.h:
--------------------------------------------------------------------------------
1 | //
2 | // DebugUtils.h
3 | // PVSupport
4 | //
5 | // Created by James Addyman on 18/01/2015.
6 | // Copyright (c) 2015 James Addyman. All rights reserved.
7 | //
8 |
9 | #ifndef PVSupport_DebugUtils_h
10 | #define PVSupport_DebugUtils_h
11 |
12 | #ifdef DEBUG
13 | #define DLog(fmt,...) NSLog(@"%@",[NSString stringWithFormat:(fmt), ##__VA_ARGS__])
14 | #else
15 | #define DLog(...)
16 | #endif
17 |
18 | #endif
19 |
--------------------------------------------------------------------------------
/PVSupport/PVSupport/NSObject+PVAbstractAdditions.h:
--------------------------------------------------------------------------------
1 | //
2 | // NSObject+PVAbstractAdditions.h
3 | // Provenance
4 | //
5 | // Created by James Addyman on 31/08/2013.
6 | // Copyright (c) 2013 James Addyman. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface NSObject (PVAbstractAdditions)
12 |
13 | + (void)doesNotImplementSelector:(SEL)aSel;
14 | + (void)doesNotImplementOptionalSelector:(SEL)aSel;
15 |
16 | - (void)doesNotImplementSelector:(SEL)aSel;
17 | - (void)doesNotImplementOptionalSelector:(SEL)aSel;
18 |
19 | @end
20 |
--------------------------------------------------------------------------------
/PVSupport/PVSupport/PVSupport-Prefix.pch:
--------------------------------------------------------------------------------
1 | //
2 | // Prefix header
3 | //
4 | // The contents of this file are implicitly included at the beginning of every source file.
5 | //
6 |
7 | #ifdef __OBJC__
8 | #import
9 | #import
10 | #import
11 | #endif
12 |
--------------------------------------------------------------------------------
/PVSupport/PVSupport/RealTimeThread.h:
--------------------------------------------------------------------------------
1 | //
2 | // RealTimeThread
3 | // Provenance
4 | //
5 | // Created by Raf Cabezas on 10/26/2016.
6 | // From Apple's Tech Note 2169
7 | // https://developer.apple.com/library/content/technotes/tn2169/_index.html
8 | //
9 |
10 | void move_pthread_to_realtime_scheduling_class(pthread_t pthread);
11 | void MakeCurrentThreadRealTime();
12 |
--------------------------------------------------------------------------------
/Podfile:
--------------------------------------------------------------------------------
1 | target 'VirtualBoyVR-iOS' do
2 | pod 'GVRSDK'
3 | end
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS.xcodeproj/project.xcworkspace/xcuserdata/tomkidd.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS.xcodeproj/project.xcworkspace/xcuserdata/tomkidd.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS.xcodeproj/xcuserdata/tomkidd.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | VirtualBoyVR-iOS.xcscheme
8 |
9 | orderHint
10 | 5
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | A16DA3EC2134A5F900CD9E21
16 |
17 | primary
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
12 |
13 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS.xcworkspace/xcuserdata/tomkidd.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS.xcworkspace/xcuserdata/tomkidd.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-1024.png
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-120.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-120.png
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-121.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-121.png
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-152.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-152.png
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-167.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-167.png
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-180.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-180.png
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-20.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-20.png
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-29.png
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-40.png
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-41.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-41.png
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-42.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-42.png
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-58.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-58.png
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-59.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-59.png
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-60.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-60.png
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-76.png
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-80.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-80.png
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-81.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-81.png
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-87.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Assets.xcassets/AppIcon.appiconset/Icon-87.png
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/button-pressed.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "button-pressed.pdf"
6 | }
7 | ],
8 | "info" : {
9 | "version" : 1,
10 | "author" : "xcode"
11 | }
12 | }
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/button-pressed.imageset/button-pressed.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Assets.xcassets/button-pressed.imageset/button-pressed.pdf
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/button-thin-pressed.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "button-thin-pressed.pdf"
6 | }
7 | ],
8 | "info" : {
9 | "version" : 1,
10 | "author" : "xcode"
11 | }
12 | }
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/button-thin-pressed.imageset/button-thin-pressed.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Assets.xcassets/button-thin-pressed.imageset/button-thin-pressed.pdf
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/button-thin.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "button-thin.pdf"
6 | }
7 | ],
8 | "info" : {
9 | "version" : 1,
10 | "author" : "xcode"
11 | }
12 | }
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/button-thin.imageset/button-thin.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Assets.xcassets/button-thin.imageset/button-thin.pdf
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/button.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "button.pdf"
6 | }
7 | ],
8 | "info" : {
9 | "version" : 1,
10 | "author" : "xcode"
11 | }
12 | }
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/button.imageset/button.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Assets.xcassets/button.imageset/button.pdf
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/dPad-Down.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "dPad-Down.pdf"
6 | }
7 | ],
8 | "info" : {
9 | "version" : 1,
10 | "author" : "xcode"
11 | }
12 | }
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/dPad-Down.imageset/dPad-Down.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Assets.xcassets/dPad-Down.imageset/dPad-Down.pdf
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/dPad-DownLeft.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "dPad-DownLeft.pdf"
6 | }
7 | ],
8 | "info" : {
9 | "version" : 1,
10 | "author" : "xcode"
11 | }
12 | }
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/dPad-DownLeft.imageset/dPad-DownLeft.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Assets.xcassets/dPad-DownLeft.imageset/dPad-DownLeft.pdf
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/dPad-DownRight.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "dPad-DownRight.pdf"
6 | }
7 | ],
8 | "info" : {
9 | "version" : 1,
10 | "author" : "xcode"
11 | }
12 | }
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/dPad-DownRight.imageset/dPad-DownRight.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Assets.xcassets/dPad-DownRight.imageset/dPad-DownRight.pdf
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/dPad-Left.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "dPad-Left.pdf"
6 | }
7 | ],
8 | "info" : {
9 | "version" : 1,
10 | "author" : "xcode"
11 | }
12 | }
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/dPad-Left.imageset/dPad-Left.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Assets.xcassets/dPad-Left.imageset/dPad-Left.pdf
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/dPad-None.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "dPad-None.pdf"
6 | }
7 | ],
8 | "info" : {
9 | "version" : 1,
10 | "author" : "xcode"
11 | }
12 | }
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/dPad-None.imageset/dPad-None.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Assets.xcassets/dPad-None.imageset/dPad-None.pdf
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/dPad-Right.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "dPad-Right.pdf"
6 | }
7 | ],
8 | "info" : {
9 | "version" : 1,
10 | "author" : "xcode"
11 | }
12 | }
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/dPad-Right.imageset/dPad-Right.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Assets.xcassets/dPad-Right.imageset/dPad-Right.pdf
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/dPad-Up.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "dPad-Up.pdf"
6 | }
7 | ],
8 | "info" : {
9 | "version" : 1,
10 | "author" : "xcode"
11 | }
12 | }
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/dPad-Up.imageset/dPad-Up.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Assets.xcassets/dPad-Up.imageset/dPad-Up.pdf
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/dPad-UpLeft.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "dPad-UpLeft.pdf"
6 | }
7 | ],
8 | "info" : {
9 | "version" : 1,
10 | "author" : "xcode"
11 | }
12 | }
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/dPad-UpLeft.imageset/dPad-UpLeft.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Assets.xcassets/dPad-UpLeft.imageset/dPad-UpLeft.pdf
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/dPad-UpRight.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "dPad-UpRight.pdf"
6 | }
7 | ],
8 | "info" : {
9 | "version" : 1,
10 | "author" : "xcode"
11 | }
12 | }
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/dPad-UpRight.imageset/dPad-UpRight.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Assets.xcassets/dPad-UpRight.imageset/dPad-UpRight.pdf
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/gear.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "gear.pdf"
6 | }
7 | ],
8 | "info" : {
9 | "version" : 1,
10 | "author" : "xcode"
11 | }
12 | }
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/gear.imageset/gear.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Assets.xcassets/gear.imageset/gear.pdf
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/questionMark.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "questionMark.pdf"
6 | }
7 | ],
8 | "info" : {
9 | "version" : 1,
10 | "author" : "xcode"
11 | }
12 | }
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/questionMark.imageset/questionMark.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Assets.xcassets/questionMark.imageset/questionMark.pdf
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/vblogo.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "vblogo.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Assets.xcassets/vblogo.imageset/vblogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Assets.xcassets/vblogo.imageset/vblogo.png
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Categories/NSData+Hashing.h:
--------------------------------------------------------------------------------
1 | //
2 | // NSData+Hashing.h
3 | // Provenance
4 | //
5 | // Created by James Addyman on 09/09/2013.
6 | // Copyright (c) 2013 James Addyman. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface NSData (Hashing)
12 |
13 | - (NSString *)md5Hash;
14 | - (NSString *)sha1Hash;
15 |
16 | @end
17 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Categories/NSDate+NSDate_SignificantDates.h:
--------------------------------------------------------------------------------
1 | //
2 | // NSDate+NSDate_SignificantDates.h
3 | // Provenance
4 | //
5 | // Created by James Addyman on 11/04/2015.
6 | // Copyright (c) 2015 James Addyman. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface NSDate (NSDate_SignificantDates)
12 |
13 | + (NSDate *)macAnnouncementDate;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Categories/NSDate+NSDate_SignificantDates.m:
--------------------------------------------------------------------------------
1 | //
2 | // NSDate+NSDate_SignificantDates.m
3 | // Provenance
4 | //
5 | // Created by James Addyman on 11/04/2015.
6 | // Copyright (c) 2015 James Addyman. All rights reserved.
7 | //
8 |
9 | #import "NSDate+NSDate_SignificantDates.h"
10 |
11 | @implementation NSDate (NSDate_SignificantDates)
12 |
13 | + (NSDate *)macAnnouncementDate
14 | {
15 | // 1984-01-24 08:00:0
16 | return [NSDate dateWithTimeIntervalSince1970:443779200.0];
17 | }
18 |
19 | @end
20 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Categories/NSFileManager+Hashing.h:
--------------------------------------------------------------------------------
1 | //
2 | // NSFileManager+NSFileManager_Hashing.h
3 | // Provenance
4 | //
5 | // Created by James Addyman on 11/04/2015.
6 | // Copyright (c) 2015 James Addyman. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface NSFileManager (Hashing)
12 |
13 | - (NSString *)MD5ForFileAtPath:(NSString *)path fromOffset:(NSUInteger)offset;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Categories/NSString+Hashing.h:
--------------------------------------------------------------------------------
1 | //
2 | // NSString+Hashing.h
3 | // Provenance
4 | //
5 | // Created by James Addyman on 13/04/2013.
6 | // Copyright (c) 2013 JamSoft. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface NSString (Hashing)
12 |
13 | - (NSString *)MD5Hash;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Categories/PVGame+Sizing.h:
--------------------------------------------------------------------------------
1 | //
2 | // PVGame+Sizing.h
3 | // Provenance
4 | //
5 | // Created by David Muzi on 2016-03-29.
6 | // Copyright © 2016 James Addyman. All rights reserved.
7 | //
8 |
9 | #import "PVGame.h"
10 |
11 | @interface PVGame (Sizing)
12 |
13 | - (CGFloat)boxartAspectRatio;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Categories/RLMRealmConfiguration+Config.h:
--------------------------------------------------------------------------------
1 | //
2 | // RLMRealmConfiguration+GroupConfig.h
3 | // Provenance
4 | //
5 | // Created by David Muzi on 2015-12-16.
6 | // Copyright © 2015 James Addyman. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface RLMRealmConfiguration (Config)
12 |
13 | + (void)setRealmConfig;
14 |
15 | + (BOOL)supportsAppGroups;
16 |
17 | + (NSString *)appGroupPath;
18 |
19 | @end
20 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Categories/UIAlertView+BlockAdditions.h:
--------------------------------------------------------------------------------
1 | //
2 | // UIAlertView+BlockAdditions.h
3 | // Provenance
4 | //
5 | // Created by James Addyman on 15/06/2012.
6 | // Copyright (c) 2012 James Addyman. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 |
12 | typedef void(^PVUIAlertViewCompletionHandler)(NSUInteger buttonIndex);
13 |
14 | @interface UIAlertView (PVBlockAdditions)
15 |
16 | - (PVUIAlertViewCompletionHandler)PV_completionHandler;
17 | - (void)PV_setCompletionHandler:(PVUIAlertViewCompletionHandler)handler;
18 |
19 | @end
20 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Categories/UIDevice+Hardware.h:
--------------------------------------------------------------------------------
1 | //
2 | // UIDevice+Hardware.h
3 | // Provenance
4 | //
5 | // Created by James Addyman on 24/09/2016.
6 | // Copyright © 2016 James Addyman. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface UIDevice (Hardware)
12 |
13 | - (NSString *)modelIdentifier;
14 | + (BOOL)hasTapticMotor;
15 |
16 | @end
17 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Categories/UIImage+Color.h:
--------------------------------------------------------------------------------
1 | //
2 | // UIImage+Color.h
3 | // Provenance
4 | //
5 | // Created by Tyler Hedrick on 4/3/16.
6 | // Copyright © 2016 James Addyman. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface UIImage (Color)
12 | + (UIImage *)imageWithSize:(CGSize)size
13 | color:(UIColor *)color
14 | text:(NSAttributedString *)text;
15 | @end
16 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Categories/UIImage+Scaling.h:
--------------------------------------------------------------------------------
1 | //
2 | // UIImage+Scaling.h
3 | // Provenance
4 | //
5 | // Created by James Addyman on 09/09/2013.
6 | // Copyright (c) 2013 James Addyman. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface UIImage (Scaling)
12 |
13 | - (UIImage *)scaledImageWithMaxResolution:(NSInteger)maxResolution;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Categories/UIView+FrameAdditions.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 |
4 | @interface UIView (UIView_FrameAdditions)
5 |
6 | - (void)setOrigin:(CGPoint)origin;
7 | - (void)setOriginX:(CGFloat)originX;
8 | - (void)setOriginY:(CGFloat)originY;
9 |
10 | - (void)setSize:(CGSize)size;
11 | - (void)setHeight:(CGFloat)height;
12 | - (void)setWidth:(CGFloat)width;
13 |
14 | @end
15 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Controller/PV32XControllerViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // PV32XControllerViewController.h
3 | // Provenance
4 | //
5 | // Created by Joe Mattiello on 08/22/2016.
6 | // Copyright (c) 2016 Joe Mattiello. All rights reserved.
7 | //
8 |
9 | #import "PVControllerViewController.h"
10 |
11 | @class PicodriveGameCore;
12 |
13 | @interface PV32XControllerViewController : PVControllerViewController
14 |
15 | @end
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Controller/PVAtari5200ControllerViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // PVAtari7800ControllerViewController.h
3 | // Provenance
4 | //
5 | // Created by Joe Mattiello on 08/22/2016.
6 | // Copyright (c) 2016 Joe Mattiello. All rights reserved.
7 | //
8 |
9 | #import "PVControllerViewController.h"
10 |
11 | @interface PVAtari5200ControllerViewController : PVControllerViewController
12 | @end
13 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Controller/PVAtari7800ControllerViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // PVAtari7800ControllerViewController.h
3 | // Provenance
4 | //
5 | // Created by Joe Mattiello on 08/22/2016.
6 | // Copyright (c) 2016 Joe Mattiello. All rights reserved.
7 | //
8 |
9 | #import "PVControllerViewController.h"
10 |
11 | @interface PVAtari7800ControllerViewController : PVControllerViewController
12 | @end
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Controller/PVButtonGroupOverlayView.h:
--------------------------------------------------------------------------------
1 | //
2 | // PVButtonOverlayView.h
3 | // Provenance
4 | //
5 | // Created by James Addyman on 17/08/2013.
6 | // Copyright (c) 2013 James Addyman. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface PVButtonGroupOverlayView : UIView
12 |
13 | - (id)initWithButtons:(NSArray *)buttons;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Controller/PVControllerSelectionViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // PVControllerSelectionViewController.h
3 | // Provenance
4 | //
5 | // Created by James Addyman on 19/09/2015.
6 | // Copyright © 2015 James Addyman. All rights reserved.
7 | //
8 |
9 | #import
10 | @import GameController;
11 |
12 | @interface PVControllerSelectionViewController : UITableViewController
13 |
14 | @end
15 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Controller/PVGBAControllerViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // PVGBAControllerViewController.h
3 | // Provenance
4 | //
5 | // Created by James Addyman on 21/03/2015.
6 | // Copyright (c) 2015 James Addyman. All rights reserved.
7 | //
8 |
9 | #import "PVControllerViewController.h"
10 |
11 | @interface PVGBAControllerViewController : PVControllerViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Controller/PVGBControllerViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // PVGBControllerViewController.h
3 | // Provenance
4 | //
5 | // Created by James Addyman on 22/03/2015.
6 | // Copyright (c) 2015 James Addyman. All rights reserved.
7 | //
8 |
9 | #import "PVControllerViewController.h"
10 |
11 | @interface PVGBControllerViewController : PVControllerViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Controller/PVGenesisControllerViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // PVGenesisControllerViewController.h
3 | // Provenance
4 | //
5 | // Created by James Addyman on 05/09/2013.
6 | // Copyright (c) 2013 James Addyman. All rights reserved.
7 | //
8 |
9 | #import "PVControllerViewController.h"
10 |
11 | @class PVGenesisEmulatorCore;
12 |
13 | @interface PVGenesisControllerViewController : PVControllerViewController
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Controller/PVLynxControllerViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // PVLynxControllerViewController.h
3 | // Provenance
4 | //
5 | // Created by Joe Mattiello on 12/21/16.
6 | // Copyright © 2016 James Addyman. All rights reserved.
7 | //
8 |
9 | #import "PVControllerViewController.h"
10 |
11 | @interface PVLynxControllerViewController : PVControllerViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Controller/PVNESControllerViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // PVNESControllerViewController.h
3 | // Provenance
4 | //
5 | // Created by James Addyman on 22/03/2015.
6 | // Copyright (c) 2015 James Addyman. All rights reserved.
7 | //
8 |
9 | #import "PVControllerViewController.h"
10 |
11 | @interface PVNESControllerViewController : PVControllerViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Controller/PVNeoGeoPocketControllerViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // PVNeoGeoPocketControllerViewController.h
3 | // Provenance
4 | //
5 | // Created by Joe Mattiello on 03/06/17.
6 | // Copyright © 2017 James Addyman. All rights reserved.
7 | //
8 |
9 | #import "PVControllerViewController.h"
10 |
11 | @interface PVNeoGeoPocketControllerViewController : PVControllerViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Controller/PVPCEControllerViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // PVPCEControllerViewController.h
3 | // Provenance
4 | //
5 | // Created by Joe Mattiello on 03/206/17.
6 | // Copyright © 2017 James Addyman. All rights reserved.
7 | //
8 |
9 | #import "PVControllerViewController.h"
10 |
11 | @interface PVPCEControllerViewController : PVControllerViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Controller/PVPSXControllerViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // PVPSXControllerViewController.h
3 | // Provenance
4 | //
5 | // Created by shruglins on 26/8/16.
6 | // Copyright © 2016 James Addyman. All rights reserved.
7 | //
8 |
9 | #import "PVControllerViewController.h"
10 |
11 | @interface PVPSXControllerViewController : PVControllerViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Controller/PVPokeMiniControllerViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // PVPokeMiniControllerViewController.h
3 | // Provenance
4 | //
5 | // Created by Joe Mattiello on 10/04/2017.
6 | // Copyright (c) 2017 Joe Mattiello. All rights reserved.
7 | //
8 |
9 | #import "PVControllerViewController.h"
10 |
11 | @interface PVPokeMiniControllerViewController : PVControllerViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Controller/PVSNESControllerViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // PVSNESControllerViewController.h
3 | // Provenance
4 | //
5 | // Created by James Addyman on 12/09/2013.
6 | // Copyright (c) 2013 James Addyman. All rights reserved.
7 | //
8 |
9 | #import "PVControllerViewController.h"
10 |
11 | @interface PVSNESControllerViewController : PVControllerViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Controller/PVStellaControllerViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // PVStellaControllerViewController.h
3 | // Provenance
4 | //
5 | // Created by James Addyman on 05/09/2013.
6 | // Copyright (c) 2013 James Addyman. All rights reserved.
7 | //
8 |
9 | #import "PVControllerViewController.h"
10 |
11 | @class PVStellaGameCore;
12 |
13 | @interface PVStellaControllerViewController : PVControllerViewController
14 |
15 | @end
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Controller/PVVBControllerViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // PVVBControllerViewController.h
3 | // Provenance
4 | //
5 | // Created by Joe Mattiello on 12/21/16.
6 | // Copyright © 2016 James Addyman. All rights reserved.
7 | //
8 |
9 | #import "PVControllerViewController.h"
10 |
11 | @interface PVVBControllerViewController : PVControllerViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Controller/PVWonderSwanControllerViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // PVWonderSwanControllerViewController.h
3 | // Provenance
4 | //
5 | // Created by Joe Mattiello on 12/21/16.
6 | // Copyright © 2016 James Addyman. All rights reserved.
7 | //
8 |
9 | #import "PVControllerViewController.h"
10 |
11 | @interface PVWonderSwanControllerViewController : PVControllerViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Controller/iCade/PViCade8BitdoController.h:
--------------------------------------------------------------------------------
1 | //
2 | // PViCade8BitdoController.h
3 | // Provenance
4 | //
5 | // Created by Josejulio Martínez on 10/07/15.
6 | // Copyright (c) 2015 Josejulio Martínez. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "PViCadeController.h"
11 |
12 | @interface PViCade8BitdoController : PViCadeController
13 |
14 | @end
15 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Controller/iCade/PViCadeController.h:
--------------------------------------------------------------------------------
1 | //
2 | // PViCadeController.h
3 | // Provenance
4 | //
5 | // Created by Josejulio Martínez on 19/06/15.
6 | // Copyright (c) 2015 Josejulio Martínez. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "PViCadeReader.h"
11 |
12 | @class PViCadeGamepad;
13 |
14 | @interface PViCadeController : GCController {
15 | GCControllerPlayerIndex _playerIndex;
16 | }
17 |
18 | -(void) refreshListener;
19 |
20 | @property (readonly) PViCadeGamepad* iCadeGamepad;
21 | @property (readonly) PViCadeReader* reader;
22 |
23 | @property (copy) void (^controllerPressedAnyKey)(PViCadeController *controller);
24 |
25 | @end
26 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Controller/iCade/PViCadeControllerViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // PViCadeControllerViewController.h
3 | // Provenance
4 | //
5 | // Created by James Addyman on 17/04/2015.
6 | // Copyright (c) 2015 James Addyman. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 |
12 | @interface PViCadeControllerViewController : UITableViewController
13 |
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Controller/iCade/PViCadeGamepadButtonInput.h:
--------------------------------------------------------------------------------
1 | //
2 | // PViCadeGamepadInputButton.h
3 | // Provenance
4 | //
5 | // Created by Josejulio Martínez on 19/06/15.
6 | // Copyright (c) 2015 Josejulio Martínez. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface PViCadeGamepadButtonInput : GCControllerButtonInput {
12 | GCControllerButtonValueChangedHandler _handler;
13 |
14 | BOOL _pressed;
15 | float _value;
16 | }
17 |
18 | -(void) buttonPressed;
19 | -(void) buttonReleased;
20 |
21 | @end
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Controller/iCade/PViCadeInputAxis.h:
--------------------------------------------------------------------------------
1 | //
2 | // PViCadeInputAxis.h
3 | // Provenance
4 | //
5 | // Created by Josejulio Martínez on 19/06/15.
6 | // Copyright (c) 2015 Josejulio Martínez. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface PViCadeAxisInput : GCControllerAxisInput {
12 | float _value;
13 | }
14 | @end
15 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Controller/iCade/PViCadeInputAxis.m:
--------------------------------------------------------------------------------
1 | //
2 | // PViCadeInputAxis.m
3 | // Provenance
4 | //
5 | // Created by Josejulio Martínez on 19/06/15.
6 | // Copyright (c) 2015 Josejulio Martínez. All rights reserved.
7 | //
8 |
9 | #import "PViCadeInputAxis.h"
10 |
11 | @implementation PViCadeAxisInput
12 |
13 | -(void) setValue:(float) value {
14 | _value = value;
15 | }
16 |
17 | -(float) value {
18 | return _value;
19 | }
20 |
21 | @end
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Controller/iCade/PViCadeReader.h:
--------------------------------------------------------------------------------
1 | //
2 | // PViCadeReader.h
3 | // Provenance
4 | //
5 | // Created by Josejulio Martínez on 19/06/15.
6 | // Copyright (c) 2015 Josejulio Martínez. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "iCadeState.h"
11 | #import "iCadeReaderView.h"
12 |
13 | @interface PViCadeReader : NSObject {
14 | iCadeReaderView* _internalReader;
15 | }
16 |
17 | +(PViCadeReader*) sharedReader;
18 |
19 | -(void) listenToWindow:(UIWindow *)window;
20 | -(void) listenToKeyWindow;
21 | -(void) stopListening;
22 | -(iCadeState) state;
23 |
24 | @property (copy) void (^buttonDown)(iCadeState state);
25 | @property (copy) void (^buttonUp)(iCadeState state);
26 |
27 | @end
28 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Controller/iCade/PViCadeSteelSeriesController.h:
--------------------------------------------------------------------------------
1 | //
2 | // PViCadeSteelSeriesController.h
3 | // Provenance
4 | //
5 | // Created by Simon Frost on 17/11/2015.
6 | // Copyright © 2015 James Addyman. All rights reserved.
7 | //
8 |
9 | #import "PViCadeController.h"
10 |
11 | @interface PViCadeSteelSeriesController : PViCadeController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Emulator/PVGCVRViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // PVGCVRViewController.h
3 | // VirtualBoyVR-iOS
4 | //
5 | // Created by Tom Kidd on 9/3/18.
6 | // Copyright © 2018 Tom Kidd. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "GVRCardboardView.h"
11 |
12 | @class PVEmulatorCore;
13 |
14 | @interface PVGCVRViewController : UIViewController
15 |
16 | @property (nonatomic, weak) PVEmulatorCore *emulatorCore;
17 |
18 | - (instancetype)initWithEmulatorCore:(PVEmulatorCore *)emulatorCore;
19 |
20 | @end
21 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Emulator/PVGLViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // PVEmulatorViewController.h
3 | // Provenance
4 | //
5 | // Created by James Addyman on 08/08/2013.
6 | // Copyright (c) 2013 James Addyman. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @class PVEmulatorCore;
12 |
13 | @interface PVGLViewController : GLKViewController
14 |
15 | @property (nonatomic, weak) PVEmulatorCore *emulatorCore;
16 |
17 | - (instancetype)initWithEmulatorCore:(PVEmulatorCore *)emulatorCore;
18 | - (GLuint)compileShaderResource:(NSString*)shaderResourceName ofType:(GLenum)shaderType;
19 |
20 | @end
21 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Game Library/PVConflictViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // PVConflictViewController.h
3 | // Provenance
4 | //
5 | // Created by James Addyman on 17/04/2015.
6 | // Copyright (c) 2015 James Addyman. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @class PVGameImporter;
12 |
13 | @interface PVConflictViewController : UITableViewController
14 |
15 | - (instancetype __nonnull)initWithGameImporter:(PVGameImporter * __nonnull)gameImporter;
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Game Library/PVGame.h:
--------------------------------------------------------------------------------
1 | //
2 | // PVGame.h
3 | // Provenance
4 | //
5 | // Created by James Addyman on 15/04/2013.
6 | // Copyright (c) 2013 JamSoft. All rights reserved.
7 | //
8 |
9 | #import
10 | //#import
11 |
12 | @interface PVGame : NSObject
13 |
14 | @property NSString *title;
15 | @property NSString *romPath;
16 | @property NSString *customArtworkURL;
17 | @property NSString *originalArtworkURL;
18 |
19 | @property NSString *md5Hash;
20 |
21 | @property BOOL requiresSync;
22 | @property NSString *systemIdentifier;
23 |
24 | @property BOOL isFavorite;
25 |
26 | @end
27 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Game Library/PVGameLibraryCollectionViewCell.h:
--------------------------------------------------------------------------------
1 | //
2 | // PVGameLibraryCollectionViewCell.h
3 | // Provenance
4 | //
5 | // Created by James Addyman on 07/04/2013.
6 | // Copyright (c) 2013 JamSoft. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @class PVGame;
12 |
13 | @interface PVGameLibraryCollectionViewCell : UICollectionViewCell
14 |
15 | - (void)setupWithGame:(PVGame *)game;
16 |
17 | + (CGSize)cellSizeForImageSize:(CGSize)imageSize;
18 |
19 | @end
20 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Game Library/PVGameLibrarySectionHeaderView.h:
--------------------------------------------------------------------------------
1 | //
2 | // PVGameLibrarySectionHeaderView.h
3 | // Provenance
4 | //
5 | // Created by James Addyman on 16/09/2013.
6 | // Copyright (c) 2013 James Addyman. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface PVGameLibrarySectionHeaderView : UICollectionReusableView
12 |
13 | @property (nonatomic, readonly) UILabel *titleLabel;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Game Library/PVRecentGame.h:
--------------------------------------------------------------------------------
1 | //
2 | // PVRecentGame.h
3 | // Provenance
4 | //
5 | // Created by James Addyman on 29/09/2015.
6 | // Copyright © 2015 James Addyman. All rights reserved.
7 | //
8 |
9 | //#import
10 | #import "PVGame.h"
11 |
12 | @interface PVRecentGame : NSObject
13 |
14 | @property PVGame *game;
15 | @property NSDate *lastPlayedDate;
16 |
17 | - (instancetype)initWithGame:(PVGame *)game;
18 |
19 | @end
20 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Game Library/PVRecentGame.m:
--------------------------------------------------------------------------------
1 | //
2 | // PVRecentGame.m
3 | // Provenance
4 | //
5 | // Created by James Addyman on 29/09/2015.
6 | // Copyright © 2015 James Addyman. All rights reserved.
7 | //
8 |
9 | #import "PVRecentGame.h"
10 |
11 | @implementation PVRecentGame
12 |
13 | - (instancetype)initWithGame:(PVGame *)game
14 | {
15 | if ((self = [super init]))
16 | {
17 | self.game = game;
18 | self.lastPlayedDate = [NSDate date];
19 | }
20 |
21 | return self;
22 | }
23 |
24 | + (NSArray *)requiredProperties
25 | {
26 | return @[@"lastPlayedDate"];
27 | }
28 |
29 | @end
30 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Game Library/PVSynchronousURLSession.h:
--------------------------------------------------------------------------------
1 | //
2 | // PVSynchronousURLSession.h
3 | // Provenance
4 | //
5 | // Created by James Addyman on 26/09/2015.
6 | // Copyright © 2015 James Addyman. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface PVSynchronousURLSession : NSObject
12 |
13 | + (NSData *)sendSynchronousRequest:(NSURLRequest *)request
14 | returningResponse:(__autoreleasing NSURLResponse **)responsePtr
15 | error:(__autoreleasing NSError **)errorPtr;
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/C/7zAlloc.h:
--------------------------------------------------------------------------------
1 | /* 7zAlloc.h -- Allocation functions
2 | 2013-03-25 : Igor Pavlov : Public domain */
3 |
4 | #ifndef __7Z_ALLOC_H
5 | #define __7Z_ALLOC_H
6 |
7 | #include
8 |
9 | #ifdef __cplusplus
10 | extern "C" {
11 | #endif
12 |
13 | void *SzAlloc(void *p, size_t size);
14 | void SzFree(void *p, void *address);
15 |
16 | void *SzAllocTemp(void *p, size_t size);
17 | void SzFreeTemp(void *p, void *address);
18 |
19 | #ifdef __cplusplus
20 | }
21 | #endif
22 |
23 | #endif
24 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/C/7zBuf.c:
--------------------------------------------------------------------------------
1 | /* 7zBuf.c -- Byte Buffer
2 | 2013-01-21 : Igor Pavlov : Public domain */
3 |
4 | #include "Precomp.h"
5 |
6 | #include "7zBuf.h"
7 |
8 | void Buf_Init(CBuf *p)
9 | {
10 | p->data = 0;
11 | p->size = 0;
12 | }
13 |
14 | int Buf_Create(CBuf *p, size_t size, ISzAlloc *alloc)
15 | {
16 | p->size = 0;
17 | if (size == 0)
18 | {
19 | p->data = 0;
20 | return 1;
21 | }
22 | p->data = (Byte *)alloc->Alloc(alloc, size);
23 | if (p->data != 0)
24 | {
25 | p->size = size;
26 | return 1;
27 | }
28 | return 0;
29 | }
30 |
31 | void Buf_Free(CBuf *p, ISzAlloc *alloc)
32 | {
33 | alloc->Free(alloc, p->data);
34 | p->data = 0;
35 | p->size = 0;
36 | }
37 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/C/7zVersion.h:
--------------------------------------------------------------------------------
1 | #define MY_VER_MAJOR 16
2 | #define MY_VER_MINOR 04
3 | #define MY_VER_BUILD 0
4 | #define MY_VERSION_NUMBERS "16.04"
5 | #define MY_VERSION "16.04"
6 | #define MY_DATE "2016-10-04"
7 | #undef MY_COPYRIGHT
8 | #undef MY_VERSION_COPYRIGHT_DATE
9 | #define MY_AUTHOR_NAME "Igor Pavlov"
10 | #define MY_COPYRIGHT_PD "Igor Pavlov : Public domain"
11 | #define MY_COPYRIGHT_CR "Copyright (c) 1999-2016 Igor Pavlov"
12 |
13 | #ifdef USE_COPYRIGHT_CR
14 | #define MY_COPYRIGHT MY_COPYRIGHT_CR
15 | #else
16 | #define MY_COPYRIGHT MY_COPYRIGHT_PD
17 | #endif
18 |
19 | #define MY_VERSION_COPYRIGHT_DATE MY_VERSION " : " MY_COPYRIGHT " : " MY_DATE
20 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/C/Delta.h:
--------------------------------------------------------------------------------
1 | /* Delta.h -- Delta converter
2 | 2013-01-18 : Igor Pavlov : Public domain */
3 |
4 | #ifndef __DELTA_H
5 | #define __DELTA_H
6 |
7 | #include "7zTypes.h"
8 |
9 | EXTERN_C_BEGIN
10 |
11 | #define DELTA_STATE_SIZE 256
12 |
13 | void Delta_Init(Byte *state);
14 | void Delta_Encode(Byte *state, unsigned delta, Byte *data, SizeT size);
15 | void Delta_Decode(Byte *state, unsigned delta, Byte *data, SizeT size);
16 |
17 | EXTERN_C_END
18 |
19 | #endif
20 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/C/Precomp.h:
--------------------------------------------------------------------------------
1 | /* Precomp.h -- StdAfx
2 | 2013-11-12 : Igor Pavlov : Public domain */
3 |
4 | #ifndef __7Z_PRECOMP_H
5 | #define __7Z_PRECOMP_H
6 |
7 | #include "Compiler.h"
8 | /* #include "7zTypes.h" */
9 |
10 | #endif
11 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/C/Sha256.h:
--------------------------------------------------------------------------------
1 | /* Sha256.h -- SHA-256 Hash
2 | 2013-01-18 : Igor Pavlov : Public domain */
3 |
4 | #ifndef __CRYPTO_SHA256_H
5 | #define __CRYPTO_SHA256_H
6 |
7 | #include "7zTypes.h"
8 |
9 | EXTERN_C_BEGIN
10 |
11 | #define SHA256_DIGEST_SIZE 32
12 |
13 | typedef struct
14 | {
15 | UInt32 state[8];
16 | UInt64 count;
17 | Byte buffer[64];
18 | } CSha256;
19 |
20 | void Sha256_Init(CSha256 *p);
21 | void Sha256_Update(CSha256 *p, const Byte *data, size_t size);
22 | void Sha256_Final(CSha256 *p, Byte *digest);
23 |
24 | EXTERN_C_END
25 |
26 | #endif
27 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/C/Sort.h:
--------------------------------------------------------------------------------
1 | /* Sort.h -- Sort functions
2 | 2014-04-05 : Igor Pavlov : Public domain */
3 |
4 | #ifndef __7Z_SORT_H
5 | #define __7Z_SORT_H
6 |
7 | #include "7zTypes.h"
8 |
9 | EXTERN_C_BEGIN
10 |
11 | void HeapSort(UInt32 *p, size_t size);
12 | void HeapSort64(UInt64 *p, size_t size);
13 |
14 | /* void HeapSortRef(UInt32 *p, UInt32 *vals, size_t size); */
15 |
16 | EXTERN_C_END
17 |
18 | #endif
19 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Archive/7z/7zCompressionMode.cpp:
--------------------------------------------------------------------------------
1 | // CompressionMethod.cpp
2 |
3 | #include "StdAfx.h"
4 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Archive/7z/7zHeader.cpp:
--------------------------------------------------------------------------------
1 | // 7zHeader.cpp
2 |
3 | #include "StdAfx.h"
4 |
5 | #include "7zHeader.h"
6 |
7 | namespace NArchive {
8 | namespace N7z {
9 |
10 | Byte kSignature[kSignatureSize] = {'7', 'z', 0xBC, 0xAF, 0x27, 0x1C};
11 | #ifdef _7Z_VOL
12 | Byte kFinishSignature[kSignatureSize] = {'7', 'z', 0xBC, 0xAF, 0x27, 0x1C + 1};
13 | #endif
14 |
15 | // We can change signature. So file doesn't contain correct signature.
16 | // struct SignatureInitializer { SignatureInitializer() { kSignature[0]--; } };
17 | // static SignatureInitializer g_SignatureInitializer;
18 |
19 | }}
20 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Archive/7z/7zProperties.h:
--------------------------------------------------------------------------------
1 | // 7zProperties.h
2 |
3 | #ifndef __7Z_PROPERTIES_H
4 | #define __7Z_PROPERTIES_H
5 |
6 | #include "../../PropID.h"
7 |
8 | namespace NArchive {
9 | namespace N7z {
10 |
11 | enum
12 | {
13 | kpidPackedSize0 = kpidUserDefined,
14 | kpidPackedSize1,
15 | kpidPackedSize2,
16 | kpidPackedSize3,
17 | kpidPackedSize4
18 | };
19 |
20 | }}
21 |
22 | #endif
23 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Archive/7z/7zRegister.cpp:
--------------------------------------------------------------------------------
1 | // 7zRegister.cpp
2 |
3 | #include "StdAfx.h"
4 |
5 | #include "../../Common/RegisterArc.h"
6 |
7 | #include "7zHandler.h"
8 |
9 | namespace NArchive {
10 | namespace N7z {
11 |
12 | static Byte k_Signature_Dec[kSignatureSize] = {'7' + 1, 'z', 0xBC, 0xAF, 0x27, 0x1C};
13 |
14 | REGISTER_ARC_IO_DECREMENT_SIG(
15 | "7z", "7z", NULL, 7,
16 | k_Signature_Dec,
17 | 0,
18 | NArcInfoFlags::kFindSignature,
19 | NULL);
20 |
21 | }}
22 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Archive/7z/7zSpecStream.cpp:
--------------------------------------------------------------------------------
1 | // 7zSpecStream.cpp
2 |
3 | #include "StdAfx.h"
4 |
5 | #include "7zSpecStream.h"
6 |
7 | STDMETHODIMP CSequentialInStreamSizeCount2::Read(void *data, UInt32 size, UInt32 *processedSize)
8 | {
9 | UInt32 realProcessedSize;
10 | HRESULT result = _stream->Read(data, size, &realProcessedSize);
11 | _size += realProcessedSize;
12 | if (processedSize)
13 | *processedSize = realProcessedSize;
14 | return result;
15 | }
16 |
17 | STDMETHODIMP CSequentialInStreamSizeCount2::GetSubStreamSize(UInt64 subStream, UInt64 *value)
18 | {
19 | if (!_getSubStreamSize)
20 | return E_NOTIMPL;
21 | return _getSubStreamSize->GetSubStreamSize(subStream, value);
22 | }
23 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Archive/7z/StdAfx.h:
--------------------------------------------------------------------------------
1 | // StdAfx.h
2 |
3 | #ifndef __STDAFX_H
4 | #define __STDAFX_H
5 |
6 | #include "../../../Common/Common.h"
7 | #include "../../../../../src/LzmaAppleCommon.h"
8 |
9 | #endif
10 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Archive/Common/DummyOutStream.cpp:
--------------------------------------------------------------------------------
1 | // DummyOutStream.cpp
2 |
3 | #include "StdAfx.h"
4 |
5 | #include "DummyOutStream.h"
6 |
7 | STDMETHODIMP CDummyOutStream::Write(const void *data, UInt32 size, UInt32 *processedSize)
8 | {
9 | UInt32 realProcessedSize = size;
10 | HRESULT res = S_OK;
11 | if (_stream)
12 | res = _stream->Write(data, size, &realProcessedSize);
13 | _size += realProcessedSize;
14 | if (processedSize)
15 | *processedSize = realProcessedSize;
16 | return res;
17 | }
18 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Archive/Common/OutStreamWithCRC.cpp:
--------------------------------------------------------------------------------
1 | // OutStreamWithCRC.cpp
2 |
3 | #include "StdAfx.h"
4 |
5 | #include "OutStreamWithCRC.h"
6 |
7 | STDMETHODIMP COutStreamWithCRC::Write(const void *data, UInt32 size, UInt32 *processedSize)
8 | {
9 | HRESULT result = S_OK;
10 | if (_stream)
11 | result = _stream->Write(data, size, &size);
12 | if (_calculate)
13 | _crc = CrcUpdate(_crc, data, size);
14 | _size += size;
15 | if (processedSize != NULL)
16 | *processedSize = size;
17 | return result;
18 | }
19 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Archive/Common/ParseProperties.cpp:
--------------------------------------------------------------------------------
1 | // ParseProperties.cpp
2 |
3 | #include "StdAfx.h"
4 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Archive/Common/ParseProperties.h:
--------------------------------------------------------------------------------
1 | // ParseProperties.h
2 |
3 | #ifndef __PARSE_PROPERTIES_H
4 | #define __PARSE_PROPERTIES_H
5 |
6 | #endif
7 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Archive/Common/StdAfx.h:
--------------------------------------------------------------------------------
1 | // StdAfx.h
2 |
3 | #ifndef __STDAFX_H
4 | #define __STDAFX_H
5 |
6 | #include "../../../Common/Common.h"
7 | #include "../../../../../src/LzmaAppleCommon.h"
8 |
9 | #endif
10 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Archive/DllExports2.h:
--------------------------------------------------------------------------------
1 |
2 | #ifndef __DLLEXPORTS2_H__
3 | #define __DLLEXPORTS2_H__ 1
4 |
5 | #include "../../Common/MyGuidDef.h"
6 |
7 | STDAPI CreateObject(const GUID *clsid, const GUID *iid, void **outObject);
8 |
9 | #endif
10 |
11 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Archive/StdAfx.h:
--------------------------------------------------------------------------------
1 | // StdAfx.h
2 |
3 | #ifndef __STDAFX_H
4 | #define __STDAFX_H
5 |
6 | #include "../../Common/Common.h"
7 | #include "../../../../src/LzmaAppleCommon.h"
8 |
9 | #endif
10 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Common/FilePathAutoRename.h:
--------------------------------------------------------------------------------
1 | // FilePathAutoRename.h
2 |
3 | #ifndef __FILE_PATH_AUTO_RENAME_H
4 | #define __FILE_PATH_AUTO_RENAME_H
5 |
6 | #include "../../Common/MyString.h"
7 |
8 | bool AutoRenamePath(FString &fullProcessedPath);
9 |
10 | #endif
11 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Common/LockedStream.cpp:
--------------------------------------------------------------------------------
1 | // LockedStream.cpp
2 |
3 | #include "StdAfx.h"
4 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Common/LockedStream.h:
--------------------------------------------------------------------------------
1 | // LockedStream.h
2 |
3 | #ifndef __LOCKED_STREAM_H
4 | #define __LOCKED_STREAM_H
5 |
6 | #endif
7 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Common/MethodId.cpp:
--------------------------------------------------------------------------------
1 | // MethodId.cpp
2 |
3 | #include "StdAfx.h"
4 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Common/MethodId.h:
--------------------------------------------------------------------------------
1 | // MethodId.h
2 |
3 | #ifndef __7Z_METHOD_ID_H
4 | #define __7Z_METHOD_ID_H
5 |
6 | #include "../../Common/MyTypes.h"
7 |
8 | typedef UInt64 CMethodId;
9 |
10 | #endif
11 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Common/OffsetStream.h:
--------------------------------------------------------------------------------
1 | // OffsetStream.h
2 |
3 | #ifndef __OFFSET_STREAM_H
4 | #define __OFFSET_STREAM_H
5 |
6 | #include "../../Common/MyCom.h"
7 |
8 | #include "../IStream.h"
9 |
10 | class COffsetOutStream:
11 | public IOutStream,
12 | public CMyUnknownImp
13 | {
14 | UInt64 _offset;
15 | CMyComPtr _stream;
16 | public:
17 | HRESULT Init(IOutStream *stream, UInt64 offset);
18 |
19 | MY_UNKNOWN_IMP
20 |
21 | STDMETHOD(Write)(const void *data, UInt32 size, UInt32 *processedSize);
22 | STDMETHOD(Seek)(Int64 offset, UInt32 seekOrigin, UInt64 *newPosition);
23 | STDMETHOD(SetSize)(UInt64 newSize);
24 | };
25 |
26 | #endif
27 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Common/StdAfx.h:
--------------------------------------------------------------------------------
1 | // StdAfx.h
2 |
3 | #ifndef __STDAFX_H
4 | #define __STDAFX_H
5 |
6 | #include "../../Common/Common.h"
7 | #include "../../../../src/LzmaAppleCommon.h"
8 | #include "../../../../src/LzmaSDKObjCExtern.h"
9 |
10 | #endif
11 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Common/StreamUtils.h:
--------------------------------------------------------------------------------
1 | // StreamUtils.h
2 |
3 | #ifndef __STREAM_UTILS_H
4 | #define __STREAM_UTILS_H
5 |
6 | #include "../IStream.h"
7 |
8 | HRESULT ReadStream(ISequentialInStream *stream, void *data, size_t *size) throw();
9 | HRESULT ReadStream_FALSE(ISequentialInStream *stream, void *data, size_t size) throw();
10 | HRESULT ReadStream_FAIL(ISequentialInStream *stream, void *data, size_t size) throw();
11 | HRESULT WriteStream(ISequentialOutStream *stream, const void *data, size_t size) throw();
12 |
13 | #endif
14 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Common/UniqBlocks.h:
--------------------------------------------------------------------------------
1 | // UniqBlocks.h
2 |
3 | #ifndef __UNIQ_BLOCKS_H
4 | #define __UNIQ_BLOCKS_H
5 |
6 | #include "../../Common/MyTypes.h"
7 | #include "../../Common/MyBuffer.h"
8 | #include "../../Common/MyVector.h"
9 |
10 | struct CUniqBlocks
11 | {
12 | CObjectVector Bufs;
13 | CUIntVector Sorted;
14 | CUIntVector BufIndexToSortedIndex;
15 |
16 | unsigned AddUniq(const Byte *data, size_t size);
17 | UInt64 GetTotalSizeInBytes() const;
18 | void GetReverseMap();
19 |
20 | bool IsOnlyEmpty() const
21 | {
22 | return (Bufs.Size() == 0 || (Bufs.Size() == 1 && Bufs[0].Size() == 0));
23 | }
24 | };
25 |
26 | #endif
27 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Common/VirtThread.h:
--------------------------------------------------------------------------------
1 | // VirtThread.h
2 |
3 | #ifndef __VIRT_THREAD_H
4 | #define __VIRT_THREAD_H
5 |
6 | #include "../../Windows/Synchronization.h"
7 | #include "../../Windows/Thread.h"
8 |
9 | struct CVirtThread
10 | {
11 | NWindows::NSynchronization::CAutoResetEvent StartEvent;
12 | NWindows::NSynchronization::CAutoResetEvent FinishedEvent;
13 | NWindows::CThread Thread;
14 | bool Exit;
15 |
16 | ~CVirtThread() { WaitThreadFinish(); }
17 | void WaitThreadFinish(); // call it in destructor of child class !
18 | WRes Create();
19 | void Start();
20 | virtual void Execute() = 0;
21 | void WaitExecuteFinish() { FinishedEvent.Lock(); }
22 | };
23 |
24 | #endif
25 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Compress/Bcj2Register.cpp:
--------------------------------------------------------------------------------
1 | // Bcj2Register.cpp
2 |
3 | #include "StdAfx.h"
4 |
5 | #include "../Common/RegisterCodec.h"
6 |
7 | #include "Bcj2Coder.h"
8 |
9 | namespace NCompress {
10 | namespace NBcj2 {
11 |
12 | REGISTER_CODEC_CREATE_2(CreateCodec, CDecoder(), ICompressCoder2)
13 | #ifndef EXTRACT_ONLY
14 | REGISTER_CODEC_CREATE_2(CreateCodecOut, CEncoder(), ICompressCoder2)
15 | #else
16 | #define CreateCodecOut NULL
17 | #endif
18 |
19 | REGISTER_CODEC_VAR
20 | { CreateCodec, CreateCodecOut, 0x303011B, "BCJ2", 4, false };
21 |
22 | REGISTER_CODEC(BCJ2)
23 |
24 | }}
25 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Compress/BcjCoder.cpp:
--------------------------------------------------------------------------------
1 | // BcjCoder.cpp
2 |
3 | #include "StdAfx.h"
4 |
5 | #include "BcjCoder.h"
6 |
7 | namespace NCompress {
8 | namespace NBcj {
9 |
10 | STDMETHODIMP CCoder::Init()
11 | {
12 | _bufferPos = 0;
13 | x86_Convert_Init(_prevMask);
14 | return S_OK;
15 | }
16 |
17 | STDMETHODIMP_(UInt32) CCoder::Filter(Byte *data, UInt32 size)
18 | {
19 | UInt32 processed = (UInt32)::x86_Convert(data, size, _bufferPos, &_prevMask, _encode);
20 | _bufferPos += processed;
21 | return processed;
22 | }
23 |
24 | }}
25 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Compress/BcjCoder.h:
--------------------------------------------------------------------------------
1 | // BcjCoder.h
2 |
3 | #ifndef __COMPRESS_BCJ_CODER_H
4 | #define __COMPRESS_BCJ_CODER_H
5 |
6 | #include "../../../C/Bra.h"
7 |
8 | #include "../../Common/MyCom.h"
9 |
10 | #include "../ICoder.h"
11 |
12 | namespace NCompress {
13 | namespace NBcj {
14 |
15 | class CCoder:
16 | public ICompressFilter,
17 | public CMyUnknownImp
18 | {
19 | UInt32 _bufferPos;
20 | UInt32 _prevMask;
21 | int _encode;
22 | public:
23 | MY_UNKNOWN_IMP1(ICompressFilter);
24 | INTERFACE_ICompressFilter(;)
25 |
26 | CCoder(int encode): _bufferPos(0), _encode(encode) { x86_Convert_Init(_prevMask); }
27 | };
28 |
29 | }}
30 |
31 | #endif
32 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Compress/BcjRegister.cpp:
--------------------------------------------------------------------------------
1 | // BcjRegister.cpp
2 |
3 | #include "StdAfx.h"
4 |
5 | #include "../Common/RegisterCodec.h"
6 |
7 | #include "BcjCoder.h"
8 |
9 | namespace NCompress {
10 | namespace NBcj {
11 |
12 | REGISTER_FILTER_E(BCJ,
13 | CCoder(false),
14 | CCoder(true),
15 | 0x3030103, "BCJ")
16 |
17 | }}
18 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Compress/BranchMisc.cpp:
--------------------------------------------------------------------------------
1 | // BranchMisc.cpp
2 |
3 | #include "StdAfx.h"
4 |
5 | #include "BranchMisc.h"
6 |
7 | namespace NCompress {
8 | namespace NBranch {
9 |
10 | STDMETHODIMP CCoder::Init()
11 | {
12 | _bufferPos = 0;
13 | return S_OK;
14 | }
15 |
16 | STDMETHODIMP_(UInt32) CCoder::Filter(Byte *data, UInt32 size)
17 | {
18 | UInt32 processed = (UInt32)BraFunc(data, size, _bufferPos, _encode);
19 | _bufferPos += processed;
20 | return processed;
21 | }
22 |
23 | }}
24 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Compress/CopyRegister.cpp:
--------------------------------------------------------------------------------
1 | // CopyRegister.cpp
2 |
3 | #include "StdAfx.h"
4 |
5 | #include "../Common/RegisterCodec.h"
6 |
7 | #include "CopyCoder.h"
8 |
9 | namespace NCompress {
10 |
11 | REGISTER_CODEC_CREATE(CreateCodec, CCopyCoder())
12 |
13 | REGISTER_CODEC_2(Copy, CreateCodec, CreateCodec, 0, "Copy")
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Compress/Lzma2Register.cpp:
--------------------------------------------------------------------------------
1 | // Lzma2Register.cpp
2 |
3 | #include "StdAfx.h"
4 |
5 | #include "../Common/RegisterCodec.h"
6 |
7 | #include "Lzma2Decoder.h"
8 |
9 | #ifndef EXTRACT_ONLY
10 | #include "Lzma2Encoder.h"
11 | #endif
12 |
13 | namespace NCompress {
14 | namespace NLzma2 {
15 |
16 | REGISTER_CODEC_E(LZMA2,
17 | CDecoder(),
18 | CEncoder(),
19 | 0x21,
20 | "LZMA2")
21 |
22 | }}
23 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Compress/LzmaRegister.cpp:
--------------------------------------------------------------------------------
1 | // LzmaRegister.cpp
2 |
3 | #include "StdAfx.h"
4 |
5 | #include "../Common/RegisterCodec.h"
6 |
7 | #include "LzmaDecoder.h"
8 |
9 | #ifndef EXTRACT_ONLY
10 | #include "LzmaEncoder.h"
11 | #endif
12 |
13 | namespace NCompress {
14 | namespace NLzma {
15 |
16 | REGISTER_CODEC_E(LZMA,
17 | CDecoder(),
18 | CEncoder(),
19 | 0x30101,
20 | "LZMA")
21 |
22 | }}
23 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Compress/PpmdRegister.cpp:
--------------------------------------------------------------------------------
1 | // PpmdRegister.cpp
2 |
3 | #include "StdAfx.h"
4 |
5 | #include "../Common/RegisterCodec.h"
6 |
7 | #include "PpmdDecoder.h"
8 |
9 | #ifndef EXTRACT_ONLY
10 | #include "PpmdEncoder.h"
11 | #endif
12 |
13 | namespace NCompress {
14 | namespace NPpmd {
15 |
16 | REGISTER_CODEC_E(PPMD,
17 | CDecoder(),
18 | CEncoder(),
19 | 0x30401,
20 | "PPMD")
21 |
22 | }}
23 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Compress/StdAfx.h:
--------------------------------------------------------------------------------
1 | // StdAfx.h
2 |
3 | #ifndef __STDAFX_H
4 | #define __STDAFX_H
5 |
6 | #include "../../Common/Common.h"
7 | #include "../../../../src/LzmaAppleCommon.h"
8 | #include "../../../../src/LzmaSDKObjCExtern.h"
9 |
10 | #endif
11 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Crypto/7zAesRegister.cpp:
--------------------------------------------------------------------------------
1 | // 7zAesRegister.cpp
2 |
3 | #include "StdAfx.h"
4 |
5 | #include "../Common/RegisterCodec.h"
6 |
7 | #include "7zAes.h"
8 |
9 | namespace NCrypto {
10 | namespace N7z {
11 |
12 | REGISTER_FILTER_E(7zAES,
13 | CDecoder(),
14 | CEncoder(),
15 | 0x6F10701, "7zAES")
16 |
17 | }}
18 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Crypto/MyAesReg.cpp:
--------------------------------------------------------------------------------
1 | // MyAesReg.cpp
2 |
3 | #include "StdAfx.h"
4 |
5 | #include "../Common/RegisterCodec.h"
6 |
7 | #include "MyAes.h"
8 |
9 | namespace NCrypto {
10 |
11 | REGISTER_FILTER_E(AES256CBC,
12 | CAesCbcDecoder(32),
13 | CAesCbcEncoder(32),
14 | 0x6F00181, "AES256CBC")
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Crypto/RandGen.h:
--------------------------------------------------------------------------------
1 | // RandGen.h
2 |
3 | #ifndef __CRYPTO_RAND_GEN_H
4 | #define __CRYPTO_RAND_GEN_H
5 |
6 | #include "../../../C/Sha256.h"
7 |
8 | class CRandomGenerator
9 | {
10 | Byte _buff[SHA256_DIGEST_SIZE];
11 | bool _needInit;
12 |
13 | void Init();
14 | public:
15 | CRandomGenerator(): _needInit(true) {};
16 | void Generate(Byte *data, unsigned size);
17 | };
18 |
19 | extern CRandomGenerator g_RandomGenerator;
20 |
21 | #endif
22 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/Crypto/StdAfx.h:
--------------------------------------------------------------------------------
1 | // StdAfx.h
2 |
3 | #ifndef __STDAFX_H
4 | #define __STDAFX_H
5 |
6 | #include "../../Common/Common.h"
7 | #include "../../../../src/LzmaAppleCommon.h"
8 |
9 | #endif
10 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/IPassword.h:
--------------------------------------------------------------------------------
1 | // IPassword.h
2 |
3 | #ifndef __IPASSWORD_H
4 | #define __IPASSWORD_H
5 |
6 | #include "../Common/MyTypes.h"
7 | #include "../Common/MyUnknown.h"
8 |
9 | #include "IDecl.h"
10 |
11 | #define PASSWORD_INTERFACE(i, x) DECL_INTERFACE(i, 5, x)
12 |
13 | PASSWORD_INTERFACE(ICryptoGetTextPassword, 0x10)
14 | {
15 | STDMETHOD(CryptoGetTextPassword)(BSTR *password) PURE;
16 | };
17 |
18 | PASSWORD_INTERFACE(ICryptoGetTextPassword2, 0x11)
19 | {
20 | STDMETHOD(CryptoGetTextPassword2)(Int32 *passwordIsDefined, BSTR *password) PURE;
21 | };
22 |
23 | #endif
24 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/IProgress.h:
--------------------------------------------------------------------------------
1 | // IProgress.h
2 |
3 | #ifndef __IPROGRESS_H
4 | #define __IPROGRESS_H
5 |
6 | #include "../Common/MyTypes.h"
7 |
8 | #include "IDecl.h"
9 |
10 | #define INTERFACE_IProgress(x) \
11 | STDMETHOD(SetTotal)(UInt64 total) x; \
12 | STDMETHOD(SetCompleted)(const UInt64 *completeValue) x; \
13 |
14 | DECL_INTERFACE(IProgress, 0, 5)
15 | {
16 | INTERFACE_IProgress(PURE)
17 | };
18 |
19 | #endif
20 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/7zip/MyVersion.h:
--------------------------------------------------------------------------------
1 | #define USE_COPYRIGHT_CR
2 | #include "../../C/7zVersion.h"
3 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/Common/CRC.cpp:
--------------------------------------------------------------------------------
1 | // Common/CRC.cpp
2 |
3 | #include "StdAfx.h"
4 |
5 | #include "../../C/7zCrc.h"
6 |
7 | struct CCRCTableInit { CCRCTableInit() { CrcGenerateTable(); } } g_CRCTableInit;
8 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/Common/ComTry.h:
--------------------------------------------------------------------------------
1 | // ComTry.h
2 |
3 | #ifndef __COM_TRY_H
4 | #define __COM_TRY_H
5 |
6 | #include "MyWindows.h"
7 | // #include "Exception.h"
8 | // #include "NewHandler.h"
9 |
10 | #define COM_TRY_BEGIN try {
11 | #define COM_TRY_END } catch(...) { return E_OUTOFMEMORY; }
12 |
13 | // catch(const CNewException &) { return E_OUTOFMEMORY; }
14 | // catch(const CSystemException &e) { return e.ErrorCode; }
15 | // catch(...) { return E_FAIL; }
16 |
17 | #endif
18 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/Common/Common.h:
--------------------------------------------------------------------------------
1 | // Common.h
2 |
3 | #ifndef __COMMON_COMMON_H
4 | #define __COMMON_COMMON_H
5 |
6 | #include "../../C/Compiler.h"
7 |
8 | #include "MyWindows.h"
9 | #include "NewHandler.h"
10 |
11 | #include "../../../src/LzmaAppleCommon.h"
12 |
13 | #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[1]))
14 |
15 | #endif
16 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/Common/Defs.h:
--------------------------------------------------------------------------------
1 | // Common/Defs.h
2 |
3 | #ifndef __COMMON_DEFS_H
4 | #define __COMMON_DEFS_H
5 |
6 | template inline T MyMin(T a, T b) { return a < b ? a : b; }
7 | template inline T MyMax(T a, T b) { return a > b ? a : b; }
8 |
9 | template inline int MyCompare(T a, T b)
10 | { return a == b ? 0 : (a < b ? -1 : 1); }
11 |
12 | inline int BoolToInt(bool v) { return (v ? 1 : 0); }
13 | inline bool IntToBool(int v) { return (v != 0); }
14 |
15 | #endif
16 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/Common/ListFileUtils.h:
--------------------------------------------------------------------------------
1 | // Common/ListFileUtils.h
2 |
3 | #ifndef __COMMON_LIST_FILE_UTILS_H
4 | #define __COMMON_LIST_FILE_UTILS_H
5 |
6 | #include "MyString.h"
7 | #include "MyTypes.h"
8 |
9 | #define MY__CP_UTF16 1200
10 | #define MY__CP_UTF16BE 1201
11 |
12 | bool ReadNamesFromListFile(CFSTR fileName, UStringVector &strings, UINT codePage = CP_OEMCP);
13 |
14 | #endif
15 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/Common/MyException.h:
--------------------------------------------------------------------------------
1 | // Common/Exception.h
2 |
3 | #ifndef __COMMON_EXCEPTION_H
4 | #define __COMMON_EXCEPTION_H
5 |
6 | #include "MyWindows.h"
7 |
8 | struct CSystemException
9 | {
10 | HRESULT ErrorCode;
11 | CSystemException(HRESULT errorCode): ErrorCode(errorCode) {}
12 | };
13 |
14 | #endif
15 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/Common/MyTypes.h:
--------------------------------------------------------------------------------
1 | // Common/MyTypes.h
2 |
3 | #ifndef __COMMON_MY_TYPES_H
4 | #define __COMMON_MY_TYPES_H
5 |
6 | #include "../../C/7zTypes.h"
7 |
8 | typedef int HRes;
9 |
10 | struct CBoolPair
11 | {
12 | bool Val;
13 | bool Def;
14 |
15 | CBoolPair(): Val(false), Def(false) {}
16 |
17 | void Init()
18 | {
19 | Val = false;
20 | Def = false;
21 | }
22 |
23 | void SetTrueTrue()
24 | {
25 | Val = true;
26 | Def = true;
27 | }
28 | };
29 |
30 | #define CLASS_NO_COPY(cls) \
31 | private: \
32 | cls(const cls &); \
33 | cls &operator=(const cls &);
34 |
35 | #endif
36 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/Common/MyUnknown.h:
--------------------------------------------------------------------------------
1 | // MyUnknown.h
2 |
3 | #ifndef __MY_UNKNOWN_H
4 | #define __MY_UNKNOWN_H
5 |
6 | #include "MyWindows.h"
7 |
8 | /*
9 | #ifdef _WIN32
10 | #include
11 | #include
12 | #else
13 | #include "MyWindows.h"
14 | #endif
15 | */
16 |
17 | #endif
18 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/Common/MyVector.cpp:
--------------------------------------------------------------------------------
1 | // Common/MyVector.cpp
2 |
3 | #include "StdAfx.h"
4 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/Common/StdAfx.h:
--------------------------------------------------------------------------------
1 | // StdAfx.h
2 |
3 | #ifndef __STDAFX_H
4 | #define __STDAFX_H
5 |
6 | #include "Common.h"
7 | #include "../../../src/LzmaAppleCommon.h"
8 |
9 | #endif
10 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/Common/TextConfig.h:
--------------------------------------------------------------------------------
1 | // Common/TextConfig.h
2 |
3 | #ifndef __COMMON_TEXT_CONFIG_H
4 | #define __COMMON_TEXT_CONFIG_H
5 |
6 | #include "MyString.h"
7 |
8 | struct CTextConfigPair
9 | {
10 | UString ID;
11 | UString String;
12 | };
13 |
14 | bool GetTextConfig(const AString &text, CObjectVector &pairs);
15 |
16 | int FindTextConfigItem(const CObjectVector &pairs, const UString &id) throw();
17 | UString GetTextConfigValue(const CObjectVector &pairs, const UString &id);
18 |
19 | #endif
20 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/Common/UTFConvert.h:
--------------------------------------------------------------------------------
1 | // Common/UTFConvert.h
2 |
3 | #ifndef __COMMON_UTF_CONVERT_H
4 | #define __COMMON_UTF_CONVERT_H
5 |
6 | #include "MyString.h"
7 |
8 | bool CheckUTF8(const char *src, bool allowReduced = false) throw();
9 | bool ConvertUTF8ToUnicode(const AString &utfString, UString &resultString);
10 | void ConvertUnicodeToUTF8(const UString &unicodeString, AString &resultString);
11 |
12 | #endif
13 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/Windows/Defs.h:
--------------------------------------------------------------------------------
1 | // Windows/Defs.h
2 |
3 | #ifndef __WINDOWS_DEFS_H
4 | #define __WINDOWS_DEFS_H
5 |
6 | #include "../Common/MyWindows.h"
7 |
8 | #ifdef _WIN32
9 | inline bool LRESULTToBool(LRESULT v) { return (v != FALSE); }
10 | inline bool BOOLToBool(BOOL v) { return (v != FALSE); }
11 | inline BOOL BoolToBOOL(bool v) { return (v ? TRUE: FALSE); }
12 | #endif
13 |
14 | inline VARIANT_BOOL BoolToVARIANT_BOOL(bool v) { return (v ? VARIANT_TRUE: VARIANT_FALSE); }
15 | inline bool VARIANT_BOOLToBool(VARIANT_BOOL v) { return (v != VARIANT_FALSE); }
16 |
17 | #endif
18 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/LzmaSDKObjC/lzma/CPP/Windows/StdAfx.h:
--------------------------------------------------------------------------------
1 | // StdAfx.h
2 |
3 | #ifndef __STDAFX_H
4 | #define __STDAFX_H
5 |
6 | #include "../Common/Common.h"
7 | #include "../../../src/LzmaAppleCommon.h"
8 |
9 | #endif
10 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/PVAppConstants.m:
--------------------------------------------------------------------------------
1 | //
2 | // PVAppConstants.m
3 | // Provenance
4 | //
5 | // Created by David Muzi on 2015-12-16.
6 | // Copyright © 2015 James Addyman. All rights reserved.
7 | //
8 |
9 | #import "PVAppConstants.h"
10 |
11 | NSInteger const PVMaxRecentsShortcutCount = 4;
12 |
13 | NSString *const PVAppGroupId = @"group.provenance-emu.provenance";
14 | NSString *const kInterfaceDidChangeNotification = @"kInterfaceDidChangeNotification";
15 |
16 | NSString *const PVGameControllerKey = @"PlayController";
17 | NSString *const PVGameMD5Key = @"md5";
18 | NSString *const PVAppURLKey = @"provenance";
19 |
20 | #if TARGET_OS_TV
21 | float const PVThumbnailMaxResolution = 400.0;
22 | #else
23 | float const PVThumbnailMaxResolution = 200.0;
24 | #endif
25 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Provenance-Prefix.pch:
--------------------------------------------------------------------------------
1 | //
2 | // Prefix header for all source files of the 'Provenance' target in the 'Provenance' project
3 | //
4 |
5 | #import
6 |
7 | #ifdef __OBJC__
8 | #import
9 | #import
10 | #import
11 | #import "PVAvailability.h"
12 | #endif
13 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Resources/shader_crt_vertex.glsl:
--------------------------------------------------------------------------------
1 | attribute vec4 vPosition;
2 | attribute vec2 vTexCoord;
3 | varying vec2 fTexCoord;
4 |
5 | void main()
6 | {
7 | gl_Position = vPosition;
8 | fTexCoord = vTexCoord;
9 | }
10 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Settings/PVAppearanceViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // PVAppearanceViewController.h
3 | // Provenance
4 | //
5 | // Created by Marcel Voß on 22.09.16.
6 | // Copyright © 2016 James Addyman. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface PVAppearanceViewController : UITableViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Provenance/Settings/PVLicensesViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // PVLicensesViewController.h
3 | // Provenance
4 | //
5 | // Created by Marcel Voß on 20.09.16.
6 | // Copyright © 2016 James Addyman. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface PVLicensesViewController : UIViewController
12 |
13 |
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/Resources/virtual_logo.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/VirtualBoyVR-iOS/Resources/virtual_logo.ttf
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/ViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.swift
3 | // VirtualBoyVR-iOS
4 | //
5 | // Created by Tom Kidd on 8/27/18.
6 | // Copyright © 2018 Tom Kidd. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class ViewController: UIViewController {
12 |
13 | override func viewDidLoad() {
14 | super.viewDidLoad()
15 | // Do any additional setup after loading the view, typically from a nib.
16 | }
17 |
18 | override func didReceiveMemoryWarning() {
19 | super.didReceiveMemoryWarning()
20 | // Dispose of any resources that can be recreated.
21 | }
22 |
23 |
24 | }
25 |
26 |
--------------------------------------------------------------------------------
/VirtualBoyVR-iOS/bridging.h:
--------------------------------------------------------------------------------
1 | //
2 | // Use this file to import your target's public headers that you would like to expose to Swift.
3 | //
4 |
5 | //#include "PVEmulatorCore.h"
6 | //#include "OEGameAudio.h"
7 | #include "PVControllerViewController.h"
8 | #include "PVGLViewController.h"
9 | #include "PVEmulatorViewController.h"
10 | #include "PVControllerManager.h"
11 | #include "PVGame.h"
12 | #include "PVEmulatorConfiguration.h"
13 | #include "PVGCVRViewController.h"
14 |
--------------------------------------------------------------------------------
/folders.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/folders.png
--------------------------------------------------------------------------------
/vbwl.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tomkidd/VirtualBoyVR-iOS/65ef0d8e74cf304235dbbcad381a7b0a993c94a9/vbwl.jpg
--------------------------------------------------------------------------------