| 1 |
#charset "us-ascii" |
| 2 |
|
| 3 |
#include <tadsgen.h> |
| 4 |
|
| 5 |
/* |
| 6 |
* program without including vector metaclass definition, to test |
| 7 |
* creation of metaclass globals |
| 8 |
*/ |
| 9 |
main(args) |
| 10 |
{ |
| 11 |
local result; |
| 12 |
|
| 13 |
/* say hello */ |
| 14 |
"This is main() - restartID = <<mainGlobal.restartID>>\n"; |
| 15 |
|
| 16 |
/* try saving */ |
| 17 |
result = saveGame('novec2.t3s'); |
| 18 |
if (result != nil) |
| 19 |
{ |
| 20 |
"Successfully restored!\n"; |
| 21 |
} |
| 22 |
else |
| 23 |
{ |
| 24 |
"Successfully saved - now trying restore.\n"; |
| 25 |
restoreGame('novec2.t3s', 1); |
| 26 |
} |
| 27 |
} |