You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Rename OS::get_data_dir to OS::get_user_data_dir
Will be needed to avoid confusion with system data path (XDG_DATA_HOME) and editor data dir in upcoming refactoring.
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
|
||||
#include <emscripten/html5.h>
|
||||
|
||||
typedef String (*GetDataDirFunc)();
|
||||
typedef String (*GetUserDataDirFunc)();
|
||||
|
||||
class OS_JavaScript : public OS_Unix {
|
||||
|
||||
@@ -63,7 +63,7 @@ class OS_JavaScript : public OS_Unix {
|
||||
CursorShape cursor_shape;
|
||||
MainLoop *main_loop;
|
||||
|
||||
GetDataDirFunc get_data_dir_func;
|
||||
GetUserDataDirFunc get_user_data_dir_func;
|
||||
|
||||
PowerJavascript *power_manager;
|
||||
|
||||
@@ -146,7 +146,7 @@ public:
|
||||
void set_opengl_extensions(const char *p_gl_extensions);
|
||||
|
||||
virtual Error shell_open(String p_uri);
|
||||
virtual String get_data_dir() const;
|
||||
virtual String get_user_data_dir() const;
|
||||
String get_executable_path() const;
|
||||
virtual String get_resource_dir() const;
|
||||
|
||||
@@ -165,7 +165,7 @@ public:
|
||||
|
||||
void set_idbfs_available(bool p_idbfs_available);
|
||||
|
||||
OS_JavaScript(const char *p_execpath, GetDataDirFunc p_get_data_dir_func);
|
||||
OS_JavaScript(const char *p_execpath, GetUserDataDirFunc p_get_user_data_dir_func);
|
||||
~OS_JavaScript();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user