Commit Graph

4878 Commits

Author SHA1 Message Date
YoshiRulz 2b587f2061
Enable CA1820 and fix noncompliance
"Test for empty strings using string length"
2025-03-21 09:33:07 +10:00
feos e79ab84d98 dsda: doom doesn't have potentiometers
potentiometers are hardware devices used in some controllers, but doom is pure software so it only has axes
2025-03-19 20:34:49 +03:00
CasualPokePlayer 008911a6d9 Force enable leaderboards and rich presence while in RetroAchievements hardcore mode
Newer requirements for RetroAchievements hardcore mode
2025-03-18 19:25:29 -07:00
YoshiRulz fb1ef7ba7a
Add `SetMembership` and `ToggleMembership` helpers 2025-03-19 08:36:34 +10:00
Morilli 24a82551b9 fix stella frame_advance function declaration 2025-03-18 16:03:30 +01:00
Morilli 0e9c21e7d3 handle null GreenzoneInvalidated in tasproj recording
this previously hardcrashed the entire program when TAStudio was not open
2025-03-17 20:57:15 +01:00
Morilli 96885ce146 cleanup RecordMovie.MakePath
this now allows creating tasproj files as originally intended but that will probably crash immediately because good coding
2025-03-17 20:47:44 +01:00
feos 19374203da dsda: expose huds and automap stats
make settings changes require reboot explicitly. unsure if I still want them to have immediate effect
2025-03-17 20:33:55 +03:00
Morilli 6b012ef433 differentiate between RollColumn vertical width and horizontal height
don't really like this code too much, but it works. And the RollColumn has no idea what orientation it has, so it can't do the logic itself.

