diff options
author | Chris Apers | 2005-09-03 16:24:58 +0000 |
---|---|---|
committer | Chris Apers | 2005-09-03 16:24:58 +0000 |
commit | be9d8951eba4320f0c33e6f87c2ffb32a4ea41b2 (patch) | |
tree | ef00645269f3c6df82399bfa37913566900586a9 | |
parent | 1d6ecabfbee286f571bcc24f536039f2aa5667a3 (diff) | |
download | scummvm-rg350-be9d8951eba4320f0c33e6f87c2ffb32a4ea41b2.tar.gz scummvm-rg350-be9d8951eba4320f0c33e6f87c2ffb32a4ea41b2.tar.bz2 scummvm-rg350-be9d8951eba4320f0c33e6f87c2ffb32a4ea41b2.zip |
Change PalmOS ident
svn-id: r18748
-rw-r--r-- | backends/fs/palmos/palmos-fs.cpp | 18 | ||||
-rw-r--r-- | graphics/scummfont.cpp | 4 | ||||
-rw-r--r-- | gui/ListWidget.cpp | 2 | ||||
-rw-r--r-- | gui/console.cpp | 2 | ||||
-rw-r--r-- | gui/options.cpp | 4 |
5 files changed, 15 insertions, 15 deletions
diff --git a/backends/fs/palmos/palmos-fs.cpp b/backends/fs/palmos/palmos-fs.cpp index 99ebe4faa8..2263d8e4d5 100644 --- a/backends/fs/palmos/palmos-fs.cpp +++ b/backends/fs/palmos/palmos-fs.cpp @@ -18,10 +18,10 @@ * $Header$ */ -#if defined(__PALMOS_TRAPS__) +#if defined(PALMOS_MODE) #include "common/stdafx.h" -#include "../fs.h" +#include "fs/fs.h" #include <stdio.h> #include <stdlib.h> @@ -36,7 +36,7 @@ protected: bool _isValid; bool _isPseudoRoot; String _path; - + public: PalmOSFilesystemNode(); PalmOSFilesystemNode(const Char *path); @@ -71,7 +71,7 @@ void PalmOSFilesystemNode::addFile(FSList &list, ListMode mode, const char *base if (entry._isDirectory) entry._path += "/"; - entry._isValid = true; + entry._isValid = true; entry._isPseudoRoot = false; list.push_back(wrap(new PalmOSFilesystemNode(&entry))); } @@ -107,11 +107,11 @@ FSList PalmOSFilesystemNode::listDir(ListMode mode) const { desc.nameP = nameP; desc.nameBufLen = 256; - e = VFSFileOpen(gVars->volRefNum, _path.c_str(), vfsModeRead, &handle); + e = VFSFileOpen(gVars->VFS.volRefNum, _path.c_str(), vfsModeRead, &handle); if (e) return myList; - + while(dirIterator != expIteratorStop) { e = VFSDirEntryEnumerate(handle, &dirIterator, &desc); if (!e) { @@ -137,11 +137,11 @@ const char *lastPathComponent(const Common::String &str) { AbstractFilesystemNode *PalmOSFilesystemNode::parent() const { PalmOSFilesystemNode *p = 0; - + if (!_isPseudoRoot) { const char *start = _path.c_str(); const char *end = lastPathComponent(_path); - + p = new PalmOSFilesystemNode(); p->_path = String(start, end - start); p->_isValid = true; @@ -152,4 +152,4 @@ AbstractFilesystemNode *PalmOSFilesystemNode::parent() const { return p; } -#endif // __PALMOS_TRAPS__ +#endif // PALMOS_MODE diff --git a/graphics/scummfont.cpp b/graphics/scummfont.cpp index 34de7bfcf8..71625d0ce5 100644 --- a/graphics/scummfont.cpp +++ b/graphics/scummfont.cpp @@ -23,7 +23,7 @@ namespace Graphics { -#ifdef __PALM_OS__ +#ifdef PALMOS_68K static const byte *guifont; #else // Built-in font @@ -95,7 +95,7 @@ void ScummFont::drawChar(Surface *dst, byte chr, int tx, int ty, uint32 color) c } // End of namespace Graphics -#ifdef __PALM_OS__ +#ifdef PALMOS_68K #include "scumm_globals.h" _GINIT(ScummFont) diff --git a/gui/ListWidget.cpp b/gui/ListWidget.cpp index faa70b3cec..bb785e8212 100644 --- a/gui/ListWidget.cpp +++ b/gui/ListWidget.cpp @@ -261,7 +261,7 @@ bool ListWidget::handleKeyDown(uint16 ascii, int keycode, int modifiers) { _scrollBar->draw(); } -#if !defined(__PALM_OS__) +#if !defined(PALMOS_MODE) // not done on PalmOS because keyboard is emulated and keyup is not generated _currentKeyDown = keycode; #endif diff --git a/gui/console.cpp b/gui/console.cpp index eaa201860a..3bff410edb 100644 --- a/gui/console.cpp +++ b/gui/console.cpp @@ -568,7 +568,7 @@ int ConsoleDialog::printf(const char *format, ...) { } int ConsoleDialog::vprintf(const char *format, va_list argptr) { -#ifdef __PALM_OS__ +#ifdef PALMOS_68K char buf[256]; #else char buf[2048]; diff --git a/gui/options.cpp b/gui/options.cpp index 1b1a1304ad..0eeae4f4ca 100644 --- a/gui/options.cpp +++ b/gui/options.cpp @@ -33,13 +33,13 @@ #include "sound/mididrv.h" #include "sound/mixer.h" -#if (!( defined(__PALM_OS__) || defined(__DC__) || defined(__GP32__) || defined(__amigaos4__) ) && !defined(_MSC_VER)) +#if (!( defined(PALMOS_MODE) || defined(__DC__) || defined(__GP32__) || defined(__amigaos4__) ) && !defined(_MSC_VER)) #include <sys/param.h> #include <unistd.h> #endif #if !(defined(MAXPATHLEN)) -#ifndef __PALM_OS__ +#ifndef PALMOS_68K #define MAXPATHLEN 1024 #else #define MAXPATHLEN 256 |