Commit Graph

18330 Commits

Author SHA1 Message Date
YoshiRulz 453ea2b1bb
Pass globals to DisplayManager as with OSDManager
* moved initialisation of global `OSDManager` to `DisplayManager` ctor again
* `DisplayManager.UpdateGlobals` calls `DisplayManager.OSD.UpdateGlobals`
* goodbye `GlobalWin.Emulator` and `GlobalWin._mainForm` :)
2020-11-30 19:11:59 +10:00
YoshiRulz c991babdce
Use MainForm instead of GlobalWin in Lua internals 2020-11-30 19:03:50 +10:00
YoshiRulz 3ccdfa8289
Pass MainForm to UI helpers instead of using GlobalWin.Sound 2020-11-30 16:44:27 +10:00
YoshiRulz 636a9a4735
Pass a callback to some sound internals to read the global IEmulator 2020-11-30 16:16:22 +10:00
YoshiRulz 6d22cdc15f
Pass global MovieSession from MainForm ctor to Program with an out param 2020-11-30 16:02:48 +10:00
YoshiRulz 3a7ca89311
Remove GlobalWin.InputManager 2020-11-30 15:58:50 +10:00
YoshiRulz a83642fab2
Pass globals to OSDManager via ctor and new UpdateGlobals method
also instantiate OSDManager in MainForm and pass it to DisplayManager because
that's how we did it until recently and it's also just easier
2020-11-30 15:55:23 +10:00
YoshiRulz b9a5c5796d
Pass global InputManager to remaining Virtual Pads controls 2020-11-30 15:43:33 +10:00
adelikat e3f7519e15 replace unnecessary GlobalWin usage in BookmarksBranchesBox.cs 2020-11-29 22:04:00 -06:00
adelikat 792b317118 add Start/StopSound methods to IEmuHawkMainFormToTools interface and use it in tools instead of GlobalWin.Sound 2020-11-29 19:34:57 -06:00
SuuperW ac93f28939 Do not attempt to report >100% seek progress. (This could happen if the user starts a seek which results in loading a savestate past the frame previously being seeked.) 2020-11-29 12:29:38 -06:00
SuuperW e1186d9253 Remove this. It isn't necessary, and is a copy-pasted line from some converted code in commit 2535207a. 2020-11-29 12:29:38 -06:00
adelikat 8d6cb7685e TasClipboardEntry, move some logic to Tastudio, fix filename, and move to Client.Common 2020-11-29 12:25:26 -06:00
adelikat 8e70bece16 TAStudioClipboard - remove unused and dubious ToString() override 2020-11-29 12:16:51 -06:00
adelikat ceade5be5a move some logic from TAStudioLuaLibrary to TAStudio 2020-11-29 12:13:12 -06:00
adelikat 592cedba1d make fields readonly where possible in EmuHawk project 2020-11-29 11:26:41 -06:00
adelikat 488409a2ad MovieZone - remove usage of GlobalWin.Config 2020-11-29 10:57:50 -06:00
YoshiRulz 8bbd6b2d8b
Remove final reference to GlobalWin.Game by hacking an existing hack 2020-11-29 19:15:01 +10:00
YoshiRulz f7a7b722c5
Pass globals to ExternalToolManager via ctor and Restart method 2020-11-29 19:06:45 +10:00
YoshiRulz 84f0d57fd5
Add restarting to ExternalToolManager, called when replacing Config 2020-11-29 18:58:12 +10:00
YoshiRulz bed5142ddc
Make ExternalToolManager not static 2020-11-29 17:30:19 +10:00
YoshiRulz d2c514bc51
Move more ApiHawk impl. classes to Client.Common 2020-11-29 16:50:31 +10:00
YoshiRulz ebef47203d
Allow ApiHawk impl classes to have any param order in their ctors 2020-11-29 16:39:26 +10:00
YoshiRulz 1f9188da5e
Pass global Config and GameInfo to Emu and GameInfo APIs via ctors 2020-11-29 14:26:19 +10:00
YoshiRulz 85d4d5ed4d
Pass global InputManager to JoypadApi via ctor 2020-11-29 14:18:40 +10:00
YoshiRulz 8ad3ea9cc6
Move GlobalWin.GL to MainForm, passing it through from Program 2020-11-29 14:09:37 +10:00
YoshiRulz 7bf879c095
Explicitly pass first Config through SingleInstanceController 2020-11-29 14:05:23 +10:00
YoshiRulz a34dde7c4f
Pass global IGL to DisplayConfig (and then to RetroShaderChain) 2020-11-29 13:59:30 +10:00
YoshiRulz b26aa2e893 Rewrite GlobalWin.GL init with local functions 2020-11-29 13:50:49 +10:00
YoshiRulz 3150cc4493 Remove GlobalWin.IGL_GL, only init OpenTK when using that disp. method
also, if it's too old, dispose it before continuing with fallback
2020-11-29 13:50:49 +10:00
YoshiRulz 60022ab146 Move OpenTK configuration to dedicated static ctor 2020-11-29 13:50:49 +10:00
alyosha-tas f38c75f06d GBHawk: some accuracy improvements 2020-11-28 18:58:33 -05:00
adelikat e0eb572e74 misc cleanups, mostly IDE nags, in files I had open 2020-11-28 14:32:05 -06:00
adelikat bdf1838ac8 pass Config around to various AV writer and form classes, instead of using GlobalWin.Config 2020-11-28 13:57:40 -06:00
nattthebear 84002f1232 Make the menu items for FDS disk changing better named 2020-11-28 13:30:00 -05:00
adelikat 8550d2bd0d fix previous commit, fix dependencies in PathConfig and remove usage of GlobalWin in FirmwaresConfig 2020-11-28 11:03:38 -06:00
adelikat be8825fefc GBPrefs/DGBPrefs - pass in dependencies 2020-11-28 10:53:27 -06:00
adelikat 342164d05c ColorChooserForm - a bit of cleanup 2020-11-28 10:04:24 -06:00
YoshiRulz 3be90efd57
Make some GlobalWin props read from MainForm instead of the reverse
these props' setters were only called from MainForm
2020-11-28 23:28:32 +10:00
YoshiRulz 0899369d1a
Sort out the mess that is creating and updating the global Config
hopefully this kills a few subtle bugs re: `Config` > `Load Config`
2020-11-28 23:04:49 +10:00
YoshiRulz 3de87af5de
Pass MovieSession to APIs via ctor 2020-11-28 22:48:02 +10:00
YoshiRulz c203edba17
Move prop GlobalWin.UserBag to global MovieSession
and weaken to IDict<K, V>
2020-11-28 22:39:13 +10:00
YoshiRulz 56df80bb5a
Move prop GlobalWin.OSD to global DisplayManager 2020-11-28 22:27:26 +10:00
YoshiRulz b0b2b8fa63
Remove GlobalWin.DisplayManager, pass it through from MainForm instead 2020-11-28 22:10:48 +10:00
YoshiRulz 78daf4913d
Move ArgParser to Client.Common and split ParsedCLIFlags into own file 2020-11-28 21:45:52 +10:00
YoshiRulz 251f0e7af8
Move init of network helpers from ArgParser to MainForm ctor 2020-11-28 21:41:33 +10:00
YoshiRulz 1c1aa348cf
Add a new field to MainForm for _autoDumpLength
now ParsedCLIFlags can be properly readonly :)
2020-11-28 21:01:17 +10:00
YoshiRulz 35d6bca6c6
Cleanup ArgParser without changing usage
(apart from its init in the MainForm ctor)
2020-11-28 20:47:35 +10:00
YoshiRulz cb634a91d1
Attempt to disable AppVeyor CI until it can be fixed 2020-11-28 14:30:32 +10:00
adelikat 750e1d8980 Sounds.cs - pass in some dependencies instead of using GlobalWIn 2020-11-27 15:53:52 -06:00