Matthew Budd
87b6368956
Changed the lua emu.loadrom function to have a string return value containing the path to the currently loaded ROM. The old function had no return value. This return value allows for the user to determine what game was loaded since the function behavior is to try to reload the last known ROM if the passed argument cannot be loaded.
2020-11-01 21:45:36 -05:00
Matthew Budd
22f47c43c6
Merge branch 'master' of https://github.com/mjbudd77/fceux
2020-10-31 16:27:10 -04:00
Matthew Budd
5c29bdbd8d
Lua scripting pathing improvements for Linux/MacOS. Use realpath when possible to always have a absolute path for scripts and roms internally.
2020-10-31 16:25:29 -04:00
mjbudd77
ddb879b21a
Build fix for MacOS.
2020-10-31 16:12:40 -04:00
Matthew Budd
0cca02e765
Bug fix for issue #215 . MacOS was not changing the current working directory to the lua script location when loading a lua script.
2020-10-31 16:08:22 -04:00
mjbudd77
5d6cda446a
Compile fix for macOS.
2020-10-31 12:40:31 -04:00
Matthew Budd
939e2ae27e
Added logic to direct lua script error messages to the output console window. Fixed crash issue described in issue #216 . Crash was due to Qt GUI functions being used in the emulator thread. Only the main GUI thread is allowed to call Qt GUI functions.
2020-10-31 12:24:52 -04:00
mjbudd77
bf696c6494
Build fix for Mac OSX emu.getdir() lua code.
2020-10-21 21:52:32 -04:00
Matthew Budd
80022a40d6
Changed logic to use dirname for Mac OS emu.getdir().
2020-10-21 21:40:27 -04:00
Matthew Budd
379ff6d757
Added emu.getdir() logic for linux and mac OSX
2020-10-21 21:21:49 -04:00
Matthew Budd
fede6f5690
Minor cleanup of lua engine load rom update for SDL port.
2020-10-21 20:45:50 -04:00
Mario Perić
432ffeeec2
Use LoadGame instead of FCEUI_LoadGame
2020-10-22 01:20:48 +02:00
Mario Perić
ec72160f39
Added support for loading ROM files from Lua script on Linux
2020-10-21 22:09:55 +02:00
Matthew Budd
122473b575
Added Lua control window.
2020-07-19 21:15:56 -04:00
Matthew Budd
7919071a25
Cleaned up gcc compiler warning : ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
2020-06-19 23:58:12 -04:00
zeromus
74b11ae84c
Merge pull request #103 from bbbradsmith/lua_zapper_set
...
zapper.set for lua
2020-05-31 16:13:29 -05:00
Devine Lu Linvega
f83e488a65
Fixed type in lua-engine.cpp ( #95 )
2020-01-30 18:26:52 -05:00
bbbradsmith
c4ee998148
zapper control from lua
2019-12-15 15:31:09 -05:00
Andypro1
ed4f5d0000
Moved lua memory_writebyte() to legacymemory_writebyte() and changed the memory_writebyte() implementation to avoid the legacy cheat engine code. ( #67 )
2019-11-22 23:29:25 -05:00
Brad Smith
72120b0bb9
Windows 64-bit build support ( #66 )
...
* correcting x64 configurations to actually use x64
defining NOMINMAX to fix std::max error
* more preprocessor definitions for x64
* 64-bit libraries from the last published version of DXSDK with dinput
* should define WIN64 as well? unfortunately seem to require retention of WIN32
* added an x64 build of luaperks.lib, this compiles links and runs now
* relocate win32 luaperks.lib to src/drivers/win/lua/win32 and leave a note explaining it
* luaperks.lib x64 needed to be /MT
two more missing x64 libs
debug x64 configuration was set to compile C++ as C?
* importing the rest of the usable WIN32 preprocessor defines, debugger now functions!
* revert unnecessary VS solution version change
* 64-bit lua working (fixed the 64-bit build of luaperks.lib)
* VSUIENTRY hashes are unsigned, not signed
* more hashes that are actually unsigned
* fix a few pointer to int casts in lua console
* fix a few more pointer truncations in windows dialog stuff
a few printf arguments need a cast to int
* explicit size_t cast to quiet spurious warnings on an inline function
2019-07-23 15:12:03 -04:00
CaH4e3
97c9cb0068
Merge pull request #62 from bbbradsmith/dlgproc_fix
...
DLGPROC and SetWindowLong fixes
2019-06-29 00:12:13 +03:00
bbbradsmith
17e36e9882
lua library table registration needs an extra stack clear (is overflowing)
2019-06-27 03:14:12 -04:00
bbbradsmith
c33ab17da4
DLGPROC return type is INT_PTR, not BOOL and not LRESULT. These are compatible return types in 32-bit but not 64-bit.
2019-06-21 14:03:05 -04:00
zeromus
f9094a4655
fix savestate.create(integer)
...
maybe fixes #41 (not sure)
2019-03-18 00:26:26 -04:00
owomomo
8c485d23a2
Merge branch 'master' into master
2019-02-02 17:14:09 +08:00
zeromus
f8d5a91363
lua: make emu.speedmode nothrottle and maximum set to 100% frameskip, as originally intended ( fixes #34 )
2019-01-27 21:32:22 -05:00
zeromus
adc9efec56
run 1st frame of lua scripts after the lua console is hooked up, rather than before ( fixes #33 )
2019-01-27 20:45:23 -05:00
owomomo
d9d3f1b56b
1. Further reconstruct the hotkey menu item code, menus belongs different parent menus with the same id can be defined in one struct rather than four. Removing the repeated menu hotkey update, only update the needed range. I wish this is not too complicated.
...
2. Map Hotkey dialog items now can be sorted by click on the column header.
3. Fix a logic bug when user cancels open archive dialog.
4. Trying to fix Linux build (not sure).
2019-01-03 20:38:33 +08:00
zeromus
608bbe83fe
fix SF issue #838 better and fully
2018-12-31 00:58:20 -05:00
zeromus
76f7af16c8
try fixing SF bug 838 "gui.drawbox border is overlapping itself"
...
I didnt test it, maybe I broke everything. please check it
2018-12-30 17:05:58 -05:00
aquanull@gmail.com
dd5a0e908e
Re-enabled running the Lua script when loaded.
2018-12-24 13:54:32 +08:00
zeromus
5a1e6c552a
ignore lmouse and rmouse lua input when main window isnt focused. it seems unlikely anyone would want these for any other purpose (xmouse and ymouse are based on the emulated window so the clicks should be too)
...
untested.
intended for SF bug 836
2018-12-17 15:11:30 -05:00
zeromus
14ad02632a
use cd and im bindings for lua. needed rebuild luaperks to include binding sources
2018-12-16 13:20:45 -05:00
Brendan Byrd
f9f35cbadb
Add playback/record Lua functions
2018-11-30 00:10:22 -05:00
Brendan Byrd
47c8491114
Add support for base64 in rom.gethash
2018-11-30 00:10:22 -05:00
Brendan Byrd
319293e20b
Add rom.getfilename Lua function
...
Also, add documention to rom.gethash function
2018-11-30 00:10:22 -05:00
Brendan Byrd
03851153ed
Don't Lua print extra newlines in *NIX
2018-11-30 00:10:22 -05:00
Brendan Byrd
76c423fa4a
Add getemuscreen support to gui.gdscreenshot Lua call
2018-11-30 00:10:22 -05:00
Brendan Byrd
5f23a565e8
Whitespace cleanup
...
Should be nothing with 'git show -b'
2018-11-30 00:10:22 -05:00
Brendan Byrd
e50f7bfd71
Add stace traces to failed Lua executions
2018-11-30 00:10:22 -05:00
Brad Smith
349aed4aaf
Fix null pointer crash when lua script fails to load.
2018-11-12 17:33:42 -05:00
zeromus
4939859cf4
lua - savestate.create() can now accept a string which should be the filesystem path to a savestate; you can then use savestate.load on it
2018-07-02 15:19:09 -05:00
zeromus
0307e3b827
migration tidying (build master from trunk)
2018-04-08 17:35:15 -05:00
punkrockguy318
2be5084a7b
create new subversion repo structure (trunk, tags, branches)
...
[[Split portion of a mixed commit.]]
2013-03-15 19:00:14 +00:00
ansstuff
7007fc4805
* Taseditor: cleaned up code a bit more, renamed identifiers to follow single convention
2013-03-04 16:58:54 +00:00
ansstuff
f22dc51e71
* Lua: removed "shadow pixels" from gui.text()
...
* Lua: fixed width of question mark symbol
* Lua: made gui.parsecolor() function available for users
2013-01-15 12:53:04 +00:00
CaH4e3
43ee931dec
cleanup and version bum... hmmm (not no mention something else)
2012-10-21 16:40:04 +00:00
ansstuff
e30c685c5e
* Lua: auto-clearing previous frame drawings (same behaviour as other emulators)
...
* Debugger: fixed mouseover when using Symbolic debugging
* Debugger: mouseover works for the disassembly window too
* updated docs
[[Split portion of a mixed commit.]]
2012-09-23 12:45:28 +00:00
ansstuff
35541256d7
Added emu.setlagflag() Lua function
2012-09-13 19:48:14 +00:00
ansstuff
fd35046e62
* Taseditor: fixed AdjustLag feature
...
* Taseditor: changed fm3 version to v2
* Taseditor: Ctrl+Z/Ctrl+Y trigger twice when crossing AdjustLag operations
2012-08-25 19:59:07 +00:00