diff options
author | Eugene Sandulenko | 2005-04-12 00:25:27 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2005-04-12 00:25:27 +0000 |
commit | a0ee8f6ed6229d7275291cc784ad122d17a3cdb8 (patch) | |
tree | a1772f3837c3fab130f4027cc1939b40fe6ebf4f | |
parent | 1f6ca5d898d7a482a52a0ace481612ff06ff573d (diff) | |
download | scummvm-rg350-a0ee8f6ed6229d7275291cc784ad122d17a3cdb8.tar.gz scummvm-rg350-a0ee8f6ed6229d7275291cc784ad122d17a3cdb8.tar.bz2 scummvm-rg350-a0ee8f6ed6229d7275291cc784ad122d17a3cdb8.zip |
Remove unneeded files.
svn-id: r17558
-rw-r--r-- | gob/module.mk | 1 | ||||
-rw-r--r-- | gob/resource.cpp | 98 | ||||
-rw-r--r-- | gob/resource.h | 34 |
3 files changed, 0 insertions, 133 deletions
diff --git a/gob/module.mk b/gob/module.mk index fc3d1a43b6..74f34da27e 100644 --- a/gob/module.mk +++ b/gob/module.mk @@ -15,7 +15,6 @@ MODULE_OBJS := \ gob/pack.o \ gob/palanim.o \ gob/parse.o \ - gob/resource.o \ gob/scenery.o \ gob/util.o \ gob/video.o \ diff --git a/gob/resource.cpp b/gob/resource.cpp deleted file mode 100644 index eb6e09ffe0..0000000000 --- a/gob/resource.cpp +++ /dev/null @@ -1,98 +0,0 @@ -/* ScummVM - Scumm Interpreter - * Copyright (C) 2004 Ivan Dubrov - * Copyright (C) 2004-2005 The ScummVM project - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - * $Header$ - * - */ -#include "gob/gob.h" -#include "gob/global.h" -#include "gob/video.h" -#include "gob/resource.h" - -namespace Gob { - -char *resourceBuf = 0; - -static char *resourcePtr; - -void res_Free(void) { - if (resourceBuf != 0) { - free(resourceBuf); - resourceBuf = 0; - } -} - -void res_Init(void) { - File f; - uint32 fileSize; - if (!f.open("ALL.ASK", File::kFileReadMode)) { - error("ALL.ASK is missing."); - } - fileSize = f.size(); - resourceBuf = (char *)malloc(fileSize * 4); - f.read(resourceBuf, fileSize); - f.close(); -} - -void res_Search(char resid) { - int16 lang; - if (resourceBuf == 0) - res_Init(); - - lang = (language == 5) ? 2 : language; - - resourcePtr = resourceBuf; - while (*resourcePtr != '#') { - if (resourcePtr[0] == '@' && resourcePtr[1] == resid && - ((int16)lang + '0') == (int16)resourcePtr[2]) { - resourcePtr += 5; - return; - - } - resourcePtr++; - } - resourcePtr = resourceBuf; - while (resourcePtr[0] != '#') { - if (resourcePtr[0] == '@' && resourcePtr[1] == resid) { - resourcePtr += 5; - return; - } - resourcePtr++; - } - return; -} - -void res_Get(char *buf) { - int16 i = 0; - while (1) { - if (*resourcePtr == '\r') - resourcePtr++; - - if (*resourcePtr == '\n') { - resourcePtr++; - break; - } - - buf[i] = *resourcePtr; - i++; - resourcePtr++; - } - buf[i] = 0; -} - -} // End of namespace Gob diff --git a/gob/resource.h b/gob/resource.h deleted file mode 100644 index 57a0f8754b..0000000000 --- a/gob/resource.h +++ /dev/null @@ -1,34 +0,0 @@ -/* ScummVM - Scumm Interpreter - * Copyright (C) 2004 Ivan Dubrov - * Copyright (C) 2004-2005 The ScummVM project - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - * $Header$ - * - */ -#ifndef GOB_RESOURCE_H -#define GOB_RESOURCE_H - -namespace Gob { - -void res_Free(void); -void res_Init(void); -void res_Search(char resid); -void res_Get(char *buf); - -} // End of namespace Gob - -#endif |