diff --git a/Sources/Shared/IO/AndroidAssetStream.cpp b/Sources/Shared/IO/AndroidAssetStream.cpp index 0e79fec3..45b130aa 100644 --- a/Sources/Shared/IO/AndroidAssetStream.cpp +++ b/Sources/Shared/IO/AndroidAssetStream.cpp @@ -9,7 +9,7 @@ namespace Death { namespace IO { //###==##====#=====--==~--~=~- --- -- - - - - - GameActivity* AndroidAssetStream::_nativeActivity = nullptr; + ANativeActivity* AndroidAssetStream::_nativeActivity = nullptr; AndroidAssetStream::AndroidAssetStream(const Containers::StringView path, FileAccess mode) : AndroidAssetStream(Containers::String{path}, mode) @@ -193,17 +193,17 @@ namespace Death { namespace IO { return {}; } - const char* AndroidAssetStream::GetInternalDataPath() const + const char* AndroidAssetStream::GetInternalDataPath() { return _nativeActivity->internalDataPath; } - const char* AndroidAssetStream::GetExternalDataPath() const + const char* AndroidAssetStream::GetExternalDataPath() { return _nativeActivity->externalDataPath; } - const char* AndroidAssetStream::GetObbPath() const + const char* AndroidAssetStream::GetObbPath() { return _nativeActivity->obbPath; } diff --git a/Sources/Shared/IO/AndroidAssetStream.h b/Sources/Shared/IO/AndroidAssetStream.h index 0dcbfb0e..02089f7a 100644 --- a/Sources/Shared/IO/AndroidAssetStream.h +++ b/Sources/Shared/IO/AndroidAssetStream.h @@ -58,11 +58,11 @@ namespace Death { namespace IO { static Containers::StringView TryGetAssetPath(const Containers::StringView path); /** @brief Returns path to the application's internal data directory */ - static const char* GetInternalDataPath() const; + static const char* GetInternalDataPath(); /** @brief Returns path to the application's external (removable/mountable) data directory */ - static const char* GetExternalDataPath() const; + static const char* GetExternalDataPath(); /** @brief Returns path to the directory containing the application's OBB files */ - static const char* GetObbPath() const; + static const char* GetObbPath(); /** @brief Checks if an asset path exists as a file or as a directory and can be opened */ static bool TryOpen(const Containers::StringView path); @@ -79,7 +79,7 @@ namespace Death { namespace IO { static const char* GetNextFileName(AAssetDir* assetDir); private: - static GameActivity* _nativeActivity; + static ANativeActivity* _nativeActivity; Containers::String _path; std::int64_t _size;