mirror of
https://github.com/hedge-dev/UnleashedRecomp
synced 2026-06-08 04:17:36 -04:00
Remove detail namespaces. (#137)
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
#include <os/logger_detail.h>
|
||||
#include <os/logger.h>
|
||||
|
||||
void os::logger::detail::Init()
|
||||
void os::logger::Init()
|
||||
{
|
||||
}
|
||||
|
||||
void os::logger::detail::Log(const std::string_view str, detail::ELogType type, const char* func)
|
||||
void os::logger::Log(const std::string_view str, ELogType type, const char* func)
|
||||
{
|
||||
if (func)
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include <os/media_detail.h>
|
||||
#include <os/media.h>
|
||||
|
||||
bool os::media::detail::IsExternalMediaPlaying()
|
||||
bool os::media::IsExternalMediaPlaying()
|
||||
{
|
||||
// This functionality is not supported in Linux.
|
||||
return false;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#include <os/process_detail.h>
|
||||
#include <os/process.h>
|
||||
|
||||
#include <signal.h>
|
||||
|
||||
std::filesystem::path os::process::detail::GetExecutablePath()
|
||||
std::filesystem::path os::process::GetExecutablePath()
|
||||
{
|
||||
char exePath[PATH_MAX] = {};
|
||||
if (readlink("/proc/self/exe", exePath, PATH_MAX) > 0)
|
||||
@@ -15,7 +15,7 @@ std::filesystem::path os::process::detail::GetExecutablePath()
|
||||
}
|
||||
}
|
||||
|
||||
std::filesystem::path os::process::detail::GetWorkingDirectory()
|
||||
std::filesystem::path os::process::GetWorkingDirectory()
|
||||
{
|
||||
char cwd[PATH_MAX] = {};
|
||||
char *res = getcwd(cwd, sizeof(cwd));
|
||||
@@ -29,7 +29,7 @@ std::filesystem::path os::process::detail::GetWorkingDirectory()
|
||||
}
|
||||
}
|
||||
|
||||
bool os::process::detail::StartProcess(const std::filesystem::path path, const std::vector<std::string> args, std::filesystem::path work)
|
||||
bool os::process::StartProcess(const std::filesystem::path& path, const std::vector<std::string>& args, std::filesystem::path work)
|
||||
{
|
||||
pid_t pid = fork();
|
||||
if (pid < 0)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include <os/user_detail.h>
|
||||
#include <os/user.h>
|
||||
|
||||
bool os::user::detail::IsDarkTheme()
|
||||
bool os::user::IsDarkTheme()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include <os/version_detail.h>
|
||||
#include <os/version.h>
|
||||
|
||||
os::version::detail::OSVersion os::version::detail::GetOSVersion()
|
||||
os::version::OSVersion os::version::GetOSVersion()
|
||||
{
|
||||
assert(false && "Unimplemented.");
|
||||
return os::version::detail::OSVersion();
|
||||
return os::version::OSVersion();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user