game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
Loading...
Searching...
No Matches
SystemCapabilities Struct Reference

Complete system capabilities summary. More...

#include <system_info_service.h>

Collaboration diagram for SystemCapabilities:

Public Member Functions

bool canUseFsync () const
bool canUseGameMode () const
bool canUseNTSync () const
const MonitorInfo * getPrimaryMonitor () const
uint64_t getRecommendedShaderCacheSize () const
std::string getRecommendedSyncMethod () const
StorageType getStorageTypeForPath (const std::string &path) const
bool has16GBRAM () const
bool has32GBRAM () const
bool hasAMDGPU () const
bool hasArcGPU () const
bool hasController () const
bool hasEnoughRAMFor (uint64_t requiredMB) const
bool hasHDRMonitor () const
bool hasHighRefreshMonitor () const
bool hasIntelGPU () const
bool hasNVIDIAGPU () const
bool hasOptimalKernelParams () const
bool hasPlayStationController () const
bool hasRDNA2OrNewer () const
bool hasRTXCapable () const
bool hasVRRMonitor () const
bool hasXboxController () const
bool isCachyOS () const
bool isLaptop () const
bool isOnBattery () const
bool isOptimalForGaming () const
bool isPerformancePowerProfile () const
bool isWayland () const

Public Attributes

std::vector< ControllerInfo > controllers
CPUInfo cpu
DisplayServer displayServer = DisplayServer::Unknown
GPUInfo gpu
KernelInfo kernel
MemoryInfo memory
std::vector< MonitorInfo > monitors
PowerInfo power
std::vector< RunnerInfo > runners
std::vector< StorageInfo > storage
SystemReadiness systemReadiness
ToolAvailability tools

Detailed Description

Complete system capabilities summary.

Definition at line 452 of file system_info_service.h.

Member Function Documentation

◆ canUseFsync()

bool SystemCapabilities::canUseFsync ( ) const
inline

Definition at line 480 of file system_info_service.h.

References kernel.

Referenced by isOptimalForGaming().

◆ canUseGameMode()

bool SystemCapabilities::canUseGameMode ( ) const
inline

Definition at line 488 of file system_info_service.h.

References tools.

◆ canUseNTSync()

bool SystemCapabilities::canUseNTSync ( ) const
inline

Definition at line 484 of file system_info_service.h.

References kernel.

Referenced by isOptimalForGaming(), and ToolbarManager::setupToolbar().

◆ getPrimaryMonitor()

const MonitorInfo * SystemCapabilities::getPrimaryMonitor ( ) const
inline

Definition at line 530 of file system_info_service.h.

References monitors.

◆ getRecommendedShaderCacheSize()

uint64_t SystemCapabilities::getRecommendedShaderCacheSize ( ) const
inline

Definition at line 621 of file system_info_service.h.

References gpu.

◆ getRecommendedSyncMethod()

std::string SystemCapabilities::getRecommendedSyncMethod ( ) const
inline

Definition at line 609 of file system_info_service.h.

References kernel.

◆ getStorageTypeForPath()

StorageType SystemCapabilities::getStorageTypeForPath ( const std::string & path) const

Definition at line 2288 of file system_info_service.cpp.

References storage, and Unknown.

◆ has16GBRAM()

bool SystemCapabilities::has16GBRAM ( ) const
inline

Definition at line 516 of file system_info_service.h.

References memory.

◆ has32GBRAM()

bool SystemCapabilities::has32GBRAM ( ) const
inline

Definition at line 520 of file system_info_service.h.

References memory.

◆ hasAMDGPU()

bool SystemCapabilities::hasAMDGPU ( ) const
inline

Definition at line 468 of file system_info_service.h.

References AMD, and gpu.

◆ hasArcGPU()

bool SystemCapabilities::hasArcGPU ( ) const
inline

Definition at line 510 of file system_info_service.h.

References gpu.

◆ hasController()

bool SystemCapabilities::hasController ( ) const
inline

Definition at line 568 of file system_info_service.h.

References controllers.

◆ hasEnoughRAMFor()

bool SystemCapabilities::hasEnoughRAMFor ( uint64_t requiredMB) const
inline

Definition at line 524 of file system_info_service.h.

References memory.

◆ hasHDRMonitor()

bool SystemCapabilities::hasHDRMonitor ( ) const
inline

