mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-26 17:31:45 +02:00
Add gamemode_query_status and teach gamemoded '-s'
This allows the client to query the daemon about the status of gamemode. Returns the following: 0 if gamemode is inactive 1 if gamemode is active 2 if gamemode is active and this client is registered -1 if the query failed Passing -s to gamemoded will simply query and print the current status. Allows for more comprehensive testing when using 'gamemoded -r' as well as more reactionary program behaviour
This commit is contained in:
@ -22,6 +22,9 @@ Log to syslog
|
||||
.B \-r
|
||||
Request gamemode and wait for any signal
|
||||
.TP 8
|
||||
.B \-s
|
||||
Query the current status of gamemode
|
||||
.TP 8
|
||||
.B \-h
|
||||
Print help text
|
||||
.TP 8
|
||||
|
Reference in New Issue
Block a user