You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
-fix bug in cache for atlas import/export
-fix some menus -fixed bug in out transition curves -detect and remove file:/// in collada -remove multiscript for now -remove dependencies on mouse in OS, moved to Input -avoid fscache from screwing up (fix might make it slower, but it works) -funcref was missing, it's there now
This commit is contained in:
@@ -387,6 +387,12 @@ uint32_t _OS::get_ticks_msec() const {
|
||||
return OS::get_singleton()->get_ticks_msec();
|
||||
}
|
||||
|
||||
|
||||
bool _OS::can_use_threads() const {
|
||||
|
||||
return OS::get_singleton()->can_use_threads();
|
||||
}
|
||||
|
||||
bool _OS::can_draw() const {
|
||||
|
||||
return OS::get_singleton()->can_draw();
|
||||
@@ -488,6 +494,27 @@ float _OS::get_frames_per_second() const {
|
||||
return OS::get_singleton()->get_frames_per_second();
|
||||
}
|
||||
|
||||
Error _OS::native_video_play(String p_path) {
|
||||
|
||||
return OS::get_singleton()->native_video_play(p_path);
|
||||
};
|
||||
|
||||
bool _OS::native_video_is_playing() {
|
||||
|
||||
return OS::get_singleton()->native_video_is_playing();
|
||||
};
|
||||
|
||||
void _OS::native_video_pause() {
|
||||
|
||||
OS::get_singleton()->native_video_pause();
|
||||
};
|
||||
|
||||
void _OS::native_video_stop() {
|
||||
|
||||
OS::get_singleton()->native_video_stop();
|
||||
};
|
||||
|
||||
|
||||
String _OS::get_custom_level() const {
|
||||
|
||||
return OS::get_singleton()->get_custom_level();
|
||||
@@ -496,7 +523,7 @@ _OS *_OS::singleton=NULL;
|
||||
|
||||
void _OS::_bind_methods() {
|
||||
|
||||
ObjectTypeDB::bind_method(_MD("get_mouse_pos"),&_OS::get_mouse_pos);
|
||||
//ObjectTypeDB::bind_method(_MD("get_mouse_pos"),&_OS::get_mouse_pos);
|
||||
//ObjectTypeDB::bind_method(_MD("is_mouse_grab_enabled"),&_OS::is_mouse_grab_enabled);
|
||||
|
||||
ObjectTypeDB::bind_method(_MD("set_clipboard","clipboard"),&_OS::set_clipboard);
|
||||
@@ -550,7 +577,9 @@ void _OS::_bind_methods() {
|
||||
ObjectTypeDB::bind_method(_MD("get_frames_drawn"),&_OS::get_frames_drawn);
|
||||
ObjectTypeDB::bind_method(_MD("is_stdout_verbose"),&_OS::is_stdout_verbose);
|
||||
|
||||
ObjectTypeDB::bind_method(_MD("get_mouse_button_state"),&_OS::get_mouse_button_state);
|
||||
ObjectTypeDB::bind_method(_MD("can_use_threads"),&_OS::can_use_threads);
|
||||
|
||||
//ObjectTypeDB::bind_method(_MD("get_mouse_button_state"),&_OS::get_mouse_button_state);
|
||||
|
||||
ObjectTypeDB::bind_method(_MD("dump_memory_to_file","file"),&_OS::dump_memory_to_file);
|
||||
ObjectTypeDB::bind_method(_MD("dump_resources_to_file","file"),&_OS::dump_resources_to_file);
|
||||
@@ -568,6 +597,12 @@ void _OS::_bind_methods() {
|
||||
|
||||
ObjectTypeDB::bind_method(_MD("print_all_textures_by_size"),&_OS::print_all_textures_by_size);
|
||||
|
||||
ObjectTypeDB::bind_method(_MD("native_video_play"),&_OS::native_video_play);
|
||||
ObjectTypeDB::bind_method(_MD("native_video_is_playing"),&_OS::native_video_is_playing);
|
||||
ObjectTypeDB::bind_method(_MD("native_video_stop"),&_OS::native_video_stop);
|
||||
ObjectTypeDB::bind_method(_MD("native_video_pause"),&_OS::native_video_pause);
|
||||
|
||||
|
||||
BIND_CONSTANT( DAY_SUNDAY );
|
||||
BIND_CONSTANT( DAY_MONDAY );
|
||||
BIND_CONSTANT( DAY_TUESDAY );
|
||||
@@ -983,8 +1018,22 @@ void _File::store_string(const String& p_string){
|
||||
|
||||
f->store_string(p_string);
|
||||
}
|
||||
void _File::store_line(const String& p_string){
|
||||
|
||||
void _File::store_pascal_string(const String& p_string) {
|
||||
|
||||
ERR_FAIL_COND(!f);
|
||||
|
||||
f->store_pascal_string(p_string);
|
||||
};
|
||||
|
||||
String _File::get_pascal_string() {
|
||||
|
||||
ERR_FAIL_COND_V(!f, "");
|
||||
|
||||
return f->get_pascal_string();
|
||||
};
|
||||
|
||||
void _File::store_line(const String& p_string){
|
||||
|
||||
ERR_FAIL_COND(!f);
|
||||
f->store_line(p_string);
|
||||
@@ -1083,6 +1132,9 @@ void _File::_bind_methods() {
|
||||
ObjectTypeDB::bind_method(_MD("store_string","string"),&_File::store_string);
|
||||
ObjectTypeDB::bind_method(_MD("store_var","value"),&_File::store_var);
|
||||
|
||||
ObjectTypeDB::bind_method(_MD("store_pascal_string","string"),&_File::store_pascal_string);
|
||||
ObjectTypeDB::bind_method(_MD("get_pascal_string"),&_File::get_pascal_string);
|
||||
|
||||
ObjectTypeDB::bind_method(_MD("file_exists","path"),&_File::file_exists);
|
||||
|
||||
BIND_CONSTANT( READ );
|
||||
|
||||
Reference in New Issue
Block a user