Config: Set debug editor's debug variables into ruby
This commit is contained in:
		
							parent
							
								
									1b358a27a0
								
							
						
					
					
						commit
						7d6fbe637c
					
				
					 4 changed files with 45 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -149,7 +149,16 @@ static void mriBindingInit()
 | 
			
		|||
	_rb_define_module_function(mod, "raw_key_states", mkxpRawKeyStates);
 | 
			
		||||
	_rb_define_module_function(mod, "mouse_in_window", mkxpMouseInWindow);
 | 
			
		||||
 | 
			
		||||
	/* Load global constants */
 | 
			
		||||
	rb_gv_set("MKXP", Qtrue);
 | 
			
		||||
 | 
			
		||||
	VALUE debug = rb_bool_new(shState->config().editor.debug);
 | 
			
		||||
	if (rgssVer == 1)
 | 
			
		||||
		rb_gv_set("DEBUG", debug);
 | 
			
		||||
	else if (rgssVer >= 2)
 | 
			
		||||
		rb_gv_set("TEST", debug);
 | 
			
		||||
 | 
			
		||||
	rb_gv_set("BTEST", rb_bool_new(shState->config().editor.battleTest));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue