Commit Graph

2237 Commits

Author SHA1 Message Date
zeromus db1191dc48 emuhawk - add experimental prescale option to display manager 2015-07-06 12:31:30 -05:00
scrimpeh 60c3734e8c Ram Watch - Fix moving up and down blocks of identical Watches 2015-07-05 18:55:43 +02:00
Tom Rochette d1bce27223 Add missing changes to BizHawk.Client.EmuHawk.csproj for the Lua sandbox. 2015-07-02 19:40:25 -04:00
adelikat 19423092cd Tastudio/lua - implement tastudio.ongreenzoneinvalidated 2015-07-02 14:51:42 -04:00
adelikat 105b8d3a64 Tastudio - cell height padding of 0 instead of 1 2015-07-02 14:37:28 -04:00
Tom Rochette a783ef75f6 Simple Lua sandbox.
Uses an EnvironmentSandbox to restore the Environment.CurrentDirectory. Will also catch any script exception and redirect them to the Lua console.

With this change, I've tried to replace all the places where Lua is executed so that if an exception occurs, it is catched, sent to the console and a callback is executed if necessary.

This also fixes a small issue where any callback generating an exception would crash BizHawk.
2015-07-01 22:38:19 -04:00
adelikat c53cef6cf9 tastudio/lua - implement tastudio.onqueryitemtext 2015-07-01 19:46:14 -04:00
adelikat f847e905d2 tastudio/lua - add onqueryitembg event to the lua library, this is called during each cell's background color drawing callback, and gives the opportunity for lua to override the color. 2015-07-01 19:01:29 -04:00
Tom Rochette de98e0ed66 [#405] Set Environment.CurrentDirectory when executing Lua events within a WinForm.
Since events are not executed within the LuaConsole.ResumeScripts method, those did not have Environment.CurrentDirectory available for the executing script.

The fix is simple: when a lua script instantiates a LuaWinForm (through forms.newform), we store the current Environment.CurrentDirectory in the LuaWinForm object.
When a button or checkbox is triggered, it calls WinForm.DoLuaEvent which will set up the Environment.CurrentDirectory for the duration of the callback and then set it back to the initial Environment.CurrentDirectory.
2015-06-30 22:35:59 -04:00
adelikat e50f81d54c Tastudio - remove a line of code that makes the emulator spaz out when mousewheeling up very fast, I don't think removing this breaks anything, I suspect it was only there from some defensive programming and overthinking 2015-06-29 22:08:31 -04:00
adelikat 8911049f68 Merge pull request #447 from TomzxForks/fixes/lua-console-output-resize
Add a split container to LUA console window.
2015-06-29 21:35:46 -04:00
adelikat b991493c97 backing out of last change, it was not well thought out 2015-06-29 17:09:47 -04:00
adelikat 947f18d971 Hex Editor - super hack, allow keyboard events even when scrollbar has focus, to workaround the fact that the scrollbar mysteriously gets focus from numpad buttons 2015-06-29 17:06:46 -04:00
adelikat a2c73eb793 Remove some commented and useless 2015-06-29 16:23:59 -04:00
Tom Rochette c03a162bc1 Add a split container to LUA console window.
With the split container, resizing the window will properly reformat the output section as well as allow users to resize it.
2015-06-29 00:28:35 -04:00
ConHuevosGuey d97d94ecbc Made size nullable...now requires a size input. 2015-06-28 13:25:28 -05:00
ConHuevosGuey 229865c443 Added a 'Draw Axis' function to lua GUI library 2015-06-28 13:23:07 -05:00
adelikat 13044547e4 Tastudio - fix issue #446 - don't greenzone between the mouse down and mouse up events when editing input 2015-06-28 10:43:45 -04:00
adelikat cd4955fbe5 Tastudio - fix autoload 2015-06-27 07:49:37 -04:00
scrimpeh 716cf12f6a Debugger - Tiny insignificant fixes 2015-06-27 13:03:24 +02:00
scrimpeh 0e4a641a81 Debugger - Fix a lot of stuff regarding Breakpoints 2015-06-26 22:12:09 +02:00
zeromus 4cce5c2cf7 get (and use) shorthash 2015-06-24 21:44:03 -05:00
zeromus 1c4a067547 adjust template and aboutboxes to use the following format: branchname-revision. for example: "GIT master-9058" 2015-06-24 21:19:42 -05:00
pasky1382 703dc33cc0 Small correction.
Removed the link to the key names that did not contain correct information, this list of key names is not used in Bizhawk for lua's input.get()
2015-06-22 13:40:22 +00:00
adelikat 46feea39cd TAStudio - account for a button name of "P" rather than assume it is a player number indicator, fixes issue #431 2015-06-21 16:13:35 +00:00
adelikat c23e69a810 When loading GBA movies, load the correct core too 2015-06-21 13:32:53 +00:00
adelikat 7e2cfa0dd5 Multi-Disk bundler - fix various issues with the form, most significantly the wrong system Id for AppleII 2015-06-21 12:51:48 +00:00
adelikat 261ae5e323 Don't warn that a movie lacks sync settings if the core itself has no sync settings. Cores like Apple II do not, for instance. Fixes issue #437 2015-06-21 00:50:34 +00:00
adelikat aa75bd52e9 When adding an address to ram watch from another ram tool, don't load ram watch if it is already open 2015-06-21 00:21:36 +00:00
scrimpey 17ce177e5f Debugger - Make Register Boxes use Hex input. 2015-06-19 20:32:05 +00:00
goyuken 81d8018d4c apple2: support MONCHRONOME 2015-06-16 23:24:52 +00:00
zeromus 27e37679e7 psx - improve user friendliness of PSX options discriptory stuff 2015-06-16 10:00:48 +00:00
adelikat 1631297cdd Start AutoHawk, just a stub with the anticipated required services and a config object 2015-06-15 22:12:24 +00:00
adelikat 6517178e6d lua - savestate.looad() - if path does not exist put a helpful error message rather than a vague .net error 2015-06-15 01:17:02 +00:00
adelikat 80957a1071 Apple II - set status of core as released, add file extensions to the released version of the open rom filter, and add author info 2015-06-10 22:32:47 +00:00
adelikat f3dbf8e013 On startup, respect the show status bar flag, fixes issue #421 2015-06-06 22:31:56 +00:00
adelikat 59eb3dc2f2 Fix SNES Game Genie Add button (issue #420) 2015-06-06 22:26:32 +00:00
adelikat b9d9ffe7a5 Core picker for mGBA 2015-06-06 20:47:50 +00:00
goyuken 4a5f87387c saverams in mgba, maybe 2015-06-06 12:49:31 +00:00
adelikat 8412c91739 Apple II - fix controller config, remove Black Apple, White Apple and Reset keys since they are not currently hooked up 2015-05-31 15:02:42 +00:00
adelikat 26769ba476 Add .do and .po files as Apple II files 2015-05-28 00:16:08 +00:00
adelikat 9f0e4f0735 Apple II VirtualPad - fix up names now that we have them 2015-05-18 01:34:35 +00:00
adelikat 549e9650ae oops, didn't mean to check this in 2015-05-18 00:38:27 +00:00
adelikat 9024df91f5 Virtual pad for Apple II, many of the names will have to be cross referenced with the core when those buttons are added 2015-05-17 23:05:12 +00:00
adelikat 3178dd8b6b and awesome and snazzy apple II keyboard image for the controller config dialog 2015-05-17 21:22:13 +00:00
adelikat 7af274c1cc MultiDiskBundler - don't autofill stuff if the current "rom" is a .xml file 2015-05-17 20:37:19 +00:00
adelikat a04a80bfce add "new" to LuaCanvas.Refresh() because I"m tired of seeing the warning 2015-05-17 20:33:27 +00:00
adelikat 5354be978a remove DualGBFileSelector tool 2015-05-17 20:32:49 +00:00
adelikat c9f4a27fcd Multi-Disk bundler - add a system picker, with GB and Apple II as they are currently the only systems that support this 2015-05-17 20:26:25 +00:00
adelikat f912103914 Add a tools folder and map paths of things like watch files, debug stuff, etc there rather than defaulting to cluttering up the bizhawk root folder 2015-05-17 17:06:23 +00:00