From fe0fbb87c22ddb27569091553d52154bbc1dcc17 Mon Sep 17 00:00:00 2001 From: cracyc Date: Wed, 3 Nov 2021 20:01:07 -0500 Subject: plugins: fix cheatfind menu flags and write xml cheat text to ui container so it's not sideways on rotated screens --- plugins/cheat/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/cheat/init.lua') diff --git a/plugins/cheat/init.lua b/plugins/cheat/init.lua index 41d74ac855a..9193a0ad807 100644 --- a/plugins/cheat/init.lua +++ b/plugins/cheat/init.lua @@ -522,7 +522,9 @@ function cheat.startplugin() if cheat.screen then for name, screen in pairs(cheat.screen) do local scr = manager.machine.screens[screen] - if not scr then + if screen == "ui" then + scr = manager.machine.render.ui_container + elseif not scr then local tag local nxt, coll = manager.machine.screens:pairs() tag, scr = nxt(coll) -- get any screen -- cgit v1.2.3