ScummVM API documentation
errors.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef SLUDGE_ERRRORS_H
23 #define SLUDGE_ERRRORS_H
24 
25 namespace Sludge {
26 
27 #define _NO_MEMORY_GENERAL_ "\n\nTry closing down any programs you don't really need running (or freeing up a bit of disk space, which will give you more virtual memory - that should help too)."
28 
29 //---------------------------------------
30 // Fatal errors
31 //---------------------------------------
32 
33 #define ERROR_VERSION_TOO_LOW_1 "This SLUDGE file requires a more recent version of the SLUDGE engine"
34 #define ERROR_VERSION_TOO_LOW_2 "(it was created for v%i.%i).\n\nVisit http://opensludge.github.io/ to download the most recent version."
35 #define ERROR_VERSION_TOO_HIGH_1 "This SLUDGE file was created for an older version of the SLUDGE engine"
36 #define ERROR_VERSION_TOO_HIGH_2 "(v%i.%i).\n\nPlease contact the author of this game to obtain a version compatible with your SLUDGE engine (v" TEXT_VERSION ")."
37 #define ERROR_BAD_HEADER "Bad header information... this isn't a valid SLUDGE game"
38 #define ERROR_HACKER "What have you been up to? Think we're a hacker, do we? Nice try."
39 
40 #define ERROR_GAME_LOAD_NO "This isn't a SLUDGE saved game!\n"
41 #define ERROR_GAME_LOAD_WRONG "Can't load this saved game! It was either created by...\n\n (a) a different SLUDGE game to the one which you're playing, or...\n (b) a different (newer or older) version of the same game.\n\nFilename"
42 #define ERROR_GAME_SAVE_FROZEN "Can't save games while I'm frozen"
43 #define ERROR_GAME_LOAD_CORRUPT "This saved game appears to be corrupted"
44 
45 #define ERROR_NON_EMPTY_STACK "Returning from function with non-empty stack"
46 #define ERROR_UNKNOWN_MCODE "Unknown SLUDGE machine code"
47 #define ERROR_CALL_NONFUNCTION "Call of non-function"
48 #define ERROR_INCDEC_UNKNOWN "Tried to increment/decrement index of an undefined variable"
49 #define ERROR_INDEX_EMPTY "Tried to index an empty stack"
50 #define ERROR_INDEX_NONSTACK "Tried to index a non-stack variable"
51 #define ERROR_NOSTACK "Corrupt file - no stack"
52 #define ERROR_UNKNOWN_CODE "Unimplemented internal SLUDGE command code."
53 #define ERROR_OUT_OF_MEMORY "Out of memory!" _NO_MEMORY_GENERAL_
54 
55 #define ERROR_MUSIC_MEMORY_LOW "Your computer doesn't have enough memory available to load a music resource that needs playing." _NO_MEMORY_GENERAL_
56 #define ERROR_SOUND_MEMORY_LOW "Your computer doesn't have enough memory available to load a sound resource that needs playing." _NO_MEMORY_GENERAL_
57 #define ERROR_MUSIC_UNKNOWN "I can't understand a piece of music which I've been told to play!\n\n" \
58  "Maybe it's stored in a format that SLUDGE doesn't know about... " \
59  "make sure you've got a recent version of the SLUDGE engine from http://opensludge.github.io/. " \
60  "Failing that, maybe the resource in question isn't a valid music format at all... in which case, contact the game's author and tell them what's happened."
61 #define ERROR_SOUND_UNKNOWN "I can't understand a sample which I've been told to play!\nMake sure you've got the latest SLUDGE engine from http://opensludge.github.io/. Failing that, maybe the resource in question isn't a valid sound at all... in which case, contact the game's author and tell them what's happened."
62 #define ERROR_MUSIC_ODDNESS "I can't load a music resource I've been told to play. Sorry."
63 #define ERROR_SOUND_ODDNESS "I can't load a sound resource I've been told to play. Sorry."
64 #define ERROR_MOVIE_ODDNESS "I can't load a music resource I've been told to play. Sorry."
65 
66 //---------------------------------------
67 // Startup warnings
68 //---------------------------------------
69 
70 #define WARNING_BASS_WRONG_VERSION "Incompatible version of BASS.DLL found!"
71 #define WARNING_BASS_FAIL "Can't initialise sound engine."
72 
73 } // End of namespace Sludge
74 
75 #endif
Definition: builtin.h:27