Commit Graph

1013 Commits

Author SHA1 Message Date
YoshiRulz 0fc3ac2105
Don't need this anymore
no idea when that happened sorry
2020-07-25 08:30:15 +10:00
adelikat b0c76f28ca PCETileViewer - remove unnecessary load event 2020-07-24 14:50:01 -05:00
adelikat 0ed95429cb simplify some closing closing logic in some tools 2020-07-24 14:36:34 -05:00
adelikat 4f2bf8071e fix a few tools I missed in previous commit 2020-07-24 14:32:29 -05:00
adelikat e7e5ebfa90 have tool manager automatically add a Close button to any tool with a File menu, removes a lot of boilerplate from tools, also gives consistency, since half the tools had Close, half had Exit and not all had the shortcut display string 2020-07-24 14:21:53 -05:00
adelikat d67f97c4e1 Tasutido - slight simplification 2020-07-24 13:20:24 -05:00
adelikat a51eba88da move some repetitive logic from tools to the RollColumns class 2020-07-24 13:17:03 -05:00
adelikat 4a3e2113af convert RamSearch to IToolFormAutoConfig 2020-07-24 12:29:26 -05:00
adelikat f1a9ba7a08 Ram Search - watch options and settings menu item names 2020-07-24 12:11:34 -05:00
adelikat c26659187e convert RamWatch to IToolFormAutoconfig 2020-07-24 12:03:23 -05:00
adelikat 42864977cb Convert cheats tool to use IToolFormAutoConfig 2020-07-24 11:52:44 -05:00
David Ackroyd a416841770
clone x times (#2242)
* tasstudio: clone sequence of inputs x times

* extend frameprompt so that you can put in a custom messagfe

* making FramesPrompt designer compatible
2020-07-24 10:18:15 -05:00
YoshiRulz e36098becf
A little dedup 2020-07-24 13:33:12 +10:00
adelikat 39424891b4 virtualpads - add another constructor overload to simplify schema classes more 2020-07-23 17:42:36 -05:00
adelikat 6b921c91fb remove another unused image 2020-07-23 17:09:04 -05:00
adelikat 35d3a7e716 Ram Search - fix typo in menu Option "Always Exclude From Ram Search" to "Always Exclude From Ram Watch" 2020-07-23 17:06:28 -05:00
adelikat d6be73f395 silly that visual studio rename doesn't save changes on open files, add a bunch of non-saved things, also consolidate two refresh images into 1 2020-07-23 16:55:51 -05:00
adelikat ed8912db92 rename and reorg stuff in Resources.cs 2020-07-23 16:51:29 -05:00
adelikat bda8a5ed4e implement SGX virtual pads 2020-07-23 16:35:09 -05:00
adelikat a1c6092de1 c64 virtualpad - fix a few keyboard buttons that were not mapped to a key 2020-07-23 16:32:57 -05:00
adelikat 34da24933a remove more unused images, start using c64 symbol on c64 virtualpad 2020-07-23 16:32:57 -05:00
nattthebear 1c606c1eb6 waterbox - expose read-only information about the guest memory page table 2020-07-23 16:08:24 -04:00
adelikat e778e5248d remove a bunch of unused images that we don't intend to use, make lua console menu item image consistent wtih the dialog image 2020-07-23 14:56:48 -05:00
adelikat 4d24b0bcf0 remove some unused usings 2020-07-23 14:25:39 -05:00
adelikat ae6d512e11 durp 2020-07-22 16:31:52 -05:00
adelikat 5dd65c0ee8 add an osd message when a rewinder is created 2020-07-22 16:24:25 -05:00
YoshiRulz 966a2abe3f
Call base.Dispose to banish warning 2020-07-22 06:34:32 +10:00
nattthebear 85be93c9d2 What was this?
Apparently we had random crashes in savestate on waterbox since some recent dev commit woops my bad
2020-07-21 15:43:28 -04:00
YoshiRulz 6371766130
Remove redundant semicolon 2020-07-20 23:42:42 +10:00
YoshiRulz 86e82b97c1
Cleanup internals of comms APIs 2020-07-20 23:42:35 +10:00
adelikat d94ce80eaa Tastudio - gracefully fallback to a new tasproj when attempting to load a .tasproj from another core 2020-07-19 16:47:54 -05:00
adelikat 1162e89675 a slight hack to fix Tastudio when loading a different rom while it is open 2020-07-19 15:09:26 -05:00
adelikat ffd255bb8e on tool restart, update base properties (particularly needs the Game property to update) 2020-07-19 14:50:05 -05:00
adelikat 4e6d190d48 Tastudio - check MainForm.GameIsClosing in a better place 2020-07-19 14:26:49 -05:00
adelikat b6cfb9aab7 remove restarting of trace loger in CloseGame, the ToolManager handles this logic just fine 2020-07-19 14:05:46 -05:00
adelikat f7f6839e6c fix NRE of Trace Logger close, if the Trace Logger was not used before closing 2020-07-19 13:56:27 -05:00
adelikat ddbeabf198 Tastudio - pointless refactors 2020-07-19 13:30:07 -05:00
YoshiRulz 86829751aa
Scale VirtualPadAnalogStick correctly when the range isn't ~256 values 2020-07-20 03:18:49 +10:00
adelikat f6273f2f92 Virtualpads - flip the read-only flag when a movie changes from read-only to another mode 2020-07-19 11:12:38 -05:00
alyosha-tas 77a958af8e O2: fix mousing cat (timer divider was wrong) 2020-07-18 17:04:24 -04:00
adelikat 74a57c320e Saturn Virtual pads - fix L/R 3d controller values 2020-07-18 13:36:31 -05:00
adelikat 59661fea86 Tastudio - fix "New" menu item broken by last commit 2020-07-18 13:26:21 -05:00
adelikat 0925997557 have Tastudio control RebootCore when it is open, fixes #2201 2020-07-18 10:24:46 -05:00
alyosha-tas d8056b3deb Move code to avoid NRE 2020-07-14 19:18:59 -04:00
adelikat 219b33732c make TasMovie Emulator null check a bit clearer as to what is going on 2020-07-14 17:47:22 -05:00
adelikat 7040eca741 tastudio - simplify image setting 2020-07-14 17:43:31 -05:00
alyosha-tas 6f461c715d TAStudio: Fix #2191 with a null check 2020-07-14 17:02:52 -04:00
adelikat 5515e9fea7 Tastudio - add some paranoia checks when drawing markers and branches. This happened one time while debugging and I couldn't reproduce, but it is possible the controls might need be told to redraw while still rebooting the core, in which case there is no TasMovie to read from yet, so check for null 2020-07-13 19:39:29 -05:00
adelikat 946ff45608 Tastudio - just print "File saved" instead of the filename since it is redundant to the Title which has the filename, and it overlaps other text in the status bar, fixes #2142 2020-07-13 19:15:30 -05:00
nattthebear 175556529e waterboxhost refactor
Set up a second mirror of guest memory; easily accomplished because we were already using memfd_create / CreateFileMappingW.
This lets us simplify a lot of host code that has to access guest memory that may not be active right now, or might have been mprotect()ed to something weird.  Activate is only needed now to run guest code, or when the C# side wants to peer into guest memory for memory domains and such (waterboxhost does not share the mirror address with the C# side).
2020-07-13 19:38:29 -04:00
adelikat 40e19e64fe oops 2020-07-13 17:25:16 -05:00
adelikat b87f976c39 remove some unused usings 2020-07-13 15:01:14 -05:00
adelikat 6a3b014fe3 make a thing readonly 2020-07-13 12:06:48 -05:00
nattthebear 59be09b515 Make picodrive work again
All picodrive games were broken by 316a9d1568
2020-07-13 06:16:16 -04:00
nattthebear 5a1b5915bf Fix compiling on ancient compilers, and add a global.json which restricts bizhawk to ancient compilers 2020-07-12 17:24:12 -04:00
nattthebear 570f17cedd Bit more W65816 disassembler cleanup 2020-07-12 17:14:47 -04:00
adelikat 316a9d1568 gamedb - replace pico with picodrive, remove core name look up in romloader in favor of this pico change combined with a case insensitive compare 2020-07-12 16:10:01 -05:00
adelikat b22a1070a4 W65816 Disassembler - assign ibuf to null, so it compiles 2020-07-12 16:06:45 -05:00
adelikat ed9b7b3eb1 Lua address several memory leaks - when a script stops, take any registered functions and spawn new threads for them to execute, and regularly dispose them. Also, the main lua thread needs to have scheduled disposes run on it, even if there is no active scripts (it was being run as part of disposing individual scripts, needs refactoring). All of this fixes #1920 2020-07-12 15:48:50 -05:00
nattthebear 9278c526d0 fix a few compiler warnings 2020-07-12 16:02:26 -04:00
adelikat 1e3324cfab Registered Lua Functions dialog - update when a lua script unregisters a file, make dupating more robust to catch other possible scenarios where it failed to update 2020-07-12 13:19:48 -05:00
adelikat c4bcb2451a remove now unused class in RomLoader.cs 2020-07-12 13:03:32 -05:00
adelikat 05709628e8 remove a jillion unused usings in RomLoader.cs 2020-07-12 13:02:12 -05:00
adelikat 40ad7ed67e Lua - account for callbacks with no parent script creating more callbacks by generating a mock lua file with a new thread, and register the thread with the sandbox. Fixes #1983. Not super proud of this. 2020-07-12 12:58:43 -05:00
nattthebear 021b1639c2 Remove special code for UnsupportedGameException in RomLoader
This shouldn't be needed anymore
2020-07-12 13:48:46 -04:00
nattthebear 78bbc75f33 multi rom loading by xml all uses core inventory now 2020-07-12 13:45:33 -04:00
nattthebear 8d56b65734 Convert all single-CD loading to use CoreInventory 2020-07-12 13:21:10 -04:00
nattthebear ab07e67a07 PCEHawk: Use CoreLoadParameters for cd mode 2020-07-12 13:06:15 -04:00
nattthebear 744a9a97d0 Remove custom loader code for ChannelF 2020-07-12 12:54:36 -04:00
nattthebear 5c5ffed5ff Next piece of the puzzle
This probably breaks something.  I am sorry, grab me and I'll fix it
2020-07-12 12:52:27 -04:00
adelikat 33a0954087 lua console - fix recent scripts not updating when creating a new script, opening a script, or duplicating a script. Might be other scenarios that are currently missing (regression from some refactors about a month ago) 2020-07-12 11:12:29 -05:00
nattthebear 4ad89667d6 This will get simpler I promise 2020-07-12 11:37:06 -04:00
nattthebear 6f218ff20b Remove a benign null reference exception
This was in a try catch so you got the null you needed anyway, but it could be confusing to see in a debugger report
2020-07-12 11:10:57 -04:00
alyosha-tas 06fa96e335 O2: finish g7400 graphics set 2020-07-12 10:44:11 -04:00
nattthebear 81d0b4ec9e Revert "Replace dynamic type w/ casts in CoreInventory/CLP"
This reverts commit 9ee4821148.

# Conflicts:
#	src/BizHawk.Emulation.Cores/CoreLoadParameters.cs

This didn't actually work, so revisit later
2020-07-12 10:18:08 -04:00
nattthebear f41a70ef32 swish swish 2020-07-12 09:06:20 -04:00
alyosha-tas f5efbff1d3 O2: more g7400 work 2020-07-12 09:03:28 -04:00
nattthebear 9072614dfb romloader cleanup 2020-07-12 08:09:50 -04:00
nattthebear dc8615ca06 fix compile, sorry sorry 2020-07-12 07:36:06 -04:00
nattthebear 80793836d3 Use CoreLoadParameters on dual gambatte 2020-07-12 07:28:06 -04:00
nattthebear 9d9dd8a0fd More romloader stuff
It'll all come together eventually
2020-07-12 07:08:52 -04:00
YoshiRulz 9ee4821148
Replace dynamic type w/ casts in CoreInventory/CLP
dynamic introduced in cc9d7df9f
2020-07-12 17:30:10 +10:00
adelikat c712bde84e remove firmware manager dependency from RomLoader, and a few other cleanups 2020-07-11 20:10:23 -05:00
nattthebear 467f0aff2b Refactor 32x loading
less code is good good
2020-07-11 20:38:09 -04:00
nattthebear 502aef73a0 Clean up ti 83 loading. Probably works, but I have nothing to test against it 2020-07-11 20:31:36 -04:00
adelikat 8900618ce1 respect the Movie end type when loading .tasproj files outside of tastudio 2020-07-11 18:52:52 -05:00
adelikat 1f39160999 give up on the idea of throwing an exception when attaching a core to a movie. The reason this doesn't work is that restart movie keeps the movie in memory (which was previously attached). This commit decrees that it is safe to keep a movie in memory, and attach to a new instance of the same core. The alternative is that movies would have to save and load on restart which is slow and may not be desired 2020-07-11 18:03:53 -05:00
nattthebear 86ac6eadcc Romloader omega refactor: Use CoreLoadParameters for PSX 2020-07-11 18:47:56 -04:00
nattthebear 6657917281 Fix parse error loading CCD files 2020-07-11 18:47:56 -04:00
adelikat 9d054d19f6 bk2 and tasproj movies - respect the preload flag, only loads header and inputlog. This speeds up the play movie dialog by 50-100%, a lot more if there is a large sizeable .tasproj files in the folder 2020-07-11 17:06:40 -05:00
adelikat a19791a212 Fm2Import - warn about ignoring the famicom port, instead of a full error, apparently movies can have this port set, but to none, so importing the movie can still be successful, for example: http://tasvideos.org/6739S.html, fixes #1989 2020-07-11 15:57:08 -05:00
nattthebear 7e2251b795 Fix the CoreLoadParameters <-> CoreInventory interop 2020-07-11 16:46:16 -04:00
nattthebear dbb73805db error message cleanup
Once everything is unified, we'll probably hit this path once in a while
2020-07-11 16:46:16 -04:00
nattthebear cc9d7df9f7 WIP of some romloader cleanups
This one commit doesn't make things cleaner by itself, no.  The rough idea is that eventually (R) we'll pass all cores that currently use mangled arse-custom constructors with custom code all o'er the place a single, awesome, CoreLoadParameters object.

Then the romloader can be changed to just synthesize this object on one common codepath, some bs for core preferences, and boom everything is perfect.  Sort of.
2020-07-11 16:46:16 -04:00
adelikat 3a820302e3 improve name of a method 2020-07-11 15:42:47 -05:00
adelikat e5dc473203 inputroll - make escape clear selected items, this was being done custom in ram search but makes sense to be a consistent feature. It's possible people will be upset with this in tastudio since this is new functionality (and not in taseditor either) 2020-07-11 15:41:45 -05:00
adelikat d44e96f535 remove some redundant code 2020-07-11 15:35:50 -05:00
adelikat aeaf6aa282 add some KeyCode extension methods to make KeyUp/Down event methods easier to read 2020-07-11 15:35:00 -05:00
alyosha-tas e29d024a90 O2: graphics work 2020-07-11 16:31:42 -04:00
adelikat be93903c12 Play Movie dialog - properly show tooltips for detail values, also show expected vs actual (only works on the key column though, because winforms is poo), fixes #1888 2020-07-11 14:53:51 -05:00
adelikat 196934bd56 Tastudio - fix TasSession loading, fixes #2063 2020-07-11 14:28:21 -05:00
adelikat cb575d36b4 add an option to InputRoll for "Selection when paging", as a bit of a hack to revert Tastudio back to its old PgUp/Dn behavior, while still keeping the current behavior for other input roll usages (as it makes more sense for traditional listview behavior). Fixes #2074 2020-07-11 13:49:00 -05:00
nattthebear 4343414937 Enable hypernyma for uhh, the thing. Yeah, CD games, that thing.
I had tested this locally some during original development, but turned it off at some point and forgot to turn it back on.
2020-07-11 13:59:05 -04:00
nattthebear bd413738a1 Fix nyma core bug with layer settings
If you tried to load a nyma core with any of your layers disabled, you would crash
2020-07-11 13:56:43 -04:00
nattthebear 0578443338 Slight modification to previous commit: Keep config forward compatibility in this case.
That way, if somedev tries to bisect something, they don't get pooped on by their config.
2020-07-11 13:47:28 -04:00
nattthebear bcbf124f21 Don't use fragile fully qualified typenames to resolve setting and sync setting types in config files.
Instead, the frontend must know what the type will be ahead of time.

TODO:  Apply the same fix to mooovies
2020-07-11 13:40:25 -04:00
nattthebear a28ca37cfb
Fix issue with settings adapter (#2223)
This would fail to work on any core that used the serviceprovider to provide a settings definition that wasn't on the iemulator itself?  Guess we never did that
2020-07-11 13:35:09 -04:00
adelikat 9820fb0879 lua - implement tastudio.submitclearframes(), fixes #2170 2020-07-11 12:19:27 -05:00
nattthebear 4639c1f2ca minor cleanup of calling convention adapters
sync the generator code with the generated code, remove useless endbr64 shit
2020-07-11 11:09:48 -04:00
alyosha-tas 2ed8af145e O2: default to O2 still 2020-07-11 09:11:35 -04:00
alyosha-tas 1e90dbc978 O2: Make G7400 part of the O2 core instead, not worth a serperatecore 2020-07-11 09:05:38 -04:00
alyosha-tas 39bbe30b8e O2: fix sprite shifting and add some homebrew to DB 2020-07-11 08:29:11 -04:00
adelikat 1bf8f80510 Subtitle Editor - add a color picker for editing the subtitle color, fixes #1554 2020-07-09 19:24:44 -05:00
YoshiRulz 38d24901cf
Fix 4-octet peeks by Hex Editor having 2 zeroed octets
dumb typo
2020-07-10 03:39:02 +10:00
nattthebear 27a5fcdd20 Get rid of some old-style system assembly references 2020-07-09 07:22:19 -04:00
nattthebear 7495a08b9b Huh?????????????
Random LDAP garbage, not used, ever, and has just been hanging out there for 8 years.  You won't be missed!
2020-07-09 07:15:02 -04:00
alyosha-tas 7f28bc2caf Fimware: Fix #2207 and add entry for g7400 2020-07-07 17:59:20 -04:00
nattthebear c8985e3007
Waterbox: Stack Marshalling (#2209)
Waterbox guest code now runs on a stack inside the guest memory space. This removes some potential opportunities for nondeterminism and makes future porting of libco-enabled cores easier.
2020-07-07 17:48:12 -04:00
RetroEdit ce60cb101a
Simplify some DialogResult code. (#2213) 2020-07-07 15:09:41 -05:00
YoshiRulz fa7613d481
Pass IMainForm props in PresentationPanel ctor instead 2020-07-08 02:48:04 +10:00
RetroEdit 9a45d88301
More concise FrameRate definition; comment tweaks (#2210) 2020-07-07 11:36:42 -05:00
YoshiRulz ca646f87cf
Fix style problems, mainly docs 2020-07-08 02:17:31 +10:00
YoshiRulz b0f38a4d91
Shuffle code in AvFrameAdvance to eliminate goto 2020-07-08 02:17:28 +10:00
YoshiRulz 33d8f4a62c
Add RigidMultiPredicateSort to replace some .ThenBy() boilerplate
As documented, the class "Sorts using a single primary predicate, with subsorts
using the remaining predicates in order." So only the most recent
column-header-click is taken into account. I've got a WIP class in #if false for
providing the "remember which column headers I clicked and in which order"
behaviour, but it doesn't look like that behaviour actually exists in the
codebase?
2020-07-08 02:17:24 +10:00
hegyak 2dc28ecc4c
Merge pull request #2204 from hegyak/master
Firmware Renaming Unification/Changes.  This is Aesthetic.
2020-07-07 05:50:23 -07:00
RetroEdit 9cdf0abc0c
Retype IMovie.TimeLength to TimeSpan; cleanup frame rate code (#2206)
* Retype IMovie.TimeLength to TimeSpan; cleanup frame rate code

* More concise IsPal field.
2020-07-06 16:24:04 -05:00
alyosha-tas f52b02d499 Start wok on G7400 2020-07-06 15:19:57 -04:00
hegyak f430df9575
Firmware Rename (2)
Fixed KoF 95 and Ultraman
2020-07-06 11:55:13 -07:00
hegyak 6a73dd0115
Firmware Rename
Rename All the Firmware Files to have a more Unified Naming Convention
2020-07-06 10:46:56 -07:00
alyosha-tas fee733480f O2Hawk: change PAL timing 2020-07-06 09:38:24 -04:00
alyosha-tas 694b3d88d3 GBhawk: fine tune tilt range some more and fix savestate 2020-07-05 18:39:06 -04:00
RetroEdit c12d2fa570
EmuVersion needs updating on saving, not loading; I made the wrong call of where to put this originally, but the interaction with PlayMovie slipped my mind. (#2202) 2020-07-05 16:29:06 -05:00
adelikat 72993a3bd0 don't double load movie files when pre-loading, remove unused HawkFile parameter 2020-07-05 15:31:43 -05:00
adelikat 624493e6e2 simplify splitter distance loading with an extension method 2020-07-05 15:01:08 -05:00
alyosha-tas fa7ac3d4c1 A7800Hawk: Fix pokey 0x450 detection 2020-07-05 15:45:08 -04:00
alyosha-tas 6f809de609 Add default DS paths (fixes #2062) 2020-07-05 13:54:36 -04:00
RetroEdit 0b07e38bdf
Update emuVersion each time the movie is opened; OriginalEmuVersion preserves old behavior. (#2193) 2020-07-05 11:21:01 -05:00
RetroEdit 9e980c7732
Merge redundant copy-pasted movie loading code. (#2197) 2020-07-05 09:48:46 -05:00
alyosha-tas ef0f4b2b96 TAStudio: Don't erase states if they exist already when attaching an emulator instance (fixes #2057) 2020-07-05 09:55:38 -04:00
alyosha-tas d900053dad TAStudio: Allow insertion of multiple frames at end of movie (fixes #2169) 2020-07-05 09:54:35 -04:00
alyosha-tas 34f99922cd TAStudio: use path.combine now, as well as fix a usage of '\' for filename display in .bk2 2020-07-04 19:07:38 -04:00
alyosha-tas e215f99f74 GBHawk: increase MBC7 asselerometer return value range 2020-07-04 18:44:34 -04:00
alyosha-tas 4b59282fdf TAStudio: bounds check previous commit 2020-07-04 11:00:40 -04:00
alyosha-tas a72286eb5a TAStudio: More analog control jump fixes 2020-07-04 10:17:01 -04:00
adelikat d775067037 move BreakpointList to Client.Common 2020-07-03 19:49:29 -05:00
adelikat 2cbe0fb3d9 remove unused GenDbgWin tool 2020-07-03 19:42:09 -05:00
adelikat 9e2b2a9b91 remove pointless name and text parameters from MenuStripEx 2020-07-03 19:26:01 -05:00
alyosha-tas 3dba6857bc GBHawk: increase range for tilt input 2020-07-03 19:57:29 -04:00
nattthebear 054efa4bdd Helps if you actually serialize the thing you're serializing 2020-07-03 18:31:21 -04:00
nattthebear 3a18f6356d Rebuild all of waterbox as sysvabi, not msabi
This helps linux at the expense of windows, except it seems like windows gets a nice little speed up as well
2020-07-03 18:21:48 -04:00