Definition at line 557 of file system_info_service.h.

References monitors.

◆ hasHighRefreshMonitor()

bool SystemCapabilities::hasHighRefreshMonitor ( ) const
inline

Definition at line 539 of file system_info_service.h.

References monitors.

◆ hasIntelGPU()

bool SystemCapabilities::hasIntelGPU ( ) const
inline

Definition at line 476 of file system_info_service.h.

References gpu, and Intel.

◆ hasNVIDIAGPU()

bool SystemCapabilities::hasNVIDIAGPU ( ) const
inline

Definition at line 472 of file system_info_service.h.

References gpu, and NVIDIA.

◆ hasOptimalKernelParams()

bool SystemCapabilities::hasOptimalKernelParams ( ) const
inline

Definition at line 633 of file system_info_service.h.

References kernel.

Referenced by isOptimalForGaming().

◆ hasPlayStationController()

bool SystemCapabilities::hasPlayStationController ( ) const
inline

Definition at line 581 of file system_info_service.h.

References controllers.

◆ hasRDNA2OrNewer()

bool SystemCapabilities::hasRDNA2OrNewer ( ) const
inline

Definition at line 502 of file system_info_service.h.

References gpu.

◆ hasRTXCapable()

bool SystemCapabilities::hasRTXCapable ( ) const
inline

Definition at line 506 of file system_info_service.h.

References gpu.

◆ hasVRRMonitor()

bool SystemCapabilities::hasVRRMonitor ( ) const
inline

Definition at line 548 of file system_info_service.h.

References monitors.

◆ hasXboxController()

bool SystemCapabilities::hasXboxController ( ) const
inline

Definition at line 572 of file system_info_service.h.

References controllers.

◆ isCachyOS()

bool SystemCapabilities::isCachyOS ( ) const
inline

Definition at line 492 of file system_info_service.h.

References kernel.

◆ isLaptop()

bool SystemCapabilities::isLaptop ( ) const
inline

Definition at line 596 of file system_info_service.h.

References power.

Referenced by isOptimalForGaming().

◆ isOnBattery()

bool SystemCapabilities::isOnBattery ( ) const
inline

Definition at line 592 of file system_info_service.h.

References power.

◆ isOptimalForGaming()

bool SystemCapabilities::isOptimalForGaming ( ) const
inline

◆ isPerformancePowerProfile()

bool SystemCapabilities::isPerformancePowerProfile ( ) const
inline

Definition at line 600 of file system_info_service.h.

References Performance, and power.

Referenced by isOptimalForGaming().

◆ isWayland()

bool SystemCapabilities::isWayland ( ) const
inline

Definition at line 496 of file system_info_service.h.

References displayServer, and Wayland.

Member Data Documentation

◆ controllers

std::vector<ControllerInfo> SystemCapabilities::controllers

◆ cpu

CPUInfo SystemCapabilities::cpu

Definition at line 455 of file system_info_service.h.

Referenced by isOptimalForGaming().

◆ displayServer

DisplayServer SystemCapabilities::displayServer = DisplayServer::Unknown

Definition at line 461 of file system_info_service.h.

Referenced by isWayland().

◆ gpu

◆ kernel

KernelInfo SystemCapabilities::kernel

◆ memory

MemoryInfo SystemCapabilities::memory

Definition at line 457 of file system_info_service.h.

Referenced by has16GBRAM(), has32GBRAM(), and hasEnoughRAMFor().

◆ monitors

std::vector<MonitorInfo> SystemCapabilities::monitors

◆ power

PowerInfo SystemCapabilities::power

Definition at line 459 of file system_info_service.h.

Referenced by isLaptop(), isOnBattery(), and isPerformancePowerProfile().

◆ runners

std::vector<RunnerInfo> SystemCapabilities::runners

Definition at line 462 of file system_info_service.h.

◆ storage

std::vector<StorageInfo> SystemCapabilities::storage

Definition at line 465 of file system_info_service.h.

Referenced by getStorageTypeForPath().

◆ systemReadiness

SystemReadiness SystemCapabilities::systemReadiness

Definition at line 460 of file system_info_service.h.

◆ tools

ToolAvailability SystemCapabilities::tools

Definition at line 458 of file system_info_service.h.

Referenced by canUseGameMode().


The documentation for this struct was generated from the following files: