mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-25 08:53:06 +02:00
Correct the names and return 0 for success
This commit is contained in:
parent
602afdcbb7
commit
b28efdb555
@ -429,7 +429,7 @@ int game_mode_context_register(GameModeContext *self, pid_t client, pid_t reques
|
||||
/* Apply io priorities */
|
||||
game_mode_apply_ioprio(self, client);
|
||||
|
||||
return true;
|
||||
return 0;
|
||||
|
||||
error_cleanup:
|
||||
if (errno != 0)
|
||||
@ -511,7 +511,7 @@ int game_mode_context_unregister(GameModeContext *self, pid_t client, pid_t requ
|
||||
game_mode_context_leave(self);
|
||||
}
|
||||
|
||||
return true;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int game_mode_context_query_status(GameModeContext *self, pid_t client, pid_t requester)
|
||||
|
@ -114,13 +114,13 @@ extern int real_gamemode_query_status(void)
|
||||
}
|
||||
|
||||
// Wrapper to call RegisterGameByPID
|
||||
extern int real_gamemode_register_start_for(pid_t pid)
|
||||
extern int real_gamemode_request_start_for(pid_t pid)
|
||||
{
|
||||
return gamemode_request("RegisterGameByPID", pid);
|
||||
}
|
||||
|
||||
// Wrapper to call UnregisterGameByPID
|
||||
extern int real_gamemode_register_end_for(pid_t pid)
|
||||
extern int real_gamemode_request_end_for(pid_t pid)
|
||||
{
|
||||
return gamemode_request("UnregisterGameByPID", pid);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user