Merge branch 'Feature/Update_DLL' into Feature/GraphicsProfiles

This commit is contained in:
Jordon Brooks 2024-05-16 11:17:47 +01:00
commit 3f435a284f
Signed by: jordon
GPG key ID: DBD9758CD53E786A
8 changed files with 45 additions and 8 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -21,6 +21,7 @@ namespace HarmonyLinkLib
{ {
enum class EDevice : uint8_t enum class EDevice : uint8_t
{ {
UNKNOWN,
DESKTOP, DESKTOP,
LAPTOP, LAPTOP,
HANDHELD, HANDHELD,

View file

@ -21,6 +21,7 @@ namespace HarmonyLinkLib
{ {
enum class EPlatform : uint8_t enum class EPlatform : uint8_t
{ {
UNKNOWN,
WINDOWS, WINDOWS,
LINUX, LINUX,
MAC, MAC,

View file

@ -0,0 +1,29 @@
// Copyright (c) 2024 Jordon Brooks
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#pragma once
#include <cstdint>
// Enum class for representing different types of devices
namespace HarmonyLinkLib
{
enum class ESteamDeck : uint8_t
{
NONE, // Device is not a steam deck
UNKNOWN, // Device is a steam deck but model cannot be determined
LCD,
OLED,
};
}

View file

@ -46,6 +46,10 @@ namespace HarmonyLinkLib
{ {
extern "C" HARMONYLINKLIB_API bool get_is_wine(); extern "C" HARMONYLINKLIB_API bool get_is_wine();
extern "C" HARMONYLINKLIB_API bool get_is_linux();
extern "C" HARMONYLINKLIB_API bool get_is_docked();
extern "C" HARMONYLINKLIB_API FCPUInfo* get_cpu_info(); extern "C" HARMONYLINKLIB_API FCPUInfo* get_cpu_info();
extern "C" HARMONYLINKLIB_API FDevice* get_device_info(); extern "C" HARMONYLINKLIB_API FDevice* get_device_info();

View file

@ -18,13 +18,15 @@
#include "Enums/EDevice.h" #include "Enums/EDevice.h"
#include "Enums/EPlatform.h" #include "Enums/EPlatform.h"
#include "Enums/ESteamDeck.h"
namespace HarmonyLinkLib namespace HarmonyLinkLib
{ {
// Struct to represent a specific device with both platform and device type // Struct to represent a specific device with both platform and device type
struct FDevice : HarmonyLinkStruct struct FDevice : HarmonyLinkStruct
{ {
EPlatform platform; EPlatform platform = EPlatform::UNKNOWN;
EDevice device; EDevice device = EDevice::UNKNOWN;
ESteamDeck steam_deck_model = ESteamDeck::NONE;
}; };
} }