mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	Add JavaScript eval interface
This commit is contained in:
		
							parent
							
								
									016be49e08
								
							
						
					
					
						commit
						913361928f
					
				
					 6 changed files with 242 additions and 2 deletions
				
			
		|  | @ -230,6 +230,11 @@ void OS_JavaScript::initialize(const VideoMode& p_desired,int p_video_driver,int | |||
| 	if (result!=EMSCRIPTEN_RESULT_SUCCESS) { | ||||
| 		ERR_PRINTS( "Error while setting Emscripten gamepaddisconnected callback: Code " + itos(result) ); | ||||
| 	} | ||||
| 
 | ||||
| #ifdef JAVASCRIPT_EVAL_ENABLED | ||||
| 	javascript_eval = memnew(JavaScript); | ||||
| 	Globals::get_singleton()->add_singleton(Globals::Singleton("JavaScript", javascript_eval)); | ||||
| #endif | ||||
| } | ||||
| 
 | ||||
| void OS_JavaScript::set_main_loop( MainLoop * p_main_loop ) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 eska
						eska