Commit Graph

3209 Commits

Author SHA1 Message Date
CasualPokePlayer 7c50d9285f update plugin description with angrylion in mind, bring back RSP plugin options (although only GLideN64 can actually use either), fix tabbing issue in controller designer 2022-03-18 15:35:38 -07:00
CasualPokePlayer 107c7b7034
make sure angrylion plugin settings are included in sync settings clone 2022-03-17 09:57:02 -07:00
CasualPokePlayer 5997f81659 give proper description for melon's Threaded 3D Rendering and remove if true's 2022-03-16 19:29:29 -07:00
CasualPokePlayer 7150a97e07 get render threading working in melon
Squashed commit of the following:

commit 6c54b59f5f8f8bbf8698eebbc2a7e39079b0e726
Author: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com>
Date:   Wed Mar 16 19:19:12 2022 -0700

    update submodule

commit 2c65d4375b64d8e729ebc0d35fd34865627bc494
Author: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com>
Date:   Wed Mar 16 19:14:36 2022 -0700

    frontend stuff

commit 4566edcc623061beb6e3a7b2ead5571b42abdf3e
Author: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com>
Date:   Wed Mar 16 18:10:45 2022 -0700

    probably hacky bullshit

commit 1fb9427c56a8d1af60378163cc2cafe6b36149c9
Author: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com>
Date:   Wed Mar 16 00:59:58 2022 -0700

    more mt testing
2022-03-16 19:19:36 -07:00
CasualPokePlayer 57c453ea68 Add angrylion for another video plugin, bring back the cxd4 rsp plugin (angrylion needs LLE), wire up its single setting, remove preformance ares libraries (frontend stuff was already removed) 2022-03-14 04:05:55 -07:00
CasualPokePlayer ccac4d1000 Squashed commit of the following:
commit 15611308c2c6ed5e4f46bd840ade8700e3768527
Author: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com>
Date:   Fri Mar 11 19:29:57 2022 -0800

    derp

commit 3c0546cdd8f08004c1ad82bdb72910498dddac91
Author: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com>
Date:   Fri Mar 11 19:28:06 2022 -0800

    bob

commit 8e24ef7adc9ccee5405f8618bb8ddb165ff9cf8f
Author: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com>
Date:   Fri Mar 11 19:10:45 2022 -0800

    removing perf core here now

commit 66225df3b175544d28d91c6ede53861c74e71239
Author: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com>
Date:   Fri Mar 11 18:51:14 2022 -0800

    delete perf core, cleanups, get submodule pushed

commit 06b627bd949f15aac4749a33762ec5cb47e5aea9
Author: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com>
Date:   Fri Mar 11 17:46:36 2022 -0800

    oh fucking please don't tell me this was it

commit 0bd0625d172a74a82e30b89e2f10702394e74491
Author: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com>
Date:   Fri Mar 11 17:21:22 2022 -0800

    bleh

commit 20c1497fd1fb25eb6ac6c44fe2490b71009fc9e0
Author: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com>
Date:   Fri Mar 11 16:36:02 2022 -0800

    bleh

commit 4ccd7982d97f8c4c85c5b18801bb9784df9772e8
Author: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com>
Date:   Fri Mar 11 15:55:43 2022 -0800

    testing

commit ab9e14bc7bb3e533f903a003b80f8e6a006cd819
Author: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com>
Date:   Fri Mar 11 15:44:24 2022 -0800

    bleh

commit 6d2de266825ac23df25466fdd6154e60ec6132de
Author: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com>
Date:   Fri Mar 11 00:08:45 2022 -0800

    bleh

commit f55c3e3277b979a8535667312fdb988a1f70bc01
Author: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com>
Date:   Thu Mar 10 23:54:49 2022 -0800

    oh derp

commit 16e3c87d7ab06947da208feb88b3f3fd96874621
Author: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com>
Date:   Thu Mar 10 23:43:27 2022 -0800

    bleh

commit 1630845d46af7dc048b8c5dcfc7b0359d7f3133a
Author: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com>
Date:   Thu Mar 10 23:36:14 2022 -0800

    gross hack

commit ff1ef0ac6da559e0ce0e7cad10583b70a63c3551
Author: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com>
Date:   Thu Mar 10 23:10:54 2022 -0800

    angrylion integration into ares.
