lib/cyberarm_engine.rb in cyberarm_engine-0.17.1 vs lib/cyberarm_engine.rb in cyberarm_engine-0.18.0
- old
+ new
@@ -1,11 +1,10 @@
CYBERARM_ENGINE_ROOT_PATH = File.expand_path("..", __dir__)
-begin
- require File.expand_path("../../ffi-gosu/lib/gosu", File.dirname(__FILE__))
-rescue LoadError => e
- pp e
+if ARGV.join.include?("--ffi-gosu")
+ require File.expand_path("../../ffi-gosu/lib/gosu", __dir__)
+else
require "gosu"
end
require "json"
require "excon"
require "gosu_more_drawables"
@@ -60,5 +59,7 @@
require_relative "cyberarm_engine/model/material"
require_relative "cyberarm_engine/model/model_object"
require_relative "cyberarm_engine/model/parser"
require_relative "cyberarm_engine/model/parsers/wavefront_parser"
require_relative "cyberarm_engine/model/parsers/collada_parser" if defined?(Nokogiri)
+
+require_relative "cyberarm_engine/builtin/intro_state"