diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/io/file_access_pack.cpp | 4 | ||||
-rw-r--r-- | core/io/file_access_pack.h | 3 | ||||
-rw-r--r-- | core/math/random_pcg.h | 4 | ||||
-rw-r--r-- | core/os/dir_access.h | 1 |
4 files changed, 10 insertions, 2 deletions
diff --git a/core/io/file_access_pack.cpp b/core/io/file_access_pack.cpp index 43fedc5238..c97b8cafac 100644 --- a/core/io/file_access_pack.cpp +++ b/core/io/file_access_pack.cpp @@ -490,6 +490,10 @@ size_t DirAccessPack::get_space_left() { return 0; } +String DirAccessPack::get_filesystem_type() const { + return "PCK"; +} + DirAccessPack::DirAccessPack() { current = PackedData::get_singleton()->root; diff --git a/core/io/file_access_pack.h b/core/io/file_access_pack.h index 04610bed57..ae5e83d405 100644 --- a/core/io/file_access_pack.h +++ b/core/io/file_access_pack.h @@ -221,6 +221,9 @@ public: size_t get_space_left(); + virtual String get_filesystem_type() const; + + DirAccessPack(); ~DirAccessPack(); }; diff --git a/core/math/random_pcg.h b/core/math/random_pcg.h index d594d16b98..ef69bf7120 100644 --- a/core/math/random_pcg.h +++ b/core/math/random_pcg.h @@ -39,9 +39,9 @@ class RandomPCG { pcg32_random_t pcg; public: - static const uint64_t DEFAULT_SEED = 12047754176567800795ULL; + static const uint64_t DEFAULT_SEED = 12047754176567800795U; static const uint64_t DEFAULT_INC = PCG_DEFAULT_INC_64; - static const uint64_t RANDOM_MAX = 4294967295; + static const uint64_t RANDOM_MAX = 0xFFFFFFFF; RandomPCG(uint64_t seed = DEFAULT_SEED, uint64_t inc = PCG_DEFAULT_INC_64); diff --git a/core/os/dir_access.h b/core/os/dir_access.h index 16358fbc57..36ccbc9b4d 100644 --- a/core/os/dir_access.h +++ b/core/os/dir_access.h @@ -98,6 +98,7 @@ public: virtual Error rename(String p_from, String p_to) = 0; virtual Error remove(String p_name) = 0; + virtual String get_filesystem_type() const=0 ; static String get_full_path(const String &p_path, AccessType p_access); static DirAccess *create_for_path(const String &p_path); |