Skip to content

Commit

Permalink
Fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
deathkiller committed Nov 25, 2024
1 parent f567af4 commit ec38ccb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Sources/Shared/IO/AndroidAssetStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
}
Expand Down
8 changes: 4 additions & 4 deletions Sources/Shared/IO/AndroidAssetStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
Expand Down

0 comments on commit ec38ccb

Please sign in to comment.