Merge pull request #15422 from eska014/html5-logger
Print without color control sequences in HTML5 platform
This commit is contained in:
commit
b33bf23c6a
@ -989,6 +989,7 @@ bool OS_JavaScript::is_userfs_persistent() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
OS_JavaScript::OS_JavaScript(const char *p_execpath, GetUserDataDirFunc p_get_user_data_dir_func) {
|
OS_JavaScript::OS_JavaScript(const char *p_execpath, GetUserDataDirFunc p_get_user_data_dir_func) {
|
||||||
|
|
||||||
set_cmdline(p_execpath, get_cmdline_args());
|
set_cmdline(p_execpath, get_cmdline_args());
|
||||||
main_loop = NULL;
|
main_loop = NULL;
|
||||||
gl_extensions = NULL;
|
gl_extensions = NULL;
|
||||||
@ -1001,6 +1002,10 @@ OS_JavaScript::OS_JavaScript(const char *p_execpath, GetUserDataDirFunc p_get_us
|
|||||||
|
|
||||||
idbfs_available = false;
|
idbfs_available = false;
|
||||||
time_to_save_sync = -1;
|
time_to_save_sync = -1;
|
||||||
|
|
||||||
|
Vector<Logger *> loggers;
|
||||||
|
loggers.push_back(memnew(StdLogger));
|
||||||
|
_set_logger(memnew(CompositeLogger(loggers)));
|
||||||
}
|
}
|
||||||
|
|
||||||
OS_JavaScript::~OS_JavaScript() {
|
OS_JavaScript::~OS_JavaScript() {
|
||||||
|
Loading…
Reference in New Issue
Block a user