2000-09-16 23:23:00 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <unistd.h>
|
2004-09-29 04:52:00 +00:00
|
|
|
#include <stdlib.h> /* exit() */
|
2000-09-16 23:23:00 +00:00
|
|
|
|
|
|
|
#include "svmwgraph/svmwgraph.h"
|
|
|
|
#include "tb1_state.h"
|
2000-09-17 05:47:00 +00:00
|
|
|
#include "graphic_tools.h"
|
2000-09-16 23:23:00 +00:00
|
|
|
#include "sound.h"
|
2000-10-16 03:18:00 +00:00
|
|
|
#include "tblib.h"
|
2000-09-16 23:23:00 +00:00
|
|
|
|
2009-12-27 23:33:00 +00:00
|
|
|
int quit(tb1_state *game_state) {
|
2000-09-16 23:23:00 +00:00
|
|
|
|
2009-12-27 23:33:00 +00:00
|
|
|
int result=0;
|
2000-09-16 23:23:00 +00:00
|
|
|
|
2009-12-27 23:33:00 +00:00
|
|
|
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;
|
2000-09-16 23:23:00 +00:00
|
|
|
}
|