tb1/quit.c
Vince Weaver bafcd1643e v2.9.9a
2012-11-30 23:11:44 -05:00

27 lines
580 B
C

#include <stdio.h>
#include <unistd.h>
#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);
}
else return 6;
}