diff --git a/UnleashedRecomp/CMakeLists.txt b/UnleashedRecomp/CMakeLists.txt index e3cdfc10..1c41bace 100644 --- a/UnleashedRecomp/CMakeLists.txt +++ b/UnleashedRecomp/CMakeLists.txt @@ -91,6 +91,13 @@ if (WIN32) "os/win32/process_win32.cpp" "os/win32/version_win32.cpp" ) +elseif (CMAKE_SYSTEM_NAME MATCHES "Linux") + list(APPEND SWA_OS_CXX_SOURCES + "os/linux/logger_linux.cpp" + "os/linux/media_linux.cpp" + "os/linux/process_linux.cpp" + "os/linux/version_linux.cpp" + ) endif() set(SWA_CPU_CXX_SOURCES diff --git a/UnleashedRecomp/os/linux/logger_linux.cpp b/UnleashedRecomp/os/linux/logger_linux.cpp new file mode 100644 index 00000000..7b11de95 --- /dev/null +++ b/UnleashedRecomp/os/linux/logger_linux.cpp @@ -0,0 +1,11 @@ +#include + +void os::logger::detail::Init() +{ + assert(false && "Unimplemented."); +} + +void os::logger::detail::Log(const std::string_view str, detail::ELogType type, const char* func) +{ + assert(false && "Unimplemented."); +} diff --git a/UnleashedRecomp/os/linux/media_linux.cpp b/UnleashedRecomp/os/linux/media_linux.cpp new file mode 100644 index 00000000..74ec9961 --- /dev/null +++ b/UnleashedRecomp/os/linux/media_linux.cpp @@ -0,0 +1,7 @@ +#include + +bool os::media::detail::IsExternalMediaPlaying() +{ + // This functionality is not supported in Linux. + return false; +} diff --git a/UnleashedRecomp/os/linux/process_linux.cpp b/UnleashedRecomp/os/linux/process_linux.cpp new file mode 100644 index 00000000..8a8dae42 --- /dev/null +++ b/UnleashedRecomp/os/linux/process_linux.cpp @@ -0,0 +1,20 @@ +#include + +std::filesystem::path os::process::detail::GetExecutablePath() +{ + assert(false && "Unimplemented."); + return std::filesystem::path(); +} + +std::filesystem::path os::process::detail::GetWorkingDirectory() +{ + // TODO: There's a cross platform way to retrieve this which is just getting it from argv[0]. + assert(false && "Unimplemented."); + return std::filesystem::path(); +} + +bool os::process::detail::StartProcess(const std::filesystem::path path, const std::vector args, std::filesystem::path work) +{ + assert(false && "Unimplemented."); + return false; +} diff --git a/UnleashedRecomp/os/linux/version_linux.cpp b/UnleashedRecomp/os/linux/version_linux.cpp new file mode 100644 index 00000000..17b5b120 --- /dev/null +++ b/UnleashedRecomp/os/linux/version_linux.cpp @@ -0,0 +1,7 @@ +#include + +os::version::detail::OSVersion os::version::detail::GetOSVersion() +{ + assert(false && "Unimplemented."); + return os::version::detail::OSVersion(); +}