tb1/quit.c

27 lines
580 B
C
Raw Normal View History

2000-09-16 23:23:00 +00:00
#include <stdio.h>
#include <unistd.h>
#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
2000-09-17 05:47:00 +00:00
int quit(tb1_state *game_state)
2000-09-16 23:23:00 +00:00
{
2000-10-16 03:18:00 +00:00
int result=0;
2000-09-16 23:23:00 +00:00
2000-10-16 03:18:00 +00:00
result=are_you_sure(game_state,"QUIT??? ARE YOU",
"ABSOLUTELY SURE?",
"YES-RIGHT NOW!",
"NO--NOT YET.");
2000-09-16 23:23:00 +00:00
2000-10-16 03:18:00 +00:00
if (result) {
2000-09-16 23:23:00 +00:00
shutdownSound();
2000-10-15 05:04:00 +00:00
vmwCloseGraphics();
2000-09-16 23:23:00 +00:00
exit(1);
}
else return 6;
}