aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/Ad/AdResponseBox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/wintermute/Ad/AdResponseBox.cpp')
-rw-r--r--engines/wintermute/Ad/AdResponseBox.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/wintermute/Ad/AdResponseBox.cpp b/engines/wintermute/Ad/AdResponseBox.cpp
index 39caffe00f..bf449214e1 100644
--- a/engines/wintermute/Ad/AdResponseBox.cpp
+++ b/engines/wintermute/Ad/AdResponseBox.cpp
@@ -187,7 +187,7 @@ HRESULT CAdResponseBox::CreateButtons() {
//////////////////////////////////////////////////////////////////////////
-HRESULT CAdResponseBox::LoadFile(const char *Filename) {
+HRESULT CAdResponseBox::loadFile(const char *Filename) {
byte *Buffer = Game->_fileManager->readWholeFile(Filename);
if (Buffer == NULL) {
Game->LOG(0, "CAdResponseBox::LoadFile failed for file '%s'", Filename);
@@ -199,7 +199,7 @@ HRESULT CAdResponseBox::LoadFile(const char *Filename) {
_filename = new char [strlen(Filename) + 1];
strcpy(_filename, Filename);
- if (FAILED(ret = LoadBuffer(Buffer, true))) Game->LOG(0, "Error parsing RESPONSE_BOX file '%s'", Filename);
+ if (FAILED(ret = loadBuffer(Buffer, true))) Game->LOG(0, "Error parsing RESPONSE_BOX file '%s'", Filename);
delete [] Buffer;
@@ -223,7 +223,7 @@ TOKEN_DEF(VERTICAL_ALIGN)
TOKEN_DEF(EDITOR_PROPERTY)
TOKEN_DEF_END
//////////////////////////////////////////////////////////////////////////
-HRESULT CAdResponseBox::LoadBuffer(byte *Buffer, bool Complete) {
+HRESULT CAdResponseBox::loadBuffer(byte *Buffer, bool Complete) {
TOKEN_TABLE_START(commands)
TOKEN_TABLE(RESPONSE_BOX)
TOKEN_TABLE(TEMPLATE)
@@ -255,13 +255,13 @@ HRESULT CAdResponseBox::LoadBuffer(byte *Buffer, bool Complete) {
while ((cmd = parser.GetCommand((char **)&Buffer, commands, (char **)&params)) > 0) {
switch (cmd) {
case TOKEN_TEMPLATE:
- if (FAILED(LoadFile((char *)params))) cmd = PARSERR_GENERIC;
+ if (FAILED(loadFile((char *)params))) cmd = PARSERR_GENERIC;
break;
case TOKEN_WINDOW:
delete _window;
_window = new CUIWindow(Game);
- if (!_window || FAILED(_window->LoadBuffer(params, false))) {
+ if (!_window || FAILED(_window->loadBuffer(params, false))) {
delete _window;
_window = NULL;
cmd = PARSERR_GENERIC;
@@ -311,7 +311,7 @@ HRESULT CAdResponseBox::LoadBuffer(byte *Buffer, bool Complete) {
case TOKEN_CURSOR:
delete _cursor;
_cursor = new CBSprite(Game);
- if (!_cursor || FAILED(_cursor->LoadFile((char *)params))) {
+ if (!_cursor || FAILED(_cursor->loadFile((char *)params))) {
delete _cursor;
_cursor = NULL;
cmd = PARSERR_GENERIC;