mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 15:42:35 +00:00
Use persistent hash for config
This commit is contained in:
@@ -40,9 +40,9 @@ class IMICFPS
|
||||
|
||||
@camera.update
|
||||
|
||||
if $debug.get(:stats)
|
||||
if window.config.get(:debug_options, :stats)
|
||||
@text.text = update_text
|
||||
elsif $debug.get(:fps)
|
||||
elsif window.config.get(:options, :fps)
|
||||
@text.text = "FPS: #{Gosu.fps}"
|
||||
else
|
||||
@text.text = ""
|
||||
|
||||
@@ -55,7 +55,7 @@ class IMICFPS
|
||||
when :model
|
||||
ModelLoader.new(manifest: hash[:manifest], entity: @dummy_entity)
|
||||
when :shader
|
||||
if $debug.get(:use_shaders)
|
||||
if window.config.get(:debug_options, :use_shaders)
|
||||
shader = Shader.new(name: hash[:name], includes_dir: "shaders/include", vertex: "shaders/vertex/#{hash[:name]}.glsl", fragment: "shaders/fragment/#{hash[:name]}.glsl")
|
||||
else
|
||||
warn "Skipping shader: #{hash[:name]}..."
|
||||
|
||||
Reference in New Issue
Block a user