Renamed $DEBUG to $debug to avoid verbose mode.

Also made GL debug functions print less stuff.
This commit is contained in:
Mathew Velasquez 2016-02-17 17:08:46 -05:00
parent ba0203169e
commit 2df5fd29de
5 changed files with 13 additions and 9 deletions

View file

@ -76,6 +76,7 @@ void graphicsBindingInit();
void fileIntBindingInit(); void fileIntBindingInit();
void oneshotBindingInit(); void oneshotBindingInit();
void steamBindingInit();
RB_METHOD(mriPrint); RB_METHOD(mriPrint);
RB_METHOD(mriP); RB_METHOD(mriP);
@ -114,6 +115,7 @@ static void mriBindingInit()
fileIntBindingInit(); fileIntBindingInit();
oneshotBindingInit(); oneshotBindingInit();
steamBindingInit();
if (rgssVer >= 3) if (rgssVer >= 3)
{ {
@ -405,7 +407,7 @@ static void runRMXPScripts(BacktraceData &btData)
} }
/* Set the debug flag */ /* 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); rb_gv_set("$RGSS_SCRIPTS", scriptArray);

View file

@ -31,7 +31,7 @@ class Game_Player < Game_Character
return false return false
end end
# If debug mode is ON and ctrl key was pressed # 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 # # Passable
# return true # return true
#end #end

View file

@ -161,7 +161,7 @@ class Scene_Map
end end
end end
# If debug mode is ON and F5 key was pressed # 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 # Set transferring player flag
$game_temp.player_transferring = true $game_temp.player_transferring = true
# Set player move destination # Set player move destination
@ -170,7 +170,7 @@ class Scene_Map
$game_temp.player_new_y = $data_system.start_y $game_temp.player_new_y = $data_system.start_y
end end
# If debug mode is ON and F9 key was pressed # 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 # Set debug calling flag
$game_temp.debug_calling = true $game_temp.debug_calling = true
end end

View file

@ -68,9 +68,11 @@ static void APIENTRY arbDebugFunc(GLenum source,
(void) source; (void) source;
(void) type; (void) type;
(void) id; (void) id;
(void) severity;
(void) length; (void) length;
if (severity == GL_DEBUG_SEVERITY_NOTIFICATION)
return;
p->writeTimestamp(); p->writeTimestamp();
p->writeLine(message); p->writeLine(message);
} }