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
adelikat
9584ff1f53
use switch expressions in some various places in EmuHawk, and some other simplifications
2020-03-04 20:18:43 -06:00
adelikat
7e741b1200
misc cleanups in lua code
2020-02-26 17:06:04 -06:00
YoshiRulz
9829fd699b
Unify helpers for generating file extension lists (for open/save)
2020-02-20 21:59:20 +00:00
J.D. Purcell
f7174eb398
Make display scaling apply to InputRoll column header widths.
2020-02-17 12:34:37 -05:00
adelikat
dc2a41c737
Lua console - clear on screen text when closing lua console
2020-02-03 17:20:49 -06:00
adelikat
38a525eefd
Lua console - immediatley update on screen graphics when disabling a lua script
2020-02-03 17:17:11 -06: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
763d5870f2
move some lua console settings from config to console with ConfigPersist
2020-01-25 11:21:38 -06:00
YoshiRulz
7062ba5b6a
Clarify "Autoload" text (from #971 )
2020-01-13 01:54:15 +10:00
adelikat
7de9309be1
Lua - pass in MainForm to the EmuHawkLuaLibrary class
2019-12-31 16:46:05 -06:00
adelikat
098cac3f60
a few misc cleanups
2019-12-31 11:44:50 -06:00
adelikat
897bc0572e
pass in dependencies to LuaAutocompleteInstaller
2019-12-22 13:32:18 -06:00
adelikat
5f3ed8a766
pass dependency into LuaRegisteredFucntionsList
2019-12-22 13:32:18 -06:00
adelikat
1aa318d7e1
use ToolFormBase properties instead of globals
2019-12-22 10:57:06 -06:00
adelikat
75fee8c4af
pass in docs dependency to LuaFunctionsForm
2019-12-22 10:57:06 -06:00
adelikat
eb6a2c3315
remove usages of Global to get to lua console, from lua console
2019-12-22 10:57:06 -06:00
adelikat
b6df55bbf0
fix double new line in lua console.log()
2019-12-15 10:18:58 -06:00
adelikat
53c12ec9d9
Lua console - add newline on message to the console, better handling of attempting to load a script that already exists and has syntax errors
2019-12-03 20:42:44 -06:00
adelikat
56bacf3032
Lua Console - update dialog on Stop All Scripts
2019-12-03 20:19:37 -06:00
adelikat
18bdaf2d99
Lua console - enable multi-select on open script dialog
2019-11-29 15:42:52 -06:00
adelikat
978277bd06
Lua console - When turning on lua scripts, first clear registered functions for that scripts (they would still exist if the script exited on its own), Don't close the registered functions dialog when a script is toggled and no registered functions are left
2019-11-29 15:32:12 -06:00
adelikat
d757b8e64f
Refactor a lot of lua code to use a LuaFile object instead of a Lua object, and unify some luafile manipulation logic into methods
2019-11-29 15:02:40 -06:00
adelikat
679f691b46
Lua console - add Clear all registered function menu item to the log window context menu item too
2019-11-29 13:45:18 -06:00
adelikat
de2da910c2
Lua - simplify some logic
2019-11-29 12:47:50 -06:00
adelikat
263a72f57d
Lua console - remove bad user option (defaulted to true even) that clears all registered functions on toggle, toggle already clears all registered functions registered to the script. If there is some edge case there, we need to fix it, not clear registered funcitons that don't even belong to the given script
2019-11-29 09:58:07 -06:00
adelikat
7a95fa543d
fix crash when toggling scripts while the registered fucntions list dialog is open
2019-11-29 09:55:36 -06:00
adelikat
3a3a7e7462
Lua console - context menu item for Clear all registered functions
2019-11-29 09:36:18 -06:00
adelikat
a82f0d1ce7
lua console - hack to keep someone from remove a lua script on accident if the script is highlighted and they press delete in the auto-complete box
2019-11-27 20:00:01 -06:00
adelikat
f926142921
cleanup OSDManager
2019-11-26 19:36:04 -06:00
adelikat
825f10d52c
Lua console - simplify some
2019-11-22 18:54:52 -06:00
adelikat
23f283aef8
create file watch on new script
2019-11-17 13:04:09 -06:00
adelikat
b65f7ae8d9
Lua console - hack to fix reloading a script if it is not enabled
2019-11-17 12:51:08 -06:00
adelikat
16f977a87c
Lua console - respect the "reload scripts on load" flag in some places that were ignoring it
2019-11-17 11:25:23 -06:00
adelikat
901e9f2ceb
InputRoll - when RowCount changes, deselect rows that may no longer exist, fixes crash on Lua Console when removing lua scripts (and lots of other bugs most likely)
2019-11-17 09:26:18 -06:00
adelikat
c9f7838833
Lua console - put a cap on number of messages that can hit the console window in a give pass through lua scripts, set it arbitrarily at 50, fixes #376
2019-11-16 14:56:17 -06:00
adelikat
c1ba930e64
Lua Console - fix double click toggle and unify logic between double click and toggle menu items
2019-11-16 12:01:43 -06:00
adelikat
6024af5dbc
lua console - a bit of cleanup
2019-11-16 11:55:05 -06:00
YoshiRulz
6e809adc66
Disable Lua script loading on Unix ( resolves #1735 )
2019-11-17 02:26:23 +10:00
YoshiRulz
ae12b0e23c
Revert some changes from #1237 and #1380 that aren't needed anymore
2019-11-04 19:53:14 +10:00
YoshiRulz
8c059aa43c
Replace helper methods with readonly bool IsUnixHost and cleanup
2019-11-04 14:30:05 +10:00
adelikat
942d9fc75e
Simplify OS checks with some helpful methods
2019-11-03 16:04:42 -06:00
adelikat
0b965dffc5
misc cleanups
2019-10-29 08:23:45 -05:00
adelikat
b54be19e9e
InputRoll - reorg - put in its own folder, break out column and cell classes into separate files
2019-10-26 16:49:52 -05:00
adelikat
6c22e1c4c6
Lua console - implement saving/loading of column info
2019-10-19 10:45:42 -05:00
adelikat
f802f48754
Lua console - implement double click toggle
2019-10-19 10:11:04 -05:00
adelikat
d6972d1252
Lua Console - use InputRolle, fix all kinds of bugs with using Separators
2019-10-19 09:50:21 -05:00
James Groom
90b0574bc3
Remove unnecessary calls to ToList (e.g. in foreach)
...
squashed PR #1591
2019-10-13 15:50:57 +00:00
adelikat
3c0b793d97
lua console - fix a few other places where not having an association with .lua will throw an exception
2019-10-04 12:09:23 -05:00
adelikat
80150f70be
Lua console - misc cleanups, remove some unused code
2019-10-04 12:06:23 -05:00