Skip to content

Commit

Permalink
DREAMWEB: Untangle namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
wjp committed Dec 5, 2011
1 parent f28c048 commit 585bd7b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
4 changes: 2 additions & 2 deletions devtools/tasmrecover/tasm/cpp.py
Expand Up @@ -612,10 +612,10 @@ def generate(self, start):
self.hd.write(
"""\n#include "dreamweb/runtime.h"
namespace %s {
#include "structs.h"
namespace %s {
class %sContext : public Context {
public:
void __start();
Expand Down
8 changes: 4 additions & 4 deletions engines/dreamweb/dreamgen.h
Expand Up @@ -27,10 +27,10 @@

#include "dreamweb/runtime.h"

namespace DreamGen {

#include "structs.h"

namespace DreamGen {

class DreamGenContext : public Context {
public:
void __start();
Expand Down Expand Up @@ -578,6 +578,7 @@ class DreamGenContext : public Context {
void introMonks1();
void resetLocation();
void introMonks2();
void advisor();
void additionalText();
void useElevator5();
void useElevator4();
Expand Down Expand Up @@ -659,7 +660,7 @@ class DreamGenContext : public Context {
void lockLightOff();
void wearWatch();
void runIntroSeq();
void advisor();
void nextColon();
void attendant();
void monks2text();
void clearPalette();
Expand All @@ -668,7 +669,6 @@ class DreamGenContext : public Context {
void openHotelDoor();
void blank();
void drinker();
void nextColon();
void placeFreeObject();
void allPalette();
void adjustRight();
Expand Down
4 changes: 4 additions & 0 deletions engines/dreamweb/structs.h
Expand Up @@ -26,6 +26,8 @@
#include "common/endian.h"
#include "common/rect.h"

namespace DreamGen {

struct Sprite {
uint16 _updateCallback;
uint16 updateCallback() const { return READ_LE_UINT16(&_updateCallback); }
Expand Down Expand Up @@ -288,5 +290,7 @@ struct Atmosphere {
uint8 _repeat;
};

}

#endif

2 changes: 1 addition & 1 deletion engines/dreamweb/stubs.h
Expand Up @@ -449,7 +449,7 @@
void readKey();
void hangOne(uint16 delay);
void hangOne();
void showPCX(const ::Common::String &name);
void showPCX(const Common::String &name);
void showPCX();
void bibleQuote();
void realCredits();
Expand Down
2 changes: 1 addition & 1 deletion engines/dreamweb/vgagrafx.cpp
Expand Up @@ -219,7 +219,7 @@ static Common::String getFilename(Context &context) {
return name;
}

void DreamGenContext::showPCX(const ::Common::String &name) {
void DreamGenContext::showPCX(const Common::String &name) {
Common::File pcxFile;

if (!pcxFile.open(name)) {
Expand Down

0 comments on commit 585bd7b

Please sign in to comment.