axmol/thirdparty/openal/core/helpers.h

27 lines
578 B
C
Raw Normal View History

2021-05-14 10:15:42 +08:00
#ifndef CORE_HELPERS_H
#define CORE_HELPERS_H
#include <utility>
2021-05-14 10:15:42 +08:00
#include <string>
#include <vector>
2021-05-14 10:15:42 +08:00
struct PathNamePair {
std::string path, fname;
2021-05-14 10:15:42 +08:00
PathNamePair() = default;
template<typename T, typename U>
PathNamePair(T&& path_, U&& fname_)
: path{std::forward<T>(path_)}, fname{std::forward<U>(fname_)}
{ }
};
2021-05-14 10:15:42 +08:00
const PathNamePair &GetProcBinary(void);
extern int RTPrioLevel;
extern bool AllowRTTimeLimit;
void SetRTPriority(void);
std::vector<std::string> SearchDataFiles(const char *match, const char *subdir);
2021-05-14 10:15:42 +08:00
#endif /* CORE_HELPERS_H */