penne vincent
print() print("Executing "..home.."userconf.lua") print(" This file : @BUILT-DATE@") print(" Release : " .. (__RELEASE and "yes" or "no")) print(" Debug : " .. (__DEBUG and "yes" or "no")) print() if __RELEASE then local msg = "Loading drivers ... please wait" print(msg) local plugins if SHADOCK_EDITION then plugins = { plug_obj, plug_cdda, plug_ffmpeg, plug_ogg, plug_mikmod, plug_sidplay, plug_sc68, plug_nsf, plug_spc, plug_lpo, plug_fftvlr, plug_hyperpipe, plug_fime } else plugins = { plug_obj, plug_cdda, plug_ffmpeg, plug_ogg, plug_mikmod, plug_sidplay, plug_sc68, plug_lpo, plug_fftvlr, plug_hyperpipe, plug_fime, plug_spc } end -- Add entrylist driver if not already loaded. if type(entrylist_load) ~= "function" then tinsert(plugins,plug_el) end -- Try to get filetype of a fake jpeg file will tell us if the jpeg driver -- is already loaded. local ty,ma,mi = filetype("t.jpg") if not ma or ma ~= "image" then tinsert(plugins,plug_jpeg) end local i,v for i,v in plugins do if type(v) == "string" then print(format(" '%s'", v)) driver_load(v) end end -- Really start dcplaya applications now ! dolib("background") dolib("control_center") dolib("song_info") dolib("song_browser") dolib("fifo_tracker") dolib "subtitles" if SHADOCK_EDITION then song_browser.pl:change_dir(playlist_load(home.."../extra/radio.m3u")) end if fifo_tracker_create then fifo_tracker_create() end -- Currently vmu visual are not plugins, just hard the list vmu_set_visual(random(3)) -- Set visual only if no cuurent local vis_name = set_visual() if not SHADOCK_EDITION and not vis_name or vis_name == "" then vis_name = nil -- Get driver lists local drlist = get_driver_lists() if type(drlist) == "table" and drlist.vis and drlist.vis.n > 0 then -- We add some visual driver, set a random one. vis_name = drlist.vis[random(drlist.vis.n)].name if vis_name then print("Setting visual " .. vis_name) set_visual(vis_name) end end end -- test again -- vis_name = set_visual() -- $$$ failed ? Probably becoz visual really be set in the next frame ... if not SHADOCK_EDITION then if not vis_name then print("No visual plugin found :`(") else print("Visual plugin " .. vis_name) end end if scroll_dl then dl_set_active(scroll_dl,nil) end hc() dolib("net") sc() if scroll_dl then dl_set_active(scroll_dl,1) end if SHADOCK_EDITION then print("Shadock edition") print("Loading ffmpeg codecs ...") cl(codec_misc) print("Playing Shadock video ...") playa_play("/cd/extra/shadock.avi") -- TO BE REMOVED !! -- function t() -- dofile "/pc/home/zig/Dev/dc/newdcp/dcplaya/lua/taggedtext.lua" -- dofile "/pc/home/zig/Dev/dc/newdcp/dcplaya/lua/net.lua" -- end end hc() end
dcplaya documentation version 2.0 | Generated on November 2004 by doxygen 1.3.6 |