From: Steinar H. Gunderson Date: Tue, 13 Mar 2018 21:12:13 +0000 (+0100) Subject: Find the location of the HTML file from the location of the Nageru theme. X-Git-Url: https://git.sesse.net/?p=ultimatescore;a=commitdiff_plain;h=4ff1d22ca52960d25e3d62700787d536ec90e50a Find the location of the HTML file from the location of the Nageru theme. --- diff --git a/nageru/ultimate.lua b/nageru/ultimate.lua index 32b1713..7d06451 100644 --- a/nageru/ultimate.lua +++ b/nageru/ultimate.lua @@ -45,8 +45,8 @@ local FADE_TRANSITION = 2 -- frame and not per field, since we deinterlace. local last_resolution = {} -local cef_input = HTMLInput.new("file:///home/sesse/dev/ultimatescore/score.html") -cef_input:set_url("file:///home/sesse/dev/ultimatescore/score.html"); +local cef_path = Nageru.THEME_PATH:match("(.*)/nageru/") +local cef_input = HTMLInput.new("file://" .. cef_path .. "/score.html") cef_input:execute_javascript_async("play()") function reload_cef()