Files
Giacomo Vercesi 168eab6cc5 Use /proc/self/maps to determine root
Use the path of the mapped librevngSupport.so to determine the root
directory.
2022-04-28 22:18:08 +02:00

23 lines
459 B
C++

#pragma once
//
// This file is distributed under the MIT License. See LICENSE.md for details.
//
#include <optional>
#include <string>
#include <vector>
std::string getCurrentExecutableFullPath();
std::string getCurrentRoot();
class PathList {
public:
PathList(const std::vector<std::string> &Paths) : SearchPaths(Paths) {}
std::optional<std::string> findFile(const std::string &FileName) const;
private:
std::vector<std::string> SearchPaths;
};