aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sfx/softseq/amiga.cpp
diff options
context:
space:
mode:
authorMax Horn2009-05-12 23:31:55 +0000
committerMax Horn2009-05-12 23:31:55 +0000
commit05c3c6ccb3ce41dbe5605073ed54a2290525e179 (patch)
tree0d34b65732355f975e12423fc7683bb64ae14abf /engines/sci/sfx/softseq/amiga.cpp
parente3d79c58f0e94e03a8176a32ea1355e6dbb2a055 (diff)
downloadscummvm-rg350-05c3c6ccb3ce41dbe5605073ed54a2290525e179.tar.gz
scummvm-rg350-05c3c6ccb3ce41dbe5605073ed54a2290525e179.tar.bz2
scummvm-rg350-05c3c6ccb3ce41dbe5605073ed54a2290525e179.zip
SCI: Replaced SFX_OK/SFX_ERROR by Common::Error, and got rid of sfx/sfx.h
svn-id: r40517
Diffstat (limited to 'engines/sci/sfx/softseq/amiga.cpp')
-rw-r--r--engines/sci/sfx/softseq/amiga.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/sci/sfx/softseq/amiga.cpp b/engines/sci/sfx/softseq/amiga.cpp
index 11feaebd96..d097ec47f5 100644
--- a/engines/sci/sfx/softseq/amiga.cpp
+++ b/engines/sci/sfx/softseq/amiga.cpp
@@ -446,23 +446,23 @@ static instrument_t *read_instrument(Common::File &file, int *id) {
return instrument;
}
-static int ami_set_option(sfx_softseq_t *self, const char *name, const char *value) {
- return SFX_ERROR;
+static Common::Error ami_set_option(sfx_softseq_t *self, const char *name, const char *value) {
+ return Common::kUnknownError;
}
-static int ami_init(sfx_softseq_t *self, byte *patch, int patch_len, byte *patch2, int patch2_len) {
+static Common::Error ami_init(sfx_softseq_t *self, byte *patch, int patch_len, byte *patch2, int patch2_len) {
Common::File file;
byte header[40];
int i;
if (!file.open("bank.001")) {
sciprintf("[sfx:seq:amiga] Error: file bank.001 not found\n");
- return SFX_ERROR;
+ return Common::kUnknownError;
}
if (file.read(header, 40) < 40) {
sciprintf("[sfx:seq:amiga] Error: failed to read header of file bank.001\n");
- return SFX_ERROR;
+ return Common::kUnknownError;
}
for (i = 0; i < 256; i++)
@@ -491,18 +491,18 @@ static int ami_init(sfx_softseq_t *self, byte *patch, int patch_len, byte *patch
if (!instrument) {
sciprintf("[sfx:seq:amiga] Error: failed to read bank.001\n");
- return SFX_ERROR;
+ return Common::kUnknownError;
}
if (id < 0 || id > 255) {
sciprintf("[sfx:seq:amiga] Error: instrument ID out of bounds\n");
- return SFX_ERROR;
+ return Common::kUnknownError;
}
bank.instruments[id] = instrument;
}
- return SFX_OK;
+ return Common::kNoError;
}
static void ami_exit(sfx_softseq_t *self) {