How use lua script get gen_vdp/0/m_vram memory data #131
Answered
by
cuavas
uname1able
asked this question in
Q&A
-
I use manager.machine.devices[":gen_vdp/0/m_vram"] or ["Sega 315-5313 Megadrive VDP:/gen_vdp/0/m_vram"] get nil , how implent the code to get gen_vdp/0/m_vram memory by lua. |
Beta Was this translation helpful? Give feedback.
Answered by
cuavas
Aug 20, 2024
Replies: 1 comment 1 reply
-
The current way of doing it is unsupported, and will change in an incompatible way in the future. vdp = manager.machine.devices['gen_vdp']
vram = emu.item(vdp.items['0/m_vram']) Note that accessing the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
uname1able
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The current way of doing it is unsupported, and will change in an incompatible way in the future.
Note that accessing the
items
property is very slow, so avoid doing it frequently.