mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-08 19:40:30 +00:00
(platform_linux.c) Fix path for sysfs_ac_adapter
This commit is contained in:
parent
0d3c1714bc
commit
1ea6c2691a
@ -1148,7 +1148,8 @@ static void check_proc_acpi_sysfs_ac_adapter(const char * node, bool *have_ac)
|
||||
ssize_t buflen = 0;
|
||||
const char *base = proc_acpi_sysfs_ac_adapter_path;
|
||||
|
||||
snprintf(path, sizeof(path), "%s/%s/%s", base, node, "online");
|
||||
snprintf(path, sizeof(path), "%s/%s", base, "online");
|
||||
printf("path: %s\n", path);
|
||||
if (!retro_fmemcpy(path, state, sizeof(state), &buflen))
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user