Config: Set debug editor's debug variables into ruby
This commit is contained in:
		
							parent
							
								
									9f44ee5068
								
							
						
					
					
						commit
						b5e5a26d8b
					
				
					 4 changed files with 45 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -147,7 +147,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