Commit Graph

4823 Commits

Author SHA1 Message Date
adelikat 9f86a2db6a cleanup Input.cs 2019-12-31 17:04:24 -06:00
adelikat 7de9309be1 Lua - pass in MainForm to the EmuHawkLuaLibrary class 2019-12-31 16:46:05 -06:00
adelikat 18975e390d use Globals less in Tastudio sub-components 2019-12-31 16:31:32 -06:00
adelikat 1c472ad253 Hex Editor - fix Delete hotkey not unfreezing secondary highlighted addresses, consolidate freeze/unfreeze logic 2019-12-31 13:40:09 -06:00
adelikat 15f1432462 Hex editor - some more simplifications 2019-12-31 13:18:12 -06:00
adelikat 12a3552bdd Hex editor - simplify slightly 2019-12-31 13:10:44 -06:00
adelikat c8c63f29f0 InputRoll - only refresh on mouseLeave if necessary 2019-12-31 12:41:21 -06:00
adelikat 098cac3f60 a few misc cleanups 2019-12-31 11:44:50 -06:00
adelikat b390c2829c cleanup virtualpad code 2019-12-31 11:36:22 -06:00
adelikat 0f33e2b1e7 cleanup display manager code 2019-12-31 11:14:10 -06:00
adelikat 7a3606d684 ArchiveChooser - fix code that attempted to sort archive files but didn't, and cleanup 2019-12-31 10:36:33 -06:00
adelikat 0082de7c0a cleanup Quantizer.cs 2019-12-31 10:24:57 -06:00
adelikat 64ea9afee5 cleanups 2019-12-31 10:17:55 -06:00
adelikat ca862d5581 Log Window - properly set logging back to the standard console output when closing 2019-12-30 17:14:58 -06:00
adelikat 67419c980a cleanup 2019-12-29 15:21:23 -06:00
adelikat 47eeba5053 Options config - re-position options now that console window option has been removed 2019-12-29 15:08:03 -06:00
adelikat 6e49f1c07d Convert LogWindow to a tool that implements IAutoToolformConfig 2019-12-29 15:05:45 -06:00
adelikat bdd0d56a70 delete the console log window, always show LogWindow instead 2019-12-29 14:39:44 -06:00
adelikat ab812ab081 pass in mainform to log window stuff 2019-12-29 14:16:44 -06:00
adelikat c2ff680992 some cleanups 2019-12-29 14:11:56 -06:00
alyosha-tas ec03c6fa0f Fix analog stick in virtual pad fixes #1612 2019-12-29 09:47:53 -05:00
alyosha-tas f1faf5988a EmuHawk: fix NES core picker, was broken by picking subneshawk due to the xor 2019-12-29 08:29:18 -05:00
feos 853af1c32a another fix to missing "file on disk" domain 2019-12-28 15:21:05 +03:00
YoshiRulz 50373ac1ad Move conditional PackageReferences to conditional .targets import
Fixes build system bug introduced by c31050feb
2019-12-27 16:35:47 +10:00
YoshiRulz c31050feb6
Migrate from packages.config to PackageReference 2019-12-26 16:54:33 +10:00
YoshiRulz 88ae783ef0
Partially revert 185337d1c, resolves #1766 2019-12-26 15:52:32 +10:00
feos cfce96c672 copypaste error 2019-12-23 19:28:51 +03:00
adelikat 5eee9a6004 misc tool cleanups 2019-12-22 16:42:56 -06:00
feos 0fe2205057 only mame .zip's should be filtered out 2019-12-23 00:29:33 +03:00
feos 47f77b42e9 forbid rom domain for mame 2019-12-23 00:12:43 +03:00
adelikat e7e30371fe Remove Rewinder from Global and put as a mainform variable instead 2019-12-22 14:25:06 -06:00
adelikat c101f672ee RewindConfig - pass in dependencies 2019-12-22 14:23:00 -06:00
adelikat afd460f1d2 pass in globals to Play/Record movie dialogs 2019-12-22 14:18:17 -06:00
adelikat 1332079f84 pass more globals into some config dialogs 2019-12-22 14:09:58 -06:00
adelikat 0b57b4c5f6 cleanups 2019-12-22 13:58:00 -06:00
adelikat 60c789df22 pass inGameInfo to N64VideoPluginconfig 2019-12-22 13:34:14 -06:00
adelikat 7ac3e1f428 TraceLogger - use ToolFormBase, cleanups 2019-12-22 13:32:18 -06:00
adelikat 1c57622032 refactor UpdateCheatRelatedTools to be a ToolManager method 2019-12-22 13:32:18 -06:00
adelikat 68e45d6108 MovieZone - pass in some dependencies and use globals less 2019-12-22 13:32:18 -06:00
adelikat 0207575695 MovieZone - cleanups 2019-12-22 13:32:18 -06:00
adelikat 87cd264ed2 MacroInput - less global, cleanup 2019-12-22 13:32:18 -06:00
adelikat 897bc0572e pass in dependencies to LuaAutocompleteInstaller 2019-12-22 13:32:18 -06:00
adelikat e0bb050bd1 ToolBox - remove Globa usage 2019-12-22 13:32:18 -06:00
adelikat 5f3ed8a766 pass dependency into LuaRegisteredFucntionsList 2019-12-22 13:32:18 -06:00
adelikat 2403f38bcc pass in LuaImp to LuaWinform, now the global usage is in the lua library, but baby steps 2019-12-22 13:32:18 -06:00
adelikat b9c0d11c16 pass mainform to BreakpointControl 2019-12-22 13:32:18 -06:00
adelikat ed45318a75 presentation panel - pass in dependencies 2019-12-22 13:32:18 -06:00
adelikat 640e4260cd MultiDIskBundler - cleanup, pass dependencies to child controls 2019-12-22 13:32:18 -06:00
adelikat 3b60b08a11 inherit ToolFormBase for a few tools 2019-12-22 13:32:17 -06:00
adelikat c20ae5b16c cleanup BasicBot 2019-12-22 11:39:40 -06:00
adelikat 0e218f5d4a hex editor - fix crash from previous commit, pass in dependencies to sub-forms 2019-12-22 11:26:55 -06:00
adelikat a7ccc3fdef cleanup 2019-12-22 11:13:59 -06:00
YoshiRulz 69702327d3
Fix typos from merge 2019-12-23 03:06:04 +10:00
James Groom 78fcde9480
Merge branch 'master' into winhacksbgone 2019-12-22 17:01:10 +00:00
adelikat 1aa318d7e1 use ToolFormBase properties instead of globals 2019-12-22 10:57:06 -06:00
adelikat c76dbbb977 rename ToolHelper.cs to ToolFormBase.cs since that is the name of the class 2019-12-22 10:57:06 -06:00
adelikat 77c04412d2 ToolManager - inject common things like config, mainform, and the tool manager itself to tools that inherit ToolFormBase 2019-12-22 10:57:06 -06:00
adelikat f8ed9f49eb slight cleanup 2019-12-22 10:57:06 -06:00
adelikat c162b2774d Mainform - a bit of cleanup 2019-12-22 10:57:06 -06:00
adelikat bd48ee7130 Tastudio - use Owner not MainForm 2019-12-22 10:57:06 -06:00
adelikat 0ca53ccfcb SoundConfig - move some mainform usage to mainform 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 c6b6e7b6cb pass Config into ToolManager 2019-12-22 10:57:05 -06:00
adelikat e0cd66613f remove ApiProvider from GlobalWin, and have ToolManager own it instead, keep a copy of IEmulator in ToolManager and reference that instead of Global.Emulator 2019-12-21 18:03:13 -06:00
adelikat 84a9dec7a8 ToolManager - some cleanups 2019-12-21 17:45:11 -06:00
adelikat 81b2b8c888 remove unused method 2019-12-21 17:21:39 -06:00
adelikat 1e41dbf20d LuaRegisteredFunctionsList - override Clear() so that needed clear logic can't be mistakenly not called. Fixes #1763 2019-12-21 17:16:16 -06: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
adelikat d26cb7d272 small cleanup 2019-12-21 15:55:01 -06:00
adelikat 7cfbd1cead simplify onscreen message drawing logic, fix MessageConfig dialog result when Ok is pressed 2019-12-21 15:48:50 -06:00
adelikat f5f22e78d8 Simplify on screen ram watch value positioining, and respect the anchor value setting 2019-12-21 15:36:37 -06:00
adelikat f5929602ff rename MessageOption to MessagePosition 2019-12-21 15:28:16 -06:00
adelikat 433eff65ec OSDManager - simplify calculations for points for things like fps, frame counter, etc 2019-12-21 15:24:50 -06:00
adelikat 9ae977ae12 OSDManager - a simplification 2019-12-21 15:04:54 -06:00
adelikat 18fbd9af1c MessageConfig - don't use Global.Emulator 2019-12-21 14:58:33 -06:00
adelikat 6748d32830 Message config - fixes, make Anchor an enum instead of int 2019-12-21 14:50:20 -06:00
adelikat 8e030c47b6 MessageConfig - simplify - use Color pen overload and remove brush variable 2019-12-21 14:23:43 -06:00
adelikat 8a96f5f2e7 MessageConfig - use change event on numberics 2019-12-21 14:21:12 -06:00
adelikat e7160a7387 MessageConfig - pass in config dependency 2019-12-21 14:16:23 -06:00
adelikat a565f6f299 refactor message display option settings to be an object, and simplify the message config dialog 2019-12-21 14:11:49 -06:00
adelikat b94a830f13 Message config refactor - fix some names, break off DefaultMessageOptions class into its own file 2019-12-21 13:22:22 -06:00
adelikat 98bfcabfe8 refactor Global.SystemInfo into an extension method class 2019-12-21 13:07:05 -06:00
adelikat c127d92296 PathConfig - remove unused hack 2019-12-21 12:51:51 -06:00
adelikat 5848cc5948 NESGraphicsConfig - remove some more global usage 2019-12-21 12:49:24 -06:00
adelikat bab3dbca98 cleanup PlatformChooser and don't use globals 2019-12-21 12:45:28 -06:00
adelikat 8ec8400ab2 Cleanup LogConsole 2019-12-21 12:41:13 -06:00
adelikat b65b9d64d7 DisplayManager cleanups 2019-12-21 12:33:45 -06:00
adelikat b93b4e449a simplify and cleanup GLManager 2019-12-21 12:03:21 -06:00
adelikat c42889ceef cleanup JumpLists.cs 2019-12-21 09:05:11 -06:00
adelikat e06799ce38 remove unused NameStateForm 2019-12-21 08:59:32 -06:00
adelikat 442ec14c76 cleanups in CoreFeatureAnalysis 2019-12-21 08:57:31 -06:00
YoshiRulz 7cd29c0f54
Finish moving Win32 imports to BizHawk.Common, organise, and cleanup 2019-12-21 18:33:11 +10:00
YoshiRulz 784c800ca2
Disable features using Win32 unless on Windows host
forms: GBAGPUView, GBGPUView, LogWindow, SNESGraphicsDebugger,
SynclessRecordingTools; features: A/V recording, logging to AWE(?)
2019-12-21 18:31:03 +10:00
YoshiRulz 580aa2eaf9
Refactoring and cleanup of dynamic lib loading
Also fixed error reporting in WindowsLLManager, and fixed bug in
MednaDisc.CheckLibrary
2019-12-21 18:22:58 +10:00
YoshiRulz 7ea8fb185a
Congregate, organise, and cleanup some Win32 imports and their usages 2019-12-21 18:21:51 +10:00
adelikat 7149b0ef65 rename FileLoader to MainForm.FileLoader to make it more obvious that it is a partial class of mainform 2019-12-20 11:27:34 -06:00
adelikat 88c937cd42 reduce global usage in FileLoader.cs 2019-12-20 11:25:26 -06:00
adelikat bc51ca4af0 MainForm - reduce global usage a bit more 2019-12-20 10:42:54 -06:00
adelikat c9c04032c7 MainForm cleanups 2019-12-20 10:40:13 -06:00
adelikat 24ed667c13 reduce global usage in MainForm more 2019-12-20 10:22:42 -06:00
adelikat bfb39e79d0 MainForm - setter for Config property 2019-12-20 10:08:20 -06:00
adelikat 8f6f8f72cb MainForm - more getter properties for globals 2019-12-20 10:07:08 -06:00
adelikat 62ab716a5d MainForm - convert some commonly used globals to properties that reference the global. A step twards the global not being there at all and mainform managing the passing of dependencies 2019-12-20 09:29:33 -06:00
adelikat 7ba8af1cb9 use AddOnScreenMessage method in other mainform files 2019-12-20 07:31:03 -06:00
adelikat f8fbc57780 cleanup 2019-12-20 07:31:03 -06:00
adelikat fb8ff37fe9 Mainform - use OnScreen method instead of GlobalWin.OSD references 2019-12-20 07:31:03 -06:00
adelikat 23f7274541 FileLoader - use Emulator not Global.Emulator 2019-12-20 07:31:03 -06:00
adelikat 4ac7e8e36a Rewind config - move osd messages to calling code 2019-12-20 07:31:03 -06:00
adelikat 06b11bba51 Simplify dialog result checks with an extension method 2019-12-20 07:31:03 -06:00
adelikat fd30ddc154 Message config - use OSD in mainform not config 2019-12-20 07:31:03 -06:00
adelikat aea444cea5 Controller config - simplify and remove use of GlobalWin.OSD 2019-12-20 07:31:02 -06:00
adelikat 4461818d26 ToolManager - cleanups, and don't use GlobalWin.Tools 2019-12-17 13:45:55 -06:00
adelikat 6bddec01d6 cleanup 2019-12-17 12:01:43 -06:00
adelikat 5fe25d03ad Play/Reocrd movie dialogs - pass in mainform 2019-12-17 11:24:34 -06:00
adelikat 35ff30cc01 cleanup LogWindow 2019-12-17 11:19:34 -06:00
adelikat d780b1c898 move InputWidget to custom controls folder 2019-12-17 11:15:50 -06:00
adelikat b271ef4a89 MenuButton - nitpick cleanup 2019-12-17 11:15:50 -06:00
adelikat 5c12753217 cleanup FolderBrowserDialogEx 2019-12-17 11:15:50 -06:00
adelikat d3cb2a4fb3 cleanup MsgBox 2019-12-17 10:48:20 -06:00
adelikat 1bea591e31 GenericCoreConfig - use passed in mainform instead of global 2019-12-17 09:53:19 -06:00
adelikat 28305339f9 VideoWriterChooserForm - pass in dependencies 2019-12-17 09:50:38 -06:00
adelikat 6be6dbbce6 cleanup VideoWriterChooserForm 2019-12-17 09:46:03 -06:00
adelikat ede9a7b788 get rid of Global usage in N64VideoPluginConfig 2019-12-17 09:42:53 -06:00
adelikat 5dd226db94 remove a GlobalWin.Mainform usage 2019-12-16 19:58:06 -06:00
adelikat c5b1328f77 Sound config - pass in Config 2019-12-16 19:54:40 -06:00
adelikat aede4e7cda Profile Config - pass in dependencies 2019-12-16 19:51:12 -06:00
adelikat cf647ffd04 profile config cleanup 2019-12-16 19:45:03 -06:00
adelikat dc26b67446 path config - pass in config dependency 2019-12-16 19:42:42 -06:00
adelikat d15641da96 InputCompositeWidget - slight cleanup 2019-12-16 19:34:19 -06:00
adelikat 0d78318fa1 HotkeyConfig - pass in dependencies 2019-12-16 19:33:14 -06:00
adelikat 0fcaca681e rename GuiOptions to EmuHawkOptions to match class name 2019-12-16 19:27:00 -06:00
adelikat 8dbc6c7f6d EmuHawkOptions - pass in dependencies 2019-12-16 19:26:32 -06:00
adelikat 38d6667c18 GenericCoreConfig - cleanup 2019-12-16 19:16:18 -06:00
adelikat 3bf8029e67 FirmwaresConfig - cleanup 2019-12-16 19:08:03 -06:00
adelikat f9e65e2fa7 FileExtensionPreferences - pass in dependencies 2019-12-16 18:51:06 -06:00
adelikat 8ccbc0b81f DisplayConfig - pass in dependencies 2019-12-16 18:45:40 -06:00
adelikat 8fcd9bb2a5 rename DisplayConfigLite to DisplayConfig, it isn't very Lite anymore :) 2019-12-16 18:41:54 -06:00
adelikat 8eff248d96 cleanup DisplayConfigLite 2019-12-16 18:39:59 -06:00
adelikat 5e8a2a348a Delete unused DisplayConfig form 2019-12-16 18:37:23 -06:00
adelikat da6f358589 ControllerConfig - pass in dependencies 2019-12-16 18:36:31 -06:00
adelikat 583423b0d2 ControllerConfig - code cleanup 2019-12-16 18:27:58 -06:00
adelikat 7d961c34f1 Autofire Config - pass in dependencies 2019-12-16 18:22:41 -06:00
adelikat 88830fad4c code cleanup 2019-12-16 18:18:08 -06:00
adelikat de6979820d ZXS config dialogs - pass in dependencies 2019-12-16 18:14:21 -06:00
adelikat c722a1ef9f code cleanup in ZxSpectrum config dialogs 2019-12-16 18:03:26 -06:00
adelikat 7675e35d85 TI83 settings - pass in dependencies 2019-12-16 17:58:50 -06:00
adelikat 4a332c1fb0 SNES config dialogs - pass in dependencies 2019-12-16 17:53:54 -06:00
adelikat 4a509fa410 pass in dependencies to SMS graphics config dialog 2019-12-16 17:44:18 -06:00
adelikat 47dfdb5190 remove unused Saturn config folder 2019-12-16 17:23:25 -06:00
adelikat 3da1972a61 rename PSXControllerConfigNew to PSXControllerConfig 2019-12-16 17:22:35 -06:00
adelikat ea8ed79402 PSX config dialogs - pass in dependencies 2019-12-16 17:21:49 -06:00
adelikat bdc8be2f6b declare dependencies in PCE config dialogs 2019-12-16 17:06:29 -06:00
YoshiRulz 0fcb6cbaa7
ApiHawk refactoring and cleanup
MemApi.ReadByteRange now returns the requested number of bytes and not 1 extra,
MemApi.ReadByteRange now warns only once per call for addrs outside range,
MemApi.ReadByteRange now warns for negative addrs (once per call; previous
implementation passed negative addresses to PeekByte), MemApi.WriteByteRange now
warns only once per call for addrs outside range, MemApi.WriteByteRange now
warns for negative addrs (once per call; previous implementation passed negative
addresses to PokeByte)
2019-12-17 02:39:04 +10:00
YoshiRulz 0b43b35427
Migrate GuiLuaLibrary to ApiHawk delegation
Changed param clear of IGui.DrawNew from bool? to bool (default value remains
true), made IGui and GuiLuaLibrary inherit IDisposable, added
GetDefaultTextBackground to IGui, applied fix from 6b3071d8a to
GuiApi.DrawString, replaced background box drawn by Lua API
gui.drawString/gui.drawText with what I think is a shadow (now matches
GuiApi.DrawString)
2019-12-16 16:54:06 +10:00
YoshiRulz 8f93a954e1
Move Lua hacks to Lua libs
Changed parameter of IInputMovie.SetRerecordCount to ulong to match internal
2019-12-16 15:04:35 +10:00
adelikat 861f238cc1 quickNes settings - pass dependencies in 2019-12-15 17:01:25 -06:00
adelikat e84fd17784 support subneshawk for VS menu items, pass dependencies into VSSettings 2019-12-15 16:55:40 -06:00
adelikat 8cc02b8956 NesSyncSettingsForm - pass dependencies in and support SubNesHawk 2019-12-15 16:47:48 -06:00
adelikat e6ac894955 nes config dialogs - pass in dependencies 2019-12-15 16:40:43 -06:00
adelikat 16be999cbc NES graphics config - pass in dependencies 2019-12-15 16:36:46 -06:00
adelikat 827825bbf3 N64 plugin config - pass dependencies in 2019-12-15 16:27:48 -06:00
adelikat 5ec3ac021e N64 plugin config code cleanup 2019-12-15 16:22:51 -06:00
adelikat 0b19090fc2 N64 controller config - pass dependencies in 2019-12-15 16:20:08 -06:00
adelikat a58411efa0 Intellivision config - pass dependencies in 2019-12-15 16:13:31 -06: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
adelikat f833d50f30 code cleanup of config dialog files 2019-12-15 15:57:46 -06:00
adelikat 8c5b13097a refactor coleco config dialog 2019-12-15 15:55:05 -06:00
adelikat 5fb547a09c refactor CPC config dialogs to declare dependencies in constructor 2019-12-15 15:52:04 -06:00
adelikat ad8f321ea1 Add event.availableScopes(), fix LogWithSeparator, cleanup 2019-12-15 12:25:49 -06:00
YoshiRulz 05801dc2c5
Reduce LINQ usage in Lua subsystem 2019-12-16 04:08:22 +10:00
adelikat b6df55bbf0 fix double new line in lua console.log() 2019-12-15 10:18:58 -06:00
adelikat 5d03062c4c remove redundant console checks in console logging methods 2019-12-15 10:06:31 -06:00
adelikat d2f21f84e3 another extension method for lua table creation 2019-12-15 09:46:39 -06:00
adelikat 7ebfd42229 Simplify some lua table creation with an extension method 2019-12-15 09:22:10 -06:00
adelikat d955c468db refactor LuaHelper into an extension method class, and some nitpick cleanups 2019-12-15 09:05:33 -06:00
YoshiRulz e58f2811dc
Replace config bool `UseNLua` w/ enum 2019-12-16 00:38:22 +10:00
YoshiRulz e6cb74d314
Partially migrate EmuHawkLuaLibrary to ApiHawk delegation 2019-12-15 04:40:01 +10:00
YoshiRulz f8dc18c1bd
Migrate SavestateLuaLibrary to ApiHawk delegation
includes backwards-compatible API change
2019-12-15 04:39:16 +10:00
YoshiRulz cc8dffa769
Migrate InputLuaLibrary to ApiHawk delegation 2019-12-15 03:59:21 +10:00
YoshiRulz 104c17e77c
Prepare for EmuHawk-tied libraries to delegate to ApiHawk
Made ApiContainer inherit from APISubsetContainer, added
DelegatingLuaLibraryEmu, and reworked init logic in EmuLuaLibrary
2019-12-15 03:52:48 +10:00
adelikat 51df281d38 Tastudio - fix NRE when running a .tasproj through the normal movie system, making changes, then opening tastudio 2019-12-14 09:58:10 -06:00
adelikat 03dbcc3607 Tastudio - tweak follow cursor logic in horizontal orientation 2019-12-13 18:29:30 -06:00
adelikat 858aef59db TAStudio - fix erroenous use of RefreshTasView when hiding/showing columns 2019-12-13 17:49:11 -06:00
adelikat 5e40305d1c fix recent regression if auto-load is set, and default.tasproj is the most recent movie 2019-12-13 17:40:39 -06:00
adelikat 001eeba4f9 Tastudio - fix ReselectCLipboard hotkey 2019-12-13 17:36:07 -06:00
adelikat a77b7ce2fc TAstudio - fix NRE that can happen from a sloppy right-click that causes a sloppy right-click context menu to open 2019-12-13 17:33:54 -06:00
adelikat 4d3c423f15 setup another a7800 config dialog to pass in dependencies 2019-12-13 16:06:12 -06:00
adelikat 92768858f7 atari7800 settings dialog - set up a pattern of constructor declaring dependencies in the constructor, rather than relying on Global variables. We should be doing this for other dialogs (and in general) 2019-12-13 16:01:04 -06:00
adelikat 2c66e3043c a bit more cleanup 2019-12-13 15:44:50 -06:00
YoshiRulz 185337d1c5 Replace assembly references with NuGet packages where possible 2019-12-12 03:56:46 +00:00
adelikat 24d84f3f08 Tastudio - don't setup columns when loading a file, the file has the column settings 2019-12-11 11:43:05 -06:00
adelikat 515f409246 Tastudio - Make mainform hotkeys out of a bunch of built in hotkeys 2019-12-10 19:26:23 -06:00
YoshiRulz f309c831b3
Move icons out of InitializeComponent
cc9ff8022
2019-12-11 06:58:53 +10:00
adelikat f900a1ba69 Tastudio - fix another usage of ShortCut instead of ShortCutDisplayStr in the context menu 2019-12-10 14:28:48 -06:00
adelikat a05fdfe18c Tastudio - show binded hotkey in context menu for Clear/Insert/Delete/Clone instead of the hard-coded path. Also use ShortcutDisplayStr instead of ShortCut for Insert # Frames context menu item 2019-12-10 14:17:05 -06:00
adelikat c70d2e5cd8 InputRoll - fix a few places where total width was used instead of clip rectangle 2019-12-10 12:36:20 -06:00
adelikat 599415c848 InputRoll - Resize does need a refresh, use FastDraw to minimize the lagginess 2019-12-10 12:36:20 -06:00
YoshiRulz 4e381d944b
Cleanup ApiManager.Register 2019-12-09 20:11:12 +10:00
Brian Armstrong cfd6d7d83b ApiManager should add APIs from Common
Without these, External Tools can't see most of the APIs
2019-12-09 10:01:01 +00:00
adelikat 373979395d Tastudio - reset branch and marker columns when switching movies 2019-12-08 14:46:58 -06:00
adelikat 35fdb5dbdd Tastudio - Integrate branches with the statusbar slot icons 2019-12-08 13:53:36 -06:00
adelikat fff85d917a Fix typo 2019-12-08 13:41:52 -06:00
adelikat 43c9ac7ef7 SImplify some code 2019-12-08 13:40:59 -06:00
adelikat 8802d75527 Game Game.IsNullInstance a null-safe extension method, and a few other cleanups 2019-12-08 13:36:15 -06:00
adelikat 6ae1eac464 better handling of tastudio interaction with select slot, previous slot, and next slot functions 2019-12-08 13:01:55 -06:00
adelikat a6eee3681f InputRoll - do a full refresh if rowcount gets smaller and the last row is visible 2019-12-07 14:35:15 -06:00
adelikat 1a88bfa93d cleanup Nametable and PPU viewer code 2019-12-07 13:23:55 -06:00
adelikat b33829c3a1 Hex Editor - don't draw address column on UpdateValues 2019-12-07 12:59:01 -06:00
adelikat daeeed0d2e InputRoll - remove unnecessary refresh in the OnResize event, fixes laggy resizing 2019-12-07 12:43:49 -06:00
adelikat 6107bc4553 TasMovie - rip out input caching attempt that wasn't even working 2019-12-07 12:21:42 -06:00
YoshiRulz cc9ff8022c
Re-add images; it appears that the Designer is now dropping them 2019-12-08 04:20:54 +10:00
adelikat 70bb840f20 cleanup 2019-12-07 10:31:00 -06:00
adelikat d594737a76 inputroll - only calculate horizontal positions in horizontal mode 2019-12-07 10:31:00 -06:00
adelikat f3b49648cc Ram Search/Watch - refresh in UpdateValues with RowCount instead of Invalidate() now that RowCount has optimized redraw logic 2019-12-07 10:31:00 -06:00
adelikat 7a66cddf03 InputRoll - more fixes 2019-12-07 10:31:00 -06:00
adelikat ea6704a2b8 InputRoll - in horizontal orientation, account for the draw area being shorter than the height of the columns 2019-12-07 10:31:00 -06:00
adelikat 0d2770044a cleanup 2019-12-07 10:31:00 -06:00
adelikat d8f0dca586 inputroll - drawing fixes 2019-12-07 10:31:00 -06:00
adelikat 421c460d68 InputRoll - get Horizontal orientation invalidating logic going and fix some bugs in horizontal drawing logic 2019-12-07 10:31:00 -06:00
adelikat 891df3512a MarkerControl - do full refresh on restart 2019-12-07 10:31:00 -06:00
adelikat 6a775ec346 InputRoll - fixes 2019-12-07 10:31:00 -06:00
adelikat 0e03696b93 InputRoll - do not draw column header if not necessary 2019-12-07 10:30:59 -06:00
adelikat ae239a0b1d InputRoll - only invalidate the necessary rectangle size 2019-12-07 10:30:59 -06:00
adelikat bb5267d042 InputRoll - drawing - use e.ClipRectangle instead of width/height to draw 2019-12-07 10:30:59 -06:00
adelikat 813e5820ae InputRoll - CalculateLagFramesArray - attempt to not calculate calculated properties so much 2019-12-07 10:30:59 -06:00
feos 48e39a72d1 add arcade menu 2019-12-07 17:44:49 +03:00
adelikat bcfdd79f2a IControlRenderer - simplify api 2019-12-06 21:56:34 -06:00
adelikat 21a0b65305 Tastudio - fix mouse up logic, only navigate if in bool painting mode 2019-12-06 21:19:35 -06:00
adelikat 70840c1b54 remove some unused code, and a few other misc cleanups 2019-12-06 19:22:54 -06:00
adelikat 7d8522e0b3 Remove snowy null emulator option and simplify Null Emulator 2019-12-06 18:42:00 -06:00
adelikat f944cd65a7 Tastudio - LoadState() - properly dispose of IDisposables, avoid unnecessary .ToArray() call 2019-12-06 17:20:01 -06:00
adelikat 7ac720d931 Tastudio - use global references less in favor of internal properties 2019-12-06 17:14:27 -06:00
adelikat 0c3cb5b053 Tastudio - simplify PoitnCellChanged handler, lot's of if checks that were always true 2019-12-06 17:01:40 -06:00
adelikat 2b3a114e1e Tastudio - fix improper invalidation caused by waiting until mouse up to invoke navigation 2019-12-06 15:19:34 -06:00
YoshiRulz 7f07949816
Migrate serialised images to separate files, removing duplicates 2019-12-07 05:24:24 +10:00
feos b5db6a7df6 mame
- put system and game names to emuhawk caption
- fix loading from recent menu
- temp fix for audio drift
2019-12-06 21:34:20 +03:00
YoshiRulz 16136ae130
Rename file 2019-12-05 15:21:15 +10: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 aa94ddccd5 Tastudio - expand message column to fix text, similarly to branches 2019-12-03 20:10:00 -06:00
adelikat 1a6c1e7ebe InputRoll - simplify 2019-12-03 20:05:32 -06:00
adelikat eb63fa5a92 Tastudio - Branches - fix width calculation when expanding to fix user text 2019-12-03 20:03:10 -06:00
adelikat b87f14f962 InputRoll - fix bug in the last gridline calculation in horizontal view 2019-12-03 19:35:19 -06:00
adelikat 77e19a895b InputRoll - cleanup 2019-12-03 19:11:51 -06:00
adelikat 76a52062d6 Tastudio - fix wrong column width when loading a tasproj that was saved with HorizontalOrientation 2019-12-03 19:10:18 -06:00
adelikat c2b942d9a4 InputRoll - remove some vestigial code 2019-12-03 18:57:50 -06:00
adelikat b230502228 Tastudio - cleanup 2019-12-03 18:44:01 -06:00
adelikat 16c525258f InputRoll - simplify 2019-12-03 18:34:13 -06:00
adelikat 3a4351c4ea InputRoll - cleanup 2019-12-03 14:22:21 -06:00
adelikat 6a33085ddc InputRoll - simplify 2019-12-03 13:57:19 -06:00
adelikat 120988eac4 InputRoll - simplify 2019-12-03 13:54:25 -06:00
adelikat 90f6d8a2f5 InputRoll - simplify 2019-12-03 13:46:59 -06:00
adelikat e7e68a630c InputRoll - simplify 2019-12-03 13:34:21 -06:00
adelikat cb8fe33d6f InputRoll - fix some off by one pixel calculations in column header drawing 2019-12-03 13:15:11 -06:00
adelikat e9a0668644 InputRoll - simplify 2019-12-03 13:07:26 -06:00
adelikat f0c745d0f7 InputRoll - simplify 2019-12-03 13:01:52 -06:00
adelikat bf1d64e5d5 InputRoll - simplify more by making column Left and Right values not-nullable (they always have a value, or 0 is assumed anyway). This is a breaking config change 2019-12-03 12:29:18 -06:00
adelikat 0762b181ce inputroll - simplify by making column width not nullable, columns always have a width 2019-12-03 11:26:21 -06:00
James Groom fcc0bc19a4
Change build config to support the Core build system (for #1415)
squashed PR #1702
2019-12-03 16:58:33 +00:00
adelikat 6640146c0a InputRoll - add a flag for whether the control can be toggled into HorizontalOrientation, and only enable it on tastudio 2019-12-02 20:29:29 -06:00
adelikat d687babb41 TAStudio - expose Horizontal Orientation in non-developer builds 2019-12-02 20:23:14 -06:00
adelikat 92bf482609 input roll - cleanup 2019-12-02 20:08:03 -06:00
adelikat 9b69a4a1fc inputroll - simplify 2019-12-02 20:04:37 -06:00
adelikat 3010cf3a3d InputRoll - don't allow resizing columns to a negative width 2019-12-02 19:58:32 -06:00
adelikat f1d688f7bb IControlRenderer - simplify api 2019-12-02 19:53:09 -06:00
adelikat 230cc676c3 IControlRenderer - Simplify API 2019-12-02 19:48:57 -06:00
adelikat cb9b28514c GDIPlusRenderer - use the Rect overload of drawstring to control overflow instead of attemtping ot calculate it. Fixes the cutoff being way off on larger columns, and also gives a rather noticeable speed boost to tastudio 2019-12-02 19:43:41 -06:00
adelikat c6c92c51c7 Change IControlRenderer.MeasureString to return a SizeF instead of Size, for more accurate reporting, it was Size because that's what the GDI renderer did, but if we ever needed that again, we can easily convert to SizeF 2019-12-02 18:38:24 -06:00
adelikat 79d06bcb4a Fix LoadRamWatch logic, was always attempting to load it even when it was already loaded. Worse was that it was autoloading watch files anytime something interacted with it like the "add to ram watch" feature in ram search 2019-12-02 17:19:58 -06:00
adelikat 44621446b1 Ram Search - deselect watches when removing them with the delete key 2019-12-02 17:07:14 -06:00
YoshiRulz 1d7b1b49ee
Improve logging in shader compilation (resolves #1748) 2019-12-03 03:03:38 +10:00
feos a5c3a4aee0 reorder lua console log context menus 2019-12-02 18:36:04 +03:00
adelikat f66e427ccb InputRoll - fix bug where scrollbars are incorrectly calculated before the rowcount changes instead of after 2019-12-01 18:08:22 -06:00
adelikat 52db5ac848 cleanups 2019-12-01 18:05:20 -06:00
adelikat b54904028e Record dialog - fix padding of Ok/Cancel buttons 2019-12-01 16:13:14 -06:00
adelikat 2e4391cba3 Ram Search - fix shortcut key display of "Add to Ram Watch" showed Ctrl+R instead of Ctrl+W 2019-12-01 16:04:13 -06:00
adelikat 7b23c5aee8 some cleanup in some lua files 2019-11-30 11:28:56 -06:00
adelikat d2ff9b6ff0 cleanup PresentationPanel.cs 2019-11-30 10:46:05 -06:00
adelikat 2d65d2b66a Remove unused Lua/SyncTextBox 2019-11-30 10:12:33 -06:00
adelikat 2a12cac9e5 InputRoll - implement shift+Up/Down logic to highlight rows 2019-11-29 16:12:23 -06:00
adelikat 99ca256087 Lua console - change Refresh toolbar icon tooltip from "Reload script" to "Refresh" to match the menu item (they do the same action but with different names) 2019-11-29 15:47:21 -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 1b264ad068 InputRoll - tweak right-click selection - only clear and select if not already selected 2019-11-29 15:21:20 -06:00
adelikat 49b8219f45 lua console - enable multiselect 2019-11-29 15:12:55 -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 c7c09c92a7 InputRoll - the designer doesn't seem to like auto-generating the GridLines property, so just set it true by default 2019-11-29 13:44:47 -06:00
adelikat 24cbf5e274 lua - a bit more cleanup 2019-11-29 13:14:30 -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 4d4c32fffa O2 - fix settings title text (Odyssey not Vetrex) 2019-11-29 09:38:43 -06:00
adelikat 3a3a7e7462 Lua console - context menu item for Clear all registered functions 2019-11-29 09:36:18 -06:00
alyosha-tas ae18284520 O2Hawk: mainform stuff 2019-11-28 17:02:26 -05:00
adelikat 92b0505c41 Tastudio - fix stackoverflow exception when drag scrolling (this didn't happen in earlier versions and they didn't have this kind of hack, there might be a better way to do this, but this seemed to work) 2019-11-27 20:35:05 -06:00
adelikat 0def3828b9 Simplify ToolStripEx 2019-11-27 20:26:03 -06:00
adelikat 68797f18f7 Tastudio - fix crash when attempting to use right-click column autohold if the movie was loaded via autoload 2019-11-27 20:10:06 -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 1b8b4b4926 Tastudio - rip out option to do autorestore on mouse up vs down, make it on up only, and fix autorestore logic 2019-11-26 18:54:46 -06:00
adelikat 223cef2620 Tastudio - cleanups 2019-11-26 18:50:56 -06:00
adelikat 943454554d Tastudio - don't update bookmark view on UpdateValues() 2019-11-26 17:34:50 -06:00
adelikat ed395ca656 a few cleanups 2019-11-26 16:57:01 -06:00
adelikat 3ddf96563a InputRoll - a bit more precise background drawing, might help peformance a bit 2019-11-26 16:14:32 -06:00
adelikat e1b91d13ab InputRoll - cleanups and simplifications 2019-11-26 15:55:07 -06:00
adelikat e1f2147e65 InputRoll - turn some public properties into private variables 2019-11-26 15:37:17 -06:00
adelikat 24a0bdbbed Tastudio/InputRoll - improve performance in UpdateValues some 2019-11-26 14:37:49 -06:00
adelikat 1e53d8221f tastudio - set branches and marker views to the same font as the main inputroll 2019-11-26 14:24:31 -06:00
adelikat ea6b67ac39 cleanups in Bookmarks and Marker Controls 2019-11-26 14:10:54 -06:00
adelikat 9a54a461b5 don't redraw twice on Branches and Markers UpdateValues() 2019-11-26 13:34:24 -06:00
adelikat 31114e6abf FastUpdate - do nothing, super speed up for shift+tab. UpdateValues - remove unnecessary Draw 2019-11-26 13:16:32 -06:00
adelikat fed8cd335d fix a few designer files I missed when refactoring default values 2019-11-26 13:11:24 -06:00
adelikat 47273f1278 Tastudio - fix FastUpdate being slower than Update, it seems to need the same logic but just forgot all the logic, let's ensure it doesn't forget 2019-11-26 13:03:28 -06:00
adelikat 69e5a3b088 Tastudio - fix major slowdown when moving the mouse over the InputRoll 2019-11-26 12:58:04 -06:00
adelikat d2a9f51510 Remove a few more hardcoded values in InputRoll constructor 2019-11-26 12:53:10 -06:00
adelikat 22fdbd08d0 InputRoll - don't hardcode padding variables in the constructor 2019-11-26 12:51:36 -06:00
adelikat bab5877d1a InputRoll - don't hardcode GrideLines to true 2019-11-26 12:44:31 -06:00
adelikat 56b33498d9 InputRoll - rip out the UseCustomBackGround flag, and only key off the existence of the override. Seems to be a speed hack, but the only attempt to make it faster (in ram watch) was actually making things slower 2019-11-26 12:33:39 -06:00
adelikat a45b33b8c6 move arrow key hack from tastudio to inputroll so it applies to all inputrolls 2019-11-26 12:07:00 -06:00
adelikat fab108c73a Ram watch - remove some useless overrides 2019-11-26 11:51:57 -06:00
adelikat cd672da319 a few inputroll/tastudio cleanups 2019-11-26 11:36:55 -06:00
adelikat a17584a319 InputRoll - fix behavior of up/down arrow keys 2019-11-26 11:27:55 -06:00
adelikat 44a2565f5c InputRoll - refactor MouseDown hack that checks if emulator is paused, better is to recalculate the pointed cell, anytime it may have changed 2019-11-26 11:19:34 -06:00
adelikat e73e61c5cc InputRoll - fix page up/page down logic 2019-11-26 10:28:32 -06:00
adelikat 9b93c557b8 InputRoll - don't hardcode disabling of Home and End, make it a flag instead (true by default, false for tastudio's inputroll), also fix home/end to be expected listview behavior and delete ctrl+home, ctrl+end those aren't expected behaviors 2019-11-26 10:09:24 -06:00
adelikat fe89df140c InputRoll - when AllowRightClickSelect is true, existing selected rows should be cleared in addition to selecting the right-clicked one 2019-11-26 09:50:19 -06:00
adelikat 6d9dfa8956 InputRoll - misc cleanups 2019-11-26 09:48:26 -06:00
adelikat 557c68862e InputRoll - make AllowRightClickSelect true by default 2019-11-26 09:42:14 -06:00
adelikat 64f32983f6 misc movie code cleanups 2019-11-25 08:37:11 -06:00
adelikat 6eef264f91 paste - only invalidate on the first different frame pasted, rather than the first selected frame 2019-11-24 19:14:49 -06:00
adelikat cb912bea58 Tastudio - when clearing, invalidate on the first non-empty input rather than first selected row 2019-11-24 17:53:27 -06:00
adelikat 5bbdf2a49e Tastudio.MenuItems - cleanup, fix potential NRE's surrounding clipboard access, fix off by one on clear menu item invalidation logic, fix not dispointing of a disposable dialog 2019-11-24 16:54:08 -06:00
adelikat 1f4a2274d3 TasMovie - more cleanup 2019-11-24 16:06:01 -06:00
adelikat 60487c6a96 don't use Guid.GetHashCode, this was a leftover from some old bad code 2019-11-24 15:53:33 -06:00
adelikat caced9c2a8 TasMovie - remove unused constructor params 2019-11-24 15:40:26 -06:00
adelikat 9c62ded4f5 InputRoll - Recalculate cell size on font change 2019-11-24 15:09:25 -06:00
adelikat 883fea9ec6 Add a font picker, fixes #952 2019-11-24 14:58:58 -06:00
adelikat 8bbc2c75d0 lua - tastudio.loadbranch - use the already existing (and better) load branch method 2019-11-24 14:41:03 -06:00
adelikat 2aaae85c36 InputRoll - use the built in Font property rather than a private variable. Make the default the natural control default, and set the main Tastudio InputRoll window to be arial 8 2019-11-24 14:38:05 -06:00
adelikat 4e9b780539 Lua - implement tastudio.loadbranch #fixes #1650 2019-11-24 13:55:46 -06:00
adelikat 74e1f97ebb cleanups in BookmarksBranchesBox 2019-11-24 13:00:03 -06:00
adelikat a3428128ef EmuLuaLibrary.Tastudio - organize methods some 2019-11-24 12:56:57 -06:00
adelikat 6972046509 EmuLuaLibrary.Tastudio clenaup 2019-11-24 09:37:32 -06:00
adelikat b4c4c3b870 .tasproj - use json to save/load statemanager settings. This is a breaking format change, earlier .tasproj will load and silently fallback to default settings 2019-11-23 21:43:23 -06:00
feos 5ca08b6c29
Camhack support (#1725)
for the camhack to work we have to save a state, hack memory, advance twice to see the changes, then load the state to prevent desync. since we can omit the framebuffer in savestates, loading them can happen without updating the screen, so the hacked camera remains visible.

advancing 2 frames automatically is done like tastudio does it when it seeks to a frame, only from lua now.

and the most questionable part is "invisible emulation", which is how Gens calls this IIRC, when everything that can distract or slow us down is skipped: sound, video, tools updates.

new lua functions:
- client.invisibleemulation()
- client.seekframe()

* for a test, mGBA core uses fake video and audio buffers and renders to them when we want to "skip" rendering. proper setup would involve actually skipping rendering those inside the core.
* allow disabling video and audio updates for gpgx too (proper approach, no fake buffers involved)
* add the script for Sonic Advance
2019-11-23 12:27:14 +03:00
adelikat 825f10d52c Lua console - simplify some 2019-11-22 18:54:52 -06:00
feos d15dc56e15 address #1631 for gambatte 2019-11-20 21:25:55 +03:00