Skip to content

Commit

Permalink
Update Source/utils/paths.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
AJenbo authored Oct 23, 2024
1 parent 1685b2d commit 20780b2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Source/utils/paths.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@ const std::string &ConfigPath()

const std::string &AssetsPath()
{
if (!assetsPath) {
#if defined(__HAIKU__)
char buffer[B_PATH_NAME_LENGTH+10];
find_directory(B_SYSTEM_DATA_DIRECTORY, dev_for_path("/boot"), false, buffer, B_PATH_NAME_LENGTH);
strcat(buffer, "/devilutionx/");
assetsPath.emplace(strdup(buffer));
char buffer[B_PATH_NAME_LENGTH+10];
find_directory(B_SYSTEM_DATA_DIRECTORY, dev_for_path("/boot"), false, buffer, B_PATH_NAME_LENGTH);
strcat(buffer, "/devilutionx/");
assetsPath.emplace(strdup(buffer));
#endif
if (!assetsPath) {
#if __EMSCRIPTEN__
assetsPath.emplace("assets/");
#elif defined(NXDK)
Expand Down

0 comments on commit 20780b2

Please sign in to comment.