mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 23:52:35 +00:00
Added command to reload shaders at runtime, added support for shared scripts to Manifest, lights are now loadable from MapParser, misc changes.
This commit is contained in:
@@ -35,7 +35,16 @@ class IMICFPS
|
||||
def parse_scripts(scripts)
|
||||
list = []
|
||||
scripts.each do |script|
|
||||
list << Script.new(script, File.read("#{file_path}/scripts/#{script}.rb"))
|
||||
path = ""
|
||||
|
||||
if script.start_with?("!")
|
||||
script = script.sub("!", "")
|
||||
path = File.expand_path("../shared/", file_path) + "/scripts/" + script
|
||||
else
|
||||
path = "#{file_path}/scripts/#{script}"
|
||||
end
|
||||
|
||||
list << Script.new(script, File.read("#{path}.rb"))
|
||||
end
|
||||
|
||||
return list
|
||||
|
||||
Reference in New Issue
Block a user