mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-02-16 10:30:47 +00:00
added error msg if no access to /dev/amvideo
This commit is contained in:
@@ -58,6 +58,9 @@ enum platform platform_check(char* name) {
|
||||
if (handle == NULL){
|
||||
fprintf(stderr, "Error loading libmoonlight-aml.so \n");
|
||||
}
|
||||
if (access("/dev/amvideo", F_OK) == -1){
|
||||
fprintf(stderr, "Error: no access to /dev/amvideo \n");
|
||||
}
|
||||
if (handle != NULL && access("/dev/amvideo", F_OK) != -1)
|
||||
return AML;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user