mirror of
https://github.com/deater/tb1.git
synced 2024-11-19 12:31:56 +00:00
27 lines
580 B
C
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;
|
|
}
|