1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #include "gamemode_client.h"
- #include <stdio.h>
- #include <stdlib.h>
- #include <unistd.h>
- int main(void)
- {
-
- if (gamemode_request_start() != 0) {
- fprintf(stderr, "Failed to request gamemode start: %s...\n", gamemode_error_string());
- return EXIT_FAILURE;
- }
-
- sleep(10);
-
- if (gamemode_request_end() != 0) {
- fprintf(stderr, "Failed to request gamemode end: %s...\n", gamemode_error_string());
- return EXIT_FAILURE;
- }
- return EXIT_SUCCESS;
- }
|