see #3708
2025-03-17 13:45:50 +01:00
Morilli 1e397432af change TAStudio layout when rotation changes
- addresses #3708
2025-03-16 22:00:39 +01:00
Morilli 8efeda8af9 change internal TAStudio sideview layout
the layout difference should be effectively imperceptible, but this change will help with altering the layout programatically
2025-03-16 21:58:55 +01:00
Morilli bb3b59a5cb regenerate TAStudio.Designer.cs
nonfunctional change
2025-03-16 21:58:55 +01:00
feos d6ac62e261 dsda: disable wipe for imported demos
internally, wipe is rendered within a single "frame" so no input is processed. but we can't know from the movie which frame is wipe, so we can't insert empty frames to make imported movies work with our wipe - which has to happen across frames so we could capture every interim state of it. when exporting movies, wipe frames can be dropped based on lag info which we're currently setting for wipe only.
2025-03-16 23:07:20 +03:00
feos f0765a3a72 fix build
remove underscore from non-private fields
expose wipe screen setting
2025-03-16 23:03:15 +03:00
feos 9351a045c0 dsda: detect wipe as lag
automap mnemonic
2025-03-16 22:44:37 +03:00
feos 93ebd91971 dsda: wipe wip 2025-03-16 16:21:48 +03:00
YoshiRulz 28498da7c1
Fix mixed line endings in main solution 2025-03-16 19:55:27 +10:00
YoshiRulz 7f0b55c550
Fix namespace of `SimpleSyncSoundProvider`
wow this is old dbdac5e3f
2025-03-16 19:38:11 +10:00
CasualPokePlayer 9d239fbdcf Ignore alpha for ImageSequenceWriter 2025-03-15 15:44:54 -07:00
YoshiRulz 30c9ea4f03
Remove unused import 2025-03-16 01:54:19 +10:00
feos b6b7f56e02 mame: use utf8 parsing for lua strings 2025-03-15 18:06:15 +03:00
feos 2775b13edb mame: sort views according to their index 2025-03-15 17:59:35 +03:00
feos 7a0c4d398f mame: fix crash for view names containing commas
the way the initial lists are populated is kinda hacky because we need some separators and split the results using them. it's impossible to make sure they won't use that separator in a name in the future. maybe there's a better way than listing every available name in entire mame and finding which symbols never appear there and using them as separators (tho I admit for views I didn't even do that and relied on users running the thing).
2025-03-15 16:57:04 +03:00
CasualPokePlayer 8e8d718c7e Make sure to recreate stored pipelines on resetting D3D11 device
Fixes crashes whenever a reset ends up occurring due to a lost device
2025-03-12 15:32:14 -07:00
YoshiRulz 6cedcc2221
Resolve a code style warning in `HuC6280` 2025-03-13 07:16:29 +10:00
YoshiRulz e94a20877a
Improve one of the Satellaview header heuristics (resolves #4268) 2025-03-13 06:43:54 +10:00
feos 6965767328 dsda: fix -warp
only doom1 uses episode number in -warp, all the rest ignore it and use the first digit to set map (episode is forced to 1 for them). to detect this we now ask the core which gamemode it is (which determines it internally too).

rename complevel setting
2025-03-12 20:40:29 +03:00
YoshiRulz ce21993ec4
Print caught exception in `SavestateFile.Load`
fixes 1c0e72b16
2025-03-08 15:25:29 +10:00
Morilli 1c0e72b169 catch exceptions in savestate load
see also #2090. This can reasonably catch and handle simple load failures like all waterbox loads and some others.

Not calling the issue fixed because there is more that can be done to prevent cores from trying to load invalid savestates.
2025-03-07 22:23:43 +01:00
feos b0b32bea6a mouse capture: restrict to center
various toolbars may exist near screen edges, we don't want them to be triggered when hawk has "captured" the mouse, especially in fullscreen. I considered taking into account when hawk window is partly offscreen but it's hard to expect anyone would play that way - normal scenario is fullscreen, so screen edges are automatically pushed away from. dialogs covering hawk are even less likely to remain during mouse capture, so we don't care about mouse appearing on them.
2025-03-05 19:47:13 +03:00
feos ca214fc4f0 dsda: actually send -fast 2025-03-05 19:47:13 +03:00
YoshiRulz 957029fc30
Add and use `Insert{Before,After}{,Last}` helpers 2025-03-05 20:09:57 +10:00
CasualPokePlayer 7d876dee2c Fix XkbAllocKeyboard declaration 2025-03-04 16:36:47 -08:00
Morilli 8ba8bd61b4 increase initial toolbox size
also increase image size on high dpi
2025-03-04 19:54:08 +01:00
Morilli 843051a2fd handle dpi properly in NES ppu viewer
- also fixes #4246
2025-03-04 10:35:32 +01:00
Morilli a64d7627ce make UIHelper.Scale* scale with dpi
trust me
2025-03-04 10:30:56 +01:00
YoshiRulz f56cc896d8
Alphabetise lists of cores in `EmulationApi` methods
see 724a7393e
2025-03-04 15:07:42 +10:00
Kevin Watters 443faae403 implement emu.setrenderplanes in EmulationApi for snes9x 2025-03-03 22:37:43 +10:00
YoshiRulz 7f25044498
Improve display of errors from Cheat Code Converter 2025-03-03 13:24:00 +10:00
YoshiRulz fa15e35603
Remove `GEN` `[CoreConstructor]` from PicoDrive32x
fixes a42b25976
2025-03-03 13:03:27 +10:00
feos 11cb444b2c dsda: fix aspect on 3x+ and add pistolstart 2025-03-02 11:13:33 +03:00
CasualPokePlayer a42b259762 Stop exposing PicoDrive as a selectable option for Genesis
The core as it is is a very poor choice for Genesis. Much worse compatibility, very noticeably worse audio, and it's not like GPGX is hurting badly in the performance department. It's also very outdated compared to upstream (making these problems much worse than if it was updated). It was only in BizHawk to handle 32X games to begin with (as there aren't many options for 32X to begin with), with Genesis fallback support (without user selectability!) just tacked on "because we can."

Perhaps with a core update it could be more reasonable to allow users to select this, but for now, nope.

Closes #4251, #4250, #4235
2025-03-01 17:56:23 -08:00
Morilli c476dbbf79 draw axis numbers rotated in horizontal tastudio
see https://github.com/TASEmulators/BizHawk/issues/3708#issuecomment-2501398001
2025-03-02 00:34:42 +01:00
feos 5b7e7b4642 dsda: bit closer to vanilla
todo: make these optional
2025-03-01 23:33:11 +03:00
feos 7c5d050cde dsda: expose resolution factor and gamma
see #4236

rename Core to _core since it's private
2025-03-01 20:58:23 +03:00
feos 4a7e0c6008 dsda: fix missing sounds
proper aspect ratio
2025-03-01 17:19:56 +03:00
YoshiRulz f409cc445d
Make Lua `savestate.*` functions return `false` when C# call throws 2025-03-01 09:00:35 +10:00
YoshiRulz 6b4d0faba9
Work around Mono bug (resolves #4248) 2025-03-01 08:52:10 +10:00
feos 905c972738 dsda: parse our own config file
set vanilla res as a start
2025-02-27 23:16:44 +03:00
feos cde108b928 dsda: mouse movement should be accurate now (barring obscure tweaks)
demos still sync btw

horizontal mouse was calibrated for my machine, dunno about others. for me 1-pixel relative movement results in 272-pixel deltas, so I divide it inside the core for now

when the global sensitivity option is there, I'll drop sensitivity syncsettings and rely on client ones that I'll configure to match default dsda sensitivity.
2025-02-26 23:37:23 +03:00
feos f6538289dc dsda: fix lmp import
only tested on doom, no idea if movies for other 2 even exist lol
2025-02-25 23:21:23 +03:00
feos 09fcf37d79 meaningless tweaks 2025-02-25 19:19:58 +03:00
feos 5539557b27 dsda: "always run" option
upstream uses a hotkey toggle instead but vanilla didn't have it. even "always run" itself was just a vanilla bug. I don't want to have a special on-the-fly input for autorun toggle, hopefully user either wants to always run + occasional mouse movement, or only run using the proper button
2025-02-25 19:05:33 +03:00
CasualPokePlayer 0311bb5d39 Make mouse capture handle window moving/resizing/focus change, cleanup presentation panel resize handling 2025-02-24 16:09:01 -08:00
feos a2daa48cf4 dsda: actually fix turning for demos 2025-02-24 23:25:51 +03:00
feos 4cf20df155 dsda: pass turning resolution to controller ctor
this allows to properly set available range which makes demos sync again (aside from weapon switching that I broke)
when importing demos we now force shorttics (even tho some source ports can record demos with longtics depending on compatibility level but importing those is for the later time)
2025-02-24 22:02:04 +03:00
CasualPokePlayer 559093460e Fix some Xlib import definitions 2025-02-24 03:15:47 -08:00
CasualPokePlayer c3b0f46ae3 Make Linux mouse capture work more or less properly
There's 3 approaches here, of which only 1 appears to work more or less correctly

1. Use XFixes "pointer barriers." Introduced in XFixes version 5.0 (end of 2010), these effectively allow 1:1 mapping with Windows ClipCursor, giving behavior BizHawk wants.
2. Use XGrabPointer, with the confine_to argument set to the presentation panel. This mostly works, however, it changes how some events operate and for whatever reason prevents Mono from responding to mouse buttons. This approach can be used with 1. too for a simple warp of the mouse cursor over to wherever the window is.
3. Use Mono's internal CaptureWithConfine function. This is just internally using XGrabPointer with the confine_to argument. Somehow it makes mouse buttons work, but it ends up working too well as it can respond to the menu bar somehow, and interacting with such or the right click menu cancels the grab (seems to be internal Mono code doing such in this case here?).

Note a lot of weirdness with previous code came down to testing being in a VM and mouse integration being enabled. That apparently just prevents any kind of mouse warping from happening so nothing appeared to work correctly. Disabling such allows these approaches to work as above, also makes relative mouse values sane (previous values with mouse integration were completely bonkers).

TODO: Need to check if this works on XWayland (maybe it does?). Also need to refresh mouse capture on window resize and move (needed in general for both Windows and Linux)
2025-02-24 02:23:27 -08:00
CasualPokePlayer 2f2c3e4f68 Try fixing pointer barriers harder (still doesn't work :( ), also fix XI2 raw motion polling (IsNormal was always returning false for whatever reason, seems to work fine with just simple Inf/NaN checks). XI2 raw motion polling however seems to use a far larger scale compared to Windows (seemingly in the hundred thousands??? although this is in a VM so this might just be a quirk of such) 2025-02-23 21:42:30 -08:00
CasualPokePlayer 778c880d54 Try fixing pointer barrier code, also make X errors more verbose 2025-02-23 20:14:59 -08:00
CasualPokePlayer ec66447c20 Restore startup asm version check (accidentally commented out in previous commit) 2025-02-23 19:29:43 -08:00
CasualPokePlayer 2009b24adb Try using pointer barriers for locking the mouse to the window on Linux instead of grabbing the mouse 2025-02-23 19:28:16 -08:00
YoshiRulz 5220ed4179
Fix code style warnings in test project when targeting .NET 8
see 69b923ad5
2025-02-24 10:30:00 +10:00
YoshiRulz 48f4a98a61
Remove unused import
not sure why this wasn't being flagged earlier, probably to do w/ recent
$(RunAnalyzersDuringBuild) change
2025-02-24 05:42:55 +10:00
YoshiRulz d4adc8282c
Discard return value from `XCloseDisplay`
fixes c5029cb2b
2025-02-24 05:42:08 +10:00
YoshiRulz 69b923ad55
Make all Analyzers except StyleCop run all the time
see #1813, 4a2627337
2025-02-24 05:39:16 +10:00
feos b0c2ef831c dsda: automap command 2025-02-23 20:31:49 +03:00
YoshiRulz ac529ee191
Add this title (+loc. patch) to quickerNES' blocklist (resolves #4240) 2025-02-24 01:55:45 +10:00
feos 3e0ed9dd7e analyzers gonna analyze 2025-02-23 16:24:43 +03:00
feos 5c662effdf hotkey for mouse capture
hide it when captured on widnows
2025-02-23 16:03:43 +03:00
feos 82523d9e1c dsda: lower speed for tapping turn buttons (match upstream) 2025-02-23 15:34:52 +03:00
feos 3d6241f53a dsda: handle movement speeds in IEmulator
allows to factor in syncsettings and savestates (for turnheld)
2025-02-23 14:59:55 +03:00
feos 9ad6eb8971 dsda: turnheld wip
dsda halves turn speed for turn button if it's held for 5 or less frames. currently I use that reduced value for all button turning.
2025-02-23 14:02:00 +03:00
CasualPokePlayer c5029cb2bb Add function to lock the mouse
Unused currently. Cursor.Clip code copied from feos. Hopefully works on Linux too
2025-02-23 02:54:54 -08:00
feos 49297ca9b7 dsda: use actual relative mouse movement
currently requires manually binding RMouse X/Y in config.ini (and zero deadzone I guess)

empirically match dsda default settings with sensitivity syncsettings (defctrl.json wasn't touched yet)
TODO: look at mouse calc inside the core
2025-02-23 13:01:12 +03:00
feos d804496cc2 dsda: cache syncsettings until reboot
works around crash described in #4104
2025-02-23 11:41:27 +03:00
feos 918783126e dsda: match button names to dsda
(except for weapon keys since they may mean different thing for non-doom)

tweak doom mnemonics too
and push core submodule
2025-02-23 11:00:01 +03:00
feos 72070a63de dsda: reduce copypaste 2025-02-23 09:34:54 +03:00
CasualPokePlayer f444d6b0a5 More relative input handling
Needs UI for adjusting mouse sensitivity (think it should be 1-400) and a button in bindings for swapping an WMouse axis to the RMouse axis
2025-02-22 15:55:45 -08:00
feos fe29eb12dd dsda: process longtics and fix turning speed
rename some enum values
contains hack to work around export problems with dsda_Flag()
2025-02-23 02:30:40 +03:00
YoshiRulz 804717c71a
Fix code style warnings in DSDA ctor
fixes f47136be4
2025-02-23 05:36:23 +10:00
YoshiRulz 8f9d47a706
Add this romhack to quickerNES' blocklist (resolves #4239) 2025-02-23 05:29:19 +10:00
feos f47136be46 dsda: pass commandline args to core from hawk
that way we don't have to rebuild the core for every commandline option that it already supports and we decide to use, also more meaningful presentation of those options on the managed side
2025-02-22 22:22:54 +03:00
CasualPokePlayer 8c351433d5 Make MEN018 analyzer happy 2025-02-22 09:40:15 -08:00
CasualPokePlayer e1ea8a3371 Fix build 2025-02-22 09:38:33 -08:00
CasualPokePlayer 2f39991b44 Begin to add raw mouse input to input system
native api side done. trying to map it probably interferes with absolute inputs, needs some global relative mouse sensitivity setting for input translation purposes. hopefully everything else doesnt break
2025-02-22 09:22:31 -08:00
Morilli efcbe54f36 fix encore touch and tilt ranges 2025-02-22 14:44:05 +01:00
YoshiRulz 8d71c8a505
Add Analyzer for suggesting adding `checked` operators 2025-02-22 17:07:35 +10:00
YoshiRulz e72548b68b
Fix parenting of TAStudio child dialogs (should fix #4103) 2025-02-22 02:21:12 +10:00
Morilli af4089380a make TAStudio not rely on the global MovieEndAction setting
- closes #3989
2025-02-19 19:32:08 +01:00
Sergio Martin 3c5f699af9
Adding DSDA as Doom/Hexen/Heretic core (#4196)
Co-authored-by: feos <feykomylce@gmail.com>
Co-authored-by: YoshiRulz <OSSYoshiRulz+git@gmail.com>
2025-02-19 00:21:47 +03:00
Morilli d386a4fdcb attempt to make rewind perform well while paused
attempts to resolve #3053 by shuffling some bools around.

Specifically, `_runloopFrameProgress` is now set when either (continuously) frame advancing or rewinding.
2025-02-18 14:26:40 +01:00
Morilli b6a175bddf fix SMS controller definition (in Bkm) 2025-02-18 10:38:10 +01:00
Morilli 85e2d18780 fix .bkm import
- closes #3909

Effectively best-effort for now, may or may not work for some movies.
2025-02-18 01:07:11 +01:00
YoshiRulz d3362f5e0c
Add novel throttle experiment (locked behind build flag for now)
:)
2025-02-18 05:12:06 +10:00
Morilli 46c1273dbd don't restart ram search when changing watch size
- closes #2974
2025-02-17 10:25:16 +01:00
YoshiRulz 9df29c036e
Replace non-mutated `List<byte>`s w/ arrays/`Span`s/nothing
see #2927 re: `IMemoryApi`
2025-02-16 08:27:05 +10:00
YoshiRulz 59b2dba901
When GPGX is in SMS mode, don't advertise `IDisassemblable`
see #4226/33571d4cd
2025-02-15 09:51:29 +10:00
Morilli 6184afddc9 don't call disengage when tastudio load failed 2025-02-14 22:10:10 +01:00
YoshiRulz d7b0af9f4e
Resolve a TODO in `InputRoll.RowCount` 2025-02-15 05:54:49 +10:00
YoshiRulz 5a236fdbee
Implement remaining `IList<T>` methods on `SortedList<T>` 2025-02-15 05:53:14 +10:00
YoshiRulz 33571d4cd3
Set `GPGX.PCRegisterName` correctly in SMS/etc. mode (resolves #4226) 2025-02-15 04:37:47 +10:00
Morilli 084497a28a fix UserDataApi key getter 2025-02-14 19:14:43 +01:00
Morilli 283ed40f33 fix ToDictionary extension
fixes a9bfd96027
2025-02-14 19:14:35 +01:00
Morilli 5d6b35e2c9 fix single usage of GetValueOrDefault(IDictionary) 2025-02-14 18:50:34 +01:00
Morilli f12f90366b Revert "Add more `GetValueOrDefault` overloads"
This reverts commit 34d71e90bc.

This was hardly used and caused trouble in .net 8 with the way it was defined.
2025-02-14 18:50:10 +01:00
Morilli 426c743da9 fix SpanSplit for .net8
removed the NETCOREAPP3_0 code because it didn't even compile; lots of internals missing and we probably wouldn't need the 1% speedup anyway (the function using it is unused currently too)
2025-02-14 18:28:42 +01:00
Morilli 24641433e4 improve estimated time display in RewindConfig
now takes the estimated rewind interval into account to display the actual estimated rewind range, which is what people care about
2025-02-14 15:13:32 +01:00
Morilli 84c79b9053 fix some edge case display values in RewindConfig
specifically when rewind is disabled or if it's enabled and no state exists.
2025-02-14 14:41:20 +01:00
Morilli 8bc446bfa3 rename target frame length option for more clarity
- closes #3309
2025-02-14 14:32:15 +01:00
Morilli 89ea856ba4 implement command field in DsmImport
see #3555
2025-02-14 13:18:17 +01:00
Morilli 582a25b851 handle missing return gracefully in tastudio.onqueryitem* functions
- closes #4219
2025-02-14 08:22:40 +01:00
Morilli 95cbbecb97 harden TasView_QueryItemText exception handling
by immediately throwing out the current movie. This should prevent this message box from coming up repeatedly, not providing any additional useful information and just blocking all other windows.

should resolve #2332
2025-02-13 16:49:16 +01:00
YoshiRulz 7568a29912
Fix implementation of `NumberExtensions.Log10` and add docs
fixes fbd45915c
2025-02-13 22:19:49 +10:00
YoshiRulz cf70cc9ef4
Add unit tests for `NumberExtensions.Log10` 2025-02-13 22:15:38 +10:00
Morilli d9d1bfd1e8 remove unused using 2025-02-13 04:18:27 +01:00
Morilli 26115624e4 make circular analog range setting work in ares 2025-02-13 04:07:35 +01:00
YoshiRulz 69a938f29b
Pad frame indices in TAStudio to 5 digits from the start 2025-02-13 08:41:01 +10:00
YoshiRulz fbd45915cb
Add `Log10(int)` helper 2025-02-13 08:39:16 +10:00
YoshiRulz 6049d5e4f5
Show placeholder for VSystem menu when no rom loaded 2025-02-13 00:41:02 +10:00
YoshiRulz f92565549c
When the only option for a FW record has a dummy hash, mark it unknown
fixes c4ff97111, 296145ba2
2025-02-12 08:55:34 +10:00
YoshiRulz b66672f97f
Add missing import
fixes 724a7393e
obviously didn't mean to add and then immediately remove this, it got
lost in a rebase
2025-02-11 21:17:37 +10:00
YoshiRulz 724a7393e2
Alphabetise lists of core names in source
fixes 18078c876
and some others, maybe as far back as the commits introducing the lists,
I haven't checked
also I left a marker so it's easier to find these later
2025-02-11 21:12:09 +10:00
YoshiRulz f5dc73086a
Allow Stella's settings to be edited without the core loaded 2025-02-11 21:11:00 +10:00
YoshiRulz 59d875aecc
Clean up `LibUAE.ControllerType`
see #4110
2025-02-11 20:37:54 +10:00
YoshiRulz 6a115e4e65
Add `Edit` > `Go to Frame...` to TAStudio (resolves #2373) 2025-02-11 01:24:30 +10:00
YoshiRulz 59be77248a
Remove pointless indirection from `BookmarksBranchesBox` events 2025-02-10 09:21:04 +10:00
Morilli b33d7f5ce4 simplify RemoveFrames 2025-02-09 08:17:45 +01:00
Morilli 30c67cd297 fix incorrect logic in RemoveFrames 2025-02-09 07:45:38 +01:00
Morilli b0c1be30c9 make OSD text scaling configurable 2025-02-09 07:12:20 +01:00
Moritz Bender ef3b92dab4
Add more courier font sizes instead of upscaling the 16px one (#4210)
* add more courier font sizes instead of upscaling the 16px one

* use 25px font instead of 26px

* remove now-unused property
2025-02-09 07:03:43 +01:00
feos c5807662b6 uae: a game requiring empty input port found
see #4213
2025-02-08 14:46:21 +03:00
feos 74fcbc28eb uae: include more scanlines into image
fixes #4204

RANT TIME

visible area is largely nonsense when it comes to CRT TVs, because they may cover different amounts of the screen based on model, and you can adjust some of them also based on model to show more or less of it.

4:3 aspect ratio is also somewhat nonsense because TVs don't automatically rescale your video input to the entire screen like modern computers do. they just stretch or shrink it based on pixel frequency of the input and how it relates to whatever the given TV is configured to.

Rec601 was created in order to somewhat standardize this but it only contained RECOMMENDATIONS (hence the name) on how to digitize analog video, not how analog devices should be configured. so a lot of TVs looked different from what it would be digitized to based on this spec.

in gaming it's a common misconception that console output is meant to be resized to 4:3 DAR of the TV. in reality it's stretched according to PAR - pixel shape which comes from differences between color frequency of the input and standard NTSC or PAL color frequency.

if the console updates color more often than the standard, analog signal with higher pixel density will be put on the screen as is, and pixel will look "squished", sometimes up to 2x for 512px resolution modes (PS1). if the console updates color rarer, pixels will look stretched (A2600).

Amiga PAL mode has 1:1 PAR, no stretching is needed, so whatever aspect we're outputting will just go to encodes as is. NTSC Amiga PAR is 6:7, so we're shrinking a bit in encodes and when hawk is configured to device aspect.

this all means that it doesn't matter how many pixels we take of the rendered image, all we care about is stretching it to proper PAR. whether it contains overscan only affects fullscreen because extra blank area means less of useful data. and since some exceptional games decide to render AT THE VERY BOTTOM there's little to no harm in showing all 574 rendered scanlines. who hates it and wants 568 can crop it, but I don't expect anyone to care (or even notice).

so while nominal internal res for Amiga is 576 and canonical UAE default is 568 (tho it lets you adjust visible area and we don't), I think we can safely output our heretical number at all times.
2025-02-06 19:43:32 +03:00
CasualPokePlayer 08266f9450 update comment
fixes previous commit
2025-02-05 23:08:24 -08:00
CasualPokePlayer 1f276242ec Fix usage of BizHawk within a folder with a semicolon in it
Semicolons are perfectly valid for path names, but windows disallows dll paths to contain such (presumingly internally using them as path separators like with PATH env var)
A workaround for this is to simply use the "short name path" instead, which does not have a semicolon (but these names aren't guaranteed to exist, and in certain cases if they don't,GetShortPathNameW will just return the long name back, so semicolon still needs to be rechecked)
2025-02-05 22:53:16 -08:00
YoshiRulz f382ec7590
Update testroms project docs to reflect TFM change
fixes 9fb98ef5e
see 66e6aa7eb
2025-02-04 20:54:01 +10:00
YoshiRulz 924b5c7fae
Update `DummyFrontend` for `CoreComm` signature change
fixes ddd14d527
2025-02-04 17:31:01 +10:00
YoshiRulz ae97d1f49d
Remove unused class `CoreInventory.Core.RomGameFake` 2025-01-31 14:51:50 +10:00
YoshiRulz cc0f1417f1
Enable a bunch of Analyzer rules re: `.Count()`/`.Any()` and fix cases 2025-01-31 14:49:41 +10:00
YoshiRulz adcbc8a030
Fix some redundant length checks around `foreach` 2025-01-31 14:49:41 +10:00
YoshiRulz 2874ce14c8
Reduce intendation in a couple methods on `BreakpointControl` 2025-01-31 14:49:41 +10:00
YoshiRulz d56413bfb1
Extract a couple helper props in `HexEditor` and clean up 2025-01-31 14:49:41 +10:00
YoshiRulz 6ec2f0c49f
Enable RCS1156 and fix noncompliance
"Use string.Length instead of comparison with empty string"
inb4 this introduces an NRE somewhere
2025-01-31 14:49:40 +10:00
YoshiRulz af32948756
Add Analyzer to warn about LINQ calls on string receivers 2025-01-31 14:49:40 +10:00
SaxxonPike 0bb940ea7a [C64] Disk: 1541 drive saveram now works properly when rewind is disabled
[C64] Disk: Use raw track capacity values per the G64 file format specification, should fix some disk loaders that are expecting data not to be so sparse (Spindle demos in D64 format particularly)
[C64] Disk: fix 1541 drive address decodes
[C64] VIA: 6522 core facelift, shift register and use of low-order timer latches implemented, should fix some disk loaders ("Sprite B*****e 2" demo plays, yes they called it that, and it's not what it sounds like)
[C64] CIA: fix PB6/PB7 outputs when enabled on CRA/CRB
2025-01-30 12:43:58 +10:00
Tony Konzel 4a48d945c7
[6502] Pass Lorenz C64 tests (squashed PR #4177)
* [6502] Pass Lorenz C64 tests

* [C64] make sure the 1541 drive uses the same 6502 undocumented behavior as the main CPU

* [6502] Use field instead of delegate for ANE/LXA system constants
2025-01-30 12:43:48 +10:00
YoshiRulz 87ffdb5cd2
Fix typo
fixes 12cd7885e
good catch by Morilli
2025-01-30 12:42:43 +10:00
Morilli 504b2d57f2 fix lua autocompletions missing
fixes ea810cb89b
2025-01-29 16:27:06 +01:00
Morilli 0681dd2590 set proper libretro game data
- closes #4202
2025-01-29 16:15:19 +01:00
YoshiRulz c934e6b5d1
Memoise reflection in `HeaderKeys.Contains`
only used for `.bkm` anyway
2025-01-29 23:11:09 +10:00
YoshiRulz fe7ecceb64
Enable RCS1043 and fix noncompliance
"Remove 'partial' modifier from type with a single part"
2025-01-29 22:29:59 +10:00
YoshiRulz 8332a6bd5e
Add `Roslynator.Analyzers` 2025-01-29 22:16:49 +10:00
YoshiRulz 12cd7885ec
Enable CA1862 and fix noncompliance
"Use the 'StringComparison' method overloads to perform case-insensitive
string comparisons"
2025-01-29 22:11:54 +10:00
YoshiRulz 96207e80ea
Extract some extensions for string `OrdinalIgnoreCase` comparisons
`Contains`/`Equals`/`StartsWith`
refactored a few call-sites while I was at it
2025-01-29 21:51:21 +10:00
YoshiRulz a9fd86689e
Replace `InvariantCultureIgnoreCase` str. cmps. w/ `OrdinalIgnoreCase`
doesn't matter for ASCII-only strings, and `InvariantCultureIgnoreCase`
is arguably correct in some circumstances, but IMO it's more foolproof
to simply ban it
2025-01-29 21:48:33 +10:00
YoshiRulz 5f29b50940
Fix indentation in `SpectrumBase.Media.cs` 2025-01-29 21:47:28 +10:00
YoshiRulz 45581b2370
Fix loading discs for systems we don't emulate when it's for Libretro
fixes d9da3cfa6
(...since the Libretro core may emulate any system, and the intent here
was always to just pass the file through)
2025-01-29 12:12:56 +10:00
Morilli 1f53cec80b fix AdjustDescriptionHeightToFit calculation
- closes #3962
2025-01-28 21:41:23 +01:00
Morilli 26ef1ac2af improve SDLResampler
this distorts audio less when muting the stream for a while + general cleanup
2025-01-27 17:47:57 +01:00
Morilli cc45a6ec2d improve GetProcAddrOrThrow/LoadOrThrow error messages 2025-01-24 10:57:15 +01:00
feos 146e297a94 tastudio: position restore logic was missing when drawing analog 2025-01-19 21:35:43 +03:00
feos fe13b85d17 tastudio: nuke NewTASMenuItem accelerator
fixes #3376
2025-01-19 20:49:35 +03:00
YoshiRulz 4c3ea14efc
Allow empty string (for "recent") in `MainForm.SanitiseForFileDialog`
fixes 1cee9dff6
2025-01-20 02:09:14 +10:00
feos 8310e5420c Revert "fix wrong pause in AutoAdjustInput()"
This reverts commit b2f3bb3cba.

Revert "fix removing everything"
This reverts commit a0da874431.

YEP. this "feature" is COMPLETELY, ABSOLUTELY, UNIVERSALLY fucked. sure #4184 can be "fixed" by flipping some bools, like setting MainForm.HoldFrameAdvance back to false in TasView_MouseWheel. but then there's still the problem of removing actual input if farther lag picture changed after initial removal, and I'm not going to debug that. taseditor's ONLY bug was related to erroneous detection of lag change that we were never able to consistently reproduce or figure out, and it's completely impossible to replicate identical behavior in tastudio due to crazy overhead. but even SIMULATING that behavior would involve touching that minefield of bools that control everything in insane ways. given zero requests for this feature during tastudio's decade of existence, I'm considering it too useless for all the chaos it introduces.

so instead I'm closing #4184 by disabling the "feature" that caused it
2025-01-19 16:02:56 +03:00
YoshiRulz d8508acb69
Fixups to signature of `HttpCommunication.ContentObjectFor` method
fixes 41547824a
2025-01-17 08:25:12 +10:00
YoshiRulz 1437bc3a98
Include unreleased cores in About dialog (resolves #4168) 2025-01-17 06:54:44 +10:00
YoshiRulz 58213f3534
Undo unrelated changes from previous commit
partially reverts 6c4cea23e
2025-01-17 04:53:52 +10:00
CasualPokePlayer 6c4cea23e6 Don't do checked decimal -> float/double conversions
fixes exception on viewing movie info with Arcade movies
2025-01-16 09:59:08 -08:00
Morilli 7f3bf70229 bump various packages 2025-01-16 17:31:54 +01:00
YoshiRulz 41547824aa
Minor refactor to `HttpCommunication` 2025-01-17 01:30:12 +10:00
YoshiRulz 08dd34f42b
Rename `HttpCommunication.ExecPost` and add docs 2025-01-17 01:30:12 +10:00
YoshiRulz 88c54d11b6
Don't persist `ExpectContinue` setting through multiple requests
fixes 544b8007d
2025-01-17 01:25:30 +10:00
papercrane 544b8007dc
Only send `Expect` header for `comm.httpPost` when payload is large (squashed PR #4188)
* BizHawk#4187 Add a method to the comm LUA library to allow setting ExpectContinue

* Instead of exposing ExpectContinue set it automatically based on a threshold
2025-01-17 00:32:28 +10:00
YoshiRulz 0d05c1d263
Prevent CDL's "Disassemble..." when not implemented crashing EmuHawk
(by disabling the button)
see #1274
2025-01-16 05:34:04 +10:00
feos 93f33815ed alphabetize PlatformFrameRates and add amiga 2025-01-15 19:07:17 +03:00
feos 1e839b8802 uae: implement IRegionable 2025-01-15 19:06:48 +03:00
CasualPokePlayer f3629a9e86 [Encore] Fix System Bus endianness 2025-01-14 08:01:12 -08:00
CasualPokePlayer 1a1de0fa67 [Encore]
Remove GetVideoVirtualDimensions (no longer used)
Add System Bus domain
Fix deterministic time functionality using timezones when they should not
2025-01-14 07:08:23 -08:00
CasualPokePlayer 20d7355227 Do not create File On Disk domain for 3DS 2025-01-12 12:49:03 -08:00
YoshiRulz c5a4ec9b81
Make `HawkFile.ReadAllBytes` seek to start
fixes 633681804
2025-01-11 22:28:16 +10:00
YoshiRulz 09f8e8c544
Document semantics of `Stream.ReadAllBytes` extension 2025-01-11 22:24:10 +10:00
CasualPokePlayer 633681804d Actually don't dispose hawkfile stream after ReadAllBytes()
fixes a30c0efb78
2025-01-10 15:52:35 -08:00
CasualPokePlayer a30c0efb78 Don't dispose hawkfile stream after ReadAllBytes(), fix ReadAllBytes callsites to do disposal properly 2025-01-10 15:00:49 -08:00
YoshiRulz 4aa334244e
Fix `ObjectDisposedException` when loading non-disc rom into Libretro
fixes d9da3cfa6
2025-01-11 07:36:29 +10:00
CasualPokePlayer 6adab25fac Make EncryptString/DecryptString arguments be nullable and properly check for null/empty 2025-01-10 08:31:16 -08:00
YoshiRulz 89e94be8c1
Memoise a value during Lua lib function enumeration 2025-01-10 23:14:21 +10:00
YoshiRulz ea810cb89b
Hide unavailable Lua libs from REPL autocomplete
see #4167
2025-01-10 23:12:20 +10:00
YoshiRulz 7149609229
Gen docs for methods in Lua lib classes even w/o `[RequiredService]`s
resolves #4167
2025-01-10 23:06:27 +10:00
CasualPokePlayer 52848a3d27 Add Haswell to GL interop blacklist 2025-01-10 02:40:22 -08:00
YoshiRulz 1cee9dff60
Ensure file pickers (via `IDialogParent`) don't choke on bad paths
see also #4077 but that's still open while this is clear-cut
2025-01-10 07:20:58 +10:00
YoshiRulz fe871ba5c7
Prompt to switch cores before recording with A2600Hawk or TI83Hawk 2025-01-09 22:35:08 +10:00
YoshiRulz da993c77fd
Fix typo in ChannelFHawk settings UI 2025-01-08 04:24:05 +10:00
YoshiRulz ebd9cde063
Bump `VersionInfo.MainVersion` for dev builds 2025-01-08 03:11:21 +10:00
feos dd23282049 release uae 2025-01-07 19:29:10 +03:00
feos 2aa331213e 2.10 2025-01-07 18:54:34 +03:00
YoshiRulz 0666c21748
Cleaner fix for locale files
reverts 6db32e997
2025-01-08 00:44:26 +10:00
YoshiRulz 6db32e9979
Fix System.CommandLine leaking locale files into output
see #3888
2025-01-08 00:00:26 +10:00
YoshiRulz 6ba50f5eb2
Remove duplicate button names from SMSHawk's SK-1100 ControllerDef
fixes #4134
2025-01-07 22:54:04 +10:00
saxxonpike 0adf2f97d7 [C64] Fix up implementation of SaveRam 2025-01-07 22:06:17 +10:00
saxxonpike 6f7097ee07 [C64] DiskTrack implementation to simplify delta tracking 2025-01-07 22:06:17 +10:00