Commit Graph

21462 Commits

Author SHA1 Message Date
CasualPokePlayer 516a021add Try making this actually work 2024-08-25 17:37:41 -07:00
CasualPokePlayer bb456e45be Try to workaround some Linux Nvidia driver bug 2024-08-25 15:48:14 -07:00
Morilli 436be60222 cleanup and fix GenericDebugger.DecrementCurrentAddress 2024-08-25 21:07:40 +02:00
Morilli 1ea8cf2f36 check disassembler address properly in GenericDebugger.Disassemble
- closes 

- the address was not checked on the first call
- the comparison needs to be >=, not >
2024-08-25 21:01:06 +02:00
YoshiRulz 3d37901677
Nix expr: Regen NuGet lockfile
fixes c882fe4ea5
2024-08-26 04:10:28 +10:00
YoshiRulz 93fe2c8b6a
Ban some more BCL methods (not used anywhere) 2024-08-26 02:01:06 +10:00
YoshiRulz 67f87b15c4
Ban runtime asserts without a message 2024-08-26 02:00:50 +10:00
YoshiRulz 8e12e44411
Ban `Control.Focus`
"Focus is a low-level method intended primarily for custom control
authors. Instead, application programmers should use the Select method
or the ActiveControl property for child controls, or the Activate method
for forms." --MSDN
2024-08-26 01:21:40 +10:00
YoshiRulz 2dd87d78f9
Use binary literals instead of `Convert.ToByte` in `D64` 2024-08-25 23:34:09 +10:00
YoshiRulz c882fe4ea5
Add official `BannedApiAnalyzers` and ban some string parsing methods 2024-08-25 23:31:16 +10:00
YoshiRulz 846253760e
Extract more helpers for finding Lua forms/controls by handle 2024-08-25 03:49:57 +10:00
YoshiRulz b69e466c03
Extract constant in `FormsLuaLibrary` 2024-08-25 03:39:29 +10:00
YoshiRulz a1faf8bf0a
Speed up `forms.*` by knowing that form/control handles are unique 2024-08-25 03:39:13 +10:00
YoshiRulz 170d1a62ed
Add warning message for Lua functions called with mismatched x/y/w/h 2024-08-25 03:39:02 +10:00
YoshiRulz 884fee6c6d
Encapsulate x/y/w/h checks in `FormsLuaLibrary` 2024-08-25 03:39:02 +10:00
YoshiRulz ecaece0488
Fix Lua forms having a blank title when not specified 2024-08-25 03:39:01 +10:00
YoshiRulz c3057298f9
Fix `forms.destroyall` not clearing the list 2024-08-25 03:39:01 +10:00
YoshiRulz 681a5764d6
Fix LuaPictureBox functions only working on the first form
fixes 672536305
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
2024-08-25 03:38:58 +10:00
YoshiRulz bda40c7ba3
Dedup `forms.{drawString,drawText}` implementations 2024-08-25 03:38:41 +10:00
YoshiRulz b99a3831e9
Change return type of `BootGodDb.Identify` to `IReadOnlyList` 2024-08-23 16:51:40 +10:00
YoshiRulz fc446868a7
Fix `BootGodDb.Identify` mutating lookup
fixes f010d6f80, 633216be1
2024-08-23 16:45:44 +10:00
Morilli 8c9587e00b Fix BootGodDB lookup being completely broken in quicknes
- closes 

