aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/chunker.cpp
diff options
context:
space:
mode:
authoruruk2013-06-21 14:08:10 +0200
committeruruk2013-06-21 14:08:10 +0200
commitaeff42074ade0ab29e8130a6b92ffe73f94070b7 (patch)
tree5b1375688b87a8bab54047d121bb3bfc1fc88c6c /engines/avalanche/chunker.cpp
parent1ce5e3bc3ff9082e057475bb5cfbc15a212f43eb (diff)
downloadscummvm-rg350-aeff42074ade0ab29e8130a6b92ffe73f94070b7.tar.gz
scummvm-rg350-aeff42074ade0ab29e8130a6b92ffe73f94070b7.tar.bz2
scummvm-rg350-aeff42074ade0ab29e8130a6b92ffe73f94070b7.zip
AVALANCHE: Reorganise source files.
Diffstat (limited to 'engines/avalanche/chunker.cpp')
-rw-r--r--engines/avalanche/chunker.cpp110
1 files changed, 0 insertions, 110 deletions
diff --git a/engines/avalanche/chunker.cpp b/engines/avalanche/chunker.cpp
deleted file mode 100644
index 68d269def9..0000000000
--- a/engines/avalanche/chunker.cpp
+++ /dev/null
@@ -1,110 +0,0 @@
-/* ScummVM - Graphic Adventure Engine
- *
- * ScummVM is the legal property of its developers, whose names
- * are too numerous to list here. Please refer to the COPYRIGHT
- * file distributed with this source distribution.
- *
- * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- */
-
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
-namespace Avalanche {
-
-enum flavourtype {ch_ega, ch_bgi, last_flavourtype};
-
-struct chunkblocktype {
- flavourtype flavour;
- integer x, y;
- integer xl, yl;
- longint size;
- boolean natural;
-
- boolean memorise; /* Hold it in memory? */
-};
-
-untyped_file f;
-string fn;
-byte num_chunks, fv;
-longint offset;
-chunkblocktype ch;
-
-int main(int argc, const char *argv[]) {
- pio_initialize(argc, argv);
- output << NL;
- output << "CHUNKER 12/3/1995 TT" << NL;
- output << NL;
-
- if (paramcount != 1) {
- output << "which chunk file?" << NL;
- exit(0);
- }
-
- fn = paramstr(1);
- assign(f, fn);
- reset(f, 1);
- output << "----- In chunk file " << fn << ", there are: -----" << NL;
-
- seek(f, 44);
- blockread(f, num_chunks, 1);
- output << format(num_chunks, 4) << " chunks:" << NL;
-
- output << " No Hdr Offset Flvr Mem Nat X Y Width Height Size of image" << NL;
-
- for (fv = 1; fv <= num_chunks; fv ++) {
-
- output << "Ch" << format(fv, 2) << ':';
-
- seek(f, 41 + fv * 4);
-
- output << format(41 + fv * 4, 4);
- blockread(f, offset, 4);
- output << format(offset, 10);
-
- seek(f, offset);
- blockread(f, ch, sizeof(ch));
- {
- if (ch.flavour == ch_bgi)
- output << " ch_BGI";
- else
- output << " ch_EGA";
-
- if (ch.memorise)
- output << " yes";
- else
- output << " no ";
-
- if (ch.natural)
- output << " yes";
- else
- output << " no ";
-
- output << format(ch.x, 7) << format(ch.y, 7) << format(ch.xl, 7) << format(ch.yl, 7) << format(ch.size, 10);
- }
-
- output << NL;
- }
-
- output << "---ENDS---" << NL;
-
- close(f);
- return EXIT_SUCCESS;
-}
-
-} // End of namespace Avalanche. \ No newline at end of file