You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +00:00
Merge branch 'master' of https://github.com/okamstudio/godot
This commit is contained in:
@@ -1149,6 +1149,12 @@ Error Globals::_save_settings_text(const String& p_file,const Map<String,List<St
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
Error Globals::_save_custom_bnd(const String &p_file) { // add other params as dictionary and array?
|
||||
|
||||
return save_custom(p_file);
|
||||
};
|
||||
|
||||
Error Globals::save_custom(const String& p_path,const CustomMap& p_custom,const Set<String>& p_ignore_masks) {
|
||||
|
||||
ERR_FAIL_COND_V(p_path=="",ERR_INVALID_PARAMETER);
|
||||
@@ -1361,6 +1367,9 @@ void Globals::_bind_methods() {
|
||||
ObjectTypeDB::bind_method(_MD("has_singleton"),&Globals::has_singleton);
|
||||
ObjectTypeDB::bind_method(_MD("get_singleton"),&Globals::get_singleton_object);
|
||||
ObjectTypeDB::bind_method(_MD("load_resource_pack"),&Globals::_load_resource_pack);
|
||||
|
||||
ObjectTypeDB::bind_method(_MD("save_custom"),&Globals::_save_custom_bnd);
|
||||
|
||||
}
|
||||
|
||||
Globals::Globals() {
|
||||
|
||||
@@ -86,6 +86,7 @@ protected:
|
||||
|
||||
List<Singleton> singletons;
|
||||
|
||||
Error _save_custom_bnd(const String& p_file);
|
||||
|
||||
bool _load_resource_pack(const String& p_pack);
|
||||
|
||||
|
||||
@@ -5,10 +5,12 @@
|
||||
#include "print_string.h"
|
||||
#define COMP_MAGIC 0x43454447
|
||||
|
||||
#include "core/variant.h"
|
||||
#include <stdio.h>
|
||||
|
||||
Error FileAccessEncrypted::open_and_parse(FileAccess *p_base,const Vector<uint8_t>& p_key,Mode p_mode) {
|
||||
|
||||
print_line("open and parse!");
|
||||
//print_line("open and parse!");
|
||||
ERR_FAIL_COND_V(file!=NULL,ERR_ALREADY_IN_USE);
|
||||
ERR_FAIL_COND_V(p_key.size()!=32,ERR_INVALID_PARAMETER);
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
|
||||
static PrintHandlerList *print_handler_list=NULL;
|
||||
bool _print_line_enabled=true;
|
||||
bool _print_error_enabled = true;
|
||||
|
||||
void add_print_handler(PrintHandlerList *p_handler) {
|
||||
|
||||
|
||||
@@ -52,6 +52,7 @@ void add_print_handler(PrintHandlerList *p_handler);
|
||||
void remove_print_handler(PrintHandlerList *p_handler);
|
||||
|
||||
extern bool _print_line_enabled;
|
||||
extern bool _print_error_enabled;
|
||||
extern void print_line(String p_string);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user