]> git.sesse.net Git - ultimatescore/commitdiff
Find the location of the HTML file from the location of the Nageru theme.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 13 Mar 2018 21:12:13 +0000 (22:12 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 13 Mar 2018 21:12:17 +0000 (22:12 +0100)
nageru/ultimate.lua

index 32b17137b0b805d851b0aef89aae0350840d1a98..7d06451c8f1378fa7f48cdc6147979cc8ef50c12 100644 (file)
@@ -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()