Commit Graph

49 Commits

Author SHA1 Message Date
YoshiRulz e1951b9fc5
Cleanup PathExtensions
Fixes f02295455/c731e1168/5c7135d67
2020-03-21 13:45:58 +10:00
alyosha-tas af2f87deac Gambatte: do not sort settings alphabetically, so that GBC in GBA mode is not at top 2020-03-20 17:05:25 -04:00
adelikat 33a14327b7 move most logic from PathManager to extension methods in BizHawk.Common 2020-03-15 15:45:11 -05:00
adelikat 348cbd18df
Remove PathManager code that had dependencies on Globals (#1881)
* move one usage of Firwmare method into Firmware config where it is better suited

* PathManager - remove unused code

* move some PathEntry specific logic out of PathManger and into PathEntryCollection extension methods

* PathManager - detangle some exe pathing logic from Global.Config usage, clarify what a completely broken method should actuall do

* move more logic from PathManager to PathEntryCollection extension method

* move absolute path creation to PathEntryCollection, lots of refactoring and simplifying of PathEntries usage

* simplify PathEntryColleciton usage more

* simplify PathEntryCollection more

* break PathEntry classes into separate files, a bit of cleanup

* move Rom path logic out of PathManager into PathEntryCollectionExtensions

* move config UseRecentForRoms and LastRomPath into PathEntries, note that this is a breaking change for previous configs, those values will revert back to default values

* move SaveRamPath logic from PathManager to PathEntryCollections

* move cheats path logic from PathManager to PathEntryCollection

* move another method out of PathManager

* move some Retro hacks to PathEntryCollections, exposes more implicit dependencies

* move savestate logic out of PathManager to PathEntryCollection

* move more logic out of PathManager

* move some savestate logic out of PathManager, move most to MainForm where it is used, detangle some implicit dependencies from SaveSlotManager

* rename method

* move more logic from PathManager to PathCollectionEntry

* movie final Global.Config.PathEntries logic out of PathManager and into PathEnties
2020-03-15 15:12:36 -05:00
YoshiRulz 9829fd699b Unify helpers for generating file extension lists (for open/save) 2020-02-20 21:59:20 +00:00
adelikat 626efe8caf put control extension methods into the EmuHawk names space isntead of a custom one. We want these to be found and used, and most dialogs use them 2020-02-03 12:54:32 -06:00
adelikat c2bec296e6 simplify some repeated boilerplate on the DragEnter event by consolidating it to an extension method 2020-02-03 12:42:28 -06:00
James Groom 78fcde9480
Merge branch 'master' into winhacksbgone 2019-12-22 17:01:10 +00:00
adelikat b80b367831 refactor IMovie to expose the movie mode, and make extension methods that do IsPlaying type logic. This way there can be direct checks, and more variety of methods without cluttering the interface 2019-12-21 16:34:29 -06:00
YoshiRulz 7cd29c0f54
Finish moving Win32 imports to BizHawk.Common, organise, and cleanup 2019-12-21 18:33:11 +10:00
adelikat 394641f2af GB config - pass dependencies in 2019-12-15 16:11:19 -06:00
adelikat a39cedb366 GB config code cleanup 2019-12-15 16:06:33 -06:00
YoshiRulz 7f07949816
Migrate serialised images to separate files, removing duplicates 2019-12-07 05:24:24 +10:00
J.D. Purcell 39b54f7202 Fix missing UI usings. 2019-11-02 00:38:50 -04:00
YoshiRulz e6374ef477
Use string interpolation 2019-03-19 00:06:37 +10:00
alyosha-tas b480476932 Gambatte: Make initial colors grey scale
Also make equal length frames false by default, fixes #1176
2018-05-26 11:54:01 -04:00
adelikat 1164868063 GB config dialogs cleanup 2017-05-31 08:52:55 -05:00
nattthebear 9ec9975f48 possibly fix a bug with gbc settings on funky ui scales 2017-04-24 19:08:26 -04:00
adelikat 3d402ee40e Change "Gameboy" to "Game Boy" on a few config dialogs and also change their default location to CenterParent, #411 2016-11-12 11:11:38 -06:00
zeromus 0cac65c184 use gambatte window option in emuhawk 2016-04-12 03:02:11 -05:00
zeromus 89a4381d9d add GB layer toggles 2016-02-08 02:18:24 -06:00
adelikat 5354be978a remove DualGBFileSelector tool 2015-05-17 20:32:49 +00:00
jdpurcell 30d3b02a7f Auto scaling: All forms should have AutoScaleMode set to Font.
Auto scaling: All user controls should have AutoScaleMode set to Inherit (i.e. they inherit their containing form's AutoScaleMode, in this case Font). Explicitly setting an AutoScaleMode on user controls causes problems with child controls anchored to the bottom and/or right.
Remove explicitly set font in GenGameGenie form. Fonts set on the form/user control level cause problems with auto scaling.
Fix text box anchoring in DualGBFileSelector control.
2014-12-28 21:19:34 +00:00
goyuken 0a17fadb8e gb: add mute sound as a setting. most useful in dual mode. 2014-11-16 21:56:32 +00:00
zeromus 7a4d60c483 change AutoScaleMode of MainForm and GBPrefs to None and Inherit, so that the dialog wont be whack for japanese users 2014-11-06 21:35:45 +00:00
jlennox a64017366c Create ISettable<T,T2>/ISettable interfaces. This checkin has not been extensively tested. 2014-10-19 01:22:47 +00:00
hegyak e02a0ebf9d Correct the Dual Gameboy XML creator to use the Global ROM path instead of Gameboy's pallet folder. 2014-08-13 19:09:15 +00:00
goyuken 3e3a885bd6 GB prefs UI: fix small bug in the getdefaults button 2014-08-06 14:52:27 +00:00
goyuken 0a7803c547 gb and dgb config UI: when movie is not active, be smart and don't commit syncsettings if they weren't touched 2014-08-06 01:06:52 +00:00
adelikat 3d14177877 GB settings - diable Property Grid if a movie is active 2014-08-06 00:40:20 +00:00
adelikat 0397ea1ff4 Remove the CustomControls/Util file and move all the classes into the Form Extensions file, since they were all extension methods for window form objects 2014-07-27 15:22:30 +00:00
goyuken 1b4a8a0b23 settings cleanup 2014-07-14 16:56:23 +00:00
goyuken fb133da0c5 fix some internal settings infrastructure 2014-07-14 16:10:45 +00:00
adelikat ab5cfab035 remove redundant code throughout the emuhawk project 2014-06-29 02:28:48 +00:00
adelikat 64a3ff597b Set Checked property of the "GB in SGB" menu item in the GB menu, GB icon on settings 2014-05-26 12:25:22 +00:00
goyuken 490a3dc3cf gameboy: support setting RTC initial time for TAS, and support chaining the RTC to the real clock for non-TAS. 2014-05-12 17:24:43 +00:00
adelikat edb90839d0 Dual GB XML Creator - a "Use Current Rom for all" button for the uberlazy 2014-05-11 18:53:32 +00:00
adelikat 5abd6f8387 Remove save button, no point in it compared to save and run, Use current Rom button should only be enabled on Gameboy core! 2014-05-11 18:34:20 +00:00
adelikat 5430c395d0 Dual GB XML Creator - add a "Current Rom" button that is enabled when possible 2014-05-11 18:13:32 +00:00
adelikat cfb8b463c3 Icons for some gameboy dialogs 2014-05-11 17:48:17 +00:00
adelikat e135a4ae3b Make Dual GB file creator prettier 2014-05-11 16:44:28 +00:00
adelikat 471a2f5cf0 SMS - Vdp Viewer - save screenshot to file menu items 2014-04-13 20:13:22 +00:00
goyuken 916e0029c4 GPGX: support new settings system. this means you can now connect all manner of weird arse controllers, but some aren't implemented in other places yet. 2013-12-23 23:03:12 +00:00
goyuken 50e3691181 new setting system: misc cleanup 2013-12-23 21:54:10 +00:00
goyuken bf20188462 add winform edit for dual gameboy settings 2013-12-23 16:58:20 +00:00
goyuken d37796ab1c more new core config framework; this time GAEMBOY 2013-12-23 02:51:41 +00:00
adelikat dd3df013fb cleaning up some Bizhawk.Emulation namespaces 2013-11-13 03:32:25 +00:00
adelikat 52146bff6b remove references to GBTools namespace 2013-11-09 00:27:07 +00:00
adelikat 2932a3a83c EmuHawk - separate config dialogs from the tools folder into appropriate folders in the config folder 2013-11-09 00:20:39 +00:00