From 2df5fd29def7e185bf43e2979294a86bc8f964ec Mon Sep 17 00:00:00 2001 From: Mathew Velasquez Date: Wed, 17 Feb 2016 17:08:46 -0500 Subject: [PATCH] Renamed $DEBUG to $debug to avoid verbose mode. Also made GL debug functions print less stuff. --- binding-mri/binding-mri.cpp | 4 +++- scripts/Game_Player.rb | 2 +- scripts/Scene_Map.rb | 4 ++-- scripts/Sprite_Character.rb | 8 ++++---- src/gl-debug.cpp | 4 +++- 5 files changed, 13 insertions(+), 9 deletions(-) diff --git a/binding-mri/binding-mri.cpp b/binding-mri/binding-mri.cpp index 1b87284..210a24f 100644 --- a/binding-mri/binding-mri.cpp +++ b/binding-mri/binding-mri.cpp @@ -76,6 +76,7 @@ void graphicsBindingInit(); void fileIntBindingInit(); void oneshotBindingInit(); +void steamBindingInit(); RB_METHOD(mriPrint); RB_METHOD(mriP); @@ -114,6 +115,7 @@ static void mriBindingInit() fileIntBindingInit(); oneshotBindingInit(); + steamBindingInit(); if (rgssVer >= 3) { @@ -405,7 +407,7 @@ static void runRMXPScripts(BacktraceData &btData) } /* Set the debug flag */ - rb_gv_set("$DEBUG", conf.debugMode ? Qtrue : Qfalse); + rb_gv_set("$debug", conf.debugMode ? Qtrue : Qfalse); rb_gv_set("$RGSS_SCRIPTS", scriptArray); diff --git a/scripts/Game_Player.rb b/scripts/Game_Player.rb index c4befc9..81ada46 100644 --- a/scripts/Game_Player.rb +++ b/scripts/Game_Player.rb @@ -31,7 +31,7 @@ class Game_Player < Game_Character return false end # If debug mode is ON and ctrl key was pressed - #if $DEBUG and Input.press?(Input::CTRL) + #if $debug and Input.press?(Input::CTRL) # # Passable # return true #end diff --git a/scripts/Scene_Map.rb b/scripts/Scene_Map.rb index fced8a9..e1d91b5 100644 --- a/scripts/Scene_Map.rb +++ b/scripts/Scene_Map.rb @@ -161,7 +161,7 @@ class Scene_Map end end # If debug mode is ON and F5 key was pressed - if $DEBUG and Input.press?(Input::F5) + if $debug and Input.press?(Input::F5) # Set transferring player flag $game_temp.player_transferring = true # Set player move destination @@ -170,7 +170,7 @@ class Scene_Map $game_temp.player_new_y = $data_system.start_y end # If debug mode is ON and F9 key was pressed - if $DEBUG and Input.press?(Input::F9) + if $debug and Input.press?(Input::F9) # Set debug calling flag $game_temp.debug_calling = true end diff --git a/scripts/Sprite_Character.rb b/scripts/Sprite_Character.rb index edc6d8d..14b2330 100644 --- a/scripts/Sprite_Character.rb +++ b/scripts/Sprite_Character.rb @@ -52,11 +52,11 @@ class Sprite_Character @sprite.bitmap = RPG::Cache.character(@character.character_name, @character.character_hue) begin - @light_sprite.bitmap = RPG::Cache.lightmap(@character.character_name) - @light_sprite.visible = true + @light_sprite.bitmap = RPG::Cache.lightmap(@character.character_name) + @light_sprite.visible = true rescue - @light_sprite.bitmap = nil - @light_sprite.visible = false + @light_sprite.bitmap = nil + @light_sprite.visible = false end @cw = @sprite.bitmap.width / 4 @ch = @sprite.bitmap.height / 4 diff --git a/src/gl-debug.cpp b/src/gl-debug.cpp index f192c7c..682b0df 100644 --- a/src/gl-debug.cpp +++ b/src/gl-debug.cpp @@ -68,9 +68,11 @@ static void APIENTRY arbDebugFunc(GLenum source, (void) source; (void) type; (void) id; - (void) severity; (void) length; + if (severity == GL_DEBUG_SEVERITY_NOTIFICATION) + return; + p->writeTimestamp(); p->writeLine(message); }