Commit Graph

636 Commits

Author SHA1 Message Date
feos 4c3b59c39c puae: fix something 2024-11-08 20:28:53 +03:00
feos a2d401d670 puae: wip 2024-11-07 23:25:50 +03:00
feos 869bef4989 puae: controller config wip 2024-11-06 20:56:22 +03:00
CasualPokePlayer 76aae7afd7 fix buggy audio when closing lid 2024-11-01 15:22:57 -07:00
CasualPokePlayer 8f642d6b8f expose DSi NWRAM 2024-10-26 17:32:58 -07:00
feos 90287b3396 puae: support region changes
by user at the start and by the game on the fly
todo: ntsc par (pal par is 1:1)
2024-10-25 01:17:52 +03:00
CasualPokePlayer 84130285aa fix host mouse to touch input weirdness with melonDS savestates 2024-10-19 00:51:14 -07:00
Morilli 542f917b1f fix a new waterboxhost warning 2024-10-18 23:54:18 +02:00
CasualPokePlayer 1f261b2c33 Fix crashes with GPU compute renderer w/ wbx states 2024-10-17 21:44:14 -07:00
feos 809d43dd44 fix #4069
gpgx: swap A and D regs in gpgx_getregs()

actually limit pc to 24 bits, not just disasm address
2024-10-07 19:34:48 +03:00
feos 737e9ca73b puae: writable memory 2024-10-07 19:26:19 +03:00
CasualPokePlayer 6c2661fdac Revert "Add prints to gpgx_swap_disc" and "Add prints to cdStreamOpen"
This reverts commit 9e0cfb117b and 5c3ae64014.
2024-10-06 14:15:26 -07:00
CasualPokePlayer 9e0cfb117b Add prints to gpgx_swap_disc 2024-10-06 13:38:57 -07:00
CasualPokePlayer 5c3ae64014 Add prints to cdStreamOpen 2024-10-06 13:08:59 -07:00
CasualPokePlayer 5ad12db814 fix crash with sa1 ram exposure 2024-09-30 23:01:09 -07:00
CasualPokePlayer f9d4737104 Expose SA1 IRAM in old BSNES 2024-09-30 22:16:26 -07:00
CasualPokePlayer 444d8d5d10 [Snes9x] Increase CARTRAM to 512KiB (the 128KiB limit was a product of the old snes9x port, newer snes9x has 512KiB as the new limit). Expose SA1 IRAM. Let ROM be writable in the memory domain (no reason not to) 2024-09-30 21:07:19 -07:00
CasualPokePlayer 9ce41a2a88 only update custom backdrop palette if in mode 5
maybe affects https://github.com/TASEmulators/Genesis-Plus-GX/issues/5 ?
2024-09-30 13:32:12 -07:00
Morilli 117b35f037 update bsnes from upstream source
includes some reverts to unnecessary source modifications
2024-09-24 15:57:17 +02:00
Morilli 1231d44afc Update llvm to latest point release 2024-09-24 15:57:14 +02:00
CasualPokePlayer c471a72e64 Fix save type for Puzzler World USA 2024-09-18 01:59:12 -07:00
Sergio Martin bf8758e61c
Adding Stella as A2600 emulation core (#3911)
* Adding initial version of the core

* Adding base files

* Trying to load waterbox now

* Adding stella

* Adding bk class

* Compiling bk interface to stella core

* Now compiling against Stella + SDL2-based BK backend

* Progress

* More progress

* Frame advancing (no render)

* Calling video update but crashing on zero div

* Now rendering to screen with correct palette

* Now rendering appropriately and with correct palette based on region

* Now reading controls

* Trying to capture audio

* Now adding audio

* Now polling inputs

* Now polling inputs

* Now reporting memory regions

* Added memory regions

* Removing debug prints

* Fixing indent

* Adding stella core

* Updating readme and make all cores

* Recovering ending comma

* Using heap alloc for sound buffer

* Removing unnecessary files

* Update src/BizHawk.Emulation.Cores/Consoles/Atari/Stella/Stella.IMemoryDomains.cs

Co-authored-by: James Groom <OSSYoshiRulz+GitHub@gmail.com>

* Update src/BizHawk.Emulation.Cores/Consoles/Atari/Stella/Stella.IMemoryDomains.cs

Co-authored-by: James Groom <OSSYoshiRulz+GitHub@gmail.com>

* Fix

* Restoring vscode

* Removing warning

* Update waterbox readme

* Fix Stella's `[Core]` attr

* Increased sound buffer size to 1Mb, as some games need more than 4K

---------

Co-authored-by: James Groom <OSSYoshiRulz+GitHub@gmail.com>
Co-authored-by: Morilli <35152647+Morilli@users.noreply.github.com>
Co-authored-by: YoshiRulz <OSSYoshiRulz+git@gmail.com>
2024-09-11 08:18:54 +03:00
Morilli 0f74595cdb Update gpgx 2024-09-08 10:54:48 +02:00
Morilli c80416245e specify nightly toolchain in rust-toolchain.toml
not touching whatever the fuck build-release.bat is
2024-09-03 07:37:18 +02:00
Morilli 959484ee13 fix a waterboxhost compile warning 2024-09-03 07:36:29 +02:00
James Groom 3a8b3913bf
Fix Uzebox framerate (squashed PR #3975)
These numbers are derived from the 2010 whitepaper:
NTSC's 4*(315/88 MHz) is doubled to give the master clock rate, which is
then divided by 1820 cycles per line and 262 lines per (progressive)
frame.

---------

Co-authored-by: Morilli <35152647+Morilli@users.noreply.github.com>
2024-07-24 07:31:34 +10:00
CasualPokePlayer 4ad33b3d06 Rebuild waterboxhost on Debian 10
Also fix the build scripts to explicitly use nightly (which waterboxhost does need currently)
2024-06-17 21:35:57 -07:00
CasualPokePlayer 6e5de797d2 Build rust projects with x86_64-win7-windows-msvc target 2024-06-17 19:41:52 -07:00
CasualPokePlayer f309dbc316 bounds check reading spu output 2024-06-16 23:32:14 -07:00
Morilli 39d3c28bc3 Update waterboxhost dependencies
- closes #3279
2024-06-15 16:16:13 +02:00
feos d3c560b0df uae: eject when inserting
less repeated magic
2024-06-14 10:58:42 +03:00
feos a01a7bb61e uae: swapper 2024-06-13 23:13:42 +03:00
Morilli eab2cdf606 add puae to CI + waterbox docs 2024-06-12 00:57:56 +02:00
feos 472f881f24
PUAE core (#3941)
* puae wbx submodule
export symbols
load core
firmware and command line args to core
input
settings
2024-06-11 16:02:38 +03:00
CasualPokePlayer 0a3ab1a055 Fix read/write callbacks possibly being called recursively
Also fix possible unsafe sys bus reads
2024-06-07 14:35:45 -07:00
CasualPokePlayer 448e9fb9ec fix melonDS fw generation code 2024-06-07 13:48:19 -07:00
CasualPokePlayer 11e68a2271 Add method to query relative mouse state for TIC80 2024-06-06 17:24:26 -07:00
CasualPokePlayer 43a621a695 Handle nand/firmware a bit bitter; add sound interpolation options; add hybrid screen option 2024-06-06 13:50:29 -07:00
CasualPokePlayer c21172ae03 Fix DownscaleFramebuffer not being generated (happened to work fine in melonDS upstream, but not BizHawk) 2024-06-06 00:39:31 -07:00
CasualPokePlayer ea4e96b08c fix perms on these files 2024-06-05 23:37:53 -07:00
CasualPokePlayer b7265e2f39 Update melonDS 2024-06-05 23:37:53 -07:00
CasualPokePlayer 7164763e2f Build melonDS with fwrapv, fixes weird rendering issues 2024-06-02 12:59:18 -07:00
CasualPokePlayer 43a38a05ca Workaround driver bugs(?) with D3D11 GL interop 2024-06-01 18:30:17 -07:00
CasualPokePlayer 2b986c17d4 remove some unneeded files
thought i removed these in previous commits, apparently not
2024-05-27 22:04:44 -07:00
CasualPokePlayer 0f603840e3 fix weird permissions from last commit 2024-05-27 22:00:48 -07:00
CasualPokePlayer 72f1495b1e Merge ares v134 2024-05-27 21:52:07 -07:00
CasualPokePlayer 0c6df6e79b Don't clamp touch/screen coord transformations 2024-05-27 13:33:46 -07:00
feos c65a11eb2b fix #3917
[genesisplusgx] "VDP mode" option (for eliminate region lockups / megakey behavior) #3917
2024-05-27 19:55:45 +03:00
Morilli 0f20bff766 Update and reword waterbox readme 2024-05-27 09:25:19 +02:00
Morilli f530773eb8 actually remove submodule
...
2024-05-27 09:07:54 +02:00
Morilli c739a04aa1 remove llvm-project submodule
This does not remove the llvm dependency for waterbox, just the submodule. The script pulling and checking out llvm kind of conflicts with the submodule, and having it be a submodule is not necessary here anyways.
2024-05-27 06:39:21 +02:00
feos 7b647240e8
fix #3923 (#3924)
Use fastest compression when compiling Waterbox cores in debug config
2024-05-19 15:44:43 +03:00
Morilli 3dafbe0f42 fix gpgx per-line sprite limit setting not working
fixes #3918
2024-05-15 02:42:44 +02:00
CasualPokePlayer 7d9483ea0f make sure to byteswap genesis bootrom (gpgx expects us to do this too) 2024-04-30 20:56:23 -07:00
CasualPokePlayer f4473cc4b9 add back gpgx_write_m68k_bus (got deleted accidentally) 2024-04-30 20:28:27 -07:00
CasualPokePlayer 1b742cf356 Fixup GPGX memory domains / getregister when not emulating a Genesis; fix bug using system_hw when not yet set; add TMSS bootrom support (closes #2230) 2024-04-30 20:07:09 -07:00
CasualPokePlayer b37bc7b5ff Fix #3905 2024-04-30 12:22:48 -07:00
Morilli af25174906 Fix some waterboxhost warnings
🤞that this is correct
2024-04-30 19:28:33 +02:00
CasualPokePlayer 66e38506f6 revert loadrom changes in gpgx 2024-04-30 00:48:16 -07:00
CasualPokePlayer 3c7898dd5a Fix #3906 2024-04-30 00:28:31 -07:00
Sergio Martin 9dcb84336e
Wiring up GPGX as core for SMS, GG, and SG (#3902)
* Adding GPGX as core for SMS and GG
* Enabling SMS FM selection
* Allow selecting PicoDrive as the preferred core for MD/Genesis

---------

Co-authored-by: James Groom <OSSYoshiRulz+GitHub@gmail.com>
Co-authored-by: feos <feykomylce@gmail.com>
2024-04-28 20:10:44 +03:00
feos e5a2d9ee41 update gpgx for even smaller port diff
include sms/gg stuff
2024-04-28 14:36:23 +03:00
CasualPokePlayer eeebd39a11 really fix gpgx cd audio this time 2024-04-27 05:34:45 -07:00
YoshiRulz 72f345946e Bump version in Nix `mkShell` for `flatc` 2024-04-27 22:32:02 +10:00
YoshiRulz f2b3486cc9 Restore Nix `mkShell` for `flatc`
partially reverts 06ceec639
2024-04-27 22:18:50 +10:00
CasualPokePlayer 212878397e fix gpgx audio harder 2024-04-27 03:21:51 -07:00
CasualPokePlayer 095d160034 try fixing gpgx cd audio 2024-04-27 03:12:27 -07:00
CasualPokePlayer fb3578cfb4 commit updated flatc.exe 2024-04-27 03:12:25 -07:00
CasualPokePlayer 06ceec6390 Fixup nyma flatbuffer comms, update flatbuffer 2024-04-27 02:52:14 -07:00
CasualPokePlayer cb3c7610d5 Update to mednafen 1.32.1 2024-04-26 21:56:39 -07:00
CasualPokePlayer 85f83121ec cleanup gpgx cinterface code 2024-04-26 16:41:06 -07:00
CasualPokePlayer fb438863f5 Fix crash when saving CD ebram 2024-04-26 16:18:34 -07:00
CasualPokePlayer 80f209ed0d Remove CD caching code
It was a sort of novel speed boost idea, but it doesn't work too well due to wbx heap limitations and the drive light still needing a callback anyways
2024-04-26 15:41:33 -07:00
CasualPokePlayer f9b8a775b0 Fix drive light not appearing as much as it should 2024-04-26 13:50:37 -07:00
CasualPokePlayer cb41b6512c Rebuild GPGX 2024-04-26 13:12:45 -07:00
CasualPokePlayer 3e3d8fbec3 improve CD stream init 2024-04-26 12:43:22 -07:00
CasualPokePlayer ef72cbff43 Do changes to reduce diff against upstream GPGX 2024-04-26 11:58:02 -07:00
Morilli 6f98be104a Update waterbox readme 2024-04-22 17:28:02 +02:00
Sergio Martin 5cb1fe0042
Update Genesis Plus GX Core (#3889)
* Added deep freeze functionality
* Adding support for selecting sound chip
* Adding LUA interface to the deepfreeze list
* Implemented sprite always on top in the VDP
* Found and fixed the issue that manifested itself in a reset Gargoyles and an outright fail in Ristar. The issue was the use of a union type containing overlapping cd and cartdrige data. Using struct now to keep them separated
* Fix PC reg in tracelogs
---------
Co-authored-by: feos <feykomylce@gmail.com>
Co-authored-by: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com>
2024-04-21 18:34:54 +03:00
Morilli afd220c590 Add runtimes path to llvm dirs
something something core.sparseCheckoutCone and git versions
2024-04-15 06:17:06 +02:00
CasualPokePlayer 8490a6a8fa Bump libcxx to 18.1.3 2024-04-14 19:01:34 -07:00
CasualPokePlayer 880d8d9f07 rebuild bsnes, update link script / emulibc.h to work with clang-18 2024-04-14 12:57:18 -07:00
Roy Merkel 18a1fe4afd
Fixed bsnes build (#3891)
bsnes build broke when rewind.c was removed because it defined the GB_rewind_reset, which was being linked in despite being no longer present. -DGB_DISABLE_REWIND turns off this link.
2024-04-14 15:48:42 +02:00
Morilli e6fdd18858 Update bsnes makefile with sameboy changes 2024-04-13 03:01:21 +02:00
Morilli 972bc8a682 bsnes: Pull upstream fixes
Contains
- 3ca0504e67e89d37e24fce87183332f7ec577867: Extend the Super Famicom LOROM-RAM#A memory map.
- dab534b6584e4debef2c9572e6b6588a604d79a9: wdc65816: fix PLB wrapping in emulation mode
- ccbe394e7d4bc5f5596544813d887da161af3ca6: wdc65816: emulate (direct,X) wraparound bug in emulation mode
- 79770f6207a5d244652644c5e2d9f4328bd974ac: implementation of SA-1 BW-RAM protection
2024-03-01 15:56:28 +01:00
CasualPokePlayer 0cc61c3744 add method for setting the frontend time before game load... this will be needed for saturnus, as it may query time to set the initial rtc 2024-02-09 18:35:14 -08:00
CasualPokePlayer 2ce3bbffa5 set various saturn memory domains to be swapped (supercedes https://github.com/TASEmulators/BizHawk/pull/3666)
also add in saveram apis, mostly due to needing an extra step on saveram load to properly handle rtc
2024-02-08 23:18:59 -08:00
CasualPokePlayer 572d989a94 backport e9e56c56b0 and c478c6026a
fixes #3850
2024-01-28 06:13:09 -08:00
CasualPokePlayer 7d2ff866d8 add support for direct booting dsi titles (including dsiware) 2024-01-16 11:04:38 -08:00
CasualPokePlayer 55b3319ee0 minor melonds fixes 2024-01-10 08:13:20 -08:00
Morilli 83e784ecec Actually provide proper OAM memory domain in bsnes 2023-12-10 00:48:50 +01:00
CasualPokePlayer c2e8bda5e2 fix loading gba saves re-allocating buffer (thus invalidating its memory domain) 2023-12-07 22:52:48 -08:00
CasualPokePlayer 7b4bd8cdc3 make GBA roms work under freebios 2023-12-06 23:19:53 -08:00
CasualPokePlayer 1f58596d3c misc fixes/cleanups in ds firmware handling 2023-11-05 17:00:20 -08:00
CasualPokePlayer 6184182f34 better handle DSi country code and fix extended languages 2023-11-04 05:25:33 -07:00
CasualPokePlayer e98e31e5c7 deduplicate nds/dsi bios loading code 2023-11-03 07:34:07 -07:00
CasualPokePlayer 169137c204 throw an error if the loaded nand region isn't supported by the loaded dsiware title
this normally wouldn't be needed but people seem to think it's a good idea to shove the same nand file in every region slot in the firmware config
2023-11-03 05:43:10 -07:00
CasualPokePlayer 53c8deae29 add in touch screen input smoothing, fixes #3397 2023-11-02 13:53:27 -07:00
CasualPokePlayer a046ea901b fix username and message not being correctly set for dsi nand 2023-11-02 11:59:05 -07:00
CasualPokePlayer 415fb95861 fix dsi nand writes failing 2023-11-02 11:50:41 -07:00