Commit Graph

1534 Commits

Author SHA1 Message Date
adelikat cd146c0f79 remove GlobalWin usage in HeaderEditor 2020-11-27 11:17:47 -06:00
adelikat 488c3def6a misc cleanups, naming conventions, readonly modifier, pattern matching, explicit modifier, apparently visual studio nags about these things now 2020-11-27 11:06:35 -06:00
adelikat a87f08379c GB ColorChooserForm - simplify code, remove a GlobalWin usage for free 2020-11-27 10:33:42 -06:00
adelikat 2c7b2a530c Remove GlobalWin usage in BmpView, and also use appropriate suffixes in various screenshot saving methods in various graphics tools 2020-11-27 10:25:30 -06:00
YoshiRulz 707dae93a7
Use MainForm's prop to get the global ToolManager in Win32LuaLibraries 2020-11-26 22:55:08 +10:00
YoshiRulz 2c086702c9
Pass global ToolManager to IToolApi impl via ctor 2020-11-26 22:53:27 +10:00
YoshiRulz 794c4b5b84
Pass global ToolManager to Console and TAStudio Lua libs on init 2020-11-26 22:41:46 +10:00
YoshiRulz 256f4d5b06
Make ConsoleLuaLib funcs not static, save callback on init of lib 2020-11-26 22:37:30 +10:00
YoshiRulz 9e0a3c0e34
Pass Lua Console log callback to LuaCanvas and replace static calls 2020-11-26 22:35:52 +10:00
YoshiRulz 72fd3f2fca
Replace static ConsoleLL.Log calls in FormsLL with LogOutputCallback 2020-11-26 22:31:27 +10:00
YoshiRulz 663e9cfbec
Add wrapper for Lua Console log callback and cleanup 2020-11-26 22:24:39 +10:00
YoshiRulz 939cd1bcaf
Add prop IToolApi.AvailableTools and use in ClientLuaLibrary 2020-11-26 22:12:19 +10:00
YoshiRulz 2e428ccc2e
Clean up GlobalWin.Tools assignment and usage in MainForm 2020-11-26 21:46:41 +10:00
YoshiRulz 8aab0d00cd
Move GlobalWin.ExitCode to Program 2020-11-26 21:41:54 +10:00
YoshiRulz 6dfb0a8af8
Move GlobalWin.DisableSecondaryThrottling to MainForm 2020-11-26 21:41:43 +10:00
YoshiRulz f0843689ed
Clean up global GLManager instance
no code actually got run by the GLManager ctor so it should be fine to delay it
2020-11-26 15:42:07 +10:00
YoshiRulz cdf562264c
Clean up global usage in DisplayManager 2020-11-26 15:22:19 +10:00
YoshiRulz 808ec64dba
Replace GlobalWin.FirmwareManager with MainForm prop 2020-11-26 15:08:15 +10:00
YoshiRulz 21b633c705
Move static IEmuClientApi prop from GlobalWin to ClientApi 2020-11-26 14:32:18 +10:00
YoshiRulz 0e2d35d6aa
Replace ClientApi event sub with direct call in MainForm 2020-11-26 14:29:11 +10:00
YoshiRulz 781976f18e
Pass EmuClientApi instance to MainForm when restarting in ToolManager 2020-11-26 14:24:03 +10:00
YoshiRulz 87a4f1186e
Make EmuClientApi.SystemIdConverter a static instance 2020-11-26 14:21:07 +10:00
YoshiRulz 9fc853d404
Pass more things through to ApiManager 2020-11-26 14:03:07 +10:00
YoshiRulz 4c9c985eed
Use IGameInfo instead of impl. in ApiHawk 2020-11-26 13:45:00 +10:00
alyosha-tas 389979b350 Movies: Still need this line for bk2 movies 2020-11-25 19:57:48 -05:00
alyosha-tas cf297dacb5 GBHawk: bug fix 2020-11-25 19:05:33 -05:00
alyosha-tas 53efd448d2 GBHawk: clean up 2020-11-25 14:24:52 -05:00
alyosha-tas 78ca48251f GBHawk: update HDMA implementation 2020-11-25 14:05:17 -05:00
YoshiRulz 13a8a602cf
Move SaveStateLuaLibrary to Client.Common 2020-11-25 19:48:06 +10:00
YoshiRulz db63222f32
Use new _luaLibsImpl prop instead of LuaConsole.LuaImp via globals 2020-11-25 19:47:07 +10:00
YoshiRulz a6d1c6595a
Pass LuaLibraries instance to Lua libs via ctors 2020-11-25 19:35:14 +10:00
YoshiRulz f5752294ff
Simplify Lua lib ctors 2020-11-25 19:27:38 +10:00
YoshiRulz a4e2e1ad3f
Move absract class LuaLibraries to Client.Common 2020-11-25 19:12:37 +10:00
YoshiRulz 6c05361cda
Move GuiLuaLibrary to Client.Common 2020-11-25 19:11:06 +10:00
YoshiRulz 20111fb4a2
Replace class Win32LuaLibraries.ResumeResult with tuples 2020-11-25 19:01:37 +10:00
YoshiRulz fd4a534fa7
When restarting Lua, use a single ApiContainer for all Lua libs
fixes a7ffdd948, 104c17e77, 151911069
2020-11-25 18:04:02 +10:00
alyosha-tas 1afcbe3ab5 GBHawk: update bad SRAm access emulation 2020-11-23 19:41:10 -05:00
alyosha-tas af38023ba8 GBHawk: open bus behaviour on locked SRAM 2020-11-23 17:06:49 -05:00
YoshiRulz 0093c16d79
Bump .NET SDK to 5.0.100, bump C# to 9.0
BizHawk.Tests executable needs to run in CI, but the 5.0 SDK image can't run
Core 3.1 apps somehow, so I bumped that too
2020-11-23 21:48:10 +10:00
YoshiRulz be536c67de
Update OpenTK and OpenTK.GLControl to latest 3.x (resolves #2471) 2020-11-23 21:18:20 +10:00
alyosha-tas 4a76cc322e GBHawk: some display bug fixes 2020-11-22 17:03:24 -05:00
alyosha-tas 8199e67770 GBHawk: more double speed mode timing work 2020-11-22 11:40:56 -05:00
YoshiRulz bad08162e2
Restart Sound in MainForm instead of SoundConfig 2020-11-22 12:38:40 +10:00
YoshiRulz edda120b07
Clean up some dumb in *SoundOutput ctors 2020-11-22 11:48:17 +10:00
YoshiRulz 9e5ab0706e
Move calls of static methods *SoundOutput.GetDeviceNames to a delegate
now only MainForm needs to reference *SoundOutput
2020-11-22 11:31:58 +10:00
alyosha-tas bffe2078d4 GBHawk: More double speed mode work 2020-11-21 16:18:43 -05:00
alyosha-tas cd7cc7f939 GBHawk: work on double speed mode 2020-11-21 13:49:28 -05:00
YoshiRulz 7596b97218
Add prop FormBase.BlocksInputWhenFocused to simplify some logic 2020-11-21 22:42:42 +10:00
YoshiRulz e7f83cb492
Small cleanup of <NoWarn/> use in project files 2020-11-21 19:53:13 +10:00
YoshiRulz e2a496c652
Cleanup OTK_Keyboard 2020-11-21 19:16:34 +10:00
YoshiRulz e2ac1aca84
Add and use DistinctKey enum (copy of WPF's key enum) 2020-11-21 17:43:58 +10:00
YoshiRulz 641db1bcd7
Comment out unused field
was assigned to before refactor in fc92d3c63
2020-11-21 11:24:57 +10:00
alyosha-tas 0b8e4ab6b1 Movies: revert previous 2 commits, too many difficulties around movies in 'finished' mode 2020-11-20 19:20:55 -05:00
alyosha-tas 1fe1138a91 Movies: don't redo steps if movie finished 2020-11-20 18:11:38 -05:00
alyosha-tas d676036359 Movies: reorder code so that record mode is not entered if state load failed 2020-11-20 17:25:01 -05:00
alyosha-tas 320ecc9093 Movies: Fix #4285 2020-11-20 16:09:58 -05:00
alyosha-tas 349092fec8 GBHawk; fix input when switching from playing a movie to recording another one 2020-11-19 13:59:33 -05:00
alyosha-tas fc92d3c63e Debugger: Fix scrolling in disassembly view 2020-11-17 19:54:43 -05:00
alyosha-tas fa08b25d37 Virtual Pad analog stick: Fix changing x axis name , fixes #2467 2020-11-16 22:00:49 -05:00
alyosha-tas 7865fe2980 Movies: pass SRAM to emulator before state is made 2020-11-16 17:37:49 -05:00
zeromus 6873b1c291 discsystem - load 2352-byte aligned iso as mode2/2352 bins instead. will cause 1 in ~2000 cases of isos to fail in case they are honestly multiples of 2352 sectors. if anyone ever reports that I can possibly try it both ways and see if one can detect as a known disc type and use whichever one succeeds?
should "fix" #2478
2020-11-13 03:13:04 -05:00
nattthebear ebf0f6685e Fix playing a movie when core is not specified and core is not one we support switching of
#2476
2020-11-12 15:12:00 -05:00
alyosha-tas a4507691b6 GBHawk: Overhaul HDMA emulation 2020-11-07 09:36:53 -05:00
alyosha-tas 2a92121483 GBHawk: refactor some ppu code to prepare for more accurate VRAm glitch emulation 2020-10-29 12:35:45 -04:00
alyosha-tas bd3ee6f45c GBHawk: don't clear timer/serial interrupts when they happen at the same time as a set 2020-10-24 21:46:31 -04:00
YoshiRulz 72511add3b
Add ctor to KeyEvent and make readonly struct 2020-10-23 11:10:49 +10:00
alyosha-tas d7c59e8bd4 GBHawk: Fix behaviour of button pressed during STOP 2020-10-22 20:24:54 -04:00
YoshiRulz 3709968757
Map remaining DInput keys to OTK Unknown 2020-10-21 12:40:55 +10:00
YoshiRulz 4dab259412
Rewrite scan code list for DInput alt. mode
In 9d348c9c8 I copied these verbatim, but half of the non-alphanumeric keys were
wrong. I passed 0..0xFFFF to MapWin32VirtualScanCodeToVirtualKey to get what I
assume are the correct values, though it's possible they're per-machine, in
which case the whole alt. mode feature is broken. There are a few keys that
remain commented-out because I didn't find their scan code, notably numpad 0-9.
2020-10-21 12:25:40 +10:00
YoshiRulz fa7811f848
Add Menu, Oem102, and Unknown to OTK, add Menu and Unknown to DInput 2020-10-21 12:09:44 +10:00
nattthebear 1f313b42c8 Change NES ideal framerates
These are used for realtime and recorded AV output.  They match closely what the core actually does (not idealized values about what the NES framerate ""should"" be.)

Fixes #2460
2020-10-20 18:27:28 -04:00
YoshiRulz 58aa64b5d6
Add some missing keys to DirectInput alt-keyboard-layout mode
maybe THIS will fix the crashes
2020-10-16 14:45:46 +10:00
YoshiRulz 9d348c9c8b
Merge KeyboardMapping into KeyInput and cleanup 2020-10-16 14:14:12 +10:00
YoshiRulz 7f5e777f75 Move DirectX wrappers to new project 2020-10-16 07:30:26 +10:00
YoshiRulz 69a05641e7 Replace global config access in DirectInput wrapper with encapsulation
fixes b01f52c01; this required a whole lot of rearchitecting for one obscure
feature which will become obsolete with the move to .NET Core anyway, and I'm
not happy about it
2020-10-16 07:30:26 +10:00
YoshiRulz 02e0804712 Move some host input internals to Client.Common 2020-10-16 07:30:26 +10:00
YoshiRulz 4c8bdf9851 Add properties to IHostAudioManager for accessing global config 2020-10-16 07:30:26 +10:00
YoshiRulz e1daa7efd3 Extract interface from Sound
The interface is a single method plus the four constants from the top of Sound,
which are now properties. The static methods in Sound are moved to extension
methods on the interface.
2020-10-16 07:30:26 +10:00
zeromus 447ae737f3 * don't clear ControllerInputCoalescer when rewiring input. it just collects physical input, there is no reason to unpress it. if you're holding a button, you want it held. the only exceptions would be in case a hotkey and controller input collided, in which case a prior hotkey press (which caused a rom to open or close) would then get handled as a controller input. this could be solved in some other way, probably (unpress hotkeys as soon as received?)
* resync controls after CloseRom

fixes #2453
2020-10-15 13:29:53 -04:00
YoshiRulz 35dadd75e6
Maybe fix alt-keyboard-layout mode crashes 2020-10-15 11:51:14 +10:00
alyosha-tas d3cccf0c3c GBHawk: multi cart check for bomberman selection 2020-10-14 17:53:53 -04:00
alyosha-tas f7d96bdedb GBHawk: Window timing bug fix 2020-10-14 14:40:09 -04:00
YoshiRulz 377c69032c
Really hide ISpecializedEmulatorService from CoreFeatureAnalysis UI
fixes 25b7be70b
2020-10-14 09:18:55 +10:00
YoshiRulz 25b7be70bc
Hide ISpecializedEmulatorService from CoreFeatureAnalysis UI 2020-10-14 08:43:41 +10:00
YoshiRulz ed4ddb13ce
Add CoreInventory.SystemsFlat list and use in UI gen elsewhere 2020-10-14 08:39:26 +10:00
YoshiRulz fca37ddccf
Refactor CoreInventory.Core creation 2020-10-14 08:25:54 +10:00
nattthebear 27e600c1ac Fix some confusions in no-dirty-detection mode
This caused some awful crashes, but doesn't affect any real release builds of waterboxhost
2020-10-13 09:10:40 -04:00
alyosha-tas e07944b0f1 GBHawk: sprite timing bug fix 2020-10-12 19:45:23 -04:00
alyosha-tas 5a96022f28 GBHawk: Window and sprite timing work 2020-10-12 18:14:36 -04:00
YoshiRulz 2991b69363
Cleanup <ProjectReference/>s 2020-10-12 08:37:47 +10:00
alyosha-tas da6ea1ec9f GBHawk: general clean up and minor bug fixes 2020-10-11 17:48:08 -04:00
YoshiRulz 24d07121e2
Bump version 2020-10-11 18:31:15 +10:00
adelikat ab28dbc501 NesHawk - default to 1 plugged in controller, instead of 2, we want to consistently start cores with 1 standard peripheral 2020-10-07 10:57:32 -05:00
alyosha-tas f0508df4ae GBHawk: Fix alignment of sprite evaluation when window is activated 2020-10-05 23:27:42 -04:00
YoshiRulz 7d1133ff9c
Cleanup Timestamp ctor(String) 2020-10-06 06:54:12 +10:00
YoshiRulz 9bd25a1aa1 Move some sound internals to Client.Common 2020-10-06 06:39:57 +10:00
YoshiRulz 49ef7a7a55 Move some DisplayManager internals to Client.Common 2020-10-06 06:39:57 +10:00
YoshiRulz adc1fefd14 Remove unused import
accidentally added in d1257e302?
2020-10-06 06:39:57 +10:00
alyosha-tas a52c2e79aa GBHawk: some window clean up and pass new scroll + sprite tests 2020-10-05 16:30:07 -04:00
adelikat af5dfc454c add in uzebox framerate 2020-10-04 16:30:45 -05:00
zeromus f561e79489 add provision for saving mismatching state frames in tastudio integrity checker 2020-10-03 23:53:46 -04:00
nattthebear 6ee62023a2
Re-add M3U capability (#2390)
Only supports optical disks.
2020-10-02 00:32:56 -04:00
alyosha-tas 38838fa3c1 GBHawk: fix window latching, x-scroll only latching lower 3 bits, and MBC3 RTC reg behaviour. 2020-10-01 20:09:26 -04:00
alyosha-tas 7ebc3a3058 GBHawk: FiX serial port emulation (somewhat) and cleanup some minor bugs 2020-10-01 15:17:58 -04:00
YoshiRulz 60da770532
Replace goto without throwing 2020-10-02 04:19:01 +10:00
zeromus f363acd16a Revert "Replace goto" (goto is superior to throwing an exception in unexceptional codepaths)
This reverts commit f22f5b732b.
2020-10-01 14:11:41 -04:00
YoshiRulz f22f5b732b
Replace goto 2020-10-01 22:33:41 +10:00
YoshiRulz ac5d53b44e
Code style: add explicit private modifier 2020-10-01 22:33:37 +10:00
YoshiRulz 03f82226cf
Cleanup GetRelativePath after move from MultiDiskBundler
fixes 5d001f3aa
2020-10-01 22:33:32 +10:00
nattthebear 7f4d29d0ff Revert "resume m3u support by turning the m3u to an xml game and then loading that. fixes #2378"
This reverts commit 8da5525819.
2020-10-01 08:17:30 -04:00
zeromus 8da5525819 resume m3u support by turning the m3u to an xml game and then loading that. fixes #2378 2020-10-01 03:40:19 -04:00
zeromus 5d001f3aa9 put MultiDiskBundler's GetRelativePath() in PathExtensions.cs. but I didn't end up using it... 2020-10-01 03:12:42 -04:00
zeromus 99f9b9b447 rename GetTempFilename `extension` arg to make it clear that you should provide the dot... 2020-10-01 03:02:13 -04:00
zeromus 3fd7e11f60 small improvements to MultiDiskBundler 2020-10-01 02:24:17 -04:00
adelikat 995993357f
StateManager - increase performance when there are a lot of states, fixes issue #2428 (#2433)
* StateManager - switch from SortedSet to List<int> + duplicate checks.  Seems to make raw capture speed to be slighly slower, but greatly speeds up invalidate which speeds up painting

* Add SortedList<T> : ICollection<T> which wraps List<T>

More interfaces can be added as needed. There's an indexer though ICollection
doesn't specify one.

* Update SortedList<T>

* StateManager - use SortedList<int>, seems to offer raw unthrottled drawing speed with no drawbacks, painting is still smooth when there is a high number of states

* remove a space

* Add RemoveAfter to our SortedList for efficiency

* fix unit tests to use [DataRow]

Co-authored-by: YoshiRulz <OSSYoshiRulz@gmail.com>
Co-authored-by: RetroEdit <30182911+RetroEdit@users.noreply.github.com>
2020-09-30 08:37:36 -05:00
alyosha-tas 7a4c5afce4 GBHawk: fix x-scroll latch and add some notes 2020-09-28 21:41:56 -04:00
RetroEdit 8449f9fcb8
Firmware Manager: replace unnecessary gotos 2020-09-28 15:34:28 +00:00
nattthebear d3f1d0f6ac Revert "Because the real GBA version of the GBC BIOS is quite obscure, a fallback is needed"
This reverts commit f3f70276df.
2020-09-27 22:32:55 -04:00
TiKevin83 f3f70276df Because the real GBA version of the GBC BIOS is quite obscure, a fallback is needed 2020-09-27 20:45:55 -04:00
zeromus 9884c93fbf Revert "Revert "Change build path of executables to output/dll but gooder""
This reverts commit f078709b6b.
2020-09-27 17:27:02 -04:00
zeromus cfbc148975 fix GB and SNES graphics viewers (and maybe others) due to incorrect (non-100%) windows DPI scaling setting 2020-09-27 17:26:44 -04:00
zeromus f078709b6b Revert "Change build path of executables to output/dll but gooder"
This reverts commit bb0e92a830.

I can't build again. e.g:
Unable to move file "..\..\output\BizHawk.WinForms.Controls.dll" to "../../output\dll/BizHawk.WinForms.Controls.dll". Cannot create a file when that file already exists.

We've failed twice now. Please give a rationale for why we have to move these files around.
2020-09-27 16:46:25 -04:00
YoshiRulz 96f4f24968
Fix weirdness in a specific rom loading scenario (fixes #2024)
Without this commit, choosing "Cancel" from a tool form's "Save changes?" dialog
(i.e. AskSaveChanges) while trying to load a rom from `File` > `Recent ROM`
would treat that recent rom as though it were missing. With this commit, an OSD
message is displayed instead.
This isn't the best fix. The return value from LoadRomInternal isn't even used
anywhere apart from LoadRomFromRecent, which is the only place the new out param
is used.
2020-09-28 05:10:40 +10:00
RetroEdit 3adcc26752
Simplify Gambatte's sync settings for selecting GBA (#2431)
Having GBA be a console mode is more straightforward for users to understand and a more logical way of arranging options. GBA is literally a console mode, not an additional modifier to a console mode.
2020-09-27 13:06:55 -05:00
adelikat e4d4c3a9d8 Lua - tastudio library - supress lua console updates when invoking tastudio methods that cause tool udpates, fixes #2172 2020-09-27 12:59:16 -05:00
RetroEdit b5cf9cb241
Restore Game Boy Pocket firmware to Acceptable
It does not have the same issues as early revisions of the GB/C boot roms
2020-09-27 17:13:41 +00:00
adelikat 32b7358f07 Macro tool - fix NRE on File -> Load Macro, fxies #2375 2020-09-27 11:16:18 -05:00
adelikat 32a20dcb3d Tastudio Markers - scroll to newly added marker instead of assuming it is the last in the list and scrolling to bottom, fixes #2350 2020-09-27 10:54:09 -05:00
adelikat c8a7c9d98f Tastudio - Markers - remove some nonsense code 2020-09-27 10:41:33 -05:00
adelikat 7920d148be InputRoll - auto-initialize MultiSelect to true, to match the DefaulValue attribute 2020-09-27 10:38:16 -05:00
adelikat 6a09bbce38 Branches - fix settings the designer barfed on in a previous commit, and a bit of cleanup 2020-09-27 10:35:58 -05:00
adelikat cc66ba81c9 Tastudio - branches - disable toolbar buttons and menu items that need specifically 1 branch selected when multiple branches are selected 2020-09-27 10:23:51 -05:00
adelikat a5884622c8 Tastudio - BookMarks - sanely handle updating toolbar buttons, fixes buttons not disabling when de-selecting 2020-09-27 10:15:19 -05:00
adelikat a0943000a3 InputRoll - fire selected index changed event on DeselectAll() 2020-09-27 10:10:30 -05:00
adelikat 33c8808ee4 PSX - initialize with a single controller + memcard instead of two, to be consistent with other cores 2020-09-27 09:59:05 -05:00
adelikat ad9a04d918 Lua Console - fix Session saving saving the session filename instead of the script filename, fixes #2400 2020-09-27 09:48:45 -05:00
adelikat 725cee8b62 Ram Search - persist Use Undo History, and also set it to true by default, fixes #2413 2020-09-27 09:32:34 -05:00
adelikat 63f9de42a7 Tas Profile - fix mistake of snes9x being the snes core instead of bsnes. Also turn off GBC in GBA setting, after discussing with tasvideos staff, this setting is specifically preferred to be false. 2020-09-27 09:10:15 -05:00
RetroEdit cf58dd8ad1
Minor GB/C and PCFX firmware detection revisions (#2430)
Change the status of alternate GB/C firmware options to unacceptable. Quoting from CasualPokePlayer "Gambatte is definitely not emulating those cpus [dmg0 and cgb0]. So you would end up with quirks of newer cpus being combined with bootroms only present in older cpus."

Also fix what looks to be a longstanding typo where the PCFX BIOS v1.01 was not being properly detected.
2020-09-27 13:30:12 +00:00
TiKevin83 a932cce636 Revert "initial attempt at a firmware fallback for Gambatte's clean room patch"
This reverts commit be25ad0bc8.

Meant to push this to a different branch for PR
2020-09-26 19:14:20 -04:00
TiKevin83 be25ad0bc8 initial attempt at a firmware fallback for Gambatte's clean room patch 2020-09-26 19:12:58 -04:00
YoshiRulz bb0e92a830
Change build path of executables to output/dll but gooder
fixes 5ae13a230, 49a18d83b
2020-09-27 02:28:42 +10:00
zeromus 49a18d83bf I don't know what the fuck this is, and I don't care. If I can't open the sln and debug emuhawk, then it's broken.
Revert "Change build path of executables to output/dll"
2020-09-26 00:47:10 -04:00
alyosha-tas bac502671f GBHawk: rewok interrupt handling to pass more tests and behave like gambatte on Gensan 2 2020-09-25 20:19:53 -04:00
alyosha-tas 39f6668f18 dual gameboy: fix XML generation and core preference selection 2020-09-25 09:12:33 -04:00
alyosha-tas 7e7713c955 GBHawk: fix color displayed when BG is off 2020-09-24 17:26:50 -04:00
nattthebear 7ea7f75f50 Fix some arm disassembly stuff
Some random code which is trying to align columns or something gets pooped up because "BLX" has no second part
2020-09-24 14:52:28 -04:00
nattthebear fe929c0c55
Fix SGB core picker which was broken (#2422)
* Fix SGB core picker which was broken

* Restore default SGB core choice of SameBoy

In 2.4.2 and before, SameBoy was implicitly the default, but this makes the choice more explicit and the core picker UI properly show the chosen core when nothing has been selected yet.

* Cleanup core picker UI gen

* Remove now defunct SgbUseBsnes option from Config

Co-authored-by: RetroEdit <30182911+RetroEdit@users.noreply.github.com>
Co-authored-by: YoshiRulz <OSSYoshiRulz@gmail.com>
2020-09-24 09:23:12 -04:00
nattthebear 757ac4e27e Fix crash saving zwinder state manager when things align a certain way 2020-09-23 22:03:37 -04:00
YoshiRulz f8e624befe
Create common property IsTargetingNetFramework
* if true, will add reference assemblies <PackageReference/>
* slightly less dumb <Move/>
2020-09-22 22:11:00 +10:00
YoshiRulz 1fdd2d5eb1
Import MainSlnCommon.props in MainSlnExecutable.props 2020-09-22 20:51:36 +10:00
YoshiRulz 5ae13a2309
Change build path of executables to output/dll
* post-build step moves .exes up a level, to output
* also fixed OpenTK.dll.config location
* also removed redundant step from packaging scripts
* future executables need to be capable of resolving assemblies in dll
2020-09-22 09:39:53 +10:00
YoshiRulz 000e2af543
Extract .props for executable projects 2020-09-22 09:33:53 +10:00
YoshiRulz da26a18bf5
Remove redundant <AppendTargetFrameworkToOutputPath/> 2020-09-22 09:33:49 +10:00
YoshiRulz 877bb2ccea
Move Assets to output <Target/> to BizHawk.Common 2020-09-22 09:33:44 +10:00
zeromus c64fb11d0d dialogs shouldnt be opened without an owner. so give all them an owner. fixes #2420 2020-09-21 13:11:28 -04:00
YoshiRulz fb5a5ed78c
Add libdarm.so, migrate Darm class to BizInvoker
`Tools` > `Debugger` no longer crashes immediately on Linux with mGBA core
2020-09-21 01:38:09 +10:00
Moritz Bender e5d04e1e52
Fix tasproj backup files getting saved with savestates / greenzone (#2416) 2020-09-20 09:31:48 -05:00
RetroEdit b1a64e2212
Broaden usage of TAStudio-specific movie-loading. (#2411)
* Broaden usage of TAStudio-specific movie-loading.

fixes #2386

* TAStudio drag-drop: use LoadMovieFile for consistency
2020-09-18 20:08:49 -05:00
nattthebear 302b12cda8 Remove infinite loop on certain stream copy failures
Instead we get an error message now
2020-09-18 18:10:40 -04:00
RetroEdit 0d72cd901a
Replace SelectionFocused variable I accidentally added 2020-09-18 20:38:10 +00:00
RetroEdit 9e4f81e3a4
Markers/branch multi-selection (#2409)
Fixes #2215 

* Make marker/branch columns use ColumnType.Text

One step towards fixing multiselect for markers and branches

* Disable some input operations while TasView is unfocused

This prevents accidentally deleting inputs while branches or markers are selected.
2020-09-18 19:39:04 +00:00
adelikat 0ecd155758 Lua console - enable multi-select, InputRoll - refresh on select/deselect all, fixes #2401 2020-09-18 14:29:46 -05:00
RetroEdit 35754469aa
Select only the new branch when created, fixes #2405 2020-09-17 22:34:00 +00:00
YoshiRulz b6a3c20b49
Code style: Remove a redundant semicolon 2020-09-18 07:28:11 +10:00
YoshiRulz 727c6bc51f
Make ToolFormBase implement IToolForm 2020-09-18 07:28:08 +10:00
YoshiRulz 8aa3dcf72f
Remove ToolFormBase.Config and use base property
The non-weird init in ToolManager can't pass in the ctor because 1. Config is
written to in Restart as well as Load and 2. it's a base class and that's not
how ctors work and I should know this
2020-09-18 07:27:59 +10:00
YoshiRulz 9a6b853a49
Fix line breaks in two labels in OpenAdvancedChooser (fixes #2407)
fixes 64d14a7f9
2020-09-18 02:52:42 +10:00
alyosha-tas 2f01ac2212 GBHawk: add in missing variable to state 2020-09-16 20:54:51 -04:00
YoshiRulz afbce436cd
Restore FormBase.WindowTitleStatic semantics without breaking Designer
fixes daf6f516c which fixed regression in aa1de1c9d
2020-09-15 13:47:51 +10:00
scrimpeh 70b695a456 TAStudio: Disengage TAStudio after loading .bk2 2020-09-14 15:14:06 -05:00
YoshiRulz aa74209b3a
Use .so in OAC for Libretro cores on Linux 2020-09-14 16:20:38 +10:00
YoshiRulz 5ed192c5ce
Bump version 2020-09-14 16:19:07 +10:00
zeromus 82c4fa4881 re: #2393 - fix something related to ed9b7b3eb1 (maybe) 2020-09-13 21:16:12 -04:00
adelikat 284af73b14 nes palette viewer - dont' new up brushes on every draw 2020-09-13 12:52:37 -05:00
adelikat 5c5438ea18 add advanced config option that will remove the "Mixed" key priority when clicking the statubar icon or pressing hte hotkey 2020-09-13 12:23:15 -05:00
adelikat 40fe4b3022 Merge branch 'release' 2020-09-13 11:10:38 -05:00
adelikat f104807193 update version info 2020-09-12 20:36:29 -05:00
adelikat 043ec74206 set Faust release flag to true 2020-09-12 09:26:04 -05:00
YoshiRulz 17440fad2f Fix crash when painting selected row backgrounds in InputRoll 2020-09-12 09:22:58 -05:00
nattthebear d619a3c7c3 Fix two mostly unrelated nyma settings issues
Mednafen has extra aliases of enum values that we don't need here and were confusing the system.  Now, NGP no longer has three different "English" options for language.
Internal Mednafen code expects MDFN_GetSettingB ("bool") to work with enum values, so long as those enums are 0 and 1, but we weren't handling that.

Fixes #2385
2020-09-12 09:22:28 -05:00
adelikat 76c97e49e7 Ram watch - clear on screen watches when doing fast updates, fixes #2379 2020-09-12 09:20:29 -05:00
zeromus be98f272f2 remove parallel from watchlist 2020-09-12 09:20:14 -05:00
YoshiRulz 5099614dbe Disable "Stay on Top" setting of IToolFormAutoConfigs on Unix 2020-09-12 09:18:17 -05:00
YoshiRulz f6dde5914d Prevent trying to load VB.NET assembly on Linux 2020-09-12 09:17:30 -05:00
alyosha-tas a0c35b397e GBHawk: Fix start up screen color. 2020-09-12 09:16:33 -05:00
YoshiRulz 15deab90e5 Fix typo
forgot to stage this -_- fixes d1de18119
2020-09-12 09:15:53 -05:00
YoshiRulz 27d4bfc8b9 Fix de/serialisation of .tasproj MovieVersion header (fixes #2377)
.tasproj files written from both American/global and European PCs will now load
anywhere. No new files will use ',' in the header, only '.'.
2020-09-12 09:15:27 -05:00
YoshiRulz d48bea5056 Fix joypad.setanalog implementation and docs (fixes #2310) 2020-09-12 09:12:54 -05:00
YoshiRulz 99440b6095 Change IJoypadApi methods from float to int, allow null in SetAnalog
also from Dictionary<,> to IDictionary<,>
2020-09-12 09:12:16 -05:00
alyosha-tas 12c5658050 GBHawk: Add note to use existing SRAM sync setting, fixes #2354 2020-09-12 09:10:50 -05:00
YoshiRulz f07c24cfcc
Fix crash when painting selected row backgrounds in InputRoll 2020-09-12 21:14:25 +10:00
nattthebear ddd229e03d Fix two mostly unrelated nyma settings issues
Mednafen has extra aliases of enum values that we don't need here and were confusing the system.  Now, NGP no longer has three different "English" options for language.
Internal Mednafen code expects MDFN_GetSettingB ("bool") to work with enum values, so long as those enums are 0 and 1, but we weren't handling that.

Fixes #2385
2020-09-10 08:05:11 -04:00
adelikat d1257e302b Ram watch - clear on screen watches when doing fast updates, fixes #2379 2020-09-09 13:28:52 -05:00
adelikat 48b7980cb9 Revert "some fixes to input roll drawing, but it is massively messed up"
This reverts commit 23fcb4c1a0.
2020-09-09 12:38:41 -05:00
zeromus 23fcb4c1a0 some fixes to input roll drawing, but it is massively messed up 2020-09-08 19:51:16 -04:00
zeromus daf6f516c6 fix bugs from aa1de1c9d2 that made tool windows undesignable 2020-09-08 19:35:42 -04:00
zeromus e840a32ccc remove parallel from watchlist 2020-09-08 19:29:40 -04:00
YoshiRulz bf3f037bd7
Enable SA1212 and fix non-compliance
"Property accessors should follow order" (setter should not come before getter)
2020-09-08 22:23:10 +10:00
YoshiRulz 0dd89de0d8
Enable SA1205 and fix non-compliance (except in Cores)
"Partial elements should declare access" (type decl. modifier not copied across
all parts)
2020-09-08 22:14:47 +10:00
YoshiRulz 5488c80f4d
Enable SA1400 and fix noncompliance (except in Cores)
"Access modifier should be declared"
2020-09-08 21:57:14 +10:00
YoshiRulz 4bf50e6e51
Fix docs/strings/identifiers copypasta'd between various Hawk cores
A2600 standard controller and A7800 standard controller were using the same
keybinds, now only Atari2600Hawk uses those and A7800Hawk's are blank unless
configured manually or configured on config regen
2020-09-08 12:02:53 +10:00
YoshiRulz d170972e3c
Cleanup various Hawk cores' controller decks
The main point is referencing types directly instead of iterating them by
reflection and also calling their ctors by reflection.
(disclaimer: [DisplayName] attrs are still necessarily read by reflection)
2020-09-08 00:05:35 +10:00
YoshiRulz 329a7de8b8
Disable "Stay on Top" setting of IToolFormAutoConfigs on Unix 2020-09-07 22:43:54 +10:00
YoshiRulz f1ef8c64cb
Make *.ReflectionCache.Asm props private 2020-09-07 22:36:24 +10:00
YoshiRulz f7ccb7dfca
Change signature of CoreInventory ctor 2020-09-07 22:35:14 +10:00
YoshiRulz e10e139f10
Encapsulate Assembly.GetManifestResourceStream in *.ReflectionCache 2020-09-07 22:31:38 +10:00
YoshiRulz 209fbc6de0
Add and use ReflectionCache classes 2020-09-07 22:01:26 +10:00
YoshiRulz 9325e2f002
Prevent trying to load VB.NET assembly on Linux 2020-09-07 22:01:03 +10:00
alyosha-tas 2a285af5ae GBHawk: Fix start up screen color. 2020-09-06 19:00:11 -04:00
YoshiRulz aa1de1c9d2 Unify setting of window titles, add static title option (fixes #1996)
The only forms that did anything special with their window title were Basic Bot,
CDL, Hex Editor, Log Window, MainForm, and TAStudio. That behaviour is in
WindowTitle, while the rest use WindowTitleStatic.
The implementations of WindowTitleStatic in those six forms are new. There's a
checkbox in `Config` > `Display...` > `Misc` to disable their special behaviour
and use the new static titles.
The Text property is hidden from Designer de/serialisation as well.
2020-09-06 16:18:08 -05:00
YoshiRulz 2c77f76a67
Fix typo
forgot to stage this -_- fixes d1de18119
2020-09-06 09:43:36 +10:00
YoshiRulz d1de181194
Fix de/serialisation of .tasproj MovieVersion header (fixes #2377)
.tasproj files written from both American/global and European PCs will now load
anywhere. No new files will use ',' in the header, only '.'.
2020-09-06 09:36:08 +10:00
YoshiRulz 8e72dddd41
Set menu de/activate handlers on tool form MenuStrips (fixes #2281)
these call methods on MainForm, which decides whether or not to pause/unpause
2020-09-05 18:49:29 +10:00
alyosha-tas 1c5f9fccb3 O2Hawk: Mostly fix 4 in a row 2020-09-04 19:46:49 -04:00
RetroEdit aa00184737
Revert "DeveloperBuild = false"
This reverts commit e524f3e4e5.
2020-09-03 20:15:44 +00:00
RetroEdit cd499b2378
Merge branch 'release' 2020-09-03 20:14:45 +00:00
RetroEdit f3f5774bbb
Fix new bugs from painting during auto-restore
fixes #2371
2020-09-03 19:38:05 +00:00
RetroEdit 1f19281ed1
Merge pull request #2372 from TASVideos/painting-auto-restore-fix
Fix new bugs from painting during auto-restore
2020-09-03 19:08:20 +00:00
RetroEdit 98498f9d50
Fix new bugs from painting during auto-restore
fixes #2371
2020-09-03 18:11:37 +00:00
YoshiRulz 242dcf04c7
Fix joypad.setanalog implementation and docs (fixes #2310) 2020-09-03 09:32:45 +10:00
YoshiRulz e77631922e
Change IJoypadApi methods from float to int, allow null in SetAnalog
also from Dictionary<,> to IDictionary<,>
2020-09-03 09:32:12 +10:00
alyosha-tas 1ed9adf3cb GBHawk: Add note to use existing SRAM sync setting, fixes #2354 2020-09-02 17:24:40 -04:00
nattthebear c1a113ce24 fix NRE
closes #2363
2020-09-02 11:09:22 -04:00
nattthebear 7bca0426bf fix NRE
closes #2363
2020-09-02 11:07:39 -04:00
YoshiRulz affd1914c2
Change default input method on Windows to DirectInput
for the record I think this is a bad idea
2020-09-02 07:50:38 +10:00
YoshiRulz 1793e991ca
Move Windows version check to OSTailoredCode and cleanup 2020-09-02 07:47:57 +10:00
adelikat dbddcfe665 input widget - delete deafult ContextMenu property, this was done to supress the context menu, but we supress it by other means, fixes #2222, for real this time 2020-09-01 12:52:41 -05:00
adelikat 36b7d9df28 lua functions list - convert from using ContextMenu to ContextMenuStrip, fixes #2222 2020-09-01 10:56:00 -05:00
RetroEdit f3bc89055b Remove default joypad bindings for fast-forward/rewind. Fixes #2297 2020-09-01 09:33:56 -05:00
YoshiRulz a89b0dfdcd
Split TargetedPairSchema.MaxValue to MaxX/MaxY and cleanup
* split TargetedPairSchema ctor and added docs to clarify its behaviour
* renamed VirtualPadTargetScreen.RangeX/RangeY to MaxX/MaxY
* left TODOs in the three places MaxValue was actually used
2020-09-01 09:07:06 +10:00
YoshiRulz 509560fa1a
Use RangeTo extension 2020-09-01 08:23:00 +10:00
YoshiRulz 10ac846256
Chain ExceptionBox ctors 2020-09-01 08:21:24 +10:00
YoshiRulz 15c5cd516c
Rename AxisSpec.Mid to Neutral (resolves #2345) 2020-09-01 08:09:02 +10:00
adelikat e524f3e4e5 DeveloperBuild = false 2020-08-30 11:54:48 -05:00
adelikat 5b93ef14dc update version info 2020-08-30 11:49:48 -05:00
adelikat 33b1bdfcae Tastudio - fix obvious mouse up typo, if we are going to invalidate from _paintingMinFrame, then we should compare against it, fixes #2351 2020-08-30 11:36:17 -05:00
adelikat e46de9e5c3 Virtualpads - fix single axis controls being tied to each other, fixes #2351 2020-08-30 11:21:50 -05:00
adelikat 8b46500e32 Tastudio greenzone settings dialog - fix positioning a bit 2020-08-30 09:10:40 -05:00
feos 2e88ddf3c5 description typos 2020-08-30 15:26:58 +03:00
RetroEdit d3c5bb4990
TAStudio: Fix a typo in tasproj import message 2020-08-30 12:05:16 +00:00
adelikat b4d89da5d3 be more careful with using gapFiller, it's important that the state not get out of order 2020-08-29 19:21:13 -05:00
adelikat e98a12eaa3 TAstudio - check initializing flag when doing draw callbacks, in fluky circumstances, a draw can be invoked while trying to load a new movie 2020-08-29 18:36:38 -05:00
adelikat 9db5ee2e7b hack to fix Tastudio loading when importing an existing bk2 2020-08-29 18:14:54 -05:00
YoshiRulz 7e99989746
Omit ".exe" from FFmpeg on Unix, and hack a note into the downloader 2020-08-30 09:03:18 +10:00
YoshiRulz 252e878b53 Disable single-instance mode on Unix so we can drop VB.NET dependency 2020-08-30 07:19:36 +10:00
YoshiRulz 45063aa6fa Add helper for when calling .GetTypes() on EmuHawk assembly 2020-08-30 07:19:36 +10:00
YoshiRulz 3179dc8ebe
Put IComm.WebSockets and Lua comm.ws_* behind #ifdef ENABLE_WEBSOCKETS
Not confident in the API shape, especially for ApiHawk
2020-08-30 06:35:31 +10:00
YoshiRulz dc7f5ef7a2
Fix typo
fixes a11a7017a
2020-08-30 05:52:50 +10:00
adelikat 1671cd32c4 GBA virtual pad - adjust size so light sensor actually shows 2020-08-29 13:49:06 -05:00