File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 9595
9696function refresh_source ()
9797 -- update images
98- update_image_list (script_path () .. ' images/ ' )
98+ update_image_list ()
9999
100100 local source = obs .obs_get_source_by_name (browserSourceName )
101101 if source == nil then
@@ -124,7 +124,7 @@ function script_load(settings)
124124 obs .obs_data_set_default_int (settings , " slideDuration" , defaultSlideDuration )
125125 obs .obs_data_set_default_bool (settings , " startWithAutoplay" , true )
126126 obs .obs_data_set_default_string (settings , " browserSourceName" , " Browser" )
127- update_image_list (script_path () .. ' images/ ' )
127+ update_image_list ()
128128
129129 local hotkey_tag = " [Slideshow]"
130130
@@ -252,9 +252,9 @@ function send_hotkey_to_browser(keycode, key_pressed)
252252end
253253
254254-- write list of images to js file
255- function update_image_list (dir )
255+ function update_image_list ()
256256 local output = assert (io.open (script_path () .. ' images/images.js' , " w" ))
257- local files = assert (io.popen (' dir "' .. dir .. ' " /b' ))
257+ local files = assert (io.popen (' dir "' .. script_path () .. ' images/ ' .. ' " /b' ))
258258 output :write (' let imageNamesStr=`\n ' )
259259 local imageCount = 0
260260
You can’t perform that action at this time.
0 commit comments