Presumably broken since e38726db50.
2024-08-22 23:15:20 +02:00
Morilli f010d6f802 Fix bootgod exception on missing game hash
fixes 633216be14
2024-08-22 22:54:21 +02:00
YoshiRulz 7dfb624427
Remove `WorkingDictionary<K, V>` 2024-08-23 02:53:30 +10:00
YoshiRulz 34d71e90bc
Add more `GetValueOrDefault` overloads 2024-08-23 02:53:30 +10:00
YoshiRulz 72b2e78957
Refactor `AutoFireStickyXorAdapter.IncrementLoops` 2024-08-23 02:49:47 +10:00
YoshiRulz 5dd3dc7ae5
Refactor `AutofireController.{IsPressed,LatchFromPhysical}` 2024-08-23 02:49:47 +10:00
YoshiRulz 384e4c913c
Short-circuit loops in `{,Autofire}Controller.LatchFromPhysical` 2024-08-23 02:49:47 +10:00
YoshiRulz 633216be14
Remove `Bag<K, V>` 2024-08-23 02:48:03 +10:00
YoshiRulz ba4c406a36
Add names to bool argument in `TAStudio.StartNewMovieWrapper` calls
fixes b6a0688be
2024-08-22 22:44:14 +10:00
YoshiRulz 325880be18
Further cleanups to `MainForm.ProcessInput`
fixes 2f5dfcea3
2024-08-22 22:40:42 +10:00
Morilli 2f5dfcea33 simplify variable assignment 2024-08-22 13:34:39 +02:00
Morilli 17733e38f7 Check all individual buttons with input key priority
- closes 

If any of the pressed buttons is an input, don't trigger any hotkeys.
2024-08-22 13:33:56 +02:00
Morilli f07c689c58 Improve horizontal TAStudio layout a bit
see 
2024-08-22 01:30:46 +02:00
Morilli b6a0688be0 simplify TAStudio movie starting
- removes HandleMovieLoadStuff, which should ™️ not be necessary
- pass newMovie parameter into MainForm.StartNewMovie. This is currently probably irrelevant, but useful later
2024-08-21 22:24:39 +02:00
Morilli 1c44dc5913 don't create undo steps when setting TasMovie.StartsFromSavestate
A movie either starts from a savestate, or doesn't. It should not be possible to undo the marker changes done when setting this value.
2024-08-21 22:12:32 +02:00
YoshiRulz c2a336647c
Use `Type.EmptyTypes` in `MovieImport.ImportFile` 2024-08-21 22:15:14 +10:00
kalimag 4e85a71d53
HexEditor "File on Disk" fixes (squashed PR )
* Fix keeping rom domain selected

* Turn unnecessary field into local

* Handle `null` return from `GetRomBytes()`

* Simplify `GetRomBytes()`

* Add try-catch around opening rom file
2024-08-21 15:59:39 +10:00
CasualPokePlayer b9cd4a93cc Remove unneeded modifer 2024-08-20 15:23:36 -07:00
CasualPokePlayer 02acd542c2 Guard against cheat codes in RetroAchievements' hardcore mode
originally I thought just blocking the cheat window would be enough, but autoloaded cheat codes could sneak through. An actual check for cheat codes being active prevents this being an issue.
2024-08-20 15:22:39 -07:00
Morilli beab2b141b Only force a core name if one exists
This could actually not be the case for imported movies for example and is handled elsewhere, but this force parameter breaks rom loading completely when QueuedCoreName is empty.
2024-08-20 23:10:38 +02:00
Morilli cdd7ee1fea Improve missing firmware dialog readability
see comment here: https://github.com/TASEmulators/BizHawk/issues/3980#issuecomment-2269483563
2024-08-20 23:09:16 +02:00
Morilli 8d4c29a64f ensure updated core settings are always saved in config
- closes 
2024-08-18 23:12:24 +02:00
RetroEdit 3ede77b8b7
Change OnMovieEnd default to 'Pause' instead of 'Finish' () 2024-08-18 18:45:04 +03:00
YoshiRulz d9331c5a28
Add feature flag to disable the gamedb 2024-08-18 16:21:51 +10:00
YoshiRulz c319bf5fb8
Fix LINQ chain in `FirmwareManager.DoScanAndResolve`
fixes 963b925a1
2024-08-18 16:09:31 +10:00
Morilli 963b925a1a prefer ideal firmware over acceptable firmware
see 
2024-08-18 03:30:31 +02:00
Morilli fa08002fbf don't set quickNES's priority to low
it's the preferred core after all, this doesn't make sense
2024-08-18 03:28:56 +02:00
Morilli 92399482d4 also search in descriptions in the lua functions filter
- closes 
2024-08-18 02:46:57 +02:00
Morilli e893e3a1ff Cleanup CueFileResolver
also closes 
2024-08-18 02:38:23 +02:00