mirror of
https://github.com/deater/tb1.git
synced 2025-01-12 13:30:38 +00:00
28 lines
592 B
C
28 lines
592 B
C
#include <stdio.h>
|
|
#include <unistd.h>
|
|
#include <stdlib.h> /* exit() */
|
|
|
|
#include "svmwgraph/svmwgraph.h"
|
|
#include "tb1_state.h"
|
|
#include "graphic_tools.h"
|
|
#include "sound.h"
|
|
#include "tblib.h"
|
|
|
|
int quit(tb1_state *game_state) {
|
|
|
|
int result=0;
|
|
|
|
result=are_you_sure(game_state,"QUIT??? ARE YOU",
|
|
"ABSOLUTELY SURE?",
|
|
"YES-RIGHT NOW!",
|
|
"NO--NOT YET.");
|
|
|
|
if (result) {
|
|
shutdownSound();
|
|
vmwCloseGraphics();
|
|
exit(1);
|
|
}
|
|
|
|
return 6;
|
|
}
|