mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-26 17:31:45 +02:00
Apply clang format to files
Also add brackets for all scopes at the same time
This commit is contained in:
@ -30,19 +30,21 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#include "gamemode_client.h"
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int main(){
|
||||
int main()
|
||||
{
|
||||
// Request we start game mode
|
||||
if( gamemode_request_start() != 0 )
|
||||
printf( "Failed to request gamemode start: %s...\n", gamemode_error_string() );
|
||||
if (gamemode_request_start() != 0) {
|
||||
printf("Failed to request gamemode start: %s...\n", gamemode_error_string());
|
||||
}
|
||||
|
||||
// Simulate running a game
|
||||
sleep( 10 );
|
||||
sleep(10);
|
||||
|
||||
// Request we end game mode (optional)
|
||||
if( gamemode_request_end() != 0 )
|
||||
printf( "Failed to request gamemode end: %s...\n", gamemode_error_string() );
|
||||
if (gamemode_request_end() != 0) {
|
||||
printf("Failed to request gamemode end: %s...\n", gamemode_error_string());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user