2019-09-12 21:27:10 +02:00
|
|
|
module Preloader
|
|
|
|
def get_preload(preload)
|
|
|
|
return "" unless preload
|
2019-09-24 20:20:12 +02:00
|
|
|
if( preload == "all" )
|
2019-10-03 23:36:49 +02:00
|
|
|
loading = Sol::Builtin.builtin.keys
|
2019-09-24 20:20:12 +02:00
|
|
|
else
|
|
|
|
loading = preload.split(";")
|
|
|
|
end
|
2019-10-03 23:36:49 +02:00
|
|
|
loading.collect { |loads| Sol::Builtin.load_builtin(loads)}.join(";") + ";"
|
2019-09-12 21:27:10 +02:00
|
|
|
end
|
|
|
|
def preload
|
|
|
|
get_preload(@preload)
|
|
|
|
end
|
|
|
|
end
|