YoshiRulz
44fb9fa368
Enable SA1211
...
"Using alias directives should be ordered alphabetically by alias name"
2020-11-30 21:27:52 +10:00
YoshiRulz
be36c60e9e
Enable SA1208 and fix noncompliance (except in Cores)
...
"System using directives should be placed before other using directives"
2020-11-30 21:26:36 +10:00
YoshiRulz
1a020ba0f5
Make the getters of the 6 ToolFormBase props protected
...
and it only cost a callback and a `public new` hack
2020-11-30 20:56:06 +10:00
YoshiRulz
85faec638a
Update or remove comments mentioning GlobalWin
2020-11-30 20:45:21 +10:00
YoshiRulz
bf968acd57
Move static GlobalWin.Sound to static Sound.Instance, mirroring Input
2020-11-30 20:42:23 +10:00
YoshiRulz
c3a7ec047f
Remove GlobalWin.Config by cleaning up Sound
2020-11-30 20:37:11 +10:00
YoshiRulz
0a9f93c433
Fix encapsulation of Config in FFmpegWriterForm
2020-11-30 20:30:26 +10:00
YoshiRulz
756f9f50e8
Use EmulationApi's config hack in ClientLuaLibrary
2020-11-30 20:19:27 +10:00
YoshiRulz
3b120e7184
Delegate ClientLuaLibrary.GetWindowSize/SetWindowSize to ApiHawk
...
the impls were the same but for getting the global config
2020-11-30 20:19:23 +10:00
YoshiRulz
a393c7d368
Remove weird double-updating of EmuClientApi
...
changes signatures in IEmuClientApi but they were never meant to be called
outside MainForm anyway
2020-11-30 20:14:28 +10:00
YoshiRulz
a1ccac4d67
Delegate ClientLuaLibrary.FrameSkip to ApiHawk
...
the ApiHawk copy was the bad one
2020-11-30 19:57:13 +10:00
YoshiRulz
7c85aee53b
Init global Input instance from MainForm ctor
...
* Input.MainFormInputAllowedCallback is now readonly, set in ctor
* call to Input.Adapter.FirstInitAll is also in the Input ctor
2020-11-30 19:48:25 +10:00
YoshiRulz
709d78d8e0
Use local var instead of GlobalWin.Config in Program
2020-11-30 19:30:15 +10:00
YoshiRulz
f314aa3d61
Pass global Config to BatchRun/BatchRunner
2020-11-30 19:24:17 +10:00
YoshiRulz
32f571144e
Encapsulate GlobalWin.Config access in Input
2020-11-30 19:21:13 +10:00
YoshiRulz
4e38028b49
Fix typo, global access when global is passed as param
2020-11-30 19:15:59 +10:00
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