mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-27 01:41:45 +02:00
Prevent platform profile error on unsupported systems
If a system does not support setting the platform profile (i.e., does not have the file /sys/firmware/acpi/platform_profile), then everything that interacts with it is skipped to prevent errors. This situation is more common than I expected.[1] [1] https://github.com/FeralInteractive/gamemode/issues/524
This commit is contained in:

committed by
afayaz-feral

parent
5f691c3171
commit
499af4c7bb
@ -32,12 +32,18 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
#pragma once
|
||||
|
||||
#include <linux/limits.h>
|
||||
#include <unistd.h>
|
||||
|
||||
/**
|
||||
* Path for platform profile
|
||||
*/
|
||||
extern const char *profile_path;
|
||||
|
||||
/**
|
||||
* Check if platform profile file exists
|
||||
*/
|
||||
int profile_exists(void);
|
||||
|
||||
/**
|
||||
* Get the current platform profile state
|
||||
*/
|
||||
|
Reference in New Issue
Block a user