Merge branch 'main' of github.com:Polyfrost/OneLauncher
This commit is contained in:
commit
f46a63bb07
2 changed files with 644 additions and 721 deletions
1361
apps/frontend/src/bindings.ts
generated
1361
apps/frontend/src/bindings.ts
generated
File diff suppressed because it is too large
Load diff
|
|
@ -3,13 +3,13 @@ use std::ffi::c_int;
|
|||
|
||||
#[link(name = "stub", kind = "static")]
|
||||
extern "C" {
|
||||
fn gamemode_request_start_for_wrapper(pid: pid_t) -> c_int;
|
||||
fn gamemode_start_for_wrapper(pid: pid_t) -> c_int;
|
||||
}
|
||||
|
||||
pub fn request_start_for_wrapper(pid: u32) -> Result<(), String> {
|
||||
match pid.try_into() {
|
||||
Ok(signed) => unsafe {
|
||||
let result = gamemode_request_start_for_wrapper(signed);
|
||||
let result = gamemode_start_for_wrapper(signed);
|
||||
if result == 0 {
|
||||
Ok(())
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue