Add bool is_linux() to the public API for easy access

This commit is contained in:
Jordon Brooks 2024-01-16 00:06:06 +00:00
parent 4702922b8e
commit 470f4a318f
No known key found for this signature in database
GPG key ID: 83964894E5D98D57
2 changed files with 13 additions and 0 deletions

View file

@ -32,6 +32,17 @@ namespace HarmonyLinkLib
return PlatformUtilities->is_running_under_wine();
}
bool get_is_linux()
{
if (!PlatformUtilities)
{
std::wcout << "Failed to get platform utilities!\n";
return false;
}
return PlatformUtilities->is_linux();
}
FCPUInfo* get_cpu_info()
{
if (!PlatformUtilities)