2022-03-11 19:36:56 -08:00
YoshiRulz f8a688d47f
Fix case-sensitivity of `Save-`/`OpenFileDialog` under Mono
also improved caching of gen'd strings, and marked lambdas as `static`
2022-03-10 14:29:25 +10:00
YoshiRulz 7bd74f1004
Enable SA1133 and fix noncompliance
multiple attributes applied in one expression
2022-03-08 15:52:40 +10:00
YoshiRulz c1a7556d7f
Enable SA1129 and fix noncompliance (except in Cores)
calling implicit default struct ctor
2022-03-08 15:52:40 +10:00
YoshiRulz 8c4ceccab9
Enable CA1825 and fix noncompliance (except in Cores)
`new int[0]` and similar
2022-03-08 15:52:40 +10:00
YoshiRulz 33a487452d
Enable CA1806 and fix noncompliance (except in Cores)
return value implicitly discarded
2022-03-08 15:52:38 +10:00
YoshiRulz d8ce0e6177
Enable CA1064 and fix noncompliance
Exception classes should be public
2022-03-08 15:52:38 +10:00
YoshiRulz 191f1f3020
Enable CA1044 and fix noncompliance
getters with lower visibility than setters, or set-only props
2022-03-08 15:52:37 +10:00
YoshiRulz dd455580d6
Enable some more Analyzer rules 2022-03-08 15:52:29 +10:00
CasualPokePlayer 6e4a5a96af [melonDS] reset caches after load state 2022-03-06 02:04:52 -08:00
CasualPokePlayer 46c2d6faf1
Melon Cleanups & Updates & Prep For Multithread Rendering Support & Prep For DSi NAND bs (#3174)
* prep for handling multi-threaded renderer in melon, along with some other cleanups

* initial core side support for mt rendering, probably crashes?

* oops

* ok use ref not in

* testing

* poor man's semaphore

* clean this up, hopefully fix a deadlock?

* update submodule

* reduce submodule diff

* cleanup

* hook up thread wait cb

* maybe make shutdown not hardlock?

* oops

* oops

* testing

* testing

* a

* lol

* fuck

* a

* oops

* a

* a

* a

* a

* a

* a

* a

* a

* a

* if false this

* a

* a

* a

* bleh

* a

* update to upstream

* oh right lua
2022-03-06 00:43:30 -08:00
zeromus 9411e659bb neshawk - WritePrg really needs to be masking the address... there's no way it's correct, otherwise. 2022-03-06 01:38:08 -05:00
zeromus fcce7b64d6 neshawk - relax restriction on vrc1 PRG registers, so they can be larger than the original vrc1 chip allows (for rom-expanding hacks) 2022-03-06 01:35:23 -05:00
zeromus a5fb4caad0 change languageversion back to 9.0 so we can use vs2019 and fix one related build error 2022-03-06 01:15:46 -05:00
CasualPokePlayer 114124c82e
BSNES Region Override (#3169)
* region override for bsnes

* hook up SnesInitData right. still needs region override sync setting

* settings stuff, also need to make sure sameboy is using the right region for sgb

* and build

* clearer struct definition; move struct to header file

Co-authored-by: Morilli <35152647+Morilli@users.noreply.github.com>
2022-03-04 14:21:53 +01:00
YoshiRulz 6cb44e0e8d
Remove redundant `ZXSpectrumPokeMemory` tool 2022-03-03 14:35:41 +10:00
CasualPokePlayer 0ff69c560f
Fix SXROM Detection (#3170)
* fix #3168?

* revert iNES 2.0 parsing changes (and revert 4ff7745), add special iNES 2.0 case for SXROM

* oh right subboard crap
2022-03-01 09:18:49 -08:00
YoshiRulz b82ac3e2de
Merge `IGameInfoApi` into `IEmulationApi` 2022-03-01 11:26:01 +10:00
YoshiRulz e8b3f5ffef
Enable NRTs in `EmulationApi` 2022-03-01 11:26:01 +10:00
YoshiRulz 64505fd23e
Remove useless yield methods from `IEmulationApi` 2022-03-01 11:26:01 +10:00
YoshiRulz 5f3199acf3
Make all collections readonly in API surface 2022-03-01 11:25:51 +10:00
YoshiRulz 8b07f9ecde
Compare firmware customisations to movie header (partial fix for #2498) 2022-02-26 13:53:05 +10:00
YoshiRulz 0410a4f291
Allow writing to user gamedb in NixHawk
not that any cores have a working implementation yet, see #733
2022-02-24 16:38:16 +10:00
YoshiRulz d466c2694f
s/Win/Super/ in Input, preventing its use as a modifier key
see #3161
2022-02-23 07:20:58 +10:00
alyosha-tas 7b857e7acf SMS: only update tone on second byte write, filter out highest frequency, fixes #3160 2022-02-22 10:41:36 -05:00
YoshiRulz 1c2376e2f7
Document that hashes (`SHA1` header) aren't always SHA1 2022-02-22 12:21:21 +10:00
YoshiRulz c6bee8bab6
Revert 03cdb4cdf and ee220f455 re: checksums in movie header 2022-02-22 12:21:17 +10:00
CasualPokePlayer ee220f455c account for different checksum hashes in header in PlayMovie, re: 03cdb4cdf3 2022-02-21 16:47:10 -08:00
YoshiRulz 5353aaf688
Remove ReSharper/Rider per-project settings overrides 2022-02-22 10:27:28 +10:00
CasualPokePlayer 03cdb4cdf3 distinguish between SHA1/MD5/CRC32 in header hash 2022-02-20 06:14:56 -08:00
YoshiRulz 296145ba2d
Clean up dummy/zero checksums
see #3159
2022-02-20 23:37:45 +10:00
CasualPokePlayer 9092a38a82 give more secure hashes higher priority than less secure ones 2022-02-20 05:05:58 -08:00
YoshiRulz d829f19bca
Revert "Revert "Allow frontend to pass arguments to Lua callback functions""
This reverts commit 49423d59a1.
2022-02-20 10:01:17 +10:00
YoshiRulz a733f8532b
Bump version 2022-02-20 10:01:16 +10:00
CasualPokePlayer ba51aa90a4 add in comment i forgot to save 2022-02-18 00:19:24 -08:00
CasualPokePlayer a91b861a4d fix #3095 2022-02-18 00:18:15 -08:00
CasualPokePlayer 278ba086a3 fix vbm import with sameboy 2022-02-17 22:45:41 -08:00
CasualPokePlayer 1c4c390e8f expand sega cd bios list, based on no-intro and TOSEC info 2022-02-17 22:29:51 -08:00
CasualPokePlayer 7afb24b5af switch sameboy to the bizinvoker 2022-02-17 01:06:48 -08:00
CasualPokePlayer 0a9200fa59
Sameboy blip buf (#3154)
* blip buf experiment

* do this without needing to modify core

* Delete blip_buf.os

* dont bother keeping a sbuf in biz_t

* darn space/tabbing
2022-02-17 00:30:38 -08:00
CasualPokePlayer 3139277475 allow ares performance to record movies (with a big warning), fix states (oops), fix #3151 2022-02-16 17:08:08 -08:00
YoshiRulz 455f7b6ce9
Flag Sega CD USA BIOS rev. 9303 as "unacceptable" (resolves #2913) 2022-02-16 22:12:55 +10:00
CasualPokePlayer 63078b55e1 put dummy implementations for haptics in bk2 controller, fixes #3146 2022-02-16 03:50:35 -08:00
CasualPokePlayer 655ed7949e
Ares64 Performance Core (#3149)
* prep for performance ares64 core, needs work unmanaged side

* get this going

* rebuild this

* apparently build didnt get cp'd? need to investigate

* fix build, other shit

* suppress these warnings

* tweaks and builds

* apparently bizinvoker doesnt like having LibAres64 class shared between non-waterbox and waterboxed, so split it.
also states for performance core

* builds

* fix this option, describe supersampling properly

* penguin64
2022-02-16 02:15:27 -08:00
CasualPokePlayer 7db8472092
Handy tweaks (squashed PR #3140)
resolves #2425. commits:
- build handy-linux with fvisibility=internal, make export have default visiblity
- use bizinvoker for handy
- move this to the right spot
- correct name here
2022-02-14 14:38:31 +10:00
YoshiRulz 1f8d6e0022
Refactor `IInputApi`, replacing 1 method, adding 1, plus doc comments 2022-02-14 01:51:42 +10:00
YoshiRulz 1655c191e0
Bump LangVersion, move key name overrides to separate file 2022-02-14 01:51:42 +10:00
YoshiRulz 49423d59a1
Revert "Allow frontend to pass arguments to Lua callback functions"
This reverts commit 8385337e71.
2022-02-14 01:51:34 +10:00
CasualPokePlayer 5bafc9a062 marked bsnesv115 as released 2022-02-13 06:15:36 -08:00
CasualPokePlayer 7b60c7cafb Reorder this class to avoid c# reordering it itself when it feels like it 2022-02-13 03:51:20 -08:00
CasualPokePlayer c3e6a08b42 apply ares64 changes to frontend 2022-02-13 02:47:21 -08:00
CasualPokePlayer 682111f377
Ares64 (#3125)
* ares64

* build, currently cherry picking c9af34027b to build this

* some work

* commit the frontend work. crashes on some NR_SCHED_GETAFFINITY syscall

* delete this

* fix oopsie, add debugging shit

* getting closer...

* what the fuck is this mame shit doing???

* fuck

* it's one of these isn't it

* fucking hell

* at least it's not crashing on init now

* bleh

* let's see if this works?

* audio i think?

* oh right, need to disable threading here since that's not wbx supported

* testing

* testing

* testing...

* testing

* wtf?

* lol

* it's doing something now i guess?

* let's try this

* maybe this will catch this bullshit?

* lol

* the fuck?

* what

* meh

* bleh

* let's have some fun

* bleh

* bleh

* bleh

* maybe this works better

* let's try this?

* meh

* this probably will break

* lol

* meh

* a

* a

* a

* a

* a

* meh

* a

* a

* b

* alloc invisible these video buffers

* a

* actually build

* bleh

* well uhhhhhhhh let's see if this blows up for fun i guess?

* bleh

* yeah that when as well as expected

* push this

* bleh

* bleh

* bleh

* a

* dirty hackery

* fuck space/tabs

* hook up input

* hook up input frontend side

* reset/power

* going to have to commit to dumb workaround here i guess?

* fuck this bullshit crash

* cic stuff

* oops

* testing

* hook up save detection

* memory domains and saveram shit

* oops

* someday i'll get macros right

* let's get this kinda reproducable

* build

* bleh

* frontend shit

* bleh

* testing

* a

* fucking

* a

* a

* a

* workaround C# bullshit marshalling maybe?

* revert that, let's hack it on c# side instead

* disgusting hack

* fuck c#

* fix oopsies for eeprom/flash and fuck c#

* apparently explicit layout just dont work, thanks c#!

* correct orientation

* actually fix orientation

* testing

* bleh

* b

* a

* fix crash here

* rumble getter

* hook up rumble with frontend, cache readonly controller settings on core init

* remove old experiment

* make clean make install
2022-02-11 18:22:16 -08:00
YoshiRulz 86e939b6d4
Fix capitalisation 2022-02-10 02:15:22 +10:00
YoshiRulz 862b005218
Revert "Get rid of unnecessary CRC32Checksum.cs"
This reverts commit 558adfa325.
2022-02-10 02:15:22 +10:00
YoshiRulz 71e84537e6
Also change branch numbers in piano roll
see #3112, fixes 965cbe615
2022-02-10 02:15:17 +10:00
YoshiRulz 965cbe615c
Number TAStudio branches from 1 (resolves #3112) 2022-02-09 19:15:54 +10:00
YoshiRulz e7fd93b41a
Put save slot 0 after 9 everywhere
see #3112
2022-02-09 19:15:50 +10:00
YoshiRulz d997ad9871
Optimise `CWDHacks.Get` 2022-02-09 14:48:35 +10:00
feos da567272f3 mame: don't die in mame warnings 2022-02-09 00:11:03 +03:00
Meerkov 1ec1064289
Interleave output and error async in Discohawk (#3133)
Fixes deadlocks, and removes confusing custom parser.
2022-02-08 15:06:41 -05:00
Morilli a858282a8d Fix #1513 hopefully properly 2022-02-08 19:46:27 +01:00
alyosha-tas a3c9b50930 RAMSearch: fix #3117 2022-02-07 09:46:06 -05:00
alyosha-tas ef9c1f7c24 O2: Fix blobbers and Popeye 2022-02-06 20:56:30 -05:00
YoshiRulz 267f48eebd
Add optional `duration` param to `IGuiApi.AddMessage` 2022-02-07 11:52:36 +10:00
YoshiRulz f4b4c60684
Remove gamedb entry for empty (length 0) rom 2022-02-05 21:04:52 +10:00
YoshiRulz 5424cd3123
Warn when binding an archive member whose length is 0 2022-02-05 21:04:48 +10:00
YoshiRulz 55a60ceda7
Fix TI83Keypad being cut off under Mono 2022-02-05 20:07:00 +10:00
YoshiRulz af78507bc7
Remove redundant `Config.Ti83AutoloadKeyPad` 2022-02-05 20:07:00 +10:00
YoshiRulz cefd370643
Remove vestigial MenuItem from TI83KeyPad 2022-02-05 20:06:55 +10:00
SuuperW 7a3b33fa0d Fix #2965, but for axis painting. 2022-02-04 14:51:40 -06:00
SuuperW bc0579dd0e TAStudio: Update self after loading a state. This fixes two bugs that were most evident when loading the state for frame 0:
-The UI was not updated.
-TasSession.UpdateValues was not called.  So saving the movie and then re-loading it would result in the previous frame being loaded/seeked to.

This commit addresses the regression mentioned in commit 319455c.
2022-02-04 14:50:19 -06:00
YoshiRulz 5012ba0f09
Use consistent whitespace/wrapping in Lua libs 2022-02-04 20:34:33 +10:00
YoshiRulz e621b878b8
Use `int?` in `IJoypadApi.SetAnalog` to match `Set` 2022-02-04 20:34:28 +10:00
YoshiRulz d3e439982b
Add missing file existence check in `forms.drawIcon` 2022-02-04 20:34:28 +10:00
YoshiRulz 1dbc40e386
Accept string not object for `LuaLibraryBase.Log` 2022-02-04 20:34:27 +10:00
YoshiRulz 45f64f62de
Fix this null warning in `GuiLuaLibrary` 2022-02-04 20:34:20 +10:00
CasualPokePlayer 7259a6413e hook up melon mem cbs to frontend 2022-02-03 19:06:56 -08:00
CasualPokePlayer 0edf95948f use BizInvoker for Emu83 2022-02-03 00:59:49 -08:00
CasualPokePlayer 9a8be9d727 ICycleTiming for PSX (Nymashock), actually use ICycleTiming for bk2s, general cleanup, retire VBlankCount in favor of ICycleTiming, make SubNES/GBHawk use actual lag frames instead of lag is vblank 2022-02-02 22:52:09 -08:00
CasualPokePlayer 02e9fea0c5 make screen actually resize when changing screen orientation/rotation/gap 2022-02-02 20:02:16 -08:00
CasualPokePlayer 2c86c07016 dont set autoboot bit in language if in DSi mode 2022-02-02 18:24:26 -08:00
CasualPokePlayer 4c6d339bee Revert "properly format this string"
This reverts commit 1e8552148e.
2022-02-02 17:01:13 -08:00
CasualPokePlayer 1e8552148e properly format this string 2022-02-02 16:59:26 -08:00
CasualPokePlayer abb6bdf185 properly detect DSiWare instead of using hacky sync setting 2022-02-02 16:58:32 -08:00
CasualPokePlayer f2047642eb fix oopsie in last commit 2022-02-02 15:45:52 -08:00
CasualPokePlayer 625a77cc14 clean DSi handling up a bit, add entries in movie header to indicate DSi/DSiWare 2022-02-02 15:42:02 -08:00
YoshiRulz cff2b04dcc
Fix `ObjectDisposedException` when triggering single-instance passthru 2022-02-02 22:47:13 +10:00
YoshiRulz 5d92ca3b4f
Enable SameBoy in testroms projects 2022-02-02 22:13:45 +10:00
YoshiRulz 7392df29d9
Misc. cleanup of testroms projects 2022-02-02 22:13:45 +10:00
YoshiRulz da06bd36d0
For testroms, only skip (video) rendering most of the time, not always 2022-02-02 22:13:40 +10:00
CasualPokePlayer 33a4dda6b7
Melon DSi (#3114)
* update melon

* frontend work

* make this work (i think?)

* fucking merge conflicts

* bleh

* hack up DSi support, very hardcoded atm, but at least states are reasonable

* add IS_DSI load flag

* frontend work bleh

* oops forgot to push

* ok fine apparently that doesnt display right

* oops

* prevent zealous release screen calls, DSi firmware seems to not like it?

* support for loading DSiWare title

* dsiware

* oh right this bullshit

* oops

* will this work

* why the fuck was this signed

* 0 out these hashes, these are also unique per console, no hope verifying these
2022-02-01 23:40:32 -08:00
CasualPokePlayer 096f24e7c6
Reduce bsnes115 state size (#3105)
* testing...

* more testing...

* this is probably a bad idea

* well this probably fixes state size issues

* time to debug this

* oh derp it's just not enough memory in invis heap

* let's see if this works?

* apparently this breaks slow ppu?

* testing...

* testing...

* testing...

* sanity checking

* let's try again

* i do not know what the fuck is up with this emulator nor do i care enough, state size is still under a mb anyways with slow ppu

* oops forgot to commit this

* resolve some issues

* tweak memory allocation sizes

* dont save more cache stuff

* wtf was i even thinking here

* move comment back to original pos, comment on double loading
2022-01-31 19:00:04 -08:00
CasualPokePlayer 7ac2e97cb7
update melon (#3113)
* update melon

* frontend work

* make this work (i think?)

* fucking merge conflicts

* bleh
2022-01-31 17:18:42 -08:00
alyosha-tas 8e7be7c1f2 Clean up subframe inputs: fixes #3111 as well as a bug in SubNEShawk where using zapper prevented reset cycle from appearing 2022-01-31 09:55:23 -05:00
alyosha-tas 3fdbc2e329 MSX; fix loading ROMs not in DB 2022-01-30 21:12:05 -05:00
CasualPokePlayer d6b33fbec6
Nymashock (#3093)
* nymashock wbx

* shit

* lagflag stuff

* saveram stuff

* debugging how this works

* lets see if this works better

* fuck strings

* ok let's do this right i think

* probably have this all working

* get repo in

* add nymashock to build scripts

* also update this readme

* get rid of this default, seems to break internally anyways?

* ""fix"" dualshock (wtf to do with rumble???), make override defaults actually default, add hack to allow for overriding default controllers

* hide useless rtc settings

* hack fix override defaults for controllers, get something going for nyma psx schema

* oops dont forget this

* make fucking default controllers hack work (what the fuck is this code???) also complete schema and mnemonics

* FUCKING FIX THIS BULLSHIT DEFAULT

* let's make this a little nicer

* add mnemonics for □/△/○, fixes weirdness with input display

* fix weird overscan issues when multiwidth + no-interlacing happens at the same time

* do this "properly"

* analog mnemonics

* default controls for dualshock/gamepad filled

* set nymashock as preferred core

* apparently this didnt get committed?

* update README too

* control name fix

* Revert "control name fix"

This reverts commit a3cae89b18.

Co-authored-by: YoshiRulz <OSSYoshiRulz@gmail.com>
2022-01-30 08:52:49 -08:00
CasualPokePlayer dcccb4e2b6
MSXHawk Linux (#3110)
* hack up a makefile for this

* hack up a build for linux, also fuck msvc fuck msvc fuck msvc

* make this work with the so

* thanks line endings

* lol
2022-01-30 08:42:20 -08:00
CasualPokePlayer 2d9651fa89 Revert "sayonara appveyor"
This reverts commit 3b9cfc7c50.
2022-01-29 21:56:08 -08:00
CasualPokePlayer 3b9cfc7c50 sayonara appveyor 2022-01-29 18:55:51 -08:00
CasualPokePlayer 24f946681f
Emu83 (#3086)
* emu83

* builds and get rid of wtf this thing is

* multidisk bundler for ti83

* release

* link src

* also put in the commit hash why not

* Nitpicks

* update ""rom"" extensions for ti83

* don't forget to set a preferred core

Co-authored-by: YoshiRulz <OSSYoshiRulz@gmail.com>
2022-01-29 18:23:09 -08:00
YoshiRulz 62fb0deeb5
Fix NRE when autoloading TAStudio + .tasproj and the wrong rom 2022-01-30 10:20:57 +10:00
alyosha-tas 4ff77456e4 NESHawk: only add ines v2 submapper if it is non-zero, fixes #3082 2022-01-28 21:02:49 -05:00
YoshiRulz b2d1743387
Add brackets around system display name in MainForm window title
fixes 55300d782
2022-01-29 02:55:40 +10:00
CasualPokePlayer 8112be31e1 fix a dumb bug where Auto console mode blocked GBC IR when it shouldn't have; make linked memory domains make a linked system bus for the system bus field using LinkedDisassemblable (this is only relevant for debugger disassembly anyways) 2022-01-27 22:19:42 -08:00
CasualPokePlayer 670a71c6ee
remove cycle count offset debugging thing in sameboy
this was used for comparing gambatte and sameboy tases but wasn't intended to be in final merge, oops
2022-01-27 15:50:11 -08:00
YoshiRulz eb80784d79
Add option to split RAM Watch entries (resolves #1024)
squashed PR #3032
2022-01-28 07:38:52 +10:00
CasualPokePlayer 2348e2885d
Add SameBoy as a GB/C core (#3009)
* basics for sameboy

* lol

* bleh

* lol

* push this in

* push this in

* settings, and also update sameboy bootroms

* bleh

* build linux

* remove some debugging shiz

* fix the order of this

* debug stuff also do gpu palettes right

* use new key mask API

* push shit in

* bleh

* add in replacement impl for joypad, use until opposing directions are allowed upstream

* update

* finally get this working without needing GB_INTERNAL

* hook up acc controls

* oops

* oops x2

* oh right this doesn't use this

* finish this up

* also mark this as released

* cleanups

* Nitpicks

Co-authored-by: YoshiRulz <OSSYoshiRulz@gmail.com>
2022-01-27 13:17:52 -08:00
YoshiRulz 69d51aba50
Change how user gamedb files are included, add extra warnings 2022-01-28 06:49:01 +10:00
YoshiRulz 55300d7827
Rearrange MainForm window title 2022-01-28 06:48:46 +10:00
SuuperW a401c872f5 Fix a regression from commit 4d06fb1. 2022-01-27 11:01:52 -06:00
SuuperW 0171191c0e Fix a regression in commit dda09dd. 2022-01-27 10:47:55 -06:00
SuuperW ec35080f32 Don't double update tools when rewinding (or attempting to rewind). 2022-01-27 10:47:31 -06:00
SuuperW e473c7b88f Don't update tools twice at the end of a turbo seek. 2022-01-27 08:41:32 -06:00
SuuperW e3e1b222e2 Comment says we want to update after a turbo seek. So, don't update if we weren't turbo seeking. (This removes double-updating tools after reaching the desired frame, unless turbo seek is turned on.)
This commit addresses the regression mentioned in commit 937b966.
2022-01-27 08:36:54 -06:00
CasualPokePlayer 2016adcacf LinkedDisassemblable and put it in gambattelink 2022-01-27 00:03:50 -08:00
YoshiRulz 547c28ef28
Add back extra params to `RomLoader.DoLoadErrorCallback` (fixes #3054)
fixes fb6924bd8
2022-01-27 02:48:54 +10:00
Morilli 319455c2ea Revert "TAStudio: Update self after loading a state. There doesn't seem to be any reason to not update TAStudio, and doing so fixes two bugs that were most evident when loading the state for frame 0:"
This reverts commit bb226f694a.

This regressed #2965. Will attempt a different fix for the mentioned issues that doesn't regress anything.
2022-01-26 12:55:20 +01:00
Morilli 937b966393 Revert "Comment says we want to update after a turbo seek. So, don't update if we weren't turbo seeking. (This removes double-updating tools after reaching the desired frame, unless turbo seek is turned on.)"
This reverts commit dfc1436c9f.

This caused the progress bar to not disappear after finishing a normal seek.
2022-01-26 10:39:30 +01:00
YoshiRulz ae91358071
Fix dependency problem and upgrade `SharpCompress` 2022-01-25 17:49:27 +10:00
YoshiRulz 75e9ad0a40
Hack in fix for #3087 (hotkeys triggering accidentally in Virtual Pad) 2022-01-24 15:17:38 +10:00
YoshiRulz c0056123cd
Refactor VBM import (maybe fix #3076) 2022-01-24 12:40:01 +10:00
alyosha-tas 01febd06de Debugger: move text to display cpu select box properly, fixes #3026 2022-01-23 09:54:41 -05:00
alyosha-tas e7203db6ad TAStudio: allow comments to be editted, fixes #3063 2022-01-23 09:13:04 -05:00
SuuperW dfc1436c9f Comment says we want to update after a turbo seek. So, don't update if we weren't turbo seeking. (This removes double-updating tools after reaching the desired frame, unless turbo seek is turned on.) 2022-01-22 19:24:31 -06:00
SuuperW 9e8cf71509 No need to set this twice; StopSeeking sets it. 2022-01-22 19:19:03 -06:00
Moritz Bender 0d7de83d4b
BSNESv115+: Implement snes_controller_latch function, cleanup input polling behavior (#3084)
* BSNESv115+: get rid of input_state + input_poll; just poll

* call `snes_controller_latch` on latches done in the core,

- this now also actually calls the InputCallbackSystem
- needed some edits in the core to support executing the callback even when no controller is connected in port 1

* Fix and somewhat normalize the SnesCallbacks order
2022-01-22 00:29:47 +03:00
YoshiRulz 199474e128
Update test to reflect new config schema
fixes 822cc5325
2022-01-20 11:44:28 +10:00
SuuperW bb226f694a TAStudio: Update self after loading a state. There doesn't seem to be any reason to not update TAStudio, and doing so fixes two bugs that were most evident when loading the state for frame 0:
-The UI was not updated.
-TasSession.UpdateValues was not called.  So saving the movie and then re-loading it would result in the previous frame being loaded/seeked to.
2022-01-19 16:03:30 -06:00
SuuperW 822cc53252 Add an option to RewindConfig to specify if the rewinder should allow out-of-order states. Currently, the default rewinder should but TAStudio rewinders should not.
Previously, TAStudio's ZwinderStateManager had to handle this, which made the code somewhat confusing. (Especially when I was looking at ZwinderBuffer and forgetting about the default rewinder.)
2022-01-19 13:20:19 -06:00
SuuperW 014cd51ae4 Fix a regression from commit 6c5447f5da that was causing states to be added out of order. 2022-01-19 13:20:19 -06:00
Meerkov 89b459c44d Add CLI for MP3 extraction 2022-01-18 13:45:41 +10:00
YoshiRulz 6a43277ae3 Move `AudioExtractor` to DiscSystem and clean up 2022-01-18 13:45:41 +10:00
YoshiRulz 551fd72275
Allow un/pausing via menu while `PauseWhenMenuActivated` feature is on 2022-01-18 00:52:21 +10:00
YoshiRulz 4e5f0da800
Remove feature where `Emulation` > `Pause` cancels a seek in progress 2022-01-18 00:52:17 +10:00
alyosha-tas e1315aa511 GBHawk: fix linking (again) 2022-01-16 09:09:09 -05:00
YoshiRulz 86ce476ad1
Clean up `PauseWhenMenuActivated`
Disabled `Emulation` > `Pause` menu item when this feature is enabled. It would
be possible, though annoying, to have it affect `_wasPaused` instead of the main
`EmulatorPaused` while this feature is enabled.
2022-01-16 14:39:08 +10:00
Morilli acbbd946e7 Fix #3050 2022-01-15 10:05:04 +01:00
James Groom 01cd5c256b
Fix weird edge case putting TAStudio in an unusual state (fixes #3066) (#3069) 2022-01-11 11:08:43 +03:00
alyosha-tas b0ab71ae35 Vectrex: Implement 64K bank switching, add some homebrews to DB 2022-01-10 17:15:01 -05:00
YoshiRulz 8385337e71
Allow frontend to pass arguments to Lua callback functions
for compatibility w/ older versions: `event.can_use_callback_params ~= nil`
2022-01-10 16:06:11 +10:00
YoshiRulz 725f6e7194
Update TASVideos links for new site, set next release to 2.8 2022-01-10 15:07:06 +10:00
YoshiRulz 0b9b18bf9b
Also update this cache when updating global Config (fixes #3065) 2022-01-09 17:49:19 +10:00
YoshiRulz 0a3a597c99
Make OSD message duration (time to fade) configurable 2022-01-09 16:27:51 +10:00
YoshiRulz 940dc69ae5 Add regression tests for GB/C using various testroms 2022-01-09 14:19:48 +10:00
alyosha-tas 934a3ae266 NESHawk: proper DMC address wrap 2022-01-08 19:53:47 -05:00
CasualPokePlayer 9b88ae48e8 fix this annoying line ending thing 2022-01-06 13:49:04 -08:00
alyosha-tas 1efdcbf64d NESHawk: partially revert changes to RDY interaction with branch 2022-01-06 16:09:25 -05:00
alyosha-tas e40fdb00ac NESHawk fix a DMC bug 2022-01-06 13:39:25 -05:00
alyosha-tas c7403e7fe7 NESHawk: fix some DMC edge cases 2022-01-03 16:49:36 -05:00
CasualPokePlayer 6b9bd9e3bd resolve #3055, also cleanup this code for GB/C 2022-01-02 23:45:40 -08:00
alyosha-tas d622e181f2 NESHawk: more dmc work 2022-01-02 10:52:04 -05:00
zeromus 853b0fdd85 "Unthrottled" should be saved to config 2021-12-31 16:28:48 -05:00
zeromus 007442773a throttle shouldnt act as paused when rewinding (fixes #3053, but may break some obscure case? the specifications are complicated) 2021-12-31 16:25:58 -05:00
feos b20fdb8e85 mame: mention vs2019_clang
produces a build that runs as fast as the gcc one, but is as small as the msvc one, and you can still fully debug it in VS
2021-12-30 22:57:33 +03:00
alyosha-tas 17951862ab NESHawk: clean up and implement new dmc reload delay findings 2021-12-30 08:51:14 -05:00
YoshiRulz 5687f800a1
Allow `"#RRGGBB"` format when parsing colours ("luacolor" in docs) 2021-12-29 15:28:12 +10:00
alyosha-tas 8dd98852be NESHawk: Fix interaction between RDY and Branch_delay_irq bug. Fix regression in APU timing. 2021-12-28 21:09:13 -05:00
CasualPokePlayer 509718887a set MAME System Bus correctly 2021-12-28 15:11:04 -08:00
alyosha-tas d113d76c6a NESHawk: fix regression in apu 2021-12-27 10:24:29 -05:00
alyosha-tas b45b552b9d NESHawk: fix interaction between RDY and NMI/IRQ 2021-12-27 08:04:27 -05:00
alyosha-tas 638c759aa0 NESHawk: clean up and implement DMC glitch 2021-12-26 19:37:20 -05:00
alyosha-tas d21f099567 NESHawk: implement some new NMI findings 2021-12-26 11:28:58 -05:00
alyosha-tas 8e5c1bfe57 NESHawk: work on DMC IRQs 2021-12-24 17:54:32 -05:00
alyosha-tas 7463e24957 NESHawk: fix some regressions 2021-12-23 20:00:13 -05:00
alyosha-tas 2dae3505d7 NESHawk: more DMC work 2021-12-22 20:31:23 -05:00
alyosha-tas e37f580a19 NESHawk: Implement some new DMC findings 2021-12-20 19:36:54 -05:00
alyosha-tas 5e3e65a2ab NESHawk; revert initial state change pending more testing. 2021-12-18 16:42:01 -05:00
alyosha-tas 22fe9a1b7b PCEHawk: add 240p test suite to game DB and properly resize buffer, fixes #3018 to at least not crash 2021-12-17 20:08:36 -05:00
alyosha-tas b821012099 NESHawk: update start up state and some cleanups 2021-12-16 22:03:25 -05:00
CasualPokePlayer aa6f74108e resolve #3028
also fix other misc bugs
2021-12-15 17:18:00 -08:00
Morilli d24629f3ad BSNESv115+: ram and rom memory domain fixes
- saveram was not working at all on certain roms, as the "CARTRIDGE_RAM" memory domain was returning a null pointer (similar thing for "CARTRIDGE_ROM"; changed it to correctly return the current rom)
- add sa1_bwram domain for clarity and an SGB_ROM domain
2021-12-15 09:10:37 +01:00
CasualPokePlayer 47a81e7b20 fix dsm importing, apparently desmume inverts the order of start/select for dumping/parsing 2021-12-13 18:26:25 -08:00
CasualPokePlayer ee0dea46bc fix #3030 2021-12-13 17:03:40 -08:00
YoshiRulz 878b22e8c5
Nix expr: copy bundled scripts, shaders, etc. to ~/.local/share
TODOs excepted, this brings the Nix build to feature-parity with "portable"/AUR
builds... if it runs at all (i.e. for the distros in `wrapper-scripts.nix`)
2021-12-13 19:55:03 +10:00
Morilli 558adfa325 Get rid of unnecessary CRC32Checksum.cs
haven't checked for correctness or regressions
2021-12-12 17:51:54 +01:00
YoshiRulz d979a09f5a
Only run this once when importing .smv, not every frame (fixes #3022) 2021-12-13 02:10:55 +10:00
YoshiRulz 73866fbf20
Downgrade `System.Collections.Immutable` package 2021-12-10 16:59:52 +10:00
alyosha-tas 967ef7c995 NESHawk: move defining controller out of hardreset, fixes loading subneshawk 2021-12-09 15:47:49 -05:00
alyosha-tas c8ef579b8f NESHawk: Implement new findings related to cpu register accesses, fix nanjing board 2021-12-08 16:29:36 -05:00
YoshiRulz 5c59e6d9c4 Overoptimise `Bk2InputDisplayGenerator` 2021-12-07 13:40:28 +10:00
YoshiRulz a11d0381b2 Cache `Bk2InputDisplayGenerator`s for long-lasting `IController`s 2021-12-07 13:40:28 +10:00
YoshiRulz 25ccca8bbb Clean up usages of `ControllerDefinition.ControlsOrdered` 2021-12-07 13:40:28 +10:00
YoshiRulz 8b1a1393a9 Cache `ControllerDefinition.ControlsOrdered` 2021-12-07 13:40:28 +10:00
YoshiRulz 0719d6f9df Allow `ControllerDefinition`s to be made immutable 2021-12-07 13:40:28 +10:00
YoshiRulz 15a03a26e8 Require `ControllerDefinition.Name` to be set (via ctor)
src/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawkLink/GBHawkLinkControllers.cs
src/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawkLink3x/GBHawkLink3xControllers.cs
src/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawkLink4x/GBHawkLink4xControllers.cs
2021-12-07 13:40:28 +10:00
YoshiRulz 7881067133 Clean up this spaghetti in NesHawk controller and movie import code 2021-12-07 13:40:28 +10:00
YoshiRulz dfbce55707 Pass `SimpleController.Definition` via ctor instead of initialiser 2021-12-07 13:40:28 +10:00
YoshiRulz 519fd40c32 99.9% sure this isn't used 2021-12-07 13:40:28 +10:00
YoshiRulz 7795e34362 Merge controller implementations for GBHawk* cores 2021-12-07 13:40:28 +10:00
YoshiRulz 9f2e426454 Merge AccX/AccY in GBHawk controller deck 2021-12-07 13:40:28 +10:00
YoshiRulz c09370ab44 Remove useless "Tilt Controls" dropdown from GBHawk sync settings
hack or don't
2021-12-07 13:40:28 +10:00
YoshiRulz 34ec13635b
Return void from `Control.*Invoke` extensions 2021-12-04 10:37:28 +10:00
Morilli 59d76294c9 Close #2958 2021-12-03 22:16:09 +01:00
YoshiRulz 9224a4a81c
Add some more substring extension methods 2021-12-03 16:36:00 +10:00
YoshiRulz 477ef2e519
Fix typo
fixes e38726db5, c5690e726
2021-12-03 07:58:05 +10:00
YoshiRulz 5644911cc0
Bump .NET 5 -> 6, update BizHawk.Tests deps, and bump pinned Nixpkgs 2021-12-02 19:24:06 +10:00
CasualPokePlayer 0ad79c2cc2 [GambatteLink] proper memory callback scopes for each player 2021-12-01 20:56:00 -08:00
alyosha-tas 8c6d12e913 NESHawk: rename MMC3_pokemon to MMC3_Jncota 2021-12-01 18:52:53 -05:00
YoshiRulz cd4d7a89a4
More nullability 2021-12-01 16:33:52 +10:00
alyosha-tas 76faa7c835 MSX: implement ascii 8kb mapper and make it the default for large games 2021-11-30 19:06:08 -05:00
YoshiRulz 658123435c
Explicitly pass def in `JoypadApi.SetFromMnemonicStr` (resolves #2525) 2021-11-30 14:56:42 +10:00
Morilli 18ea6d34c6 BSNESv115+: Increase MmapHeapSize to prevent crashes
e.g. "Star Ocean" was crashing on the previous size
2021-11-29 20:41:33 +01:00
Asnivor a8ca430f01 ChannelFHawk: * Console buttons now mapped the correct way round
* gamedb updated
* Fixed F8 3853 Static RAM DC1 register issue - SCHACH mapper carts (chess, pacman) now work (and any games that use the XDC opcode)
2021-11-29 17:57:07 +00:00
Moritz Bender cc38f4bcba
Implement memory callbacks for the new bsnes core (#2797)
* Actually working callbacks
now actually work after natt's changes
* Set whether memory hooks exist every frame to prevent unnecessary function calls if not
2021-11-29 19:59:47 +03:00
alyosha-tas 47c8d4f6e8 EmuHawk: Add description to N64 profile informing user about auto-skipping lag frames during frame advance. Fixes #2380 2021-11-28 10:27:01 -05:00
CasualPokePlayer f7936a34f8 [GambatteLink] changes in link API, misc cleanup 2021-11-27 22:40:39 -08:00
alyosha-tas de8748d6d1 NESHawk:Send hard Drivin to correct mapper 2021-11-27 21:32:40 -05:00
alyosha-tas eec1711b0f NESHawk: add in a new mapper for chinese pokemon 2021-11-27 10:49:58 -05:00
alyosha-tas 365fa1eb41 GBA: update about section to reflect current build used 2021-11-27 08:58:56 -05:00
alyosha-tas 5ba8655f42 MSX: minor bug fixes 2021-11-26 17:34:08 -05:00
Asnivor 4f71df99ae ChannelFHawk: Updates
* Maze/Hangman mappers working (SRAM2102)
* Fixed console buttons ones-compliment bug
* LagFrame detection
* NTSC/PAL SyncSetting
* Started adding mappers for all games
2021-11-26 16:50:14 +00:00
alyosha-tas fd02c872a9 MSX: finish up SCC, set to released. 2021-11-25 16:34:36 -05:00
Asnivor 2a67ad625f ChannelFHawk: Cart 2102 SRAM Implementation 2021-11-25 20:39:03 +00:00
Asnivor 442e83239d ChannelFHawk: More progress:
* IO now working properly
* Start of mapper implementation
* Additional gamedb entries
2021-11-25 14:52:59 +00:00
alyosha-tas f32961001e MSXHawk: Refactor and start work on SCC 2021-11-24 20:26:31 -05:00
alyosha-tas 0cd769222b A7800: fix off pixel detection in write mode, fixes baby pac man 2021-11-24 15:57:54 -05:00
Matt Burgess b06b37de7e ChannelF: Several fixes:
* F8 CPU now complements when transferring from A to IO
* Audio now working correctly
* F8 SIGN flag now set correctly on IO reads
2021-11-24 09:00:29 +00:00
alyosha-tas 726ecef5a6 INTV: fix intellicart, fixes various homebrews 2021-11-23 18:56:29 -05:00
YoshiRulz accf0f038c
Allow left/right modifier keys to be used separately (no UI)
Should allow for any key to be used as a modifier (see #2981), simply by
populating `Config.ModifierKeys`. Flip the assignment on `Input.cs:45` to try
out this change specifically.
2021-11-24 08:21:44 +10:00
alyosha-tas 3f9fb0eaef INTV: MOBs with x-coord 0 are not visible, fixes bowling. 2021-11-23 17:06:46 -05:00
alyosha-tas e45c9bb398 INTV: fix overflow flag calculation, fixes checkers and reversi 2021-11-23 16:45:28 -05:00
nattthebear 2ea62ffea6
Handle reentrant calls in waterbox (#3007)
Fixes #2585
2021-11-23 14:20:12 -05:00
CasualPokePlayer 3ea7c479a2 [GambatteLink] Don't bother stepping when the link is disconnected, should provide a nice speedboost 2021-11-22 23:27:02 -08:00
alyosha-tas 0715db5608 INTV: adjust sme timings and fix accesses to registers, fixes motocross 2021-11-22 21:17:57 -05:00
alyosha-tas d8356670ed INTV: clean up CPU, fix trace logger and throw less exceptions 2021-11-22 15:50:03 -05:00
CasualPokePlayer fba8e52be6
fix wtf in oam memory callbacks 2021-11-22 09:02:14 -08:00
CasualPokePlayer f9aa6101e0 sram bank is not 0xA000 large, oops 2021-11-21 20:07:02 -08:00
CasualPokePlayer 307f6f262e more scopes for Gambatte memory callbacks 2021-11-21 19:58:06 -08:00
CasualPokePlayer 80d588a002 remove some more remnants 2021-11-21 17:25:59 -08:00
CasualPokePlayer e0ffd45983 remove some DGB/GB3x/GB4x remnants 2021-11-21 17:21:13 -08:00
CasualPokePlayer 83a5632759 hack fix fuck shit textstate code 2021-11-21 16:03:20 -08:00
alyosha-tas bd53079a3a INTV: more compatibility work 2021-11-21 18:17:24 -05:00
alyosha-tas c5690e726e Intellivision: update game DB to use correct hash entries and add some that were missing. 2021-11-21 16:39:10 -05:00
CasualPokePlayer 16da7a2aa6 fix audio mixing for GambatteLink3x 2021-11-21 10:40:42 -08:00
alyosha-tas 5d6cf748bf GBHawk: fix linking in perfect dark 2021-11-21 11:38:23 -05:00
CasualPokePlayer 45dec23352 fix multidisk bundler 2021-11-21 01:38:30 -08:00
CasualPokePlayer 92157d0af0 rename DGB to GBL and make all link gb cores use it; todo: rename/fix shit 2021-11-21 00:59:56 -08:00
CasualPokePlayer 72ad5c7b0b GBC IR Emulation for GambatteLink 2021-11-20 23:51:23 -08:00
alyosha-tas 792b91f821 SG1000: work on 8kb ram adapter 2021-11-20 21:15:41 -05:00
ASNiVOR cee3d411b9 F8 CPU: Code tidy 2021-11-20 22:14:29 +00:00
ASNiVOR 1c90bbc273 ChannelFHawk: Move F8 CPU implementation to Emulation.Cores.CPUs 2021-11-20 21:55:00 +00:00
YoshiRulz 5582b2163d
Don't expose `MainForm.MovieSession` via `IMainFormForConfig` 2021-11-21 03:06:07 +10:00
YoshiRulz ed5128343f
Clean up `MainForm.AddOnScreenMessage` usage 2021-11-21 03:06:07 +10:00
YoshiRulz e56b3abd37
Add missing `: IDialogParent`, remove unnecessary `IMainForm*` params 2021-11-21 03:06:06 +10:00
YoshiRulz e4f142c0d1
Don't inform the user they've hit cancel, they already know 2021-11-21 03:06:06 +10:00
YoshiRulz 3c111c3947
Remove empty doc comment blocks 2021-11-21 03:06:06 +10:00
CasualPokePlayer d053a0b414
Refactor GambatteLink (#3002)
* refactor gambattelink to be more modular and add support for 3x/4x
2021-11-19 19:59:27 -08:00
alyosha-tas 1333813bb1 SMS: Don't process collision on sprites above screen height, fixes ecco the dolphin #1611 2021-11-19 17:06:10 -05:00
ASNiVOR c74b47315f ChannelFHawk: CPU mostly there. It's running games now. Still need to work on input. 2021-11-19 19:09:04 +00:00
YoshiRulz 49df817bcd
Derp this is IDisposable 2021-11-19 05:08:53 +10:00
YoshiRulz df97ef3dfe
Maybe fix #1483 re: drag+drop 2021-11-19 04:51:46 +10:00
YoshiRulz be13c08959
Warn when freezing >200 addresses at once (resolves #1155) 2021-11-19 04:42:19 +10:00
YoshiRulz e23a2df7e0
Add an edit dialog for TAStudio palette (resolves #2119) 2021-11-19 03:56:12 +10:00
YoshiRulz 90c489beed
Move TAStudio colours into a struct and save it to config 2021-11-19 03:56:09 +10:00
YoshiRulz 625c657531
Fix Hex Editor font/highlight alignment under Mono 2021-11-19 01:59:28 +10:00
YoshiRulz b1b06cc04a
Dedup some project file stuff 2021-11-19 00:49:05 +10:00
YoshiRulz 69d65009a0
Don't extend BCL namespaces 2021-11-19 00:49:05 +10:00
YoshiRulz 8849134d50
Flip endianness of CRC32 checksums 2021-11-19 00:48:38 +10:00
alyosha-tas c636c01424 SMS: fix backdrop colors 2021-11-18 08:54:13 -05:00
YoshiRulz cfe1542e0a
Fix `PathEntry` serialization test data
fixes be5e29cc5
2021-11-18 22:53:56 +10:00
YoshiRulz be5e29cc5a
Don't serialise `PathEntry.Ordinal` 2021-11-18 22:06:36 +10:00
YoshiRulz d905952d8b
Make `PathEntryCollection.DefaultValues` lazy and extract helpers
moved Libretro's useless ROM path to second to match others
2021-11-18 22:06:36 +10:00
YoshiRulz 87191385b8
Fix Channel F and Uzebox default paths overlapping with other systems 2021-11-18 22:06:32 +10:00
YoshiRulz d3b7e3fe0d
Use P# format instead of custom 2021-11-18 18:47:05 +10:00
alyosha-tas 51e8ef94d0 A7800: fix Basketbrawl and summer games 2021-11-17 18:49:51 -05:00
alyosha-tas de1a312262 MSX: do some work on mappers 2021-11-17 15:27:54 -05:00
YoshiRulz 9fa3e34beb
Prevent infinite recursion in PathConfig.BrowseFolder
fixes 0b5f48aed
2021-11-18 01:14:00 +10:00
YoshiRulz baea2a081b
Move `Config.DefaultIniPath` to Program 2021-11-16 12:20:37 +10:00
YoshiRulz fc4da78e73
Move global Config to Program 2021-11-16 12:20:37 +10:00
YoshiRulz 8859f8f859
Move `ArgParser.ParseArguments` call to Program, replacing config hack 2021-11-16 12:20:37 +10:00
YoshiRulz 69a4d64671
Bump version 2021-11-16 12:20:33 +10:00
alyosha-tas cf55391af0 As suggested by YoshiRulz, this gives correct behvaiour when autoload state is on but movie recording starts from power on. Fixes #2384 2021-11-15 19:19:39 -05:00
alyosha-tas 493cfc43b6 GBHawk: update GBA startup state, fix Konami collection Vol 4 2021-11-15 18:43:20 -05:00
alyosha-tas 78615095f2 A2600: fix AUDC 2 audio 2021-11-15 15:10:36 -05:00
YoshiRulz d58c5d7e8a
Use CoreInventory to determine systems hidden in PathConfig 2021-11-15 20:57:26 +10:00
YoshiRulz 1785d51c1d
Merge TI83 sysIDs 2021-11-15 20:57:26 +10:00
YoshiRulz d5fdbaf013
Bring unreleased cores in PathConfig in line with core attributes
effectively:
- show 32X in all builds (was never shown)
- show GGL and PS2 in dev builds (was never shown)
- show GB4x and O2 in non-dev builds (was shown only in dev builds)
- hide MSX in non-dev builds (was always shown)
2021-11-15 20:57:18 +10:00
YoshiRulz 908d4519c5
Use <ContinuousIntegrationBuild/> prop 2021-11-15 18:19:15 +10:00
alyosha-tas 7a3f96b5a6 A2600: fix ms pac man audio 2021-11-14 22:05:45 -05:00
alyosha-tas e334af157e SMS: Fix Fray (vert lock update) 2021-11-14 20:48:10 -05:00
alyosha-tas 5794d9c992 SMS: Fix ys (JPN) byemulating VRAm masking bit 2021-11-14 11:12:01 -05:00
feos 4e61e5f00f warn about vblank count mismatch on movie end
account for subgbhawk too
2021-11-14 13:06:01 +03:00
YoshiRulz c52c880101
Backport `KeyValuePair<,>.Deconstruct`
it's infuriating that you can't use this for lambda parameters
2021-11-13 15:17:30 +10:00
adelikat 3d56e23e8a bump release info 2021-11-13 15:03:50 +10:00
alyosha-tas 92c60385f4 A7800: savestate everything, should fix determinism issues this time 2021-11-12 17:54:44 -05:00
YoshiRulz 9220cf675e
Fix parsing of Win10 product names from registry 2021-11-12 19:41:15 +10:00
YoshiRulz e38726db50
Unify checksum helper methods 2021-11-12 19:38:11 +10:00
YoshiRulz 73af92b579
Refactor `IGameInfoApi` (expose GameInfo as its read-only interface)
also enabled NRTs
2021-11-12 19:38:11 +10:00
YoshiRulz fcd7a47435
Use read-only dict type in .NET API 2021-11-12 19:38:07 +10:00
alyosha-tas 47c5fcc39e SMS: foix pop breaker 2021-11-11 20:54:40 -05:00
CasualPokePlayer 2ecd752a45 Update default NDS username for consistency with upstream; mark melonDS as released, remove single instance mark (n/a with wbx) 2021-11-11 13:22:24 -08:00
alyosha-tas bbc5300297 SMS: balance audio better, fixes #2814 2021-11-11 16:16:41 -05:00
alyosha-tas c34c91b9eb NESHawk: increase IRQ delay in mapper 48 to fix graphics glitch in Jetsons 2021-11-11 14:52:27 -05:00
alyosha-tas 5c6a6240ed NES: Fix Zelda SaveRAM fixes #1623 2021-11-11 14:26:27 -05:00
alyosha-tas edfa040b46 NESHawk give Jump II initial SRAM of 0xFF 2021-11-11 09:43:08 -05:00
YoshiRulz 4a4d8fe751
Collect sysID constants in a single class 2021-11-10 14:38:41 +10:00
YoshiRulz 1d6a4460d0
Group SGB in with GB/C in PathConfig (resolves #2992)
breaks config
2021-11-10 12:17:08 +10:00
YoshiRulz 488b2954d6
Use correct file path property (see #2687)
fixes adca19c30
2021-11-09 21:25:46 +10:00
YoshiRulz 56e22f34a5
Use `TryGetValue` instead of `ContainsKey` + indexer 2021-11-09 20:47:35 +10:00
YoshiRulz dd97e4e861
Use ellipses more consistently in MainForm
(to indicate menu items that open a modal dialog)
2021-11-09 17:49:20 +10:00
alyosha-tas 3674824889 A7800Hawk; Misc bug fixes 2021-11-08 17:53:34 -05:00
CasualPokePlayer 946e088950 Merge branch 'master' of https://github.com/TASVideos/BizHawk 2021-11-04 14:35:23 -07:00
CasualPokePlayer 0cad1ca373 default birthday day settings change 2021-11-04 14:34:36 -07:00
YoshiRulz b5c02d3a99
Extract WAV from nothawk.bin 2021-11-05 00:52:01 +10:00
CasualPokePlayer 7c38ff7452 [Gambatte] fix cart bus pullup settings display 2021-11-03 22:52:27 -07:00
CasualPokePlayer 2b15fc958f build here, update libgambatte bindings with new api and use it 2021-11-03 18:53:51 -07:00
CasualPokePlayer 1ddbada5e4 NDS Lua Functions; update style input display to use them 2021-11-03 17:20:23 -07:00
CasualPokePlayer 600ee6c913 Squashed commit of the following:
commit af7cadfce4b750f8b1b23476c281bd2dfe027225
Author: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com>
Date:   Tue Nov 2 22:43:21 2021 -0700

    right, rename these too

commit e27197d18ad33af53729b1a57ee4a048189c41c4
Author: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com>
Date:   Tue Nov 2 22:40:42 2021 -0700

    build

commit 1af068f11f553ade70999fb2c640ee98e054aa36
Author: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com>
Date:   Tue Nov 2 22:37:28 2021 -0700

    new way to do mic input for melonds
2021-11-02 22:54:36 -07:00
YoshiRulz 274a137de4
Fix GBHawk settings dialog not appearing
fixes 9a87a0f58
2021-11-03 13:54:01 +10:00
YoshiRulz 9bcedb2dab
Abstract the dialog from `AudioExtractor.Extract` and add skip option 2021-11-02 21:37:25 +10:00
YoshiRulz a439ea4970
Fix cancellation of `AudioExtractor.Extract`
fixes d3e1a6db9
2021-11-02 21:15:44 +10:00
CasualPokePlayer 1df985a5f6 cleanup this crap 2021-10-29 22:34:08 -07:00
CasualPokePlayer 7314cf9192 compress datetime comparision, make default initial time consistent with other cores 2021-10-29 22:01:57 -07:00
CasualPokePlayer 77916cfa2c
fix date time display (#2983)
* fix date time display

* Use ISO8601, fix nullability, improve validation

* Should probably override all of them to be consistent

* use local time format here

Co-authored-by: James Groom <OSSYoshiRulz+GitHub@gmail.com>
2021-10-29 21:48:45 -07:00
YoshiRulz 84b55d2af4
Remove useless semicolon following type decl 2021-10-29 06:48:13 +10:00
CasualPokePlayer 1dd7640161 use DescribableEnumConverter for GB and NDS 2021-10-27 20:59:15 -07:00
Dennis 1e65515f63
Encode screenshot as JPEG when it has the extension (#2982) 2021-10-26 18:22:17 -04:00
zeromus c5a09f123b remove `?? ""` litter from ImageSequenceWriter (re #2982) 2021-10-26 18:18:31 -04:00
CasualPokePlayer bb318df49e
SGB Cheats Fix (#2980)
NOTE: LLE SGB cores seem to report an SNES ID anyways. Cheat code converter would need some work if changing them to report a SGB ID (also see https://github.com/TASEmulators/BizHawk/issues/2863#issuecomment-881970014)
2021-10-26 12:32:11 -07:00
CasualPokePlayer 080ed049f5 Switch these all around, also let's make this nice in solexp 2021-10-25 19:59:29 -07:00
CasualPokePlayer 148d6503d3 switch these all around, oops 2021-10-25 19:52:24 -07:00
CasualPokePlayer a0d03fdda0 Gambatte Cleanup 2021-10-25 19:33:33 -07:00
CasualPokePlayer d3bebefcbc
[NDS] Don't try to check for null in an out of range array (#2979)
I have no idea wtf I was thinking with this
2021-10-25 07:10:04 -07:00
CasualPokePlayer bc9331cb6f
[NDS] Double Mmap Heap Size (#2978) 2021-10-25 07:09:49 -07:00
zeromus d9ae8e330d oops, forgot to commit 2021-10-25 01:46:09 -04:00
zeromus 7c8bd4f98c improve pcehawk memory domains 2021-10-25 01:43:10 -04:00
CasualPokePlayer 41128abc37
[melonDS] Redo porting, waterbox style now (#2945)
Co-authored-by: nattthebear <goyuken@gmail.com>
2021-10-24 21:40:23 +03:00
YoshiRulz b0e1458137
Merge CRC32 impls and clean up 2021-10-23 03:05:46 +10:00
YoshiRulz 7953152d51
Move CRC32 impls to `BizHawk.Common/checksums` 2021-10-23 03:05:46 +10:00
YoshiRulz 71be5c7997
Use `ReadOnlySpan` for `SpecialCRC32.Add` 2021-10-23 03:05:46 +10:00
YoshiRulz de76127f76
Move `SpecialCRC32.Add(int)` to a local helper method 2021-10-23 03:05:46 +10:00
YoshiRulz f95e03bff3
Make `CRC32.Calculate` return a uint 2021-10-23 03:05:45 +10:00
YoshiRulz 484a1d8fa4
Add unit tests for CRC32 impls 2021-10-23 03:05:42 +10:00
James Groom 7c6f78b461
Add `save_image_to_disk` to Lua canvases (#2973)
* Pass PathEntryCollection through to Lua libs

* Pass EmulationLuaLibrary to LuaCanvas, add save function to LuaCanvas

resolves #2744
2021-10-20 08:57:39 -05:00
YoshiRulz 98ee0d446f Add IEmuClientApi method (+Lua) for getting approximate framerate 2021-10-20 17:00:14 +10:00
YoshiRulz f56a98116e
Remove now-unused reference to System.Web
see #2261, #2535
2021-10-19 14:47:18 +10:00
CasualPokePlayer 9a87a0f586
nuke sameboy (#2934) 2021-10-18 21:38:23 -04:00
nattthebear 09ccf0dbe8
Unthread tastudio seek progress bar (#2774)
Co-authored-by: feos <feos-theos@yandex.ru>
2021-10-18 21:03:25 +03:00
adelikat 681b564bce remove system.web dependency in DiscoHawk 2021-10-18 12:49:29 -05:00
adelikat dda83033bd Lua canvas documentation - properly document that methods are PascalCase. Ideally they would be camelCase, but the LuaMethod attribute wasn't used in the process of regsitering these. They are aout in the wild now, so it would be disruptive to change. Plus, nocasing is used often as well, so we have no consistency anyway. Fixes #2772 2021-10-18 10:24:24 -05:00
adelikat eab4d2127a Ram Search - bg color drawing - don't use engine indexer so much, it news up a new object every time 2021-10-18 09:59:48 -05:00
zeromus 45c635ac70 update some urls 2021-10-16 14:38:24 -04:00
YoshiRulz 97e030fcb8
Add confirmation modal when launching TAStudio during casual play 2021-10-14 14:49:19 +10:00
alyosha-tas 5626edf43d TAStudio: do not seek when needing to load greenzone on paint 2021-10-12 19:04:43 -04:00
YoshiRulz f721dad395
Replace some hardcoded checksums in GBHawk w/ SHA1 to match gamedb 2021-10-10 18:18:56 +10:00
YoshiRulz cf7cc3bd0e
Use named constants for hardcoded rom checksums in Hawk cores 2021-10-10 18:18:56 +10:00
YoshiRulz d8dc06cbd2
Don't unnecessarily recompute rom hashes 2021-10-10 18:18:52 +10:00
YoshiRulz b614edecdb
Detect when running as Superuser/Administrator
not using this for anything atm
2021-10-10 13:06:43 +10:00
zeromus 8145dfbdce neshawk - remove misleading non-functional function for setting volume (don't worry the feature is still there, this was just an unused method) 2021-10-08 22:20:41 -04:00
YoshiRulz 1dbcdcdfc1
Fix loading of Basic Bot under Mono 2021-10-08 13:28:45 +10:00
alyosha-tas e5c2e7ce4b TAStudio: Fix #2811 NOTE: I am leaving a TODO in InputRoll, there are some complicated bugs happening with pointed cell updates, but for now everything happens to work out ok. 2021-10-07 08:50:01 -04:00
YoshiRulz 56de859042
Use new fallback mechanism in v2.x of Cyotek.Drawing.BitmapFont 2021-10-06 08:33:09 +10:00
alyosha-tas a63b7c262b GBHawk: set bk2 movie CGB flag properly 2021-10-04 16:16:22 -04:00
YoshiRulz f46ff85287
Fix indentation in FFmpegService 2021-10-04 08:23:18 +10:00
YoshiRulz ef059dbcaa
Missed the newline on this print 2021-10-04 08:11:42 +10:00
YoshiRulz df5ef0ec2d Clean up drag+drop handling in MainDiscoForm 2021-10-04 07:00:19 +10:00
YoshiRulz a514effba7 Encapsulate "hawking" routine in DiscoHawk and use it in CLI
resolves #2947
2021-10-04 07:00:19 +10:00
zeromus 253d532a63 make FFmpegService more reliable (fixes inexplicable hangs in reading ffmpeg output which breaks discohawk audio extractor sometimes and probably other things sometimes unpredictably). fixes #2952 2021-10-03 01:25:45 -04:00
zeromus d3e1a6db99 make discohawk AudioExtractor multi-threaded 2021-10-03 01:24:12 -04:00
zeromus b14c434377 fix snes graphics debugger getting permanently hidden (til app is restarted) when choosing new bsnesv115+ core. fixes #2950 2021-10-03 00:09:35 -04:00
YoshiRulz 02f23692cf
Re-enable Lua on Linux 2021-10-03 09:48:26 +10:00
YoshiRulz e553eafee2
Bump version 2021-10-03 09:13:15 +10:00
feos 167bfeb4c0 update release info 2021-10-01 22:23:34 +03:00
YoshiRulz 56c7457336
Downgrade SharpCompress 2021-10-01 06:19:40 +10:00
YoshiRulz 078852567a Revert "Disable Tool Box on Linux (fixes #2741)"
This reverts commit fe6bf7ba12.
2021-09-30 19:43:38 +10:00
YoshiRulz dc090b81fe
Re-use hack from `client.reboot_core` for `openrom` (resolves #2940) 2021-09-30 19:39:39 +10:00
YoshiRulz 5f1d686475
Don't compress NesCarts.xml when packaging
see #2939
2021-09-30 18:55:31 +10:00
feos 340352eb69 commit readme/license/source info files for pixelated lua fonts 2021-09-28 22:00:13 +03:00
CasualPokePlayer 4303d1c333
[mGBA] Game Override Sync Settings (#2937)
* override sync settings

* override penguin

* don't override save type when autodetecting

* insert penguin
2021-09-26 11:55:13 +03:00
YoshiRulz bff6126c1b
Fix filesize pre-check in FirmwareManager 2021-09-22 11:51:40 +10:00
YoshiRulz dbc36fa420 Add automatic patching capability to FirmwareManager 2021-09-22 06:24:28 +10:00
YoshiRulz 190e121a90 Remove firmware patching from Gambatte 2021-09-22 06:24:28 +10:00
CasualPokePlayer d513c5b2a0
fix #2805 for real this time (#2936)
* fix https://github.com/TASVideos/BizHawk/issues/2805

* fix https://github.com/TASVideos/BizHawk/issues/2805 for real this time

* misc

* advance penguin
2021-09-21 08:46:57 -04:00
dependabot[bot] 4356af7b95 Bump SharpCompress from 0.28.3 to 0.29.0 in /src/BizHawk.Client.Common
Bumps [SharpCompress](https://github.com/adamhathcock/sharpcompress) from 0.28.3 to 0.29.0.
- [Release notes](https://github.com/adamhathcock/sharpcompress/releases)
- [Commits](https://github.com/adamhathcock/sharpcompress/compare/0.28.3...0.29)

---
updated-dependencies:
- dependency-name: SharpCompress
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-21 06:18:19 +10:00
YoshiRulz 2ec0c7d733
Cleanup disabling of DirectX options when it isn't installed 2021-09-21 06:15:19 +10:00
YoshiRulz c112f0b036
Resolve relative paths passed as --lua (resolves #2077) 2021-09-21 05:39:19 +10:00
YoshiRulz 0c855e0047
Add debug util for reproducing #2805 2021-09-20 04:53:46 +10:00
YoshiRulz 2515e73543
Minor cleanup in MGBAMemoryCallbackSystem 2021-09-20 04:50:36 +10:00
YoshiRulz a3ac843c76
Be explicit about rounding for the FPS display, rename method 2021-09-19 02:02:34 +10:00
YoshiRulz 1f580aa826
Update test data to new RewindConfig schema
fixes 94f9016c6
2021-09-18 19:11:53 +10:00
Steven Schalek 478d886bec
Add HandleWatchSizeSelected() to allow user-initiated watch size changes to be ignored if they reset the setting to the same value (#2862) 2021-09-18 11:56:16 +03:00
Daniel Peter Rutschmann 94f9016c6f
Add config option for rewinds every fixed number of frames. (#2893)
* wip consistent rewind intervals.

    In Bizhawk 2.3, rewinds were always made in fixed intervals.
    With the new rewinder, the rewind intervals vary depending on the
    save state size. (This is especially pronounced with delta compression.)
    While this is good for TAStudio, it is awful for regular playing / TASing.

* clean up rewind config gui a bit.

Use radio buttons to make it clear that only the numeric input field of the selected option is being used.

* use more precise variable names.

* minor whitespace cleanup

* don't use fixed rewind intervals by default.

This avoid suddenly changing the rewind behaviour when updating from previous recent versions of Bizhawk.
2021-09-18 11:08:43 +03:00
BrunoValads 14dd3c1695 Removed LuaInterface memory leak warning, it was solved 2021-09-17 23:41:46 +10:00
CasualPokePlayer fbab7f6291
Implement HLE SGB Emulation in Gambatte (squashed PR #2917)
* sgb meme

* various sgb fixes, add hard reset support for spc, make frontend provide spc file

* sgb border support, mostly copied from sameboy

* add support for disabling sgb border, also fix dumb when disabling border

* state work, states seem to be broken tho

* fix dumb state issue

* multiplayer

* fix dumb in spc stating

* misc

* pass SGB tests

* oh right I have to fix this too

* and this dumb too

* attempt to fix weird crashes

* or maybe this will fix it?

* wtf is spc doing?

* rebase

* misc state + debugging stuff

* finally fix weird assertion failure

* factor out loading in spc file, also factor out the ipl

* oops

* init special sgb colors for certain games

* slight sgb audio refactor

* this should work better?

* oops

* switch back to master

* super penguin
2021-09-17 23:35:00 +10:00
YoshiRulz fc0ebf372f
Remove use of the dynamic type from BizwareGL 2021-09-15 06:00:05 +10:00
YoshiRulz 2d81c820b4
Add LibretroBridge binary for Linux and wire it up
build scripts to come, see PR #2895
2021-09-09 04:12:54 +10:00
Chris W 38f3cdb687
Make sorting optional for `forms.setdropdownitems` (squashed PR #2923)
* Add optional sort parameter to SetDropdownItems method

* Improve docs, use pattern matching

Co-authored-by: YoshiRulz <OSSYoshiRulz@gmail.com>
2021-09-08 14:18:51 +10:00
YoshiRulz 56a9e333e9
Allow ToolManager.IsAvailable to check ext. tools 2021-09-06 15:51:11 +10:00
mooware 55a8936a30
add options for virtualboy to only show left or right screen (#2842) 2021-09-01 20:41:02 -05:00
YoshiRulz 24f69eb5a6
Also check PreferredPlatformsForExtensions for single-file archives
resolves #2915
2021-08-24 10:30:33 +10:00
YoshiRulz 559c8efcf1
Fix inconsistent treatment of systems' rom file extensions 2021-08-24 10:30:33 +10:00
YoshiRulz 40cf608eef
Deduplicate file extension list in RomLoader 2021-08-24 10:30:30 +10:00
YoshiRulz a26753234b
Add toggle to TAStudio for including frame no. when copying rows
resolves #2643
2021-08-24 08:17:34 +10:00
YoshiRulz c4ff971113 Set firmwares declared with FirmwareAndOption to Ideal status 2021-08-24 07:18:41 +10:00
alyosha-tas 883d74d2cd TAStudio: autofirre pattern repeating zero times should not be allowed, fixes #2910 2021-08-23 10:40:18 -04:00
YoshiRulz 2f344f8ffd
Clean up OTK_GamePad.GetAxes 2021-08-20 08:20:25 +10:00
YoshiRulz 23a7754a2b
Inline some helpers into OTK_GamePad ctor 2021-08-20 08:20:25 +10:00
YoshiRulz 591d92fe51
Use 1-based indexing for button/axis names of OpenTK gamepads
(to match DirectInput)
2021-08-20 08:20:25 +10:00
YoshiRulz be19b1bb14
Simplify OpenTK gamepad discovery/enumeration 2021-08-20 08:20:22 +10:00
YoshiRulz ee0848d7d0
Improve logging for OpenTK gamepads 2021-08-19 13:30:05 +10:00
YoshiRulz b50afede66
Fix Virtual Pad schemata for ColecoVision 2021-08-16 03:47:14 +10:00
CasualPokePlayer 4681805439
fix #2902 (#2904)
* fix #2902; factor out altrunfor and just use upstream's runFor, keeping a frame buffer on the c# side

* linux build
2021-08-11 02:20:53 -04:00
YoshiRulz ebd18df440
In Lua docs for wiki, alphabeticalise functions within module 2021-08-09 00:07:31 +10:00
CasualPokePlayer d37a818f96
Update Gambatte (GB Camera Support, Misc Cleanup) (#2897)
* update gambatte (camera support, misc cleanup)

* linux build

* misc

* [Gambatte] fix resets (oops)

* this didn't complain on my side but w/e ig
2021-08-07 17:50:16 -04:00
YoshiRulz a6e36b30be
Minor fixup to debug menu 2021-08-05 19:21:29 +10:00
YoshiRulz ec2baf17af
Fix missing #if fence
fixes e2d5c5621
2021-08-03 02:34:29 +10:00
YoshiRulz e2d5c5621b
Add debug menu and GLideN64 settings fuzz tool 2021-08-03 02:02:06 +10:00
YoshiRulz fe05442ab0
Clean up nullability in comm API 2021-08-03 01:51:13 +10:00
YoshiRulz 97222f2c5b
Make the default index 1 for NLuaTableHelper.ListToTable 2021-08-03 01:48:39 +10:00
YoshiRulz 7068fd2c39
Fix #2844 properly, and do writebyterange as well
effectively reverts d784e9c00 and 38442bd5f
2021-08-03 01:48:39 +10:00
alyosha-tas b6e91aef32 SMS: make undrawn area black, overscan itelf still needs reworking, fixes #2892 2021-08-02 11:44:11 -04:00
alyosha-tas 38442bd5fe LUA: documentation fix from previous commit 2021-08-02 10:15:01 -04:00
alyosha-tas d784e9c00c LUA: update documentation of readbyterange to reflect what it actually does. Add readbyterangetable which allows the user to select the starting index to any desired value. Resolves #2844 2021-08-02 10:12:29 -04:00
YoshiRulz 21b2d40832
Move Assets copy to EmuHawk so it only happens for top-level
fixes 443c9830b
2021-08-02 21:43:21 +10:00
YoshiRulz 8adb911623
Pull Gambatte submodule, rename Linux binary to .so 2021-08-02 20:54:06 +10:00
YoshiRulz 02de3588a6
Catch and recover from exceptions thrown by OpenTK gamepad poll calls 2021-08-02 19:20:45 +10:00
YoshiRulz 04bf9d0ec2
Fix code style and increase SA1121 level to error 2021-08-02 19:17:31 +10:00
CasualPokePlayer 87f0fd78fc [Gambatte] sync to upstream 2021-08-02 16:23:38 +10:00
CasualPokePlayer 036e349337
[BSNESv115+] Fix Lag Frames For SGB (#2886)
* better lag detection for sgb. todo: might want to toggle this?

* correct logic and don't fail build this time
2021-08-01 09:54:59 -04:00
CasualPokePlayer 7518ce962b
[Gambatte] Many Updates (#2823)
* [Gambatte] Port setregs from upstream, implement SetCpuRegister, misc cleanup/fixes elsewhere

* [Gambatte] Add more proper uninitalized AGB WRAM, based of a GBP dump

* cleanup Gambatte's CpuSetRegister (credits to stringflow)

* additional Gambatte code cleanup

* [Gambatte] cleanup tracelogger code readability

* fix

* Initalize VideoBuffer with a white screen instead of a black screen, misc video fixes

* misc cleanup

* [Gambatte] hdma work

* [Gambatte] add warning for recording a movie without a bios enabled. doing this as I am annoyed enough from disabled bios being the default and you cannot say anything about the profile system since recent submissions have shown that ineffective

* misc cleanup

* [Gambatte] init state tweaks

* [Gambatte] add setting for patching similar bioses

* fix this

Co-authored-by: TiKevin83 <travismcgeehan@gmail.com>
Co-authored-by: alyosha-tas <alexei.f.k@gmail.com>
2021-08-01 09:54:19 -04:00
YoshiRulz 4973e3eba1
Refactor ITraceable and related types 2021-08-01 23:11:45 +10:00
YoshiRulz 9ec72fd543
Enable nullability in some more services and CodeDataLog 2021-08-01 23:11:44 +10:00
YoshiRulz c26b99b547
Convert RegisterValue to a readonly struct 2021-08-01 23:11:40 +10:00
alyosha-tas 92dfdaec0f NESHawk: fix MMC3 clear timing, fixes Klax 2021-07-31 22:32:10 -04:00
YoshiRulz f92387e134
Fix typo in SMS ctor that caused NREs
fixes bcd47a1ad
2021-08-01 11:09:40 +10:00
alyosha-tas 9d8a80026e NESHawk: more DMC work 2021-07-31 09:56:28 -04:00
alyosha-tas 01c0560c89 Merge branch 'master' of github.com:TASVideos/BizHawk 2021-07-29 18:52:01 -04:00
alyosha-tas fd765b4278 BMp view: make it a function 2021-07-29 18:50:36 -04:00
Hyago Oliveira dc66b4357f
Add event.onconsoleclose (squashed PR #2884) 2021-07-30 08:44:24 +10:00
alyosha-tas 0f294a220e Replace Win32 call in GBA viewer 2021-07-29 17:35:41 -04:00
alyosha-tas 3c257d48ba Replace Win32 call from Bmp and Gb view 2021-07-29 17:12:25 -04:00
alyosha-tas 6ba3bfa1a2 GB GPUViwer: fix a couple bugs, still leaves a TODO 2021-07-28 10:14:22 -04:00
YoshiRulz f8df53abda
Improve documentation for VersionInfo.gen.cs 2021-07-28 10:25:07 +10:00
YoshiRulz b05d64c10c Redesign PathConfig (resolves #2435) 2021-07-28 10:04:35 +10:00
YoshiRulz dfaf07371e
Use better LINQ in PathConfig 2021-07-28 09:31:59 +10:00
YoshiRulz 28abcac463
Use AssemblyBuilder from System.Reflection.Emit package in BizInvoke 2021-07-27 21:10:50 +10:00
YoshiRulz cf92bfd9b4
Clean up EmuHawk.Resources 2021-07-27 17:15:14 +10:00
YoshiRulz 3ed650c0ba
And silence the print flood from Database again 2021-07-27 15:17:14 +10:00
YoshiRulz 517be084ab
Replace Debug.WriteLine w/ Util.DebugWriteLine
(or `Console.WriteLine` if it's in `#if DEBUG`)
bonus wtf: 2 calls in Database were to `WriteLine(string, string)` overload, not
the intended `WriteLine(string, params object[])` overload
2021-07-27 15:14:13 +10:00
YoshiRulz 99260d2746
Add DocumentationAnalyzers from NuGet and fix syntax in docs 2021-07-27 14:53:04 +10:00
YoshiRulz 8d210df9e3
Enable nullability in some services 2021-07-27 13:31:49 +10:00
alyosha-tas aa9402f3c8 fix #2298 2021-07-25 11:27:40 -04:00
alyosha-tas a8e710c73d fix #2880 2021-07-25 10:31:02 -04:00
CasualPokePlayer 62fcf9cc1d
fix #2864 (#2869)
* fix #2864

* attempt to preserve 2c8295b behavior

* misc
2021-07-25 09:10:51 -04:00
Daniel Peter Rutschmann 4b6fc89a71
Fix rewinds sometimes drifting 1 frame forward when loaded. (#2878)
Co-authored-by: dacin21 <daniel.rutschmann@gmx.ch>
2021-07-25 09:09:42 -04:00
YoshiRulz fd0d5a38c7
Rewrite OSDManager.InputStrOrAll without local var 2021-07-24 21:09:17 +10:00
YoshiRulz b4738411a2
Invert nullability in Emulation.Common, enabling it some trivial files 2021-07-24 19:23:18 +10:00
Morilli f1da6e6cd3 fix #2873 by duplicating code yay 2021-07-23 00:48:56 +02:00
YoshiRulz 8c5bb6715a
Allow loading .so files for libretro, again, and throw a nice message 2021-07-23 08:15:12 +10:00
alyosha-tas 335c8104b6 NESHawk: Tweaks to APU timing 2021-07-22 08:42:29 -04:00
YoshiRulz 726f1f3f11
Move types from Input to top-level in Client.Common and cleanup 2021-07-22 15:09:49 +10:00
YoshiRulz 25da1153b6
Resolve TODO re: encapsulation of r/w InputManager props 2021-07-22 14:49:09 +10:00
YoshiRulz 778098e8b7
Apply current code style to Bizware.Test
including enabling NRTs and minifying TestForm w/o Designer
2021-07-22 06:35:53 +10:00
YoshiRulz d1205fa807
Revive Bizware.Test executable 2021-07-22 06:34:23 +10:00
YoshiRulz a223072810
Update OpenTK 2021-07-22 05:02:06 +10:00
GhostlyDark 7a48bded0a
Add new GLideN64 settings (#2872)
* Add new GLideN64 settings

- BackgroundsMode: Set the rendering of large background images, like the JFIF backgrounds of Ocarina of Time. Defaults to stripped as it is more accurate. A user may want to change this to one piece mainly for texture pack usage or performance.
- txEnhancedTextureFileStorage: Use HTS cache instead of HTC for enhanced (upscaled) textures. Defaults to HTC.
- txHiresTextureFileStorage: Use HTS cache instead of HTC for HD textures. Textures are streamed from disk, eliminating the need to prefetch the textures at load. Boots the game near instantly and decreases RAM usage. Defaults to HTC.

* Fix BackgroundsMode type
2021-07-21 16:51:38 +03:00
YoshiRulz b28a52befa
Add default feedback bind for N64 P1 (and add copy in test data)
the rest of the default binds are still garbo though
2021-07-21 12:27:41 +10:00
YoshiRulz d3733c1fda
Pass Left+Right feedback bind through until PrepareHapticsForHost 2021-07-21 12:27:38 +10:00
YoshiRulz d254c8121d
Include HapticsChannels prop in ControllerDefinition clone ctor 2021-07-21 10:49:50 +10:00
Meerkov 664ab7fab6
Wire up haptics in Mupen core (squashed PR #2683)
* Wire up host haptics, but only for OpenTK which doesn't support it

and I'm hijacking the Fast Forward hotkey too

* Fix Mupen 64 Vibration DLL

* Enable Mupen 64 Vibration for DirectInput

* Remove unused SDL dep from Mupen input-bkm plugin

this allows it to be built without checking out the deps submodule, I guess

* Fix <OutDir/> in Mupen lib projects

* Remove "Debug" haptic channel and debug hotkey, prepare Mupen

* Fix remaining merge conflicts

* ...with the correct channel name

and hopefully no dangling whitespace changes

* Fix typo from resolving merge conflict, and off-by-one error

Co-authored-by: YoshiRulz <OSSYoshiRulz@gmail.com>
2021-07-21 10:06:16 +10:00
YoshiRulz 52333e4862
Remove "Debug" haptic channel and debug hotkey, prepare Mupen 2021-07-21 09:46:19 +10:00
YoshiRulz 38b81ae10b
Re-enable haptic feedback
(i.e. revert 567cb0c8f)
2021-07-21 09:46:15 +10:00
alyosha-tas 864086c510 NESHawk: update apu start state to better match console 2021-07-20 18:50:33 -04:00
nattthebear 8cd67529a3 delta rewinder: fix crash on rewinding when the buffer was full
Woops!
Closes #2870.
2021-07-20 16:53:40 -04:00
nattthebear 7cc73ca9b0
Fix bug with delta state rewinder (#2871) 2021-07-20 16:47:10 -04:00
YoshiRulz 56594840ad
Replace sequences of 7 or more = chars in C# source with -
just makes it easier to grep for Git merge conflicts
2021-07-19 10:10:16 +10:00
YoshiRulz 2077b19caa
Clean up dumb in GBHawk ctor 2021-07-19 09:19:37 +10:00
YoshiRulz 0892fb8733
Inline remaining CFP.GetFirmware shim 2021-07-19 09:15:05 +10:00
YoshiRulz 70037ee0fc
Refactor CFP.GetFirmware* 2021-07-19 08:52:09 +10:00
YoshiRulz 443c9830bb
Copy /Assets with <None/> instead of a post-build <Target/>
see #2725
2021-07-18 07:24:58 +10:00
alyosha-tas 42b43b4431 resolve #2858 2021-07-17 08:26:47 -04:00
Moritz Bender 2ff7e4d39b
Add sa1_iram memory domain for new bsnes (#2803) 2021-07-16 18:41:53 -05:00
Mickael Laurent e79d33bcfd Add several comm MMF LUA functions 2021-07-17 07:49:11 +10:00
Mickael Laurent 457ff87481 Always initialize MMF LUA functions 2021-07-17 07:49:11 +10:00
Morilli 308d34890c Fix the superscope controller for the new bsnes core
closes #2856
2021-07-14 22:43:09 +02:00
Zach 58293dde9f
Support null (any) address for N64 breakpoints. (#2833)
* Support null (any) address for N64 breakpoints.

Fixes #2808

* Move null check for better readability.

* Replace debugger mutex with semaphore that counts debug steps.

This is taken directly from upstream m64p. If breakpoints are being hit fast enough and in large enough quantity, m64p always ends up getting into a deadlock. The semaphore seems to resist this problem.

* Remove tabs
2021-07-14 20:49:31 +03:00
CasualPokePlayer 488fd2c6af
Add support for more SGB firmware + Use homebrew bootroms instead of bsnes' illegally provided official ones (#2837)
* add support for more SGB firmware

* replace illegally provided bootroms with legal homebrew bootroms

* let's swap these with homebrew bootroms too

* add builds

* this should probably be preferred

* Fix incorrect assignment

* Fix whitespace changes to Designer files

Co-authored-by: Morilli <35152647+Morilli@users.noreply.github.com>
Co-authored-by: YoshiRulz <OSSYoshiRulz@gmail.com>
2021-07-14 12:48:02 -05:00
nattthebear 913837b904 NESHawk: Fix mapper 88 mirroring
Closes #2847
2021-07-12 21:38:01 -04:00
alyosha-tas 420f72f684 resolve #2845 2021-07-12 10:16:05 -04:00
alyosha-tas 6c5d329573 Make tool tips visible for firmware info 2021-07-09 15:17:06 -04:00
alyosha-tas bf5c73b40c Resolve #2713 2021-07-09 11:55:47 -04:00
alyosha-tas bc8280c7b1 SMS: fix null keyboard keys 2021-07-07 21:26:57 -04:00
alyosha-tas bcd47a1ad9 SMS: bring controllers in line with other cores and fix virtual pads 2021-07-07 21:16:56 -04:00
alyosha-tas bed5cc66ab A2600: fix controller selection error 2021-07-07 16:50:32 -04:00
alyosha-tas 946b0e2c01 PSX: maybe fix weird unthrottled behaviour. I didn't realize FrameAdvance had two return paths in octoshock, and missed this one without incrementing Frame when I changed it to the end for the autofire issue. Will audit the rest of the cores as well, but try this in dev build. 2021-07-07 10:24:51 -04:00
alyosha-tas 2d8ea8a989 NESHawk: fix MMC5 IRQ timing, fixes #2036 2021-07-03 20:43:53 -04:00
nattthebear 9488e19d38
Update mednafen cores to 1.27.1 (#2831) 2021-07-03 10:01:04 -04:00
alyosha-tas 01c3b14495 Add Basic Bot menu item image 2021-07-02 10:40:49 -04:00
alyosha-tas 3c26d9eec1 Basic Bot: check for Allow U+D/L+R before starting 2021-07-02 09:10:07 -04:00
alyosha-tas 197e5259c3 Basic Bot: fix 2 empty frame issue 2021-07-02 08:57:10 -04:00
YoshiRulz 46a55d6db4
Use nameof in some Type.GetMethod calls 2021-07-02 16:27:31 +10:00
alyosha-tas a14da86ac0 Fix Basic Bot 2021-07-01 22:06:34 -04:00
nattthebear 2ce269c3e6 Fix bad interaction between rewind+movie+savestates when using delta state rewinder
Closes #2826
2021-07-01 17:37:03 -04:00
alyosha-tas e0498c06ad NESHawk: Improve DMC emulation 2021-06-30 16:53:15 -04:00
zeromus 858faaeb56 fix terrible looking checkbox that was added to firmwaresconfig toolbar by hand instead of the IDE. actually it's kind of cool that you can jam any kind of controls in there, it gives me hope that you could make better looking toolbars by virtue of their not being styled like the ugly toolbars. but it really needs to be all-or-nothing. 2021-06-30 04:44:09 -04:00
zeromus 0ae2dc774c remove FirmwaresConfig dialog asserts added by d0a6817c1a which don't work 2021-06-30 04:38:01 -04:00
alyosha-tas 1aadfd1edf NESHawk: DMC timing on multiple write ocodes 2021-06-28 14:17:41 -04:00
alyosha-tas 76c76a8775 NESHawk: Update start up state again, fixes Paperboy 2021-06-24 23:04:26 -04:00
zeromus 0a290fa756 someone added a "Can't find the file specified: cue filename" for when ANY error happened (including when bin files couldn't be found), before the error message which would have said "Can't find the bin file specified by the cue file". probably while doing null-related refactor bullshit because they had to throw some exception instead of adopting a null value. fix that by undoing the null-related refactor bullshit and adopting the value which is known not to be null (to us, if not the nagging linter) after checking for the intended error conditions and throwing if they're set. fixes #2819 (probably) 2021-06-24 19:23:46 -04:00
alyosha-tas 28ff96deb5 NESHawk: update startup state 2021-06-22 12:23:15 -04:00
YoshiRulz 1f0e058ef5
Blindly update <PackageReference/>s 2021-06-21 12:13:42 +10:00
YoshiRulz 27547178a3
Allow MotW remover to fail silently 2021-06-21 11:08:56 +10:00
alyosha-tas cb0c8c0859 NESHawk: add offset to state, change input poll timing to match actual polling 2021-06-19 10:24:17 -04:00
nattthebear 90a12a8e73 Update virtual boy core with a mednafen 1.27.1 fix. 2021-06-19 08:32:50 -04:00
alyosha-tas 02cd2f47f3 NESHawk: update lag definition and add sprite address glitch 2021-06-18 23:08:04 -04:00
alyosha-tas 427d0351af MOS6502: white space cleanup 2021-06-18 23:07:01 -04:00
YoshiRulz 40c53e0c1f
Inline DisplayManager._glManager 2021-06-15 13:52:09 +10:00
alyosha-tas f251492a21 GBHawk: revert innacurate changes to window state, window timing needs to be fixed instead 2021-06-14 22:12:41 -04:00
YoshiRulz 0173e8d514
Fix assembly load exception on startup
lambda, crash, static local method, no crash... got it
2021-06-15 11:35:19 +10:00
YoshiRulz 22144401e2
Move IGL_GdiPlus to BizwareGL 2021-06-15 10:07:22 +10:00
YoshiRulz 5bdeea6c20
Decouple IGL_GdiPlus from GLControlWrapper_GdiPlus 2021-06-15 10:07:22 +10:00
YoshiRulz 673982003a
Move RenderTargetWrapper to BizwareGL 2021-06-15 10:07:22 +10:00
YoshiRulz bf4bac93b9
Decouple RenderTargetWrapper from GDI+ implementations 2021-06-15 10:07:22 +10:00
YoshiRulz 984982cd9b
Move IGL_GdiPlus.RenderTargetWrapper to own file 2021-06-15 10:07:21 +10:00
YoshiRulz 826f9469dc Fix code style issues in ZXHawk 2021-06-15 08:58:52 +10:00
YoshiRulz 8470fcfc72 Disable warnings in copypasta'd code
fixes 160217ef7
2021-06-15 08:58:52 +10:00
CasualPokePlayer ea369408fb
[Gambatte] Open Bus Emulation (#2798)
* [Gambatte] Open Bus Emulation

* Fix regressions

* a
2021-06-14 18:50:43 -04:00
YoshiRulz b8f5050d6c Replace specialised DisplayManager interfaces with DisplayManagerBase 2021-06-15 08:01:47 +10:00
YoshiRulz 798aa9d039 Move DisplayManagerBase to Client.Common 2021-06-15 08:01:47 +10:00
YoshiRulz f59836442d Extract subclass DisplayManager from DisplayManagerBase 2021-06-15 08:01:47 +10:00
YoshiRulz 20f405fe35 Rename DisplayManager to DisplayManagerBase 2021-06-15 08:01:47 +10:00
YoshiRulz af45671eb7 Extract helper method RunFilterChainSteps from UpdateSourceDrawingWork 2021-06-15 08:01:47 +10:00
YoshiRulz 9f7057f09d Misc. cleanup in DisplayManager
added a Deconstruct extension for Size
2021-06-15 08:01:47 +10:00
YoshiRulz 101c04de1b Remove explicit WinForms dep from DisplayManager (Padding struct) 2021-06-15 08:01:47 +10:00
YoshiRulz 6fa34a6257 Move font resources to Client.Common 2021-06-15 08:01:47 +10:00
YoshiRulz 332542c38b Move DisplaySurface to Client.Common 2021-06-15 08:01:47 +10:00
Matt Burgess d8ccd4017a ZXHawk: Remove left over debug stuff 2021-06-12 10:22:59 +01:00
Matt Burgess 51a67a947a ZXHawk: Overhaul datacorder and cassette loading code. This should now be more accurate and fixes a number of loading isues with particular games and loading schemes. There be desync dragons here!! Fixes #1446 2021-06-11 23:41:14 +01:00
zeromus 160217ef74 Add the first working IsAbsolutePath I could find, copied from .net core. It works for `\\192.168.0.x\public\SMB1.rom` ¯\_(ツ)_/¯
fixes #2787
2021-06-10 12:38:53 -04:00
YoshiRulz 93ca66a243
Fail properly when ext. tools dir is missing (fixes #2787 for real) 2021-06-11 02:09:16 +10:00
YoshiRulz 07fd664485
Set FormBase.Text in its ctor (fixes #2759) 2021-06-11 01:39:33 +10:00
Alan Unger 206314445b Skip DirectInput initialization for device names containing "Xbox One" or "XINPUT" 2021-06-09 06:02:52 +10:00
Alan Unger 2549c3fa04
Fix crash from disconnecting controllers with XInput (squashed PR #2783) 2021-06-09 02:35:35 +10:00
YoshiRulz eaff9274cb
Remove now-unused backing field
fixes e5e187982
2021-06-09 02:01:51 +10:00
YoshiRulz 77bbd6b24e
Clean up ext. tools dir monitoring (resolves #2787) 2021-06-09 01:58:26 +10:00
nattthebear 14fef0f2b5 Revert "GPGX: apply settings each frame, fixes layer viewer not updating properly"
This reverts commit b3fdbe7463.
2021-06-07 17:18:50 -04:00
YoshiRulz b26d215edb
Bump version 2021-06-07 22:17:59 +10:00
CasualPokePlayer e5e187982a
SubGambatte (squashed PR #2732) 2021-06-07 19:18:24 +10:00
alyosha-tas b62f4bc6a9 TAStudio: make operation of 'show player #' buttons more intuitive, fixes #2779 2021-06-06 10:00:57 -04:00
YoshiRulz dabd33c5f4
Un-swap fill and stroke in forms.drawRectangle/LuaCanvas.drawRectangle
fixes 0a9d496ec; see #2772
2021-06-06 13:46:29 +10:00
alyosha-tas b3fdbe7463 GPGX: apply settings each frame, fixes layer viewer not updating properly 2021-06-05 21:26:01 -04:00
alyosha-tas 147a5f0e75 Debugger: full update on restart, remove breakpoints before closing 2021-05-31 21:58:01 -04:00
alyosha-tas 8a09893818 Basic Bot: Add same movie check condition as in Macro tool, fixes #2762 2021-05-30 14:06:08 -04:00
alyosha-tas 733b6c49b0 ToolBox: make icons without instances of tools, I probably missed some but it no longer throws errors at least and works as expected. Fixes #2763 2021-05-30 11:44:16 -04:00
YoshiRulz 2704003429
Dispose of newly-instantiated Forms when populating Tool Box
see #2741, fe6bf7ba1, #2763
2021-05-31 00:53:23 +10:00
CasualPokePlayer 7e06f71afb
add HLE CGB-DMG colors for No Bios option (#2756) 2021-05-29 20:32:20 -04:00
alyosha-tas c1c032a345 Trace Logger: filter out null cases 2021-05-29 17:53:53 -04:00
alyosha-tas 28fe921983 Debugger: prevent crashes when minimizing and other cases, fixes #2760 2021-05-29 11:25:15 -04:00
YoshiRulz 0b0484ee7c
Fix code style warning (by simplifying) 2021-05-28 16:29:21 +10:00
zeromus 17e3e28d06 Fix a bug in PathExtensions IsAbsolute. Fixes #2747
This code should not exist here, anyway. For reasons just like this. Need to find framework method for it.
2021-05-27 16:52:05 -04:00
zeromus d39fa5d3d1 decrypt PathExtensions IsAbsolute and MakeAbsolute 2021-05-27 16:51:31 -04:00
alyosha-tas 7c17f31cdc Gambatte; update trace header 2021-05-27 09:27:58 -04:00
CasualPokePlayer 6432d99feb
[Gambatte] Many Updates (#2742)
* don't put isCGBMode for movies where CgbDmg mode is being used

* various Gambatte accuracy improvements + proper no BIOS support + tracelogger fixes
2021-05-27 08:56:13 -04:00
adelikat c5e6aadb0e update version info 2021-05-25 19:46:27 -05:00
Morilli 38bc953e22 Add a designated payload controller based on the multitapcontroller in the new bsnes core
- also patched out the left/right and up/down handling in the core, where it didn't belong
- also fixed the existing payloadcontroller because it wasn't working at all lol
2021-05-26 02:27:54 +02:00
feos 3c94000d3e mame: bios selection works 2021-05-25 21:14:27 +03:00
alyosha-tas 0b3cd0ec0d GBHawk: Fix some tests 2021-05-25 10:56:28 -04:00
Morilli 359657c29a Add a payload controller for the new bsnes core 2021-05-25 04:27:06 +02:00
YoshiRulz 817701856c
Respect LogKey of loaded movie for playback 2021-05-25 08:50:58 +10:00
YoshiRulz 38a223ffbd
Fix execution order in Bk2Controller constructors 2021-05-25 08:50:58 +10:00
feos aedb7d3972 mame: figure out default bios properly 2021-05-24 23:15:49 +03:00
YoshiRulz cc29c5edc7
s/UDRL/UDLR/ in N64 ControllerDef 2021-05-24 08:39:46 +10:00
feos e6c6c417d5 mame: populate bios menu 2021-05-24 00:49:00 +03:00
feos ebff82b968 mame: dip switches work 2021-05-23 17:31:35 +03:00
Morilli 24c74c0e36 Implement IDebuggable for the new bsnes core 2021-05-23 05:02:05 +02:00
feos a43eaaeee9 mame: sent syncsettings to the core and reboot 2021-05-22 23:03:21 +03:00
feos 512ca30d7e mame: set up the hawk side of syncsettings (dip switches only) 2021-05-22 19:02:45 +03:00
YoshiRulz d71eca3b2d
Implement SerializationStabilityTests.TestRoundTripSerialization 2021-05-22 08:15:31 +10:00
YoshiRulz dd45a3e37c
Exclude get-only props on PathEntryCollection from serialisation 2021-05-22 08:08:04 +10:00
YoshiRulz da649a1bc0
Fix hash comparison in DearchivalTests.TestSharpCompress 2021-05-22 05:59:35 +10:00
alyosha-tas 4165b2893d Cores: All cores must update Frame counter post-emulation. NOTE: This is a sync breaking change for MGBA movies using RTC, as the time sent to the core was the pre-incremented time. 2021-05-20 09:24:49 -04:00
alyosha-tas 7c661b5520 Autofire Controller: Latch frame number with controller latch, avoids midframe conflicts when cores update frame pre-emulation. 2021-05-20 09:21:42 -04:00
alyosha-tas bf9c6d784d NESHawk: add missing mapper variable to state. Only for some pirate games so won't fix any reported issues, just something I noticed. 2021-05-17 20:45:36 -04:00
alyosha-tas 94a851ef9e O2Hawk: fix #2684 2021-05-17 18:29:00 -04:00
alyosha-tas 4f24c6ac70 GBHawk: fix #2709 , also fixes a test that previously passed for the wrong reason 2021-05-17 17:10:25 -04:00
alyosha-tas 9f71f9b424 GBHawk: #2715 , still needs vram open bus fix but that's seperate 2021-05-17 17:07:00 -04:00
alyosha-tas 12b5ea62eb C64: implement memory callbacks 2021-05-17 15:10:09 -04:00
YoshiRulz 270ee700fb
Fix unassigned field warning 2021-05-17 10:47:43 +10:00
YoshiRulz 1aa9481a2a
Flip expected/actual in PlayMovie 2021-05-17 10:43:19 +10:00
nattthebear bc21f296a0 Romloader: Add `DontTryOtherCores` config setting
If set, only the first preference core (whether it be through gamedb or preferredcore or priority or whatever) will be tried, and a failure for it will immediately fail the entire thing.  This is mostly a developer feature to aid in debugging.
2021-05-16 11:57:30 -04:00
nattthebear e0a357f68d Support `ref structType` in BizInvoker
Could be useful if you need a struct type on the C# side for perf reasons, maybe to avoid allocations.  Like with passing classes, this is just a pointer conversion:  BizInvoker's design philisophy explicitly leaves out any sort of recursive field conversion that would necessitate making new objects.
2021-05-16 11:38:08 -04:00
nattthebear a18ea12bc0 Bsnes new - delegate refactoring
Fix reliance on GetFields() ordering which, per MDN, is unspecified.
CallingConventionAdapters.MakeWaterbox(...) doesn't care what order they're in, but snes_set_callbacks(...) does.
2021-05-16 10:03:03 -04:00
YoshiRulz fe6bf7ba12
Disable Tool Box on Linux (fixes #2741)
Was going to Close() the instances made by ToolBox.SetTools, which is probably a
good idea still, but it didn't cause my overridden LogWindow.OnClosing to run so
I gave up. The Tool Box is dumb anyway.
2021-05-16 08:57:12 +10:00
Morilli e2b38732dd Fix bsnes memory domains and add bsnes.wbx.gz 2021-05-15 19:36:08 +02:00
Moritz Bender 5d20862f26
Implement bsnes version 115 as a new core (#2740)
* Slam all this shit in here i don't care

* no lzma pls

* un-hack things that i hacked earlier (closer to bsnes source now)

* remove more unused files

* remove more files

* get some stuff working on this weird ass branch

* do this to get actual video (holy shit it works) while palette is incorrect

* make video look correct and hopefully fix stack waterbox allocation size uh ?

* Move the new bsnes core to its own dir as a new core and get input working

* remove leftover files from old bsnes

* fix some shit for now

* make lag frame detection work

* Improve cartridge loading to hopefully make sgb work (haven't tested)

- also changes some audio buffer stuff, might be better or worse than before idk
- need to figure out the saveram stuff
- path requests might actually completely fail atm, no idea how to verify that

* refactor to use a switch instead of some weird array with function pointers

- and implement snes_get_mapper, might be helpful or smth idk

* implement entropy c++-side and delete all this useless code holy

* delete dumb unnecessary code

* implement snes_peek_logical_register c++-side

* normalize all indentation

* attempt to properly support sharprtc and epsonrtc data loading and writing

* Duplicate winforms code to add entropy support c#-side and implement layer_enable functionality

The duplicated code is just so i can have a proper window for the new bsnes core. I do not like duplicating code like this, so this should be improved if possible

* Checkpoint for the start of getting rid of the ugly api wrapper stuff

* Next checkpoint for a full api refactor

* bullshit denied

just no.
every file is either copied or manually edited or written from scratch etc.
do not. force. one indent_style on every single file.
It just does not work.

* remove the entire eMessage_CMD handling and convert to native function calls

* general improvements regarding functionality

- adds hotfixes and fast_ppu core options
- add back the alwaysDoubleSize setting
- use bsnes's own serialize function for savestating now
- generate and use the color palette only in c# cause it doesn't need to be on the c++-side
- and more cleanup like always

* somewhat implement IMemoryDomains

* Implement trace logger and cleanup more unused stuff

* Implement ISaveRam, fix controller mapping for TAStudio and remove the pwrap stuff

* Fix ISaveRam, add a controller configuration box for the new core, (hopefully) fix controller inputs

- also differentiates BG prio0 and prio1 now (with options for it)
- some minor irrelevant edits in bsnes source

* Cleanup some more and optimize a bit

* Support firmware loading and make sgb work (hopefully)

* Remove all unused files

* Add back CropSGBFrame option and cleanup snes_video_refresh logic

* Some hopefully sensible changes

* One more cleanup pass

* Change to new PortedCore attribute

necessary after the changes in 98b07c42d5

Co-authored-by: nattthebear <goyuken@gmail.com>
2021-05-14 20:06:13 -05:00
YoshiRulz 68ba190c2f
Fix text wrapping in SNESOptions
fixes 64d14a7f9
2021-05-14 15:28:47 +10:00
YoshiRulz fdb5dfb7e5
Silence flood of prints on startup (in Debug), obviously no-one cares 2021-05-14 13:41:28 +10:00
YoshiRulz a9facd895a
Fix accelerator on system menu 2021-05-14 13:26:18 +10:00
YoshiRulz f614e41834
Use mnemonic instead of long name for system menu
fixes 553319ec9
2021-05-14 12:44:48 +10:00
YoshiRulz a357da360e
When mGBA fails with missing firmware, throw MissingFirmwareException 2021-05-14 12:19:45 +10:00
YoshiRulz c57cd97f56
Make MainForm.RebootCore return bool, read in MainForm.StartNewMovie
resolves #2147
2021-05-14 12:16:53 +10:00
feos 1c79afe8c8 update mame version 2021-05-12 23:32:36 +03:00
feos 9b2fce578c make LogWindow automatically scroll to last added line 2021-05-11 21:14:14 +03:00
YoshiRulz 567cb0c8fd
Disable the partial implementation of haptic feedback 2021-05-12 03:59:38 +10:00
zeromus 6f992e92e7 ok let's try this a different way so that mupen can work. now I allow the _lines and listcount to not get updated atomically, but hopefully the listcount gets updated before the user ever gets a chance to see it or interact with it (regardless of whenever that update actually happens) 2021-05-09 15:42:11 -04:00
zeromus a886a9b12a fix thread problems in log window (should address #2694 but I'm not calling it closed because maybe someone will jettison this log type completely)
note: in principle
1. _lines and the VirtualListSize are meant to be updated atomically
2. these can be written to from a different thread while the gui thread reads them
this necessitates a high degree of caution around how those variables are accessed, which is made complicated because VirtualListSize isn't a variable but rather done as a win32 call on the gui thread only
2021-05-09 14:54:16 -04:00
YoshiRulz cfad22e80d
Change UI for rewind buffer size (resolves #2302) 2021-05-10 03:33:23 +10:00
feos 2832df893b mame: added more mnemonics 2021-05-08 23:07:00 +03:00
feos 701d340e00 mame: probably fix audio 2021-05-08 21:01:45 +03:00
nattthebear 547bf6d308
Add delta compression rewinder (#2733)
Good size reduction for some cores, less useful for others.  Typically moderately slower.  Has some threading built in (cannot be disabled).

Example speeds with PSX core:

104 fps with delta rewinder
112 fps normal rewinder (no compression)
124 fps without rewinder
2021-05-08 08:47:12 -04:00
YoshiRulz 3ea71a2dda
EXTERMINATE SPACES 2021-05-08 08:16:10 +10:00
YoshiRulz 9cd3d0b57f
Finish null-safety in BizInvokerUtilities
fixes b6f1afcce
2021-05-08 05:57:24 +10:00
YoshiRulz 98b07c42d5
Extract subtype PortedCoreAttribute from CoreAttribute 2021-05-07 00:14:37 +10:00
YoshiRulz 796d0652e4
Clean up ported vs hawk core handling in BizBoxInfoControl 2021-05-07 00:11:43 +10:00
YoshiRulz 54301e9616
Correct info in melonDS' [Core] attr
not sure on the version
2021-05-06 23:28:08 +10:00
YoshiRulz d570cc2fcc
Return correct CPU name from GBDisassembler (Gambatte)
fixes b0095927b
2021-05-06 22:33:58 +10:00
CasualPokePlayer db97427ae1
Add rgbds syntax for GB/C disassembly (#2706)
* replace current GB/C syntax with rgbds syntax
* make rgbds syntax an option, only works for Gambatte tracelogger

* fix add sp/ld hl,sp+
These opcodes aren't disassembled correctly at all; they seem to just use the exact same logic as jr, which doesn't really work here since these are explicit adds, and these opcodes use sp, not the pc. This is probably the most logical approach to this opcode.

Co-authored-by: YoshiRulz <OSSYoshiRulz@gmail.com>
2021-05-05 21:52:25 -04:00
CasualPokePlayer 3372556ef0
[Gambatte] MBC3 RTC Refactor (And add a way to set initial RTC state) (#2724)
* slightly fix gambatte peeking
* fix gambatte layer masking, move layer masking to sync settings (these settings affect sync, they shouldn't be normal settings)
* block toggle layer hotkeys when movie recording
* refactor Gambatte's RTC
* add a way to set an inital RTC state during a movie recording
* prevent Gambatte from saving RTC data when recording a movie, needed to create save-anchored movies
2021-05-05 21:40:36 -04:00
YoshiRulz 7a7522f282
Add path helpers, normalise rom path from CLI, update readme
see #2077
2021-05-05 06:48:05 +10:00
YoshiRulz 3fee117c5f
Clean up toggle/refresh buttons in Lua Console 2021-05-04 23:57:12 +10:00
YoshiRulz 0a9d496ece
Accept all 4 colour formats in all Lua functions, update docs/wikitext
resolves #2602
2021-05-03 19:06:15 +10:00
YoshiRulz 893396a009
s/long/int/ in Lua so addresses 0x80000000..0xFFFFFFFF are usable
see #1734
2021-05-03 16:54:13 +10:00
YoshiRulz 5016f6ef1c
Prevent hangs from trying to go backwards w/ client.seekframe 2021-05-03 16:39:23 +10:00
Zach 8b79720b9d
N64 plugin categories (#2729)
* GLideN64 categories

* Remove maximize button from n64 plugins window.

Maximize breaks the anchors for the property grids, and the window is fixed size anyway.

* GlideMk2 categories

* Glide64 categories

* Rice categories

Also fixed typo "WinFrame" -> "Wireframe"
2021-05-02 09:39:13 -05:00
adelikat f83a94954f Tastudio - remove some vestigial code for background worker workarounds that is now causing a broken tastudio when selecting a New from the File menu and saving changes when asked 2021-05-01 11:57:21 -05:00
adelikat 49dc7a2bd3 tastudio - fix an _initializing hack spot 2021-05-01 11:42:27 -05:00
Zinfidel e55b19e990 Fix copy-paste description. 2021-05-01 16:12:44 +10:00
feos a35143539b add utvideo to ffmpeg dumper
speed is 4 times faster than ffv1, size it twice as big (tested on SM64 running at 4K internal res). avisynth is more happy with ut than with ffv1, because for the latter you have to tell it the actual pixel format. great option overall.
2021-04-30 20:09:16 +03:00
YoshiRulz 6dbe73d306
Update Cyotek.Drawing.BitmapFont to 2.0.2 (fixes #2716) 2021-04-28 00:51:29 +10:00
zeromus 31d83d0d6e fix crash in PCE debugger by adding peek and poke to the cpu instead of using read/write memory which triggers callbacks. however, the peek and poke are incomplete, as this requires deeper development (in this case, implementation in the memory maps) 2021-04-24 23:20:00 -04:00
adelikat aad592cc1c Tastudio - fix annoying auto-restore bug where it would not set auto-restore position correctly the first time using it after an auto-restore usage earlier in the movie. This might have some regressions, needs testing by people who would know 2021-04-23 18:34:17 -05:00
adelikat 838f571e0b
replace some winforms specific values and ram watch chacks with IToolForm properties. Removes hacks, and some winforms dependencies in tools, and allows for easier implementation of closeable tools (#2719) 2021-04-23 15:41:58 -05:00
nattthebear 2ba5fe338a
add missing menacer keys (#2718)
See eafa39456f and 307d85cee0.
This will add extra keys that do nothing on certain non-menacer light guns, but that never seemed to bother anyone in 1.x.
2021-04-18 10:09:33 -05:00
James Groom 5de101107c
Remove 2-way FirmwaresConfig<=>PathsConfig link (#2698)
* Remove links between PathsConfig and FirmwaresConfig

in the label in FirmwaresConfig, I left the search path and how to change it

* Clean up hacks only needed for FirmwaresConfig<=>PathsConfig links
2021-04-18 10:09:22 -05:00
Moritz Bender 02eb20725a
Fix #2583 (#2699) 2021-04-18 10:06:25 -05:00
CasualPokePlayer b9123453aa
[Gambatte] Slightly fix peeking & fix layer masking (#2712)
* slightly fix gambatte peeking

* fix gambatte layer masking, move layer masking to sync settings (these settings affect sync, they shouldn't be normal settings)

* block toggle layer hotkeys when movie recording
2021-04-18 10:03:44 -05:00
adelikat 82f26ee4ec fix autoloading of ram watch that was broken in the 2.5 releas 2021-04-18 09:54:35 -05:00
nattthebear 9243a6a215 Revert "Add light gun option for Genesis gamepads"
This reverts commit 92241b15cf.
2021-04-18 08:32:43 -04:00
YoshiRulz 771b5397fe
Fix range, def. binds, and Virtual Pad for SEGA Mouse 2021-04-17 12:54:17 +10:00
YoshiRulz 92241b15cf
Add light gun option for Genesis gamepads
seems to work; why do we have our own enum instead of using one of GPGX'?
2021-04-17 12:00:36 +10:00
adelikat 9ff4b904c6 Tastudio - revert double click edit, fix double click navigation to be double click not mouse double click, simplify range checking in said logic 2021-04-16 09:04:16 -05:00
YoshiRulz b7b10e2631
Update Cyotek.Drawing.BitmapFont to 1.3.4
see #2716
2021-04-16 12:49:30 +10:00
adelikat eb4b3a1f82 Tastudio - open edit marker pop up when double clicking a marker 2021-04-15 21:04:29 -05:00
adelikat a95c4f1820 fix TAStudio auto-loading, broken by ec5e88c8 (regression introducted in 2.6) 2021-04-15 20:57:11 -05:00
YoshiRulz 652b38d04c
Check-in ReflectionCache assembly instead of including in build 2021-04-14 10:44:46 +10:00
adelikat b1f2ec77fb default bsnes core to 1 controller (didn't test this since latest master doesn't compile) 2021-04-13 18:14:31 -05:00
YoshiRulz 65d5e3f7d5
Move NymaTypes to separate project, fiddling w/ project structure 2021-04-09 17:49:07 +10:00
YoshiRulz a9e78488ac
Add remaining cores to CoreNames, manually changing Designer files 2021-04-09 14:14:59 +10:00
YoshiRulz fb1d507220
Clean up use of existing CoreNames consts 2021-04-09 14:14:59 +10:00
YoshiRulz 48bb5c24e6
Refactor MainForm.HandlePlatformMenus 2021-04-09 14:14:58 +10:00
YoshiRulz 553319ec95
Clean up "display name" stupidity
* removed CoreAttribute.DisplayName (using IEmulator.SystemId instead)
* fixed ToolManager checking for "(Experimental) " prefix on names of unreleased
cores in ToolAttribute.UnsupportedCores
* corrected display name of UZE sysID to "Uzebox" (was "uzem")
* disabled auto-generated accelerators (&A -> Alt+A) on "current system" menu in
MainForm menubar because they could conflict with hardcoded ones
2021-04-09 14:14:58 +10:00
YoshiRulz 193e9aa7dc
Put AviWriter and its imports (and usages) behind #if AVI_SUPPORT
for now it's defined even on Linux, try removing it in /src/MainSlnCommon.props
2021-04-08 17:33:46 +10:00
YoshiRulz 262fc72044
Move DisplaySurface and QuickBmpFile to EmuHawk 2021-04-08 16:59:32 +10:00
YoshiRulz 0bfe3cb6ab
Genericise SwappableDisplaySurfaceSet 2021-04-08 16:59:32 +10:00
YoshiRulz 85eedb39fd
Extract interface from DisplaySurface 2021-04-08 16:59:32 +10:00
YoshiRulz bd9ec3c57d
Convert static class QuickBmpFile to (empty) struct with interface 2021-04-08 16:59:32 +10:00
YoshiRulz 1aebbe9cd6
Add QuickBmpFile.LoadAuto helper 2021-04-08 16:59:32 +10:00
YoshiRulz 1f080be047
Extract byte swapping helpers from RomGame, cleanup, and add tests 2021-04-08 16:59:31 +10:00
YoshiRulz 214f024d86
Replace void* param in IGL.BindArrayData w/ IntPtr 2021-04-08 16:59:31 +10:00
YoshiRulz 3db06c4aa9
Remove unsafe keyword where unused or extraneous 2021-04-08 16:59:28 +10:00
YoshiRulz 4d47861296
Cleanup DisplayManager.ClearApiHawkSurfaces 2021-04-08 16:42:27 +10:00
YoshiRulz e25121bb79
Fix typo 2021-04-08 15:29:21 +10:00
YoshiRulz d32f7344ae
Fix RecordMovie having a broken layout on Linux 2021-04-08 09:24:12 +10:00
YoshiRulz 9e609271b9
Correct my claim re: axis bindings in comment and clarify some things 2021-04-05 17:06:50 +10:00
YoshiRulz 5209bc69a1
Fix location and namespace of CorePickerStabilityTests
oops
2021-04-05 17:06:49 +10:00
YoshiRulz d0a6817c1a
In FirmwareConfig, don't treat known-but-bad as good (resolves #2224) 2021-04-04 15:52:39 +10:00
YoshiRulz aab0dd582d
Fix compliance with SA1142 (don't access ValueTuple fields as ItemN) 2021-04-04 14:16:41 +10:00
YoshiRulz 26eaa22be2
Update StyleCop, migrate FxCop to NetAnalyzers (built-in) 2021-04-04 14:15:22 +10:00
YoshiRulz 55bf1d5f56
Reinstate assembly version check
made possible by #2697
2021-04-04 12:41:01 +10:00
YoshiRulz f204f4e367
Use a Source Generator for ReflectionCache classes 2021-04-04 12:41:01 +10:00
YoshiRulz 86dd250a73
Prevent copying BizHawk.Version assembly to output for real 2021-04-04 12:41:01 +10:00
YoshiRulz 56916fbbca
Add test to do sanity checking of core picker and default core prefs 2021-04-02 19:53:12 +10:00
YoshiRulz c5802e9154
Only use IReadOnlySet in .NET 5, ICollection for other targets
forgot AppVeyor compiles the test project for .NET Core 3.1
2021-04-02 19:52:51 +10:00
YoshiRulz 71cb9a8805
Add test to prevent adding unserializable types to Config 2021-04-02 17:29:13 +10:00
YoshiRulz 286727eb44
Make collection-typed fields readonly where possible
also I widened them all to the relevant interface

this was done with a naive regex replace, followed by reverting lines until all
the build errors were gone; the regex was something like
s@(public|internal|protected|private) ((?:List|Dictionary)<[^=\n{]+= )@$1
readonly I$2@g
2021-04-02 16:27:40 +10:00
YoshiRulz 5dd7a66120
Cleanup serialisation of test cases in CheatDecoderTests 2021-04-02 16:27:40 +10:00
YoshiRulz 3860199c52
Add ext. methods for calling List<T> methods on collection interfaces 2021-04-02 16:27:36 +10:00
feos 3ff0eb33db update mame to 0.230 2021-04-01 23:19:07 +03:00
YoshiRulz 1ffc0435b3
Remove haptics from ControllerDefinitionMerger (fixes #2690) 2021-04-01 09:22:06 +10:00
YoshiRulz ad1659eb68
Re-add Debug haptics channel to all cores, but only in Debug config 2021-04-01 09:18:16 +10:00
YoshiRulz cb88e98f39
Fix syntax error 2021-04-01 09:15:16 +10:00
CasualPokePlayer d308afa45c
clarify Gambatte sync settings (#2688) 2021-03-31 18:07:54 -05:00
Moritz Bender fc97e096a1
Add initial marker in frame 0 when loading older tasprojs (#2693)
else this would make the first created marker take slot 1 and be uneditable and undeletable, which isn't good
2021-03-31 18:07:22 -05:00
nattthebear b964cf9447 bear minium hacks to hapics to get broken cores working
affected were bsnes, snes9x, and neshawk
2021-03-31 17:50:31 -04:00
Moritz Bender 2a09345a7e
Microsoft and their zip library can get bent 2021-03-31 17:36:09 -04:00
YoshiRulz 53b3dccb12
Fix missing import 2021-03-31 08:36:21 +10:00
nattthebear a91fa2754e clean up names in zipstater
We were using some sort of special malformed non-path seperator character to stand in for the path seperator character in in the lump names, and then compensating for that brokenness when loading lumps.
On save, we were relying in our zip library compensating for the brokenness.
2021-03-30 17:47:50 -04:00
Moritz Bender 6c2b72dd8d
Fix some TAStudio branch view issues (#2686)
* Fix exception, scroll to branch on updating branch and fix #2645
* Make loadbranch hotkey deselect all but one branch
matches updatebranch behavior and fixes part of #2645
2021-03-30 23:33:45 +03:00
feos ca8c7a5427 break mame into subfiles 2021-03-30 23:26:41 +03:00
Moritz Bender 5743b0257d
Fix #2640 (#2687) 2021-03-30 13:51:28 -05:00
YoshiRulz 6f47492d95
Add haptics support to ControllerDefinition and the Controller stack
still no cores which support it, "Debug" is still hardcoded, still uses holding
Fast Forward hotkey to trigger
no idea how OverrideAdapter, or the IInputAdapters, or the Bk2/BkmController
will work, I've just thrown NotImplementedException from those
2021-03-30 10:06:26 +10:00
YoshiRulz bb3fddcb5f
Allow configuring "keybinds" for haptic feedback (see desc.)
Open `Config` > `Controllers...` with any rom loaded and go to the last tab.
A "Debug" virtual channel is hardcoded, and will be present on every core.
As with the previous commit, holding Fast Forward causes this channel to fire
and it will be passed through to a bound host gamepad.
The prescale slider works. Virtual channels with a player number prefix also
work, but the single "Debug" channel without a prefix is hardcoded.
Caveats: Reopening the config dialog doesn't load the host channel back into the
combobox. It will save to config correctly.
2021-03-29 17:43:31 +10:00
YoshiRulz 6102db0e68
Wire up host haptics, hold Fast Forward key to test
DirectInput works, OpenTK 3 doesn't seem to actually support it even though the
method is present and has documentation -_-
2021-03-29 10:03:55 +10:00
YoshiRulz bdfc54443f
Use props on GamePad/GamePad360 for pad prefixes 2021-03-29 10:03:50 +10:00
zeromus d02863e491 Merge branch 'master' of zeromus-github.com:/tasvideos/bizhawk 2021-03-28 15:24:39 -04:00
zeromus 23c0928107 stop using exceptions for flow control 2021-03-28 15:24:28 -04:00
zeromus 99c8e4e910 I dont think GuiAPI should use the ScreenLogicalOffsets this way. Cores should be using this entirely internally -- either adjusting what they fill the framebuffer with, or communicating further data for how to display a limited section of the framebuffer offset to DisplayManager via IVideoProvider or similar but NOT via this. So why does ScreenLogicalOffsets exist? So that scripts can alter that setting. This is actually NOT A GREAT IDEA if you ask me because the same could be done via general PutSettings APIs. nevertheless, that's what we have. So anyway, I dont think when drawing via script we really need this value inspected. 2021-03-28 15:22:42 -04:00
feos b89f14313e fix syntax 2021-03-28 20:59:12 +03:00
zeromus ac349af9f5 stop using exceptions for flow control 2021-03-28 03:44:52 -04:00
YoshiRulz 927a8970d6
Use a nicer loop syntax in MainForm.ProcessInput 2021-03-28 08:48:00 +10:00
YoshiRulz 77e9197bcc
Encapsulate MainForm.ProcessInput to not use Controllers/InputManager 2021-03-28 08:48:00 +10:00
YoshiRulz 095de11f00
Inline Controller.NormalizeAxes and cleanup 2021-03-28 08:48:00 +10:00
YoshiRulz 04257ec676
Resolve TODO in Controller.NormalizeAxes
_axes and _axisRanges have the same keys, and should probably be one dict,
and _axisBindings has the same keys or a subset
2021-03-28 08:47:57 +10:00
YoshiRulz b6f1afcce8
Enable nullable reference types in BizInvoke 2021-03-26 14:52:56 +10:00
YoshiRulz 23d8417ca8
Convert ParameterLoadInfo to a readonly struct 2021-03-26 14:52:55 +10:00
YoshiRulz d43d8fc38c
Improve encapsulation of InvokerImpl 2021-03-26 14:52:55 +10:00
YoshiRulz a6f1156012
Throw ObjectDisposedException from MemoryBlock methods after disposed 2021-03-26 14:52:55 +10:00
YoshiRulz fabf518c73
Narrow constraint on generic GetDelegateForFunctionPointer ext. method 2021-03-26 14:52:55 +10:00
YoshiRulz cbd875376e
Add and use FirstOrNull ext. method for collections of value types
This reverts commit 5567a42bb1.
2021-03-26 11:26:52 +10:00
zeromus 5567a42bb1 don't depend on exceptions for flow control 2021-03-25 21:13:11 -04:00
YoshiRulz c6dcb71d92
Remove goto from PCESoundDebugger.UpdateAfter 2021-03-26 10:43:20 +10:00
YoshiRulz 5daed21990
Remove goto from FilterProgram.Compile 2021-03-26 10:41:11 +10:00
YoshiRulz 40a0abc657
Replace Dictionary with List of ValueTuple in ArtManager
it was only used as a List of KeyValuePair anyway
I assume this was written before tuples
2021-03-25 19:31:56 +10:00
YoshiRulz e9ce42bfe0
Remove the other goto from TexAtlas.PackAtlas 2021-03-25 19:20:21 +10:00
YoshiRulz 997df16487
Remove a goto from TexAtlas.PackAtlas 2021-03-25 19:20:21 +10:00
YoshiRulz 89c1406f5a
Minor refactorings in TexAtlas.PackAtlas 2021-03-25 19:20:21 +10:00
YoshiRulz fc30b0bd26
Replace TexAtlas.PackedAtlasResults with List of ValueTuple 2021-03-25 19:20:18 +10:00
YoshiRulz 98c7db0274
Fix typo in TexAtlas.PackAtlas
This has been here since it was added in a2ba761ae. I think it's never caused
problems because the two lists are the same in all cases where the method's
result is used (the single caller, ArtManager.Close, immediately checks the
result of this method and throws if multiple atlases are used).
2021-03-25 18:58:22 +10:00
YoshiRulz 3da01dbfce
Init LuaFileList/LuaFunctionList outside platform impl. and pass in
now init'ing the lists at construction instead of mutating them afterwards
2021-03-25 16:02:22 +10:00
YoshiRulz ddef661eb2
Move attaching of callbacks from LuaConsole_Load to Restart
Y'know, where the thing they're being passed to is created... I don't think them
only being attached once was a problem, as one is also called from elsewhere and
the other is kinda useless
2021-03-25 15:43:20 +10:00
YoshiRulz f7cacfab99
Inline methods from LuaFunctionListExtensions and cleanup 2021-03-25 15:20:47 +10:00
YoshiRulz 3b8f08b1b0
Create and use helper for changing core pref. when importing movies 2021-03-25 15:11:04 +10:00
YoshiRulz 3249ae202e
Pass MainForm as IDialogParent through to movie importers 2021-03-25 15:11:04 +10:00
YoshiRulz 2fad61e4b5
Don't set preferred core for GBA when importing .vbm, there's only one
this wasn't removed when we dropped VBA-Next
2021-03-25 15:11:04 +10:00
zeromus b1602dae06 lua - actually send a comprehensible string over sockets instead of nonsense 2021-03-24 02:51:43 -04:00
James Groom f5d21a8f68
Unification of modal dialogs for errors and such (#2579)
* Pass IDialogParent to IVideoWriter impls via ctor instead of param

* Refactor IDialogController/Parent, moving some of it to Client.Common

tl;dr: MessageBoxButtons.OK => ShowMessageBox/ModalMessageBox,
MessageBoxButtons.YesNo or .OKCancel => ShowMessageBox2/ModalMessageBox2,
MessageBoxButtons.YesNoCancel => ShowMessageBox3/ModalMessageBox3.

Possible breaking change: Cheats had `Owner ?? this` as its "self", which I
think parented any modals it opened to MainForm instead of the Cheats window.
The Cheats window will be their parent now regardless. Other than that, all the
icons and stuff for all the other dialogs should be exactly the same.

* Remove WinForms dep from AV classes where possible

* Cleanup CoreFileProvider init, passing MainForm as IDialogParent

* Pass MainForm as IDialogParent to MovieSession

* Pass IDialogController through to one MovieZone ctor

* Use MessageBox helpers in RecordMovie

* Implement IDialogParent on misc. Forms to use MessageBox helpers

* Use MessageBox helper in misc. config Forms

* Pass IDialogController through to misc. Forms for MessageBox helpers
2021-03-23 19:08:32 -05:00
feos fbfbda65ad update mame lua api 2021-03-22 20:12:18 +03:00
zeromus c252ac2934 blind fix to lua socket receive string which supports embedded nulls and probably fixes rarer cases where long codepoints got broken up. re #2671 2021-03-21 21:28:39 -04:00
YoshiRulz fafa29a2bf
Add Lua function comm.socketServerSendBytes (resolves #2194)
takes a single param of an array-like table, casts each element to byte before
passing to ApiHawk
2021-03-22 08:15:53 +10:00
YoshiRulz 45488f2667
Change encoding for sockets to UTF-8, allow ext. tools to override it 2021-03-22 08:11:42 +10:00
nattthebear f08fdc3859 Fix aspect ratio of intellivision
What the fuck was this?  Someone went to the effort of entering in a value but expended absolutely no effort in checking it?  Oh well.  Fixes #2670.
2021-03-21 09:43:26 -04:00
adelikat 0a643af6df Hex Editor .tbl file loading - clear table before loading a new one, ignore empty lines in file 2021-03-20 22:45:20 -05:00
YoshiRulz 611d1bfaa1
Use UIHelper in FormsLuaLibrary (resolves #2604) 2021-03-21 08:23:31 +10:00
nattthebear 62ddd6495e
Tweak the rewinder. (#2668)
MainForm intentionally frame advances right after rewinding; this is so it can capture a new framebuffer. The old rewinder sort-of understood this, the new one does not.

Tweak the logic so the new rewinder behaves like the old one, but only when the interval is 1. When the interval is greater than 1, don't go farther back than we have to.

No particular behavior is guaranteed when nonlinear time exists (ie, rewinding through manual loadstates).

Fixes #2667.
2021-03-20 12:05:19 -04:00
YoshiRulz f0b9e2e828
Make PathEntry sealed, add constructor and use in PathEntryCollection 2021-03-19 10:33:10 +10:00
YoshiRulz 0b5f48aede
Replace some parameter mutation w/ recursion 2021-03-19 10:33:10 +10:00
YoshiRulz c5e84ff02e Create new project Bizware.OpenTK3 from Bizware.BizwareGL and EmuHawk 2021-03-19 07:32:29 +10:00
YoshiRulz b1af3b1940 Move interface IBlendState to own file 2021-03-19 07:32:29 +10:00
YoshiRulz f36fc654ca Copy vector and matrix structs from OpenTK and cleanup
I managed to trim the > 5000 LOC of the original 4 files down to 400 LOC \o/
2021-03-19 07:32:29 +10:00
YoshiRulz 337b054042 "Inline" some vector and matrix operations 2021-03-19 07:32:29 +10:00
YoshiRulz 3dd03495e2 Copy enums from OpenTK 2021-03-19 07:32:29 +10:00
YoshiRulz 4a0e343c37 Copy DegreesToRadians method from OpenTK.MathHelper 2021-03-19 07:32:29 +10:00
YoshiRulz 7ff70de159 Split IGL.TexParameter2d into two methods 2021-03-19 07:32:29 +10:00
YoshiRulz 6fc43e9c22 Remove unused class BizwareGLExtensions 2021-03-19 07:32:29 +10:00
nattthebear 90d0e21863
Probably fix SNES core crash on load with CDL enabled, or formerly enabled. (#2662) 2021-03-12 23:33:59 +03:00
James Groom 43ba7f94dc
Fix SMSHawk's system ID (#2650) 2021-03-09 19:18:25 -06:00
zeromus 6f04ff6252 partly fix #2656, I guess. This was a shortcoming in the architecture that allowed the joypad API developers to make a mistake. There will be other fallout from that, but this is the minimal fix. 2021-03-06 19:57:49 -05:00
YoshiRulz 3fb35b1599
Re-add enable/disable behaviour to background input config checkboxes
erroneously removed in 74ba28146 CBB linking the whole commit and revert history
2021-03-05 03:09:29 +10:00
YoshiRulz 513dbcfe5c
Fix compilation of DBMan ext. tool 2021-03-04 20:14:59 +10:00
YoshiRulz 6afb3be98c
Rewrite some expressions to avoid type checker edge cases 2021-03-04 20:11:18 +10:00
TiKevin83 28241e3042 fix autodetection of console mode 2021-03-04 02:04:45 -05:00
TiKevin83 b2893d24c6 Update Gambatte to fix RTC issues and output location of the DLL in the assets folder 2021-03-04 02:04:45 -05:00
TiKevin83 9ca1b86316 Update gambatte to support the wisdom tree mapper and fix upstream reference and links 2021-03-04 02:04:45 -05:00
YoshiRulz 2affc5bca7
Remove .\ and ..\ from PathConfig autocomplete
-_- this has been annoying me since I started contributing and I only just
learned the cause was in our codebase
2021-02-26 20:13:24 +10:00
YoshiRulz e7512e57a0
Use global lookup for display names in path config 2021-02-26 20:07:34 +10:00
YoshiRulz 0e4e9a2840
Refactor PathConfig.DoTabs and helpers 2021-02-26 20:07:34 +10:00
YoshiRulz b14ed4966f
Cleanup PathEntryCollection ctors, remove unused method Add 2021-02-26 20:07:34 +10:00
YoshiRulz 0fb9ef77e6
Less dumb #if DEBUG for ZX submenu 2021-02-25 16:59:46 +10:00
YoshiRulz fece6cf7c4
Cleanup system IDs (see desc.)
* `Game Gear` was used instead of `GGL` for linked GG multi-disk bundles and
core constructor (I assume the latter was a hack to fix loading bundles made
with the former bug in effect)
* `Arcade` was used instead of `MAME` in rom loading ("Arcade" is also assigned
to an out param in the MAME ctor but I assume that's an intentional placeholder)
* `Saturn` was used instead of `SAT` in `GameSharkDecoder.CheatDomainName`,
making it non-functional (a comment said it was probably incorrect, so I'm
assuming that if it runs something will break and putting it in #if false)
* `G7400` was only used in firmware IDs, replaced with `O2`
* `Vectrex` was only used in firmware IDs, replaced with `VEC`
* `uzem` (core name) was used instead of `UZE` for MainForm title lookup, making
it non-functional
* `DNGP` doesn't exist
2021-02-25 16:45:55 +10:00
YoshiRulz c11d410fb7
Remove IEmuClientApi.Get/SetInput and supporting types, and cleanup
what's a deprecation cycle
also -1k LOC whoo
2021-02-25 16:13:41 +10:00
YoshiRulz ef0b380192
Autolock hack is nothing without autounlock hack 2021-02-24 11:12:27 +10:00
YoshiRulz 2859d6c45b
Inline the autolock hack and use it for both surfaces 2021-02-24 10:41:28 +10:00
YoshiRulz cc7e440fba
Cleanup usage of Config.PreferredPlatformsForExtensions 2021-02-23 05:37:50 +10:00
YoshiRulz 4103a8bab2
Cleanup usages of FirmwareID fields 2021-02-23 02:20:27 +10:00
YoshiRulz eee4915ddd
Add missing UI strings for firmware group headers 2021-02-23 01:51:47 +10:00
YoshiRulz 485817a8e4
Replace (string, string) w/ FirmwareID in nyma core ctors 2021-02-23 01:09:25 +10:00
nattthebear cec46f1e65 Grumble grumble I need to learn more C# 2021-02-22 08:17:41 -05:00
YoshiRulz d0c0b1fdb3
Bump version for dev builds 2021-02-22 21:18:24 +10:00
adelikat bd31773d9e Update version info 2021-02-21 15:22:17 -06:00
adelikat d4dc260fc4 Tastudio - refresh view when middle-clicking to pause 2021-02-21 15:14:57 -06:00
YoshiRulz a8b1e06e44
Make autolocking of ApiHawk surface less aggressive when used via Lua 2021-02-22 04:26:05 +10:00
nattthebear d929891c97 Something something mapper 90 out of bounds
Closes #2632
2021-02-21 09:24:02 -05:00
nattthebear 13b7b43db6
Fix corruption in ZWinderBuffer when using Stream.ReadByte / Stream.WriteByte overloads (#2630)
The ZWinderBuffer implementations of Stream.ReadByte and Stream.WriteByte could process data incorrectly in certain circumstances.  This had been broken since f4e98fd.

ReadByte: When the first read from a state stream was a ReadByte, the underlying buffer would be in the wrong place
WriteByte: If a state was evicted and then the eviction was immediately followed by a WriteByte, the underlying buffer would be in the wrong place.

This impacts pretty heavily the rewinder and tasstatemanager for any core whose save and/or loadstate methods happened to use those methods.
2021-02-20 12:21:56 -05:00
zeromus 6b6637fbea improve xinput availability check which was broken by pointless refactors in 580aa2eaf9 (but it should be even more robust than before, now). fixes #23 2021-02-18 21:52:30 -05:00
YoshiRulz 1fd888dcc9
Fix naming of GDIPlusGuiRenderer 2021-02-14 15:30:45 +10:00
YoshiRulz ba88712b2b
Rename BizHawk.Client.Common.DisplayType to WatchDisplayType
we have aonther type with that identifier, BizHawk.Emulation.Common.DisplayType
2021-02-14 14:48:12 +10:00
YoshiRulz 34cb598fe2
Rename AttributeUsage enum to AttribUsage
as to not shadow [AttributeUsage]
2021-02-13 23:11:52 +10:00
YoshiRulz dc3bd050da
Cleanup FirmwareManager 2021-02-12 17:10:21 +10:00
YoshiRulz 2f18c74840
Convert RealFirmwareFile to readonly struct 2021-02-12 17:07:43 +10:00
YoshiRulz 3a3cb0c30b
Convert FirmwareEventArgs to a readonly struct 2021-02-12 17:07:43 +10:00
YoshiRulz 5fa2c0ff26
Enable nullability for ResolutionInfo.cs 2021-02-12 17:07:43 +10:00
YoshiRulz a41fc1f1ce
Convert FirmwareRecord to a readonly struct 2021-02-12 17:07:43 +10:00
YoshiRulz 2e52827bc1
Convert FirmwareOption to a readonly struct 2021-02-12 17:07:42 +10:00
YoshiRulz af7ed156e9
Convert FirmwareFile to a readonly struct 2021-02-12 17:07:42 +10:00
YoshiRulz 10ed0872a4
Add and use FirmwareID struct
decided not to propogate to cores yet, left TODOs in Emulation.Common.Extensions
2021-02-12 17:07:42 +10:00
YoshiRulz 35f317a887
Split inner classes of FirmwareDatabase to own files 2021-02-12 15:52:45 +10:00
YoshiRulz dd0fc1b0b3
Move FirmwareManager to new subdir, split inner classes to own files 2021-02-12 15:48:01 +10:00
YoshiRulz b4be750427
Use direct casts for Control.Tag of known type in FirmwaresConfig 2021-02-12 15:44:36 +10:00
YoshiRulz dbe2cd4cde
Cleanup <Reference/>s of NLua (and System.Data.SQLite) 2021-02-12 13:59:40 +10:00
YoshiRulz f8ba7ece7d
Have ControllerConfig not break when resized (resolves #2611) 2021-02-12 13:31:16 +10:00
zeromus 7f14991442 remove list of games in comments from that mapper. they were apparently all wrong; I have seen more updated data in nesdevwiki 2021-02-09 23:03:54 -05:00
zeromus 8254982003 neshawk: fix namco340 mapper's mirroring registers; fixes #2584 (wagyan land 2)
note: the nesdevwiki docs were a bit scrambled due to history. I found corroboration for my testing and updated the docs while fixing neshawk
2021-02-09 22:58:22 -05:00
YoshiRulz f2ff5ea4ee
Move FirmwareDatabase helpers into ctor, prevent mutating collections 2021-02-08 13:19:23 +10:00
YoshiRulz b2b5647e83
Use Option helper in FirmwareAndOption, then inline _OptionWork 2021-02-08 12:56:41 +10:00
YoshiRulz 144a8aafd0
Cleanup FirmwareDatabase init helpers
using the result of File in FirmwareAndOption is setting up for the next commit
2021-02-08 12:56:41 +10:00
YoshiRulz 6716c3fd8f
Inline FirmwareDatabase.LookupFirmwareRecord 2021-02-08 12:56:41 +10:00
YoshiRulz 33a788d74b
Don't populate 2 lists with the same data, move assertion to unit test 2021-02-08 12:56:41 +10:00
YoshiRulz 6db638236e
Hardcode uppercasing of firmware hashes, assert on format in unit test 2021-02-08 12:56:40 +10:00
YoshiRulz 4800fef65e
Cleanup dumb LINQ in FirmwareManager 2021-02-08 12:56:40 +10:00
YoshiRulz 7e2437b396
Typo fixes and other minor cleanups to FirmwareDatabase data
* fix desc+info of bad PSX BIOSes
* set FirmwareFile.Bad via param on File method
* use #if false instead of comment for what I assume is a debug BIOS for A7800
    * I think a single '!' boi will make that one take precedence
* remove duplicate NDS BIOSes which were commented-out
2021-02-07 23:22:19 +10:00
YoshiRulz b9e784e153
Replace broken hack with hardcoded data 2021-02-06 20:31:36 +10:00
YoshiRulz 643d7b12dd
Lock/unlock Lua drawing surface for event callbacks (fixes #2595) 2021-02-05 10:52:13 +10:00
YoshiRulz 9d1eaa6475
Prevent trying to use DirectInput on Linux (resolves #2607) 2021-02-05 07:06:17 +10:00
YoshiRulz 2b72eabdf9
Skip platform tests in CI 2021-02-03 12:38:47 +10:00
YoshiRulz fb03771bb7
Simplify tests for GetRelativePath and MakeRelativeTo 2021-01-31 11:17:17 +10:00