aboutsummaryrefslogtreecommitdiff
path: root/engines/teenagent/resources.cpp
diff options
context:
space:
mode:
authorVladimir Menshakov2009-09-15 07:41:05 +0000
committerVladimir Menshakov2009-09-15 07:41:05 +0000
commit7cbbc0ad25dde67d69dbb2f3e8da1c8a9ec4be1a (patch)
tree5c44cb4daae647089f7f075237f50af8c7110ea8 /engines/teenagent/resources.cpp
parent5605e8b74d47b66ab4ae85113176de4414f2dcf0 (diff)
downloadscummvm-rg350-7cbbc0ad25dde67d69dbb2f3e8da1c8a9ec4be1a.tar.gz
scummvm-rg350-7cbbc0ad25dde67d69dbb2f3e8da1c8a9ec4be1a.tar.bz2
scummvm-rg350-7cbbc0ad25dde67d69dbb2f3e8da1c8a9ec4be1a.zip
adapted code to comply code formatting conventions.
svn-id: r44098
Diffstat (limited to 'engines/teenagent/resources.cpp')
-rw-r--r--engines/teenagent/resources.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/teenagent/resources.cpp b/engines/teenagent/resources.cpp
index c13af1febf..21200fca83 100644
--- a/engines/teenagent/resources.cpp
+++ b/engines/teenagent/resources.cpp
@@ -30,7 +30,7 @@ namespace TeenAgent {
Resources::Resources() {}
-Resources * Resources::instance() {
+Resources *Resources::instance() {
static Resources i;
return &i;
}
@@ -47,7 +47,7 @@ void Resources::deinit() {
sam_sam.close();
}
-bool Resources::loadArchives(const ADGameDescription * gd) {
+bool Resources::loadArchives(const ADGameDescription *gd) {
Common::File dat_file;
if (!dat_file.open("teenagent.dat")) {
Common::String errorMessage = "You're missing the 'teenagent.dat' file. Get it from the ScummVM website";
@@ -55,7 +55,7 @@ bool Resources::loadArchives(const ADGameDescription * gd) {
warning("%s", errorMessage.c_str());
return false;
}
- Common::SeekableReadStream * dat = Common::wrapCompressedReadStream(&dat_file);
+ Common::SeekableReadStream *dat = Common::wrapCompressedReadStream(&dat_file);
cseg.read(dat, 0xb3b0);
dseg.read(dat, 0xe790);
eseg.read(dat, 0x8be2);
@@ -81,7 +81,7 @@ bool Resources::loadArchives(const ADGameDescription * gd) {
return true;
}
-void Resources::loadOff(Graphics::Surface &surface, byte * palette, int id) {
+void Resources::loadOff(Graphics::Surface &surface, byte *palette, int id) {
uint32 size = off.get_size(id);
if (size == 0) {
error("invalid background %d", id);
@@ -90,17 +90,17 @@ void Resources::loadOff(Graphics::Surface &surface, byte * palette, int id) {
byte buf[64768];
off.read(id, buf, sizeof(buf));
- byte * src = buf;
- byte * dst = (byte *)surface.pixels;
+ byte *src = buf;
+ byte *dst = (byte *)surface.pixels;
memcpy(dst, src, 64000);
memcpy(palette, buf + 64000, 768);
}
-Common::SeekableReadStream * Resources::loadLan(uint32 id) const {
+Common::SeekableReadStream *Resources::loadLan(uint32 id) const {
return id <= 500? loadLan000(id): lan500.getStream(id - 500);
}
-Common::SeekableReadStream * Resources::loadLan000(uint32 id) const {
+Common::SeekableReadStream *Resources::loadLan000(uint32 id) const {
switch(id) {
case 81: