Changed errors to be fatal, as most of them are fatal conditions. Some of them have been changed to warnings for now, as they occur in certain games (e.g. SQ4 floppy, SQ4 CD and KQ5 CD)
svn-id: r40675
This commit is contained in:
parent
243bb790e8
commit
1239949ef2
10 changed files with 76 additions and 75 deletions
|
@ -112,14 +112,14 @@ static int internal_stringfrag_length(EngineState *s, reg_t *buffer) {
|
|||
int result = 0;
|
||||
|
||||
if (buffer == NULL) {
|
||||
// SCIkwarn(SCIkERROR, "Error: Invalid stringfrag handle");
|
||||
// error("Error: Invalid stringfrag handle");
|
||||
return 0;
|
||||
}
|
||||
|
||||
while ((buffer->offset & 0xff00) != 0 &&
|
||||
(buffer->offset & 0x00ff) != 0) {
|
||||
if (buffer->segment != STRINGFRAG_SEGMENT) {
|
||||
// SCIkwarn(SCIkERROR, "Error: Invalid stringfrag handle");
|
||||
// error("Error: Invalid stringfrag handle");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -128,7 +128,7 @@ static int internal_stringfrag_length(EngineState *s, reg_t *buffer) {
|
|||
}
|
||||
|
||||
if (buffer->segment != STRINGFRAG_SEGMENT) {
|
||||
SCIkwarn(SCIkERROR, "Error: Invalid stringfrag handle");
|
||||
error("Error: Invalid stringfrag handle");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue