Skip to content

Commit

Permalink
Fix 10 14 (#192)
Browse files Browse the repository at this point in the history
* fix(10.14): 10.14 compatibility

* fix(windows): fix windows build

* fix(osx): osx build fix

* fix(osx): osx build fix

* fix(osx): remove linking of stdc++ fs

* fix(linux): to boost filesystem
  • Loading branch information
Milerius committed Mar 31, 2020
1 parent 0e2e282 commit dba202f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/core/antara/gaming/core/details/linux/real.path.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@

#pragma once

#include <filesystem>
#include <boost/filesystem.hpp>
#include <string>
#include <unistd.h> //! getpid()

namespace antara::gaming::core::details
{
std::filesystem::path
boost::filesystem::path
binary_real_path() noexcept
{
return std::filesystem::read_symlink("/proc/" + std::to_string(getpid()) + "/exe");
return boost::filesystem::read_symlink("/proc/" + std::to_string(getpid()) + "/exe");
}

std::filesystem::path
boost::filesystem::path
assets_real_path() noexcept
{
return binary_real_path().parent_path().parent_path() / "share/assets/";
Expand Down

0 comments on commit dba202f

Please sign in to comment.