[Scummvm-cvs-logs] SF.net SVN: scummvm:[34730] scummvm/branches/gsoc2008-vkeybd
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Fri Oct 3 16:25:06 CEST 2008
Revision: 34730
http://scummvm.svn.sourceforge.net/scummvm/?rev=34730&view=rev
Author: fingolfin
Date: 2008-10-03 14:25:03 +0000 (Fri, 03 Oct 2008)
Log Message:
-----------
Merged revisions 34656-34661,34663-34664,34671-34672,34674-34676,34678-34686,34688-34689,34691-34698,34700-34705,34707-34713,34715-34722,34725 via svnmerge from
https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/trunk
........
r34656 | eriktorbjorn | 2008-09-27 19:25:40 +0200 (Sa, 27 Sep 2008) | 2 lines
Fixed typos.
........
r34657 | eriktorbjorn | 2008-09-27 19:47:22 +0200 (Sa, 27 Sep 2008) | 2 lines
Allow quitting or returning to the launcher while cutscenes are playing.
........
r34658 | eriktorbjorn | 2008-09-27 19:51:22 +0200 (Sa, 27 Sep 2008) | 2 lines
Slight simplification of last commit.
........
r34659 | fingolfin | 2008-09-27 20:32:01 +0200 (Sa, 27 Sep 2008) | 1 line
Modified Common::SearchSet to take signed integer priorities, for convenience (so that one can add archives with less-than-default priority)
........
r34660 | fingolfin | 2008-09-27 20:34:24 +0200 (Sa, 27 Sep 2008) | 1 line
Fixed a nasty bug in SearchManager::addDirectory; made the 'char' constructor of Common::String explicit, to avoid such bugs in the future
........
r34661 | drmccoy | 2008-09-27 22:04:04 +0200 (Sa, 27 Sep 2008) | 2 lines
Added a spanish floppy version of Lost in Time, as supplied by goodoldgeorg in bug report #2105220
........
r34663 | fingolfin | 2008-09-28 01:00:46 +0200 (So, 28 Sep 2008) | 1 line
Changed Common::File to use SearchMan
........
r34664 | fingolfin | 2008-09-28 01:27:01 +0200 (So, 28 Sep 2008) | 1 line
SCUMM: Use FilesystemNode::openForReading instead of Common::File::open(FilesystemNode) in the detector
........
r34671 | john_doe | 2008-09-28 22:02:01 +0200 (So, 28 Sep 2008) | 1 line
Return 32000 in sfGetCdTime instead of 0; this fixes the Manhole intro/credits (until the function is actually implemented)
........
r34672 | sev | 2008-09-28 23:07:41 +0200 (So, 28 Sep 2008) | 2 lines
Add Italian C64 Zak
........
r34674 | sev | 2008-09-28 23:53:14 +0200 (So, 28 Sep 2008) | 2 lines
Fix bug #2043489: DRASCULA: Cannot disable speech
........
r34675 | sev | 2008-09-29 00:07:16 +0200 (Mo, 29 Sep 2008) | 3 lines
- Renamed withVoices to _subtitlesDisabled as it reflect the true meaning.
- Allowed to disable subtitles from options dialogs including RTL.
........
r34676 | sev | 2008-09-29 00:19:11 +0200 (Mo, 29 Sep 2008) | 2 lines
Use better "silence" without clicks when speech is disabled.
........
r34678 | fingolfin | 2008-09-29 12:29:01 +0200 (Mo, 29 Sep 2008) | 1 line
Added FIXME to GP2x port
........
r34679 | fingolfin | 2008-09-29 12:30:31 +0200 (Mo, 29 Sep 2008) | 1 line
Add priority parameter to the SearchMan API
........
r34680 | fingolfin | 2008-09-29 12:32:06 +0200 (Mo, 29 Sep 2008) | 1 line
File::open no longer falls back to searching the current dir (if this causes any regressions, please report them; don't work around them, don't revert this change, without discussing it first)
........
r34681 | fingolfin | 2008-09-29 12:49:36 +0200 (Mo, 29 Sep 2008) | 1 line
Don't subclass ArjFile from Common::File (there seems to be no good reason for it). BTW, this code is an abomination and should be replaced by an Archive/SearchSet approach
........
r34682 | fingolfin | 2008-09-29 13:01:25 +0200 (Mo, 29 Sep 2008) | 1 line
Added const qualifiers
........
r34683 | fingolfin | 2008-09-29 13:02:11 +0200 (Mo, 29 Sep 2008) | 1 line
SCUMM HE: Fixed leak in Win32ResExtractor::extractResource_, use _filename instead of File::name
........
r34684 | fingolfin | 2008-09-29 13:03:10 +0200 (Mo, 29 Sep 2008) | 1 line
Added const qualifiers
........
r34685 | fingolfin | 2008-09-29 13:07:39 +0200 (Mo, 29 Sep 2008) | 1 line
Don't use File::name() needlessly (i.e. if you still know which file you just opened :)
........
r34686 | cyx | 2008-09-29 21:09:56 +0200 (Mo, 29 Sep 2008) | 1 line
add constructor to SearchSet::Node for proper init of structure members with gcc 3.4.x (see tracker items #2120595, #2106292)
........
r34688 | cyx | 2008-09-29 22:08:26 +0200 (Mo, 29 Sep 2008) | 1 line
restrict _heXmapNum to HE versions, should fix #2135822
........
r34689 | eriktorbjorn | 2008-09-29 22:40:58 +0200 (Mo, 29 Sep 2008) | 4 lines
Since no one has come up with any better suggestion... this should fix #2123258
("COMI: Crash after video (SAN) play"). The eos() function won't return true
until we've tried to read *past* the end of the stream.
........
r34691 | tanoku | 2008-09-30 00:29:07 +0200 (Di, 30 Sep 2008) | 1 line
Ported ZipArchive::getAllNames() implementation from GUI branch.
........
r34692 | fingolfin | 2008-09-30 11:07:03 +0200 (Di, 30 Sep 2008) | 1 line
Order alphabetically
........
r34693 | fingolfin | 2008-09-30 11:08:17 +0200 (Di, 30 Sep 2008) | 1 line
SAGA: Removed patchesCount from SAGAGameDescription
........
r34694 | fingolfin | 2008-09-30 11:09:39 +0200 (Di, 30 Sep 2008) | 1 line
SCUMM HE: Use FilesystemNode::openForReading() instead of 'new Common::File' (didn't cover all instances, though)
........
r34695 | fingolfin | 2008-09-30 11:11:25 +0200 (Di, 30 Sep 2008) | 1 line
SAGA: Forgot to commit saga.h
........
r34696 | fingolfin | 2008-09-30 11:12:02 +0200 (Di, 30 Sep 2008) | 1 line
Added multiple new open() methods to Common::File, which make it possible to use this class as a generic convenience wrapper around all kinds of SeekableReadStream; also renamed the name() method to the less confusing getName()
........
r34697 | fingolfin | 2008-09-30 13:33:43 +0200 (Di, 30 Sep 2008) | 1 line
cleanup
........
r34698 | tanoku | 2008-09-30 13:53:37 +0200 (Di, 30 Sep 2008) | 1 line
Fixed functionality of ZipArchive::getAllNames(). Now it expects a possibly non-empty string list and returns the amount of new filenames added to it.
........
r34700 | fingolfin | 2008-09-30 14:27:38 +0200 (Di, 30 Sep 2008) | 1 line
Renamed Engine::quit to Engine::shouldQuit (previously, it was easily confused with Engine::quitGame); also cleaned up engine.h a bit
........
r34701 | fingolfin | 2008-09-30 14:37:28 +0200 (Di, 30 Sep 2008) | 1 line
cleanup
........
r34702 | fingolfin | 2008-09-30 14:38:44 +0200 (Di, 30 Sep 2008) | 1 line
AdvancedDetector: Do not (ab)use paths to keep track of files, rather, use FSNodes -- partial (?) fix for bug #2137680
........
r34703 | fingolfin | 2008-09-30 14:58:27 +0200 (Di, 30 Sep 2008) | 1 line
SAGA: Some code cleanup
........
r34704 | fingolfin | 2008-09-30 14:59:29 +0200 (Di, 30 Sep 2008) | 1 line
SKY: Fix detector to not (ab)use FSNode::getPath; if you want to open a FSNode, just pass it to File::open
........
r34705 | thebluegr | 2008-09-30 15:19:14 +0200 (Di, 30 Sep 2008) | 1 line
Fixed crash when starting IHNM, a regression from commit #34693
........
r34707 | fingolfin | 2008-09-30 17:42:19 +0200 (Di, 30 Sep 2008) | 1 line
Fixing ConfigManager::loadConfigFile
........
r34708 | fingolfin | 2008-09-30 18:23:35 +0200 (Di, 30 Sep 2008) | 1 line
AGI: Another case where it is better to use FSNodes directly, instead of converting them to path strings
........
r34709 | fingolfin | 2008-09-30 18:34:38 +0200 (Di, 30 Sep 2008) | 1 line
Modified FilePluginProvider to use FSNodes (instead of raw filenames / paths) in its API
........
r34710 | fingolfin | 2008-09-30 18:38:46 +0200 (Di, 30 Sep 2008) | 1 line
AGI: Got rid of yet another unwarranted use of FSNode::getPath
........
r34711 | fingolfin | 2008-09-30 18:53:04 +0200 (Di, 30 Sep 2008) | 1 line
AGI: Simplify WagFileParser by not reading data into a memory stream first (this was there to improve performance on systems with slow seeking; those systems should use another approach, see scummvm-devel)
........
r34712 | thebluegr | 2008-09-30 18:55:10 +0200 (Di, 30 Sep 2008) | 1 line
Fix crash when starting ITE, a regression from commit #34705
........
r34713 | fingolfin | 2008-09-30 19:09:41 +0200 (Di, 30 Sep 2008) | 1 line
Fix ThemeBrowser to use FSNodes, not getPath()
........
r34715 | Kirben | 2008-10-02 16:41:50 +0200 (Do, 02 Okt 2008) | 1 line
Correct HE version for Putt-Putt Enters the Race (French/Windows).
........
r34716 | fingolfin | 2008-10-02 18:58:59 +0200 (Do, 02 Okt 2008) | 1 line
Renamed FilesystemNode -> FSNode
........
r34717 | fingolfin | 2008-10-02 19:08:15 +0200 (Do, 02 Okt 2008) | 1 line
cleanup
........
r34718 | fingolfin | 2008-10-02 19:17:18 +0200 (Do, 02 Okt 2008) | 1 line
Ignore String::deleteLastChar when called on an empty string
........
r34719 | fingolfin | 2008-10-02 19:20:21 +0200 (Do, 02 Okt 2008) | 1 line
Fix for bug #2142743: Assertion on clicking "Theme" in Options
........
r34720 | fingolfin | 2008-10-02 19:48:01 +0200 (Do, 02 Okt 2008) | 7 lines
Engine class changed:
- Moved initCommonGFX() && GUIErrorMessage() out of class Engine
- got rid of the _autosavePeriod member (this prevented users from
changing the autosave period during runtime)
- Got rid of an evil 'using GUI::Dialog' statement
- Clarified some Doxygen comments
........
r34721 | fingolfin | 2008-10-02 19:52:29 +0200 (Do, 02 Okt 2008) | 1 line
Add the current dir to the global SearchSet, i.e. to SearchMan (this should fix the problems on Windows, and maybe other systems, see 'bug' #2137680)
........
r34722 | fingolfin | 2008-10-02 19:55:08 +0200 (Do, 02 Okt 2008) | 1 line
Forgot to mention yet another Engine class change: mainMenuDialog -> openMainMenuDialog; and also forgot to commit this related file :/
........
r34725 | fingolfin | 2008-10-02 20:11:40 +0200 (Do, 02 Okt 2008) | 1 line
typo
........
Modified Paths:
--------------
scummvm/branches/gsoc2008-vkeybd/backends/events/default/default-events.cpp
scummvm/branches/gsoc2008-vkeybd/backends/fs/abstract-fs.cpp
scummvm/branches/gsoc2008-vkeybd/backends/fs/abstract-fs.h
scummvm/branches/gsoc2008-vkeybd/backends/fs/amigaos4/amigaos4-fs-factory.cpp
scummvm/branches/gsoc2008-vkeybd/backends/fs/amigaos4/amigaos4-fs-factory.h
scummvm/branches/gsoc2008-vkeybd/backends/fs/amigaos4/amigaos4-fs.cpp
scummvm/branches/gsoc2008-vkeybd/backends/fs/ds/ds-fs-factory.cpp
scummvm/branches/gsoc2008-vkeybd/backends/fs/ds/ds-fs-factory.h
scummvm/branches/gsoc2008-vkeybd/backends/fs/ds/ds-fs.cpp
scummvm/branches/gsoc2008-vkeybd/backends/fs/ds/ds-fs.h
scummvm/branches/gsoc2008-vkeybd/backends/fs/fs-factory.h
scummvm/branches/gsoc2008-vkeybd/backends/fs/palmos/palmos-fs-factory.cpp
scummvm/branches/gsoc2008-vkeybd/backends/fs/palmos/palmos-fs-factory.h
scummvm/branches/gsoc2008-vkeybd/backends/fs/palmos/palmos-fs.cpp
scummvm/branches/gsoc2008-vkeybd/backends/fs/posix/posix-fs-factory.cpp
scummvm/branches/gsoc2008-vkeybd/backends/fs/posix/posix-fs-factory.h
scummvm/branches/gsoc2008-vkeybd/backends/fs/posix/posix-fs.cpp
scummvm/branches/gsoc2008-vkeybd/backends/fs/posix/posix-fs.h
scummvm/branches/gsoc2008-vkeybd/backends/fs/ps2/ps2-fs-factory.cpp
scummvm/branches/gsoc2008-vkeybd/backends/fs/ps2/ps2-fs-factory.h
scummvm/branches/gsoc2008-vkeybd/backends/fs/ps2/ps2-fs.cpp
scummvm/branches/gsoc2008-vkeybd/backends/fs/psp/psp-fs-factory.cpp
scummvm/branches/gsoc2008-vkeybd/backends/fs/psp/psp-fs-factory.h
scummvm/branches/gsoc2008-vkeybd/backends/fs/psp/psp-fs.cpp
scummvm/branches/gsoc2008-vkeybd/backends/fs/symbian/symbian-fs-factory.cpp
scummvm/branches/gsoc2008-vkeybd/backends/fs/symbian/symbian-fs-factory.h
scummvm/branches/gsoc2008-vkeybd/backends/fs/symbian/symbian-fs.cpp
scummvm/branches/gsoc2008-vkeybd/backends/fs/wii/wii-fs-factory.cpp
scummvm/branches/gsoc2008-vkeybd/backends/fs/wii/wii-fs-factory.h
scummvm/branches/gsoc2008-vkeybd/backends/fs/wii/wii-fs.cpp
scummvm/branches/gsoc2008-vkeybd/backends/fs/windows/windows-fs-factory.cpp
scummvm/branches/gsoc2008-vkeybd/backends/fs/windows/windows-fs-factory.h
scummvm/branches/gsoc2008-vkeybd/backends/fs/windows/windows-fs.cpp
scummvm/branches/gsoc2008-vkeybd/backends/platform/dc/dc-fs.cpp
scummvm/branches/gsoc2008-vkeybd/backends/platform/dc/dc.h
scummvm/branches/gsoc2008-vkeybd/backends/platform/dc/selector.cpp
scummvm/branches/gsoc2008-vkeybd/backends/platform/gp2x/gp2x.cpp
scummvm/branches/gsoc2008-vkeybd/backends/platform/sdl/sdl.cpp
scummvm/branches/gsoc2008-vkeybd/backends/platform/sdl/sdl.h
scummvm/branches/gsoc2008-vkeybd/backends/platform/symbian/src/SymbianOS.cpp
scummvm/branches/gsoc2008-vkeybd/backends/platform/wince/CELauncherDialog.cpp
scummvm/branches/gsoc2008-vkeybd/backends/platform/wince/CELauncherDialog.h
scummvm/branches/gsoc2008-vkeybd/backends/plugins/dc/dc-provider.cpp
scummvm/branches/gsoc2008-vkeybd/backends/plugins/dc/dc-provider.h
scummvm/branches/gsoc2008-vkeybd/backends/plugins/posix/posix-provider.cpp
scummvm/branches/gsoc2008-vkeybd/backends/plugins/posix/posix-provider.h
scummvm/branches/gsoc2008-vkeybd/backends/plugins/sdl/sdl-provider.cpp
scummvm/branches/gsoc2008-vkeybd/backends/plugins/sdl/sdl-provider.h
scummvm/branches/gsoc2008-vkeybd/backends/plugins/win32/win32-provider.cpp
scummvm/branches/gsoc2008-vkeybd/backends/plugins/win32/win32-provider.h
scummvm/branches/gsoc2008-vkeybd/backends/saves/default/default-saves.cpp
scummvm/branches/gsoc2008-vkeybd/backends/saves/default/default-saves.h
scummvm/branches/gsoc2008-vkeybd/base/commandLine.cpp
scummvm/branches/gsoc2008-vkeybd/base/plugins.cpp
scummvm/branches/gsoc2008-vkeybd/base/plugins.h
scummvm/branches/gsoc2008-vkeybd/common/advancedDetector.cpp
scummvm/branches/gsoc2008-vkeybd/common/archive.cpp
scummvm/branches/gsoc2008-vkeybd/common/archive.h
scummvm/branches/gsoc2008-vkeybd/common/config-manager.cpp
scummvm/branches/gsoc2008-vkeybd/common/file.cpp
scummvm/branches/gsoc2008-vkeybd/common/file.h
scummvm/branches/gsoc2008-vkeybd/common/fs.cpp
scummvm/branches/gsoc2008-vkeybd/common/fs.h
scummvm/branches/gsoc2008-vkeybd/common/md5.cpp
scummvm/branches/gsoc2008-vkeybd/common/md5.h
scummvm/branches/gsoc2008-vkeybd/common/str.cpp
scummvm/branches/gsoc2008-vkeybd/common/str.h
scummvm/branches/gsoc2008-vkeybd/common/system.cpp
scummvm/branches/gsoc2008-vkeybd/common/system.h
scummvm/branches/gsoc2008-vkeybd/common/unarj.cpp
scummvm/branches/gsoc2008-vkeybd/common/unarj.h
scummvm/branches/gsoc2008-vkeybd/common/unzip.cpp
scummvm/branches/gsoc2008-vkeybd/common/unzip.h
scummvm/branches/gsoc2008-vkeybd/common/xmlparser.h
scummvm/branches/gsoc2008-vkeybd/engines/agi/cycle.cpp
scummvm/branches/gsoc2008-vkeybd/engines/agi/detection.cpp
scummvm/branches/gsoc2008-vkeybd/engines/agi/loader_v3.cpp
scummvm/branches/gsoc2008-vkeybd/engines/agi/op_cmd.cpp
scummvm/branches/gsoc2008-vkeybd/engines/agi/op_test.cpp
scummvm/branches/gsoc2008-vkeybd/engines/agi/preagi_common.cpp
scummvm/branches/gsoc2008-vkeybd/engines/agi/preagi_mickey.cpp
scummvm/branches/gsoc2008-vkeybd/engines/agi/preagi_troll.cpp
scummvm/branches/gsoc2008-vkeybd/engines/agi/preagi_winnie.cpp
scummvm/branches/gsoc2008-vkeybd/engines/agi/predictive.cpp
scummvm/branches/gsoc2008-vkeybd/engines/agi/saveload.cpp
scummvm/branches/gsoc2008-vkeybd/engines/agi/sound.cpp
scummvm/branches/gsoc2008-vkeybd/engines/agi/sound.h
scummvm/branches/gsoc2008-vkeybd/engines/agi/wagparser.cpp
scummvm/branches/gsoc2008-vkeybd/engines/agi/wagparser.h
scummvm/branches/gsoc2008-vkeybd/engines/agos/agos.cpp
scummvm/branches/gsoc2008-vkeybd/engines/agos/animation.cpp
scummvm/branches/gsoc2008-vkeybd/engines/agos/event.cpp
scummvm/branches/gsoc2008-vkeybd/engines/agos/gfx.cpp
scummvm/branches/gsoc2008-vkeybd/engines/agos/input.cpp
scummvm/branches/gsoc2008-vkeybd/engines/agos/oracle.cpp
scummvm/branches/gsoc2008-vkeybd/engines/agos/saveload.cpp
scummvm/branches/gsoc2008-vkeybd/engines/agos/script.cpp
scummvm/branches/gsoc2008-vkeybd/engines/agos/script_e1.cpp
scummvm/branches/gsoc2008-vkeybd/engines/agos/script_e2.cpp
scummvm/branches/gsoc2008-vkeybd/engines/agos/script_s1.cpp
scummvm/branches/gsoc2008-vkeybd/engines/agos/script_ww.cpp
scummvm/branches/gsoc2008-vkeybd/engines/agos/subroutine.cpp
scummvm/branches/gsoc2008-vkeybd/engines/agos/verb.cpp
scummvm/branches/gsoc2008-vkeybd/engines/agos/window.cpp
scummvm/branches/gsoc2008-vkeybd/engines/cine/main_loop.cpp
scummvm/branches/gsoc2008-vkeybd/engines/drascula/drascula.cpp
scummvm/branches/gsoc2008-vkeybd/engines/drascula/drascula.h
scummvm/branches/gsoc2008-vkeybd/engines/drascula/sound.cpp
scummvm/branches/gsoc2008-vkeybd/engines/drascula/talk.cpp
scummvm/branches/gsoc2008-vkeybd/engines/engine.cpp
scummvm/branches/gsoc2008-vkeybd/engines/engine.h
scummvm/branches/gsoc2008-vkeybd/engines/gob/detection.cpp
scummvm/branches/gsoc2008-vkeybd/engines/gob/game_v1.cpp
scummvm/branches/gsoc2008-vkeybd/engines/gob/game_v2.cpp
scummvm/branches/gsoc2008-vkeybd/engines/gob/inter.cpp
scummvm/branches/gsoc2008-vkeybd/engines/gob/inter_bargon.cpp
scummvm/branches/gsoc2008-vkeybd/engines/gob/inter_v1.cpp
scummvm/branches/gsoc2008-vkeybd/engines/gob/inter_v2.cpp
scummvm/branches/gsoc2008-vkeybd/engines/gob/mult.cpp
scummvm/branches/gsoc2008-vkeybd/engines/gob/palanim.cpp
scummvm/branches/gsoc2008-vkeybd/engines/gob/sound/sound.cpp
scummvm/branches/gsoc2008-vkeybd/engines/gob/util.cpp
scummvm/branches/gsoc2008-vkeybd/engines/gob/video.cpp
scummvm/branches/gsoc2008-vkeybd/engines/gob/videoplayer.cpp
scummvm/branches/gsoc2008-vkeybd/engines/kyra/gui.cpp
scummvm/branches/gsoc2008-vkeybd/engines/kyra/gui_hof.cpp
scummvm/branches/gsoc2008-vkeybd/engines/kyra/gui_lok.cpp
scummvm/branches/gsoc2008-vkeybd/engines/kyra/gui_mr.cpp
scummvm/branches/gsoc2008-vkeybd/engines/kyra/gui_v2.cpp
scummvm/branches/gsoc2008-vkeybd/engines/kyra/kyra_hof.cpp
scummvm/branches/gsoc2008-vkeybd/engines/kyra/kyra_lok.cpp
scummvm/branches/gsoc2008-vkeybd/engines/kyra/kyra_mr.cpp
scummvm/branches/gsoc2008-vkeybd/engines/kyra/kyra_v1.cpp
scummvm/branches/gsoc2008-vkeybd/engines/kyra/kyra_v2.cpp
scummvm/branches/gsoc2008-vkeybd/engines/kyra/lol.cpp
scummvm/branches/gsoc2008-vkeybd/engines/kyra/resource.cpp
scummvm/branches/gsoc2008-vkeybd/engines/kyra/saveload.cpp
scummvm/branches/gsoc2008-vkeybd/engines/kyra/saveload_lok.cpp
scummvm/branches/gsoc2008-vkeybd/engines/kyra/scene_hof.cpp
scummvm/branches/gsoc2008-vkeybd/engines/kyra/scene_mr.cpp
scummvm/branches/gsoc2008-vkeybd/engines/kyra/screen.cpp
scummvm/branches/gsoc2008-vkeybd/engines/kyra/script.cpp
scummvm/branches/gsoc2008-vkeybd/engines/kyra/script_lok.cpp
scummvm/branches/gsoc2008-vkeybd/engines/kyra/script_mr.cpp
scummvm/branches/gsoc2008-vkeybd/engines/kyra/seqplayer.cpp
scummvm/branches/gsoc2008-vkeybd/engines/kyra/sequences_hof.cpp
scummvm/branches/gsoc2008-vkeybd/engines/kyra/sequences_lok.cpp
scummvm/branches/gsoc2008-vkeybd/engines/kyra/staticres.cpp
scummvm/branches/gsoc2008-vkeybd/engines/kyra/text.cpp
scummvm/branches/gsoc2008-vkeybd/engines/kyra/text_hof.cpp
scummvm/branches/gsoc2008-vkeybd/engines/kyra/text_mr.cpp
scummvm/branches/gsoc2008-vkeybd/engines/lure/events.cpp
scummvm/branches/gsoc2008-vkeybd/engines/lure/fights.cpp
scummvm/branches/gsoc2008-vkeybd/engines/lure/game.cpp
scummvm/branches/gsoc2008-vkeybd/engines/lure/intro.cpp
scummvm/branches/gsoc2008-vkeybd/engines/lure/lure.cpp
scummvm/branches/gsoc2008-vkeybd/engines/lure/menu.cpp
scummvm/branches/gsoc2008-vkeybd/engines/lure/scripts.cpp
scummvm/branches/gsoc2008-vkeybd/engines/lure/surface.cpp
scummvm/branches/gsoc2008-vkeybd/engines/made/scriptfuncs.cpp
scummvm/branches/gsoc2008-vkeybd/engines/metaengine.h
scummvm/branches/gsoc2008-vkeybd/engines/parallaction/balloons.cpp
scummvm/branches/gsoc2008-vkeybd/engines/parallaction/disk.h
scummvm/branches/gsoc2008-vkeybd/engines/parallaction/disk_br.cpp
scummvm/branches/gsoc2008-vkeybd/engines/parallaction/exec_ns.cpp
scummvm/branches/gsoc2008-vkeybd/engines/parallaction/graphics.cpp
scummvm/branches/gsoc2008-vkeybd/engines/parallaction/parallaction.cpp
scummvm/branches/gsoc2008-vkeybd/engines/parallaction/parallaction_br.cpp
scummvm/branches/gsoc2008-vkeybd/engines/parallaction/parallaction_ns.cpp
scummvm/branches/gsoc2008-vkeybd/engines/queen/logic.cpp
scummvm/branches/gsoc2008-vkeybd/engines/queen/queen.cpp
scummvm/branches/gsoc2008-vkeybd/engines/queen/talk.cpp
scummvm/branches/gsoc2008-vkeybd/engines/saga/detection.cpp
scummvm/branches/gsoc2008-vkeybd/engines/saga/detection_tables.h
scummvm/branches/gsoc2008-vkeybd/engines/saga/gfx.cpp
scummvm/branches/gsoc2008-vkeybd/engines/saga/introproc_ihnm.cpp
scummvm/branches/gsoc2008-vkeybd/engines/saga/module.mk
scummvm/branches/gsoc2008-vkeybd/engines/saga/music.cpp
scummvm/branches/gsoc2008-vkeybd/engines/saga/rscfile.cpp
scummvm/branches/gsoc2008-vkeybd/engines/saga/rscfile.h
scummvm/branches/gsoc2008-vkeybd/engines/saga/saga.cpp
scummvm/branches/gsoc2008-vkeybd/engines/saga/saga.h
scummvm/branches/gsoc2008-vkeybd/engines/saga/scene.cpp
scummvm/branches/gsoc2008-vkeybd/engines/saga/sndres.cpp
scummvm/branches/gsoc2008-vkeybd/engines/scumm/actor.cpp
scummvm/branches/gsoc2008-vkeybd/engines/scumm/detection.cpp
scummvm/branches/gsoc2008-vkeybd/engines/scumm/file.cpp
scummvm/branches/gsoc2008-vkeybd/engines/scumm/file.h
scummvm/branches/gsoc2008-vkeybd/engines/scumm/file_nes.h
scummvm/branches/gsoc2008-vkeybd/engines/scumm/he/cup_player_he.cpp
scummvm/branches/gsoc2008-vkeybd/engines/scumm/he/resource_he.cpp
scummvm/branches/gsoc2008-vkeybd/engines/scumm/he/resource_he.h
scummvm/branches/gsoc2008-vkeybd/engines/scumm/he/script_v60he.cpp
scummvm/branches/gsoc2008-vkeybd/engines/scumm/resource.cpp
scummvm/branches/gsoc2008-vkeybd/engines/scumm/scumm-md5.h
scummvm/branches/gsoc2008-vkeybd/engines/scumm/scumm.cpp
scummvm/branches/gsoc2008-vkeybd/engines/scumm/smush/smush_player.cpp
scummvm/branches/gsoc2008-vkeybd/engines/sky/control.cpp
scummvm/branches/gsoc2008-vkeybd/engines/sky/sky.cpp
scummvm/branches/gsoc2008-vkeybd/engines/sword1/animation.cpp
scummvm/branches/gsoc2008-vkeybd/engines/sword1/animation.h
scummvm/branches/gsoc2008-vkeybd/engines/sword1/control.cpp
scummvm/branches/gsoc2008-vkeybd/engines/sword1/credits.cpp
scummvm/branches/gsoc2008-vkeybd/engines/sword1/logic.cpp
scummvm/branches/gsoc2008-vkeybd/engines/sword1/logic.h
scummvm/branches/gsoc2008-vkeybd/engines/sword1/sword1.cpp
scummvm/branches/gsoc2008-vkeybd/engines/sword2/animation.cpp
scummvm/branches/gsoc2008-vkeybd/engines/sword2/controls.cpp
scummvm/branches/gsoc2008-vkeybd/engines/sword2/palette.cpp
scummvm/branches/gsoc2008-vkeybd/engines/sword2/resman.cpp
scummvm/branches/gsoc2008-vkeybd/engines/sword2/screen.cpp
scummvm/branches/gsoc2008-vkeybd/engines/sword2/sword2.cpp
scummvm/branches/gsoc2008-vkeybd/engines/tinsel/tinsel.cpp
scummvm/branches/gsoc2008-vkeybd/engines/touche/menu.cpp
scummvm/branches/gsoc2008-vkeybd/engines/touche/touche.cpp
scummvm/branches/gsoc2008-vkeybd/gui/browser.cpp
scummvm/branches/gsoc2008-vkeybd/gui/browser.h
scummvm/branches/gsoc2008-vkeybd/gui/launcher.cpp
scummvm/branches/gsoc2008-vkeybd/gui/massadd.cpp
scummvm/branches/gsoc2008-vkeybd/gui/massadd.h
scummvm/branches/gsoc2008-vkeybd/gui/options.cpp
scummvm/branches/gsoc2008-vkeybd/gui/theme.cpp
scummvm/branches/gsoc2008-vkeybd/gui/themebrowser.cpp
scummvm/branches/gsoc2008-vkeybd/gui/themebrowser.h
scummvm/branches/gsoc2008-vkeybd/tools/scumm-md5.txt
Property Changed:
----------------
scummvm/branches/gsoc2008-vkeybd/
Property changes on: scummvm/branches/gsoc2008-vkeybd
___________________________________________________________________
Modified: svnmerge-integrated
- /scummvm/branches/gsoc2008-gui:1-31703 /scummvm/branches/gsoc2008-rtl:1-32741 /scummvm/branches/gsoc2008-tfmx:1-31765 /scummvm/trunk:1-34651
+ /scummvm/branches/gsoc2008-gui:1-31703 /scummvm/branches/gsoc2008-rtl:1-32741 /scummvm/branches/gsoc2008-tfmx:1-31765 /scummvm/trunk:1-34725
Modified: scummvm/branches/gsoc2008-vkeybd/backends/events/default/default-events.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/events/default/default-events.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/events/default/default-events.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -460,7 +460,7 @@
// as an event now and open up the GMM itself it would open the
// menu twice.
if (g_engine && !g_engine->isPaused())
- g_engine->mainMenuDialog();
+ g_engine->openMainMenuDialog();
if (_shouldQuit)
event.type = Common::EVENT_QUIT;
@@ -530,7 +530,7 @@
case Common::EVENT_MAINMENU:
if (g_engine && !g_engine->isPaused())
- g_engine->mainMenuDialog();
+ g_engine->openMainMenuDialog();
if (_shouldQuit)
event.type = Common::EVENT_QUIT;
Modified: scummvm/branches/gsoc2008-vkeybd/backends/fs/abstract-fs.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/fs/abstract-fs.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/fs/abstract-fs.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -24,7 +24,7 @@
#include "backends/fs/abstract-fs.h"
-const char *AbstractFilesystemNode::lastPathComponent(const Common::String &str, const char sep) {
+const char *AbstractFSNode::lastPathComponent(const Common::String &str, const char sep) {
// TODO: Get rid of this eventually! Use Common::lastPathComponent instead
if(str.empty())
return "";
Modified: scummvm/branches/gsoc2008-vkeybd/backends/fs/abstract-fs.h
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/fs/abstract-fs.h 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/fs/abstract-fs.h 2008-10-03 14:25:03 UTC (rev 34730)
@@ -29,22 +29,22 @@
#include "common/str.h"
#include "common/fs.h"
-class AbstractFilesystemNode;
+class AbstractFSNode;
-typedef Common::Array<AbstractFilesystemNode *> AbstractFSList;
+typedef Common::Array<AbstractFSNode *> AbstractFSList;
/**
* Abstract file system node. Private subclasses implement the actual
* functionality.
*
- * Most of the methods correspond directly to methods in class FilesystemNode,
+ * Most of the methods correspond directly to methods in class FSNode,
* so if they are not documented here, look there for more information about
* the semantics.
*/
-class AbstractFilesystemNode {
+class AbstractFSNode {
protected:
- friend class Common::FilesystemNode;
- typedef Common::FilesystemNode::ListMode ListMode;
+ friend class Common::FSNode;
+ typedef Common::FSNode::ListMode ListMode;
/**
* Returns the child node with the given name. When called on a non-directory
@@ -63,13 +63,13 @@
*
* @param name String containing the name of the child to create a new node.
*/
- virtual AbstractFilesystemNode *getChild(const Common::String &name) const = 0;
+ virtual AbstractFSNode *getChild(const Common::String &name) const = 0;
/**
* The parent node of this directory.
* The parent of the root is the root itself.
*/
- virtual AbstractFilesystemNode *getParent() const = 0;
+ virtual AbstractFSNode *getParent() const = 0;
/**
* Returns the last component of a given path.
@@ -88,7 +88,7 @@
/**
* Destructor.
*/
- virtual ~AbstractFilesystemNode() {}
+ virtual ~AbstractFSNode() {}
/*
* Indicates whether the object referred by this path exists in the filesystem or not.
@@ -115,7 +115,7 @@
virtual Common::String getDisplayName() const { return getName(); }
/**
- * Returns the last component of the path pointed by this FilesystemNode.
+ * Returns the last component of the path pointed by this FSNode.
*
* Examples (POSIX):
* /foo/bar.txt would return /bar.txt
Modified: scummvm/branches/gsoc2008-vkeybd/backends/fs/amigaos4/amigaos4-fs-factory.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/fs/amigaos4/amigaos4-fs-factory.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/fs/amigaos4/amigaos4-fs-factory.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -26,15 +26,15 @@
#include "backends/fs/amigaos4/amigaos4-fs-factory.h"
#include "backends/fs/amigaos4/amigaos4-fs.cpp"
-AbstractFilesystemNode *AmigaOSFilesystemFactory::makeRootFileNode() const {
+AbstractFSNode *AmigaOSFilesystemFactory::makeRootFileNode() const {
return new AmigaOSFilesystemNode();
}
-AbstractFilesystemNode *AmigaOSFilesystemFactory::makeCurrentDirectoryFileNode() const {
+AbstractFSNode *AmigaOSFilesystemFactory::makeCurrentDirectoryFileNode() const {
return new AmigaOSFilesystemNode();
}
-AbstractFilesystemNode *AmigaOSFilesystemFactory::makeFileNodePath(const Common::String &path) const {
+AbstractFSNode *AmigaOSFilesystemFactory::makeFileNodePath(const Common::String &path) const {
return new AmigaOSFilesystemNode(path);
}
#endif
Modified: scummvm/branches/gsoc2008-vkeybd/backends/fs/amigaos4/amigaos4-fs-factory.h
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/fs/amigaos4/amigaos4-fs-factory.h 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/fs/amigaos4/amigaos4-fs-factory.h 2008-10-03 14:25:03 UTC (rev 34730)
@@ -34,9 +34,9 @@
*/
class AmigaOSFilesystemFactory : public FilesystemFactory {
public:
- virtual AbstractFilesystemNode *makeRootFileNode() const;
- virtual AbstractFilesystemNode *makeCurrentDirectoryFileNode() const;
- virtual AbstractFilesystemNode *makeFileNodePath(const Common::String &path) const;
+ virtual AbstractFSNode *makeRootFileNode() const;
+ virtual AbstractFSNode *makeCurrentDirectoryFileNode() const;
+ virtual AbstractFSNode *makeFileNodePath(const Common::String &path) const;
};
#endif /*AMIGAOS_FILESYSTEM_FACTORY_H*/
Modified: scummvm/branches/gsoc2008-vkeybd/backends/fs/amigaos4/amigaos4-fs.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/fs/amigaos4/amigaos4-fs.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/fs/amigaos4/amigaos4-fs.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -47,9 +47,9 @@
/**
* Implementation of the ScummVM file system API.
*
- * Parts of this class are documented in the base interface class, AbstractFilesystemNode.
+ * Parts of this class are documented in the base interface class, AbstractFSNode.
*/
-class AmigaOSFilesystemNode : public AbstractFilesystemNode {
+class AmigaOSFilesystemNode : public AbstractFSNode {
protected:
BPTR _pFileLock;
Common::String _sDisplayName;
@@ -58,7 +58,7 @@
bool _bIsValid;
/**
- * Obtain the FileInfoBlock protection value for this FilesystemNode,
+ * Obtain the FileInfoBlock protection value for this FSNode,
* as defined in the <proto/dos.h> header.
*
* @return -1 if there were errors, 0 or a positive integer otherwise.
@@ -103,9 +103,9 @@
virtual bool isReadable() const;
virtual bool isWritable() const;
- virtual AbstractFilesystemNode *getChild(const Common::String &n) const;
+ virtual AbstractFSNode *getChild(const Common::String &n) const;
virtual bool getChildren(AbstractFSList &list, ListMode mode, bool hidden) const;
- virtual AbstractFilesystemNode *getParent() const;
+ virtual AbstractFSNode *getParent() const;
virtual Common::SeekableReadStream *openForReading();
virtual Common::WriteStream *openForWriting();
@@ -302,7 +302,7 @@
return nodeExists;
}
-AbstractFilesystemNode *AmigaOSFilesystemNode::getChild(const Common::String &n) const {
+AbstractFSNode *AmigaOSFilesystemNode::getChild(const Common::String &n) const {
ENTER();
if (!_bIsDirectory) {
debug(6, "Not a directory");
@@ -371,9 +371,9 @@
struct ExAllData *ead = data;
do {
- if ((mode == Common::FilesystemNode::kListAll) ||
- (EAD_IS_DRAWER(ead) && (mode == Common::FilesystemNode::kListDirectoriesOnly)) ||
- (EAD_IS_FILE(ead) && (mode == Common::FilesystemNode::kListFilesOnly))) {
+ if ((mode == Common::FSNode::kListAll) ||
+ (EAD_IS_DRAWER(ead) && (mode == Common::FSNode::kListDirectoriesOnly)) ||
+ (EAD_IS_FILE(ead) && (mode == Common::FSNode::kListFilesOnly))) {
Common::String full_path = _sPath;
full_path += (char*)ead->ed_Name;
@@ -381,7 +381,7 @@
if (lock) {
AmigaOSFilesystemNode *entry = new AmigaOSFilesystemNode(lock, (char *)ead->ed_Name);
if (entry) {
- //FIXME: since the isValid() function is no longer part of the AbstractFilesystemNode
+ //FIXME: since the isValid() function is no longer part of the AbstractFSNode
// specification, the following call had to be changed:
// if (entry->isValid())
// Please verify that the logic of the code remains coherent. Also, remember
@@ -433,7 +433,7 @@
return fibProt;
}
-AbstractFilesystemNode *AmigaOSFilesystemNode::getParent() const {
+AbstractFSNode *AmigaOSFilesystemNode::getParent() const {
ENTER();
if (!_bIsDirectory) {
@@ -543,7 +543,7 @@
AmigaOSFilesystemNode *entry = new AmigaOSFilesystemNode(volumeLock, buffer);
if (entry) {
- //FIXME: since the isValid() function is no longer part of the AbstractFilesystemNode
+ //FIXME: since the isValid() function is no longer part of the AbstractFSNode
// specification, the following call had to be changed:
// if (entry->isValid())
// Please verify that the logic of the code remains coherent. Also, remember
Modified: scummvm/branches/gsoc2008-vkeybd/backends/fs/ds/ds-fs-factory.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/fs/ds/ds-fs-factory.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/fs/ds/ds-fs-factory.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -29,7 +29,7 @@
DECLARE_SINGLETON(DSFilesystemFactory);
-AbstractFilesystemNode *DSFilesystemFactory::makeRootFileNode() const {
+AbstractFSNode *DSFilesystemFactory::makeRootFileNode() const {
if (DS::isGBAMPAvailable()) {
return new DS::GBAMPFileSystemNode();
} else {
@@ -37,7 +37,7 @@
}
}
-AbstractFilesystemNode *DSFilesystemFactory::makeCurrentDirectoryFileNode() const {
+AbstractFSNode *DSFilesystemFactory::makeCurrentDirectoryFileNode() const {
if (DS::isGBAMPAvailable()) {
return new DS::GBAMPFileSystemNode();
} else {
@@ -45,7 +45,7 @@
}
}
-AbstractFilesystemNode *DSFilesystemFactory::makeFileNodePath(const Common::String &path) const {
+AbstractFSNode *DSFilesystemFactory::makeFileNodePath(const Common::String &path) const {
if (DS::isGBAMPAvailable()) {
return new DS::GBAMPFileSystemNode(path);
} else {
Modified: scummvm/branches/gsoc2008-vkeybd/backends/fs/ds/ds-fs-factory.h
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/fs/ds/ds-fs-factory.h 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/fs/ds/ds-fs-factory.h 2008-10-03 14:25:03 UTC (rev 34730)
@@ -35,9 +35,9 @@
*/
class DSFilesystemFactory : public FilesystemFactory, public Common::Singleton<DSFilesystemFactory> {
public:
- virtual AbstractFilesystemNode *makeRootFileNode() const;
- virtual AbstractFilesystemNode *makeCurrentDirectoryFileNode() const;
- virtual AbstractFilesystemNode *makeFileNodePath(const Common::String &path) const;
+ virtual AbstractFSNode *makeRootFileNode() const;
+ virtual AbstractFSNode *makeCurrentDirectoryFileNode() const;
+ virtual AbstractFSNode *makeFileNodePath(const Common::String &path) const;
protected:
DSFilesystemFactory() {};
Modified: scummvm/branches/gsoc2008-vkeybd/backends/fs/ds/ds-fs.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/fs/ds/ds-fs.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/fs/ds/ds-fs.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -125,7 +125,7 @@
//TODO: not implemented?
}
-AbstractFilesystemNode *DSFileSystemNode::getChild(const Common::String& n) const {
+AbstractFSNode *DSFileSystemNode::getChild(const Common::String& n) const {
if (_path.lastChar() == '\\') {
return new DSFileSystemNode(_path + n);
} else {
@@ -168,8 +168,8 @@
_zipFile->getFileName(n);
// consolePrintf("file: %s\n", n);
- if ( (_zipFile->isDirectory() && ((mode == Common::FilesystemNode::kListDirectoriesOnly) || (mode == Common::FilesystemNode::kListAll)) )
- || (!_zipFile->isDirectory() && ((mode == Common::FilesystemNode::kListFilesOnly) || (mode == Common::FilesystemNode::kListAll)) ) )
+ if ( (_zipFile->isDirectory() && ((mode == Common::FSNode::kListDirectoriesOnly) || (mode == Common::FSNode::kListAll)) )
+ || (!_zipFile->isDirectory() && ((mode == Common::FSNode::kListFilesOnly) || (mode == Common::FSNode::kListAll)) ) )
{
DSFileSystemNode* dsfsn = new DSFileSystemNode("ds:/" + Common::String(n), _zipFile->isDirectory());
dsfsn->_isDirectory = _zipFile->isDirectory();
@@ -182,7 +182,7 @@
return true;
}
-AbstractFilesystemNode* DSFileSystemNode::getParent() const {
+AbstractFSNode* DSFileSystemNode::getParent() const {
// consolePrintf("parent\n");
DSFileSystemNode *p;
@@ -285,7 +285,7 @@
//TODO: not implemented?
}
-AbstractFilesystemNode *GBAMPFileSystemNode::getChild(const Common::String& n) const {
+AbstractFSNode *GBAMPFileSystemNode::getChild(const Common::String& n) const {
if (_path.lastChar() == '\\') {
return new DSFileSystemNode(_path + n);
} else {
@@ -322,8 +322,8 @@
while (entryType != TYPE_NO_MORE) {
- if ( ((entryType == TYPE_DIR) && ((mode == Common::FilesystemNode::kListDirectoriesOnly) || (mode == Common::FilesystemNode::kListAll)))
- || ((entryType == TYPE_FILE) && ((mode == Common::FilesystemNode::kListFilesOnly) || (mode == Common::FilesystemNode::kListAll))) ) {
+ if ( ((entryType == TYPE_DIR) && ((mode == Common::FSNode::kListDirectoriesOnly) || (mode == Common::FSNode::kListAll)))
+ || ((entryType == TYPE_FILE) && ((mode == Common::FSNode::kListFilesOnly) || (mode == Common::FSNode::kListAll))) ) {
GBAMPFileSystemNode* dsfsn;
consolePrintf("Fname: %s\n", fname);
@@ -353,7 +353,7 @@
return true;
}
-AbstractFilesystemNode* GBAMPFileSystemNode::getParent() const {
+AbstractFSNode* GBAMPFileSystemNode::getParent() const {
// consolePrintf("parent\n");
GBAMPFileSystemNode *p;
Modified: scummvm/branches/gsoc2008-vkeybd/backends/fs/ds/ds-fs.h
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/fs/ds/ds-fs.h 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/fs/ds/ds-fs.h 2008-10-03 14:25:03 UTC (rev 34730)
@@ -37,9 +37,9 @@
* Implementation of the ScummVM file system API.
* This class is used when a Flash cart is in use.
*
- * Parts of this class are documented in the base interface class, AbstractFilesystemNode.
+ * Parts of this class are documented in the base interface class, AbstractFSNode.
*/
-class DSFileSystemNode : public AbstractFilesystemNode {
+class DSFileSystemNode : public AbstractFSNode {
protected:
static ZipFile* _zipFile;
@@ -85,10 +85,10 @@
/**
* Returns a copy of this node.
*/
- virtual AbstractFilesystemNode *clone() const { return new DSFileSystemNode(this); }
- virtual AbstractFilesystemNode *getChild(const Common::String& name) const;
+ virtual AbstractFSNode *clone() const { return new DSFileSystemNode(this); }
+ virtual AbstractFSNode *getChild(const Common::String& name) const;
virtual bool getChildren(AbstractFSList &list, ListMode mode, bool hidden) const;
- virtual AbstractFilesystemNode *getParent() const;
+ virtual AbstractFSNode *getParent() const;
virtual Common::SeekableReadStream *openForReading();
virtual Common::WriteStream *openForWriting();
@@ -104,9 +104,9 @@
* Implementation of the ScummVM file system API.
* This class is used when the GBAMP (GBA Movie Player) is used with a CompactFlash card.
*
- * Parts of this class are documented in the base interface class, AbstractFilesystemNode.
+ * Parts of this class are documented in the base interface class, AbstractFSNode.
*/
-class GBAMPFileSystemNode : public AbstractFilesystemNode {
+class GBAMPFileSystemNode : public AbstractFSNode {
protected:
Common::String _displayName;
Common::String _path;
@@ -150,10 +150,10 @@
/**
* Returns a copy of this node.
*/
- virtual AbstractFilesystemNode *clone() const { return new GBAMPFileSystemNode(this); }
- virtual AbstractFilesystemNode *getChild(const Common::String& name) const;
+ virtual AbstractFSNode *clone() const { return new GBAMPFileSystemNode(this); }
+ virtual AbstractFSNode *getChild(const Common::String& name) const;
virtual bool getChildren(AbstractFSList &list, ListMode mode, bool hidden) const;
- virtual AbstractFilesystemNode *getParent() const;
+ virtual AbstractFSNode *getParent() const;
virtual Common::SeekableReadStream *openForReading();
virtual Common::WriteStream *openForWriting();
Modified: scummvm/branches/gsoc2008-vkeybd/backends/fs/fs-factory.h
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/fs/fs-factory.h 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/fs/fs-factory.h 2008-10-03 14:25:03 UTC (rev 34730)
@@ -29,7 +29,7 @@
#include "backends/fs/abstract-fs.h"
/**
- * Creates concrete FilesystemNode objects depending on the current architecture.
+ * Creates concrete FSNode objects depending on the current architecture.
*/
class FilesystemFactory {
public:
@@ -44,7 +44,7 @@
* emulate it or simply return some "sensible" default directory node,
* e.g. the same value as getRoot() returns.
*/
- virtual AbstractFilesystemNode *makeCurrentDirectoryFileNode() const = 0;
+ virtual AbstractFSNode *makeCurrentDirectoryFileNode() const = 0;
/**
* Construct a node based on a path; the path is in the same format as it
@@ -54,9 +54,9 @@
* identical to oldNode. Hence, we can use the "path" value for persistent
* storage e.g. in the config file.
*
- * @param path The path string to create a FilesystemNode for.
+ * @param path The path string to create a FSNode for.
*/
- virtual AbstractFilesystemNode *makeFileNodePath(const Common::String &path) const = 0;
+ virtual AbstractFSNode *makeFileNodePath(const Common::String &path) const = 0;
/**
* Returns a special node representing the filesystem root.
@@ -65,7 +65,7 @@
* On Unix, this will be simply the node for / (the root directory).
* On Windows, it will be a special node which "contains" all drives (C:, D:, E:).
*/
- virtual AbstractFilesystemNode *makeRootFileNode() const = 0;
+ virtual AbstractFSNode *makeRootFileNode() const = 0;
};
#endif /*FILESYSTEM_FACTORY_H*/
Modified: scummvm/branches/gsoc2008-vkeybd/backends/fs/palmos/palmos-fs-factory.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/fs/palmos/palmos-fs-factory.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/fs/palmos/palmos-fs-factory.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -28,15 +28,15 @@
DECLARE_SINGLETON(PalmOSFilesystemFactory);
-AbstractFilesystemNode *PalmOSFilesystemFactory::makeRootFileNode() const {
+AbstractFSNode *PalmOSFilesystemFactory::makeRootFileNode() const {
return new PalmOSFilesystemNode();
}
-AbstractFilesystemNode *PalmOSFilesystemFactory::makeCurrentDirectoryFileNode() const {
+AbstractFSNode *PalmOSFilesystemFactory::makeCurrentDirectoryFileNode() const {
return new PalmOSFilesystemNode();
}
-AbstractFilesystemNode *PalmOSFilesystemFactory::makeFileNodePath(const Common::String &path) const {
+AbstractFSNode *PalmOSFilesystemFactory::makeFileNodePath(const Common::String &path) const {
return new PalmOSFilesystemNode(path);
}
#endif
Modified: scummvm/branches/gsoc2008-vkeybd/backends/fs/palmos/palmos-fs-factory.h
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/fs/palmos/palmos-fs-factory.h 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/fs/palmos/palmos-fs-factory.h 2008-10-03 14:25:03 UTC (rev 34730)
@@ -35,9 +35,9 @@
*/
class PalmOSFilesystemFactory : public FilesystemFactory, public Common::Singleton<PalmOSFilesystemFactory> {
public:
- virtual AbstractFilesystemNode *makeRootFileNode() const;
- virtual AbstractFilesystemNode *makeCurrentDirectoryFileNode() const;
- virtual AbstractFilesystemNode *makeFileNodePath(const Common::String &path) const;
+ virtual AbstractFSNode *makeRootFileNode() const;
+ virtual AbstractFSNode *makeCurrentDirectoryFileNode() const;
+ virtual AbstractFSNode *makeFileNodePath(const Common::String &path) const;
protected:
PalmOSFilesystemFactory() {};
Modified: scummvm/branches/gsoc2008-vkeybd/backends/fs/palmos/palmos-fs.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/fs/palmos/palmos-fs.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/fs/palmos/palmos-fs.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -33,9 +33,9 @@
/**
* Implementation of the ScummVM file system API based on PalmOS VFS API.
*
- * Parts of this class are documented in the base interface class, AbstractFilesystemNode.
+ * Parts of this class are documented in the base interface class, AbstractFSNode.
*/
-class PalmOSFilesystemNode : public AbstractFilesystemNode {
+class PalmOSFilesystemNode : public AbstractFSNode {
protected:
Common::String _displayName;
Common::String _path;
@@ -64,9 +64,9 @@
virtual bool isReadable() const { return true; } //FIXME: this is just a stub
virtual bool isWritable() const { return true; } //FIXME: this is just a stub
- virtual AbstractFilesystemNode *getChild(const Common::String &n) const;
+ virtual AbstractFSNode *getChild(const Common::String &n) const;
virtual bool getChildren(AbstractFSList &list, ListMode mode, bool hidden) const;
- virtual AbstractFilesystemNode *getParent() const;
+ virtual AbstractFSNode *getParent() const;
virtual Common::SeekableReadStream *openForReading();
virtual Common::WriteStream *openForWriting();
@@ -90,8 +90,8 @@
isDir = (find_data->attributes & vfsFileAttrDirectory);
- if ((!isDir && mode == Common::FilesystemNode::kListDirectoriesOnly) ||
- (isDir && mode == Common::FilesystemNode::kListFilesOnly))
+ if ((!isDir && mode == Common::FSNode::kListDirectoriesOnly) ||
+ (isDir && mode == Common::FSNode::kListFilesOnly))
return;
entry._isDirectory = isDir;
@@ -139,7 +139,7 @@
_isPseudoRoot = false;
}
-AbstractFilesystemNode *PalmOSFilesystemNode::getChild(const Common::String &n) const {
+AbstractFSNode *PalmOSFilesystemNode::getChild(const Common::String &n) const {
assert(_isDirectory);
Common::String newPath(_path);
@@ -190,7 +190,7 @@
return true;
}
-AbstractFilesystemNode *PalmOSFilesystemNode::getParent() const {
+AbstractFSNode *PalmOSFilesystemNode::getParent() const {
PalmOSFilesystemNode *p = 0;
if (!_isPseudoRoot) {
Modified: scummvm/branches/gsoc2008-vkeybd/backends/fs/posix/posix-fs-factory.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/fs/posix/posix-fs-factory.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/fs/posix/posix-fs-factory.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -26,17 +26,17 @@
#include "backends/fs/posix/posix-fs-factory.h"
#include "backends/fs/posix/posix-fs.cpp"
-AbstractFilesystemNode *POSIXFilesystemFactory::makeRootFileNode() const {
+AbstractFSNode *POSIXFilesystemFactory::makeRootFileNode() const {
return new POSIXFilesystemNode("/");
}
-AbstractFilesystemNode *POSIXFilesystemFactory::makeCurrentDirectoryFileNode() const {
+AbstractFSNode *POSIXFilesystemFactory::makeCurrentDirectoryFileNode() const {
char buf[MAXPATHLEN];
getcwd(buf, MAXPATHLEN);
return new POSIXFilesystemNode(buf);
}
-AbstractFilesystemNode *POSIXFilesystemFactory::makeFileNodePath(const Common::String &path) const {
+AbstractFSNode *POSIXFilesystemFactory::makeFileNodePath(const Common::String &path) const {
assert(!path.empty());
return new POSIXFilesystemNode(path);
}
Modified: scummvm/branches/gsoc2008-vkeybd/backends/fs/posix/posix-fs-factory.h
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/fs/posix/posix-fs-factory.h 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/fs/posix/posix-fs-factory.h 2008-10-03 14:25:03 UTC (rev 34730)
@@ -33,9 +33,9 @@
* Parts of this class are documented in the base interface class, FilesystemFactory.
*/
class POSIXFilesystemFactory : public FilesystemFactory {
- virtual AbstractFilesystemNode *makeRootFileNode() const;
- virtual AbstractFilesystemNode *makeCurrentDirectoryFileNode() const;
- virtual AbstractFilesystemNode *makeFileNodePath(const Common::String &path) const;
+ virtual AbstractFSNode *makeRootFileNode() const;
+ virtual AbstractFSNode *makeCurrentDirectoryFileNode() const;
+ virtual AbstractFSNode *makeFileNodePath(const Common::String &path) const;
};
#endif /*POSIX_FILESYSTEM_FACTORY_H*/
Modified: scummvm/branches/gsoc2008-vkeybd/backends/fs/posix/posix-fs.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/fs/posix/posix-fs.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/fs/posix/posix-fs.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -92,7 +92,7 @@
setFlags();
}
-AbstractFilesystemNode *POSIXFilesystemNode::getChild(const Common::String &n) const {
+AbstractFSNode *POSIXFilesystemNode::getChild(const Common::String &n) const {
assert(!_path.empty());
assert(_isDirectory);
@@ -197,8 +197,8 @@
continue;
// Honor the chosen mode
- if ((mode == Common::FilesystemNode::kListFilesOnly && entry._isDirectory) ||
- (mode == Common::FilesystemNode::kListDirectoriesOnly && !entry._isDirectory))
+ if ((mode == Common::FSNode::kListFilesOnly && entry._isDirectory) ||
+ (mode == Common::FSNode::kListDirectoriesOnly && !entry._isDirectory))
continue;
myList.push_back(new POSIXFilesystemNode(entry));
@@ -208,7 +208,7 @@
return true;
}
-AbstractFilesystemNode *POSIXFilesystemNode::getParent() const {
+AbstractFSNode *POSIXFilesystemNode::getParent() const {
if (_path == "/")
return 0; // The filesystem root has no parent
Modified: scummvm/branches/gsoc2008-vkeybd/backends/fs/posix/posix-fs.h
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/fs/posix/posix-fs.h 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/fs/posix/posix-fs.h 2008-10-03 14:25:03 UTC (rev 34730)
@@ -35,16 +35,16 @@
/**
* Implementation of the ScummVM file system API based on POSIX.
*
- * Parts of this class are documented in the base interface class, AbstractFilesystemNode.
+ * Parts of this class are documented in the base interface class, AbstractFSNode.
*/
-class POSIXFilesystemNode : public AbstractFilesystemNode {
+class POSIXFilesystemNode : public AbstractFSNode {
protected:
Common::String _displayName;
Common::String _path;
bool _isDirectory;
bool _isValid;
- virtual AbstractFilesystemNode *makeNode(const Common::String &path) const {
+ virtual AbstractFSNode *makeNode(const Common::String &path) const {
return new POSIXFilesystemNode(path);
}
@@ -69,9 +69,9 @@
virtual bool isReadable() const { return access(_path.c_str(), R_OK) == 0; }
virtual bool isWritable() const { return access(_path.c_str(), W_OK) == 0; }
- virtual AbstractFilesystemNode *getChild(const Common::String &n) const;
+ virtual AbstractFSNode *getChild(const Common::String &n) const;
virtual bool getChildren(AbstractFSList &list, ListMode mode, bool hidden) const;
- virtual AbstractFilesystemNode *getParent() const;
+ virtual AbstractFSNode *getParent() const;
virtual Common::SeekableReadStream *openForReading();
virtual Common::WriteStream *openForWriting();
Modified: scummvm/branches/gsoc2008-vkeybd/backends/fs/ps2/ps2-fs-factory.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/fs/ps2/ps2-fs-factory.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/fs/ps2/ps2-fs-factory.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -28,15 +28,15 @@
DECLARE_SINGLETON(Ps2FilesystemFactory);
-AbstractFilesystemNode *Ps2FilesystemFactory::makeRootFileNode() const {
+AbstractFSNode *Ps2FilesystemFactory::makeRootFileNode() const {
return new Ps2FilesystemNode();
}
-AbstractFilesystemNode *Ps2FilesystemFactory::makeCurrentDirectoryFileNode() const {
+AbstractFSNode *Ps2FilesystemFactory::makeCurrentDirectoryFileNode() const {
return new Ps2FilesystemNode();
}
-AbstractFilesystemNode *Ps2FilesystemFactory::makeFileNodePath(const Common::String &path) const {
+AbstractFSNode *Ps2FilesystemFactory::makeFileNodePath(const Common::String &path) const {
// return new Ps2FilesystemNode(path);
Ps2FilesystemNode *nf = new Ps2FilesystemNode(path, true);
Modified: scummvm/branches/gsoc2008-vkeybd/backends/fs/ps2/ps2-fs-factory.h
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/fs/ps2/ps2-fs-factory.h 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/fs/ps2/ps2-fs-factory.h 2008-10-03 14:25:03 UTC (rev 34730)
@@ -35,9 +35,9 @@
*/
class Ps2FilesystemFactory : public FilesystemFactory, public Common::Singleton<Ps2FilesystemFactory> {
public:
- virtual AbstractFilesystemNode *makeRootFileNode() const;
- virtual AbstractFilesystemNode *makeCurrentDirectoryFileNode() const;
- virtual AbstractFilesystemNode *makeFileNodePath(const Common::String &path) const;
+ virtual AbstractFSNode *makeRootFileNode() const;
+ virtual AbstractFSNode *makeCurrentDirectoryFileNode() const;
+ virtual AbstractFSNode *makeFileNodePath(const Common::String &path) const;
protected:
Ps2FilesystemFactory() {};
Modified: scummvm/branches/gsoc2008-vkeybd/backends/fs/ps2/ps2-fs.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/fs/ps2/ps2-fs.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/fs/ps2/ps2-fs.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -41,9 +41,9 @@
/**
* Implementation of the ScummVM file system API based on the Ps2SDK.
*
- * Parts of this class are documented in the base interface class, AbstractFilesystemNode.
+ * Parts of this class are documented in the base interface class, AbstractFSNode.
*/
-class Ps2FilesystemNode : public AbstractFilesystemNode {
+class Ps2FilesystemNode : public AbstractFSNode {
friend class Ps2FilesystemFactory;
@@ -95,10 +95,10 @@
return false;
}
- virtual AbstractFilesystemNode *clone() const { return new Ps2FilesystemNode(this); }
- virtual AbstractFilesystemNode *getChild(const Common::String &n) const;
+ virtual AbstractFSNode *clone() const { return new Ps2FilesystemNode(this); }
+ virtual AbstractFSNode *getChild(const Common::String &n) const;
virtual bool getChildren(AbstractFSList &list, ListMode mode, bool hidden) const;
- virtual AbstractFilesystemNode *getParent() const;
+ virtual AbstractFSNode *getParent() const;
virtual Common::SeekableReadStream *openForReading();
virtual Common::WriteStream *openForWriting();
@@ -210,7 +210,7 @@
return false;
}
-AbstractFilesystemNode *Ps2FilesystemNode::getChild(const Common::String &n) const {
+AbstractFSNode *Ps2FilesystemNode::getChild(const Common::String &n) const {
if (!_isDirectory)
return NULL;
@@ -288,9 +288,9 @@
while ((dreadRes = fio.dread(fd, &dirent)) > 0) {
if (dirent.name[0] == '.')
continue; // ignore '.' and '..'
- if (((mode == Common::FilesystemNode::kListDirectoriesOnly) && (dirent.stat.mode & FIO_S_IFDIR)) ||
- ((mode == Common::FilesystemNode::kListFilesOnly) && !(dirent.stat.mode & FIO_S_IFDIR)) ||
- (mode == Common::FilesystemNode::kListAll)) {
+ if (((mode == Common::FSNode::kListDirectoriesOnly) && (dirent.stat.mode & FIO_S_IFDIR)) ||
+ ((mode == Common::FSNode::kListFilesOnly) && !(dirent.stat.mode & FIO_S_IFDIR)) ||
+ (mode == Common::FSNode::kListAll)) {
dirEntry._isDirectory = (bool)(dirent.stat.mode & FIO_S_IFDIR);
dirEntry._isRoot = false;
@@ -312,7 +312,7 @@
}
}
-AbstractFilesystemNode *Ps2FilesystemNode::getParent() const {
+AbstractFSNode *Ps2FilesystemNode::getParent() const {
if (_isRoot)
return new Ps2FilesystemNode(this);
Modified: scummvm/branches/gsoc2008-vkeybd/backends/fs/psp/psp-fs-factory.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/fs/psp/psp-fs-factory.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/fs/psp/psp-fs-factory.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -28,15 +28,15 @@
DECLARE_SINGLETON(PSPFilesystemFactory);
-AbstractFilesystemNode *PSPFilesystemFactory::makeRootFileNode() const {
+AbstractFSNode *PSPFilesystemFactory::makeRootFileNode() const {
return new PSPFilesystemNode();
}
-AbstractFilesystemNode *PSPFilesystemFactory::makeCurrentDirectoryFileNode() const {
+AbstractFSNode *PSPFilesystemFactory::makeCurrentDirectoryFileNode() const {
return new PSPFilesystemNode();
}
-AbstractFilesystemNode *PSPFilesystemFactory::makeFileNodePath(const Common::String &path) const {
+AbstractFSNode *PSPFilesystemFactory::makeFileNodePath(const Common::String &path) const {
return new PSPFilesystemNode(path, true);
}
#endif
Modified: scummvm/branches/gsoc2008-vkeybd/backends/fs/psp/psp-fs-factory.h
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/fs/psp/psp-fs-factory.h 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/fs/psp/psp-fs-factory.h 2008-10-03 14:25:03 UTC (rev 34730)
@@ -35,9 +35,9 @@
*/
class PSPFilesystemFactory : public FilesystemFactory, public Common::Singleton<PSPFilesystemFactory> {
public:
- virtual AbstractFilesystemNode *makeRootFileNode() const;
- virtual AbstractFilesystemNode *makeCurrentDirectoryFileNode() const;
- virtual AbstractFilesystemNode *makeFileNodePath(const Common::String &path) const;
+ virtual AbstractFSNode *makeRootFileNode() const;
+ virtual AbstractFSNode *makeCurrentDirectoryFileNode() const;
+ virtual AbstractFSNode *makeFileNodePath(const Common::String &path) const;
protected:
PSPFilesystemFactory() {};
Modified: scummvm/branches/gsoc2008-vkeybd/backends/fs/psp/psp-fs.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/fs/psp/psp-fs.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/fs/psp/psp-fs.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -36,9 +36,9 @@
/**
* Implementation of the ScummVM file system API based on PSPSDK API.
*
- * Parts of this class are documented in the base interface class, AbstractFilesystemNode.
+ * Parts of this class are documented in the base interface class, AbstractFSNode.
*/
-class PSPFilesystemNode : public AbstractFilesystemNode {
+class PSPFilesystemNode : public AbstractFSNode {
protected:
Common::String _displayName;
Common::String _path;
@@ -67,9 +67,9 @@
virtual bool isReadable() const { return access(_path.c_str(), R_OK) == 0; }
virtual bool isWritable() const { return access(_path.c_str(), W_OK) == 0; }
- virtual AbstractFilesystemNode *getChild(const Common::String &n) const;
+ virtual AbstractFSNode *getChild(const Common::String &n) const;
virtual bool getChildren(AbstractFSList &list, ListMode mode, bool hidden) const;
- virtual AbstractFilesystemNode *getParent() const;
+ virtual AbstractFSNode *getParent() const;
virtual Common::SeekableReadStream *openForReading();
virtual Common::WriteStream *openForWriting();
@@ -97,7 +97,7 @@
}
}
-AbstractFilesystemNode *PSPFilesystemNode::getChild(const Common::String &n) const {
+AbstractFSNode *PSPFilesystemNode::getChild(const Common::String &n) const {
// FIXME: Pretty lame implementation! We do no error checking to speak
// of, do not check if this is a special node, etc.
assert(_isDirectory);
@@ -137,8 +137,8 @@
entry._path += "/";
// Honor the chosen mode
- if ((mode == Common::FilesystemNode::kListFilesOnly && entry._isDirectory) ||
- (mode == Common::FilesystemNode::kListDirectoriesOnly && !entry._isDirectory))
+ if ((mode == Common::FSNode::kListFilesOnly && entry._isDirectory) ||
+ (mode == Common::FSNode::kListDirectoriesOnly && !entry._isDirectory))
continue;
myList.push_back(new PSPFilesystemNode(entry));
@@ -151,7 +151,7 @@
}
}
-AbstractFilesystemNode *PSPFilesystemNode::getParent() const {
+AbstractFSNode *PSPFilesystemNode::getParent() const {
if (_path == ROOT_PATH)
return 0;
Modified: scummvm/branches/gsoc2008-vkeybd/backends/fs/symbian/symbian-fs-factory.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/fs/symbian/symbian-fs-factory.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/fs/symbian/symbian-fs-factory.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -26,17 +26,17 @@
#include "backends/fs/symbian/symbian-fs-factory.h"
#include "backends/fs/symbian/symbian-fs.cpp"
-AbstractFilesystemNode *SymbianFilesystemFactory::makeRootFileNode() const {
+AbstractFSNode *SymbianFilesystemFactory::makeRootFileNode() const {
return new SymbianFilesystemNode(true);
}
-AbstractFilesystemNode *SymbianFilesystemFactory::makeCurrentDirectoryFileNode() const {
+AbstractFSNode *SymbianFilesystemFactory::makeCurrentDirectoryFileNode() const {
char path[MAXPATHLEN];
getcwd(path, MAXPATHLEN);
return new SymbianFilesystemNode(path);
}
-AbstractFilesystemNode *SymbianFilesystemFactory::makeFileNodePath(const Common::String &path) const {
+AbstractFSNode *SymbianFilesystemFactory::makeFileNodePath(const Common::String &path) const {
return new SymbianFilesystemNode(path);
}
#endif
Modified: scummvm/branches/gsoc2008-vkeybd/backends/fs/symbian/symbian-fs-factory.h
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/fs/symbian/symbian-fs-factory.h 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/fs/symbian/symbian-fs-factory.h 2008-10-03 14:25:03 UTC (rev 34730)
@@ -34,9 +34,9 @@
*/
class SymbianFilesystemFactory : public FilesystemFactory {
public:
- virtual AbstractFilesystemNode *makeRootFileNode() const;
- virtual AbstractFilesystemNode *makeCurrentDirectoryFileNode() const;
- virtual AbstractFilesystemNode *makeFileNodePath(const Common::String &path) const;
+ virtual AbstractFSNode *makeRootFileNode() const;
+ virtual AbstractFSNode *makeCurrentDirectoryFileNode() const;
+ virtual AbstractFSNode *makeFileNodePath(const Common::String &path) const;
};
#endif /*SYMBIAN_FILESYSTEM_FACTORY_H*/
Modified: scummvm/branches/gsoc2008-vkeybd/backends/fs/symbian/symbian-fs.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/fs/symbian/symbian-fs.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/fs/symbian/symbian-fs.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -37,9 +37,9 @@
/**
* Implementation of the ScummVM file system API based on POSIX.
*
- * Parts of this class are documented in the base interface class, AbstractFilesystemNode.
+ * Parts of this class are documented in the base interface class, AbstractFSNode.
*/
-class SymbianFilesystemNode : public AbstractFilesystemNode {
+class SymbianFilesystemNode : public AbstractFSNode {
protected:
Common::String _displayName;
Common::String _path;
@@ -75,9 +75,9 @@
virtual bool isReadable() const { return access(_path.c_str(), R_OK) == 0; } //FIXME: this is just a stub
virtual bool isWritable() const { return access(_path.c_str(), W_OK) == 0; } //FIXME: this is just a stub
- virtual AbstractFilesystemNode *getChild(const Common::String &n) const;
+ virtual AbstractFSNode *getChild(const Common::String &n) const;
virtual bool getChildren(AbstractFSList &list, ListMode mode, bool hidden) const;
- virtual AbstractFilesystemNode *getParent() const;
+ virtual AbstractFSNode *getParent() const;
virtual Common::SeekableReadStream *openForReading();
virtual Common::WriteStream *openForWriting();
@@ -133,7 +133,7 @@
}
}
-AbstractFilesystemNode *SymbianFilesystemNode::getChild(const Common::String &n) const {
+AbstractFSNode *SymbianFilesystemNode::getChild(const Common::String &n) const {
assert(_isDirectory);
Common::String newPath(_path);
@@ -216,8 +216,8 @@
entry._isDirectory = fileentry.IsDir();
// Honor the chosen mode
- if ((mode == Common::FilesystemNode::kListFilesOnly && entry._isDirectory) ||
- (mode == Common::FilesystemNode::kListDirectoriesOnly && !entry._isDirectory))
+ if ((mode == Common::FSNode::kListFilesOnly && entry._isDirectory) ||
+ (mode == Common::FSNode::kListDirectoriesOnly && !entry._isDirectory))
continue;
myList.push_back(new SymbianFilesystemNode(entry));
@@ -229,7 +229,7 @@
return true;
}
-AbstractFilesystemNode *SymbianFilesystemNode::getParent() const {
+AbstractFSNode *SymbianFilesystemNode::getParent() const {
SymbianFilesystemNode *p =NULL;
// Root node is its own parent. Still we can't just return this
Modified: scummvm/branches/gsoc2008-vkeybd/backends/fs/wii/wii-fs-factory.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/fs/wii/wii-fs-factory.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/fs/wii/wii-fs-factory.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -29,11 +29,11 @@
DECLARE_SINGLETON(WiiFilesystemFactory);
-AbstractFilesystemNode *WiiFilesystemFactory::makeRootFileNode() const {
+AbstractFSNode *WiiFilesystemFactory::makeRootFileNode() const {
return new WiiFilesystemNode();
}
-AbstractFilesystemNode *WiiFilesystemFactory::makeCurrentDirectoryFileNode() const {
+AbstractFSNode *WiiFilesystemFactory::makeCurrentDirectoryFileNode() const {
char buf[MAXPATHLEN];
if (getcwd(buf, MAXPATHLEN))
@@ -42,7 +42,7 @@
return new WiiFilesystemNode();
}
-AbstractFilesystemNode *WiiFilesystemFactory::makeFileNodePath(const Common::String &path) const {
+AbstractFSNode *WiiFilesystemFactory::makeFileNodePath(const Common::String &path) const {
return new WiiFilesystemNode(path, true);
}
#endif
Modified: scummvm/branches/gsoc2008-vkeybd/backends/fs/wii/wii-fs-factory.h
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/fs/wii/wii-fs-factory.h 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/fs/wii/wii-fs-factory.h 2008-10-03 14:25:03 UTC (rev 34730)
@@ -33,9 +33,9 @@
*/
class WiiFilesystemFactory : public FilesystemFactory, public Common::Singleton<WiiFilesystemFactory> {
public:
- virtual AbstractFilesystemNode *makeRootFileNode() const;
- virtual AbstractFilesystemNode *makeCurrentDirectoryFileNode() const;
- virtual AbstractFilesystemNode *makeFileNodePath(const Common::String &path) const;
+ virtual AbstractFSNode *makeRootFileNode() const;
+ virtual AbstractFSNode *makeCurrentDirectoryFileNode() const;
+ virtual AbstractFSNode *makeFileNodePath(const Common::String &path) const;
protected:
WiiFilesystemFactory() {};
Modified: scummvm/branches/gsoc2008-vkeybd/backends/fs/wii/wii-fs.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/fs/wii/wii-fs.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/fs/wii/wii-fs.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -34,9 +34,9 @@
/**
* Implementation of the ScummVM file system API based on Wii.
*
- * Parts of this class are documented in the base interface class, AbstractFilesystemNode.
+ * Parts of this class are documented in the base interface class, AbstractFSNode.
*/
-class WiiFilesystemNode : public AbstractFilesystemNode {
+class WiiFilesystemNode : public AbstractFSNode {
protected:
Common::String _displayName;
Common::String _path;
@@ -64,9 +64,9 @@
virtual bool isReadable() const { return _isReadable; }
virtual bool isWritable() const { return _isWritable; }
- virtual AbstractFilesystemNode *getChild(const Common::String &n) const;
+ virtual AbstractFSNode *getChild(const Common::String &n) const;
virtual bool getChildren(AbstractFSList &list, ListMode mode, bool hidden) const;
- virtual AbstractFilesystemNode *getParent() const;
+ virtual AbstractFSNode *getParent() const;
virtual Common::SeekableReadStream *openForReading();
virtual Common::WriteStream *openForWriting();
@@ -114,7 +114,7 @@
return stat(_path.c_str (), &st) == 0;
}
-AbstractFilesystemNode *WiiFilesystemNode::getChild(const Common::String &n) const {
+AbstractFSNode *WiiFilesystemNode::getChild(const Common::String &n) const {
assert(_isDirectory);
Common::String newPath(_path);
@@ -147,8 +147,8 @@
bool isDir = S_ISDIR(st.st_mode);
- if ((mode == Common::FilesystemNode::kListFilesOnly && isDir) ||
- (mode == Common::FilesystemNode::kListDirectoriesOnly && !isDir))
+ if ((mode == Common::FSNode::kListFilesOnly && isDir) ||
+ (mode == Common::FSNode::kListDirectoriesOnly && !isDir))
continue;
if (isDir)
@@ -162,7 +162,7 @@
return true;
}
-AbstractFilesystemNode *WiiFilesystemNode::getParent() const {
+AbstractFSNode *WiiFilesystemNode::getParent() const {
if (_path == "/")
return 0;
Modified: scummvm/branches/gsoc2008-vkeybd/backends/fs/windows/windows-fs-factory.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/fs/windows/windows-fs-factory.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/fs/windows/windows-fs-factory.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -26,15 +26,15 @@
#include "backends/fs/windows/windows-fs-factory.h"
#include "backends/fs/windows/windows-fs.cpp"
-AbstractFilesystemNode *WindowsFilesystemFactory::makeRootFileNode() const {
+AbstractFSNode *WindowsFilesystemFactory::makeRootFileNode() const {
return new WindowsFilesystemNode();
}
-AbstractFilesystemNode *WindowsFilesystemFactory::makeCurrentDirectoryFileNode() const {
+AbstractFSNode *WindowsFilesystemFactory::makeCurrentDirectoryFileNode() const {
return new WindowsFilesystemNode("", true);
}
-AbstractFilesystemNode *WindowsFilesystemFactory::makeFileNodePath(const Common::String &path) const {
+AbstractFSNode *WindowsFilesystemFactory::makeFileNodePath(const Common::String &path) const {
return new WindowsFilesystemNode(path, false);
}
#endif
Modified: scummvm/branches/gsoc2008-vkeybd/backends/fs/windows/windows-fs-factory.h
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/fs/windows/windows-fs-factory.h 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/fs/windows/windows-fs-factory.h 2008-10-03 14:25:03 UTC (rev 34730)
@@ -34,9 +34,9 @@
*/
class WindowsFilesystemFactory : public FilesystemFactory {
public:
- virtual AbstractFilesystemNode *makeRootFileNode() const;
- virtual AbstractFilesystemNode *makeCurrentDirectoryFileNode() const;
- virtual AbstractFilesystemNode *makeFileNodePath(const Common::String &path) const;
+ virtual AbstractFSNode *makeRootFileNode() const;
+ virtual AbstractFSNode *makeCurrentDirectoryFileNode() const;
+ virtual AbstractFSNode *makeFileNodePath(const Common::String &path) const;
};
#endif /*WINDOWS_FILESYSTEM_FACTORY_H*/
Modified: scummvm/branches/gsoc2008-vkeybd/backends/fs/windows/windows-fs.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/fs/windows/windows-fs.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/fs/windows/windows-fs.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -55,9 +55,9 @@
/**
* Implementation of the ScummVM file system API based on Windows API.
*
- * Parts of this class are documented in the base interface class, AbstractFilesystemNode.
+ * Parts of this class are documented in the base interface class, AbstractFSNode.
*/
-class WindowsFilesystemNode : public AbstractFilesystemNode {
+class WindowsFilesystemNode : public AbstractFSNode {
protected:
Common::String _displayName;
Common::String _path;
@@ -95,9 +95,9 @@
virtual bool isReadable() const { return _access(_path.c_str(), R_OK) == 0; }
virtual bool isWritable() const { return _access(_path.c_str(), W_OK) == 0; }
- virtual AbstractFilesystemNode *getChild(const Common::String &n) const;
+ virtual AbstractFSNode *getChild(const Common::String &n) const;
virtual bool getChildren(AbstractFSList &list, ListMode mode, bool hidden) const;
- virtual AbstractFilesystemNode *getParent() const;
+ virtual AbstractFSNode *getParent() const;
virtual Common::SeekableReadStream *openForReading();
virtual Common::WriteStream *openForWriting();
@@ -142,8 +142,8 @@
isDirectory = (find_data->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY ? true : false);
- if ((!isDirectory && mode == Common::FilesystemNode::kListDirectoriesOnly) ||
- (isDirectory && mode == Common::FilesystemNode::kListFilesOnly))
+ if ((!isDirectory && mode == Common::FSNode::kListDirectoriesOnly) ||
+ (isDirectory && mode == Common::FSNode::kListFilesOnly))
return;
entry._isDirectory = isDirectory;
@@ -223,7 +223,7 @@
_isPseudoRoot = false;
}
-AbstractFilesystemNode *WindowsFilesystemNode::getChild(const Common::String &n) const {
+AbstractFSNode *WindowsFilesystemNode::getChild(const Common::String &n) const {
assert(_isDirectory);
Common::String newPath(_path);
@@ -285,7 +285,7 @@
return true;
}
-AbstractFilesystemNode *WindowsFilesystemNode::getParent() const {
+AbstractFSNode *WindowsFilesystemNode::getParent() const {
assert(_isValid || _isPseudoRoot);
if (_isPseudoRoot)
Modified: scummvm/branches/gsoc2008-vkeybd/backends/platform/dc/dc-fs.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/platform/dc/dc-fs.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/platform/dc/dc-fs.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -33,9 +33,9 @@
/**
* Implementation of the ScummVM file system API based on Ronin.
*
- * Parts of this class are documented in the base interface class, AbstractFilesystemNode.
+ * Parts of this class are documented in the base interface class, AbstractFSNode.
*/
-class RoninCDFileNode : public AbstractFilesystemNode {
+class RoninCDFileNode : public AbstractFSNode {
protected:
Common::String _path;
@@ -49,14 +49,14 @@
virtual bool isReadable() const { return true; }
virtual bool isWritable() const { return false; }
- virtual AbstractFilesystemNode *getChild(const Common::String &n) const { return NULL; }
+ virtual AbstractFSNode *getChild(const Common::String &n) const { return NULL; }
virtual bool getChildren(AbstractFSList &list, ListMode mode, bool hidden) const { return false; }
- virtual AbstractFilesystemNode *getParent() const;
+ virtual AbstractFSNode *getParent() const;
virtual Common::SeekableReadStream *openForReading();
virtual Common::WriteStream *openForWriting() { return 0; }
- static AbstractFilesystemNode *makeFileNodePath(const Common::String &path);
+ static AbstractFSNode *makeFileNodePath(const Common::String &path);
};
/* A directory */
@@ -65,7 +65,7 @@
RoninCDDirectoryNode(const Common::String &path) : RoninCDFileNode(path) {};
virtual bool isDirectory() const { return true; }
- virtual AbstractFilesystemNode *getChild(const Common::String &n) const;
+ virtual AbstractFSNode *getChild(const Common::String &n) const;
virtual bool getChildren(AbstractFSList &list, ListMode mode, bool hidden) const;
virtual Common::SeekableReadStream *openForReading() { return 0; }
};
@@ -80,7 +80,7 @@
virtual Common::SeekableReadStream *openForReading() { return 0; }
};
-AbstractFilesystemNode *RoninCDFileNode::makeFileNodePath(const Common::String &path) {
+AbstractFSNode *RoninCDFileNode::makeFileNodePath(const Common::String &path) {
assert(path.size() > 0);
int fd;
@@ -96,7 +96,7 @@
}
}
-AbstractFilesystemNode *RoninCDDirectoryNode::getChild(const Common::String &n) const {
+AbstractFSNode *RoninCDDirectoryNode::getChild(const Common::String &n) const {
Common::String newPath(_path);
if (_path.lastChar() != '/')
newPath += '/';
@@ -122,13 +122,13 @@
if (dp->d_size < 0) {
// Honor the chosen mode
- if (mode == Common::FilesystemNode::kListFilesOnly)
+ if (mode == Common::FSNode::kListFilesOnly)
continue;
myList.push_back(new RoninCDDirectoryNode(newPath+"/"));
} else {
// Honor the chosen mode
- if (mode == Common::FilesystemNode::kListDirectoriesOnly)
+ if (mode == Common::FSNode::kListDirectoriesOnly)
continue;
myList.push_back(new RoninCDFileNode(newPath));
@@ -139,7 +139,7 @@
return true;
}
-AbstractFilesystemNode *RoninCDFileNode::getParent() const {
+AbstractFSNode *RoninCDFileNode::getParent() const {
if (_path == "/")
return 0;
@@ -154,16 +154,16 @@
return StdioStream::makeFromPath(getPath().c_str(), false);
}
-AbstractFilesystemNode *OSystem_Dreamcast::makeRootFileNode() const {
+AbstractFSNode *OSystem_Dreamcast::makeRootFileNode() const {
return new RoninCDDirectoryNode("/");
}
-AbstractFilesystemNode *OSystem_Dreamcast::makeCurrentDirectoryFileNode() const {
+AbstractFSNode *OSystem_Dreamcast::makeCurrentDirectoryFileNode() const {
return makeRootFileNode();
}
-AbstractFilesystemNode *OSystem_Dreamcast::makeFileNodePath(const Common::String &path) const {
- AbstractFilesystemNode *node = RoninCDFileNode::makeFileNodePath(path);
+AbstractFSNode *OSystem_Dreamcast::makeFileNodePath(const Common::String &path) const {
+ AbstractFSNode *node = RoninCDFileNode::makeFileNodePath(path);
return (node? node : new RoninCDNonexistingNode(path));
}
Modified: scummvm/branches/gsoc2008-vkeybd/backends/platform/dc/dc.h
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/platform/dc/dc.h 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/platform/dc/dc.h 2008-10-03 14:25:03 UTC (rev 34730)
@@ -189,9 +189,9 @@
// Filesystem
FilesystemFactory *getFilesystemFactory() { return this; }
- AbstractFilesystemNode *makeRootFileNode() const;
- AbstractFilesystemNode *makeCurrentDirectoryFileNode() const;
- AbstractFilesystemNode *makeFileNodePath(const Common::String &path) const;
+ AbstractFSNode *makeRootFileNode() const;
+ AbstractFSNode *makeCurrentDirectoryFileNode() const;
+ AbstractFSNode *makeFileNodePath(const Common::String &path) const;
private:
Modified: scummvm/branches/gsoc2008-vkeybd/backends/platform/dc/selector.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/platform/dc/selector.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/platform/dc/selector.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -146,12 +146,12 @@
{
char name[252];
char deficon[256];
- Common::FilesystemNode node;
+ Common::FSNode node;
};
static Game the_game;
-static bool isIcon(const Common::FilesystemNode &entry)
+static bool isIcon(const Common::FSNode &entry)
{
int l = entry.getDisplayName().size();
if (l>4 && !strcasecmp(entry.getDisplayName().c_str()+l-4, ".ICO"))
@@ -198,13 +198,13 @@
{
Dir *dirs = new Dir[MAX_DIR];
int curr_game = 0, curr_dir = 0, num_dirs = 1;
- dirs[0].node = Common::FilesystemNode("");
+ dirs[0].node = Common::FSNode("");
while (curr_game < max && curr_dir < num_dirs) {
strncpy(dirs[curr_dir].name, dirs[curr_dir].node.getPath().c_str(), 252);
dirs[curr_dir].name[251] = '\0';
dirs[curr_dir].deficon[0] = '\0';
Common::FSList files, fslist;
- dirs[curr_dir++].node.getChildren(fslist, Common::FilesystemNode::kListAll);
+ dirs[curr_dir++].node.getChildren(fslist, Common::FSNode::kListAll);
for (Common::FSList::const_iterator entry = fslist.begin(); entry != fslist.end();
++entry) {
if (entry->isDirectory()) {
Modified: scummvm/branches/gsoc2008-vkeybd/backends/platform/gp2x/gp2x.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/platform/gp2x/gp2x.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/platform/gp2x/gp2x.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -145,6 +145,7 @@
if (mkdir(enginedataPath, 0755) != 0)
warning("mkdir for '%s' failed!", enginedataPath);
+ //FIXME: Do not use File::addDefaultDirectory, rather implement OSystem::addSysArchivesToSearchSet() !
Common::File::addDefaultDirectory(enginedataPath);
// Note: Review and clean this, it's OTT at the moment.
Modified: scummvm/branches/gsoc2008-vkeybd/backends/platform/sdl/sdl.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/platform/sdl/sdl.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/platform/sdl/sdl.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -280,12 +280,12 @@
return _fsFactory;
}
-void OSystem_SDL::addSysArchivesToSearchSet(Common::SearchSet &s, uint priority) {
+void OSystem_SDL::addSysArchivesToSearchSet(Common::SearchSet &s, int priority) {
#ifdef DATA_PATH
// Add the global DATA_PATH to the directory search list
// FIXME: We use depth = 4 for now, to match the old code. May want to change that
- Common::FilesystemNode dataNode(DATA_PATH);
+ Common::FSNode dataNode(DATA_PATH);
if (dataNode.exists() && dataNode.isDirectory()) {
Common::ArchivePtr dataArchive(new Common::FSDirectory(dataNode, 4));
s.add(DATA_PATH, dataArchive, priority);
@@ -378,12 +378,12 @@
}
Common::SeekableReadStream *OSystem_SDL::openConfigFileForReading() {
- Common::FilesystemNode file(getDefaultConfigFileName());
+ Common::FSNode file(getDefaultConfigFileName());
return file.openForReading();
}
Common::WriteStream *OSystem_SDL::openConfigFileForWriting() {
- Common::FilesystemNode file(getDefaultConfigFileName());
+ Common::FSNode file(getDefaultConfigFileName());
return file.openForWriting();
}
Modified: scummvm/branches/gsoc2008-vkeybd/backends/platform/sdl/sdl.h
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/platform/sdl/sdl.h 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/platform/sdl/sdl.h 2008-10-03 14:25:03 UTC (rev 34730)
@@ -212,7 +212,7 @@
virtual Common::SaveFileManager *getSavefileManager();
virtual FilesystemFactory *getFilesystemFactory();
- virtual void addSysArchivesToSearchSet(Common::SearchSet &s, uint priority = 0);
+ virtual void addSysArchivesToSearchSet(Common::SearchSet &s, int priority = 0);
virtual Common::SeekableReadStream *openConfigFileForReading();
virtual Common::WriteStream *openConfigFileForWriting();
Modified: scummvm/branches/gsoc2008-vkeybd/backends/platform/symbian/src/SymbianOS.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/platform/symbian/src/SymbianOS.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/platform/symbian/src/SymbianOS.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -124,12 +124,12 @@
}
Common::SeekableReadStream *OSystem_SDL_Symbian::openConfigFileForReading() {
- Common::FilesystemNode file(getDefaultConfigFileName());
+ Common::FSNode file(getDefaultConfigFileName());
return file.openForReading();
}
Common::WriteStream *OSystem_SDL_Symbian::openConfigFileForWriting() {
- Common::FilesystemNode file(getDefaultConfigFileName());
+ Common::FSNode file(getDefaultConfigFileName());
return file.openForWriting();
}
Modified: scummvm/branches/gsoc2008-vkeybd/backends/platform/wince/CELauncherDialog.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/platform/wince/CELauncherDialog.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/platform/wince/CELauncherDialog.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -72,10 +72,10 @@
}
}
-void CELauncherDialog::automaticScanDirectory(const Common::FilesystemNode &node) {
+void CELauncherDialog::automaticScanDirectory(const Common::FSNode &node) {
// First check if we have a recognized game in the current directory
Common::FSList files;
- node.getChildren(files, Common::FilesystemNode::kListFilesOnly);
+ node.getChildren(files, Common::FSNode::kListFilesOnly);
// detect
GameList candidates(EngineMan.detectGames(files));
// insert
@@ -86,7 +86,7 @@
}
// Then recurse on the subdirectories
Common::FSList dirs;
- node.getChildren(dirs, Common::FilesystemNode::kListDirectoriesOnly);
+ node.getChildren(dirs, Common::FSNode::kListDirectoriesOnly);
for (Common::FSList::const_iterator currentDir = dirs.begin(); currentDir != dirs.end(); ++currentDir)
automaticScanDirectory(*currentDir);
Modified: scummvm/branches/gsoc2008-vkeybd/backends/platform/wince/CELauncherDialog.h
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/platform/wince/CELauncherDialog.h 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/platform/wince/CELauncherDialog.h 2008-10-03 14:25:03 UTC (rev 34730)
@@ -36,7 +36,7 @@
virtual void handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 data);
protected:
void addGame();
- void automaticScanDirectory(const Common::FilesystemNode &node);
+ void automaticScanDirectory(const Common::FSNode &node);
};
typedef GUI::LauncherDialog GUILauncherDialog;
Modified: scummvm/branches/gsoc2008-vkeybd/backends/plugins/dc/dc-provider.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/plugins/dc/dc-provider.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/plugins/dc/dc-provider.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -27,6 +27,7 @@
#include "backends/plugins/dc/dc-provider.h"
#include "backends/plugins/dynamic-plugin.h"
+#include "common/fs.h"
#include "dcloader.h"
@@ -83,12 +84,13 @@
};
-Plugin* DCPluginProvider::createPlugin(const Common::String &filename) const {
- return new DCPlugin(filename);
+Plugin* DCPluginProvider::createPlugin(const Common::FSNode &node) const {
+ return new DCPlugin(node.getPath());
}
-bool DCPluginProvider::isPluginFilename(const Common::String &filename) const {
+bool DCPluginProvider::isPluginFilename(const Common::FSNode &node) const {
// Check the plugin suffix
+ Common::String filename = node.getName();
if (!filename.hasSuffix(".PLG"))
return false;
Modified: scummvm/branches/gsoc2008-vkeybd/backends/plugins/dc/dc-provider.h
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/plugins/dc/dc-provider.h 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/plugins/dc/dc-provider.h 2008-10-03 14:25:03 UTC (rev 34730)
@@ -32,9 +32,9 @@
class DCPluginProvider : public FilePluginProvider {
protected:
- Plugin* createPlugin(const Common::String &filename) const;
+ Plugin* createPlugin(const Common::FSNode &node) const;
- bool isPluginFilename(const Common::String &filename) const;
+ bool isPluginFilename(const Common::FSNode &node) const;
virtual void addCustomDirectories(Common::StringList &dirs) const {
dirs.push_back("/");
Modified: scummvm/branches/gsoc2008-vkeybd/backends/plugins/posix/posix-provider.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/plugins/posix/posix-provider.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/plugins/posix/posix-provider.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -27,6 +27,7 @@
#include "backends/plugins/posix/posix-provider.h"
#include "backends/plugins/dynamic-plugin.h"
+#include "common/fs.h"
#include <dlfcn.h>
@@ -78,8 +79,8 @@
};
-Plugin* POSIXPluginProvider::createPlugin(const Common::String &filename) const {
- return new POSIXPlugin(filename);
+Plugin* POSIXPluginProvider::createPlugin(const Common::FSNode &node) const {
+ return new POSIXPlugin(node.getPath());
}
Modified: scummvm/branches/gsoc2008-vkeybd/backends/plugins/posix/posix-provider.h
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/plugins/posix/posix-provider.h 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/plugins/posix/posix-provider.h 2008-10-03 14:25:03 UTC (rev 34730)
@@ -32,7 +32,7 @@
class POSIXPluginProvider : public FilePluginProvider {
protected:
- Plugin* createPlugin(const Common::String &filename) const;
+ Plugin* createPlugin(const Common::FSNode &node) const;
};
#endif // defined(DYNAMIC_MODULES) && defined(UNIX)
Modified: scummvm/branches/gsoc2008-vkeybd/backends/plugins/sdl/sdl-provider.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/plugins/sdl/sdl-provider.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/plugins/sdl/sdl-provider.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -27,6 +27,7 @@
#include "backends/plugins/sdl/sdl-provider.h"
#include "backends/plugins/dynamic-plugin.h"
+#include "common/fs.h"
#include "SDL.h"
#include "SDL_loadso.h"
@@ -78,8 +79,8 @@
};
-Plugin* SDLPluginProvider::createPlugin(const Common::String &filename) const {
- return new SDLPlugin(filename);
+Plugin* SDLPluginProvider::createPlugin(const Common::FSNode &node) const {
+ return new SDLPlugin(node.getPath());
}
Modified: scummvm/branches/gsoc2008-vkeybd/backends/plugins/sdl/sdl-provider.h
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/plugins/sdl/sdl-provider.h 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/plugins/sdl/sdl-provider.h 2008-10-03 14:25:03 UTC (rev 34730)
@@ -32,7 +32,7 @@
class SDLPluginProvider : public FilePluginProvider {
protected:
- Plugin* createPlugin(const Common::String &filename) const;
+ Plugin* createPlugin(const Common::FSNode &node) const;
};
#endif // defined(DYNAMIC_MODULES) && defined(UNIX)
Modified: scummvm/branches/gsoc2008-vkeybd/backends/plugins/win32/win32-provider.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/plugins/win32/win32-provider.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/plugins/win32/win32-provider.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -27,6 +27,7 @@
#include "backends/plugins/win32/win32-provider.h"
#include "backends/plugins/dynamic-plugin.h"
+#include "common/fs.h"
#include <windows.h>
@@ -96,12 +97,13 @@
};
-Plugin* Win32PluginProvider::createPlugin(const Common::String &filename) const {
- return new Win32Plugin(filename);
+Plugin* Win32PluginProvider::createPlugin(const Common::FSNode &node) const {
+ return new Win32Plugin(node.getPath());
}
-bool Win32PluginProvider::isPluginFilename(const Common::String &filename) const {
+bool Win32PluginProvider::isPluginFilename(const Common::FSNode &node) const {
// Check the plugin suffix
+ Common::String filename = node.getName();
if (!filename.hasSuffix(".dll"))
return false;
Modified: scummvm/branches/gsoc2008-vkeybd/backends/plugins/win32/win32-provider.h
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/plugins/win32/win32-provider.h 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/plugins/win32/win32-provider.h 2008-10-03 14:25:03 UTC (rev 34730)
@@ -32,9 +32,9 @@
class Win32PluginProvider : public FilePluginProvider {
protected:
- Plugin* createPlugin(const Common::String &filename) const;
+ Plugin* createPlugin(const Common::FSNode &node) const;
- bool isPluginFilename(const Common::String &filename) const;
+ bool isPluginFilename(const Common::FSNode &node) const;
virtual void addCustomDirectories(Common::StringList &dirs) const {}
};
Modified: scummvm/branches/gsoc2008-vkeybd/backends/saves/default/default-saves.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/saves/default/default-saves.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/saves/default/default-saves.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -71,7 +71,7 @@
Common::StringList DefaultSaveFileManager::listSavefiles(const char *pattern) {
- Common::FilesystemNode savePath(getSavePath());
+ Common::FSNode savePath(getSavePath());
Common::FSList savefiles;
Common::StringList results;
Common::String search(pattern);
@@ -85,7 +85,7 @@
return results;
}
-void DefaultSaveFileManager::checkPath(const Common::FilesystemNode &dir) {
+void DefaultSaveFileManager::checkPath(const Common::FSNode &dir) {
const Common::String path = dir.getPath();
clearError();
@@ -152,7 +152,7 @@
#else
if (!dir.exists()) {
// TODO: We could try to mkdir the directory here; or rather, we could
- // add a mkdir method to FilesystemNode and invoke that here.
+ // add a mkdir method to FSNode and invoke that here.
setError(SFM_DIR_NOENT, "A component of the path does not exist, or the path is an empty string: "+path);
} else if (!dir.isDirectory()) {
setError(SFM_DIR_NOTDIR, "The given savepath is not a directory: "+path);
@@ -162,11 +162,11 @@
Common::InSaveFile *DefaultSaveFileManager::openForLoading(const char *filename) {
// Ensure that the savepath is valid. If not, generate an appropriate error.
- Common::FilesystemNode savePath(getSavePath());
+ Common::FSNode savePath(getSavePath());
checkPath(savePath);
if (getError() == SFM_NO_ERROR) {
- Common::FilesystemNode file = savePath.getChild(filename);
+ Common::FSNode file = savePath.getChild(filename);
// Open the file for reading
Common::SeekableReadStream *sf = file.openForReading();
@@ -179,11 +179,11 @@
Common::OutSaveFile *DefaultSaveFileManager::openForSaving(const char *filename) {
// Ensure that the savepath is valid. If not, generate an appropriate error.
- Common::FilesystemNode savePath(getSavePath());
+ Common::FSNode savePath(getSavePath());
checkPath(savePath);
if (getError() == SFM_NO_ERROR) {
- Common::FilesystemNode file = savePath.getChild(filename);
+ Common::FSNode file = savePath.getChild(filename);
// Open the file for saving
Common::WriteStream *sf = file.openForWriting();
@@ -197,10 +197,10 @@
bool DefaultSaveFileManager::removeSavefile(const char *filename) {
clearError();
- Common::FilesystemNode savePath(getSavePath());
- Common::FilesystemNode file = savePath.getChild(filename);
+ Common::FSNode savePath(getSavePath());
+ Common::FSNode file = savePath.getChild(filename);
- // TODO: Add new method FilesystemNode::remove()
+ // TODO: Add new method FSNode::remove()
if (remove(file.getPath().c_str()) != 0) {
#ifndef _WIN32_WCE
if (errno == EACCES)
Modified: scummvm/branches/gsoc2008-vkeybd/backends/saves/default/default-saves.h
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/backends/saves/default/default-saves.h 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/backends/saves/default/default-saves.h 2008-10-03 14:25:03 UTC (rev 34730)
@@ -55,7 +55,7 @@
* Checks the given path for read access, existence, etc.
* Sets the internal error and error message accordingly.
*/
- void checkPath(const Common::FilesystemNode &dir);
+ void checkPath(const Common::FSNode &dir);
};
#endif
Modified: scummvm/branches/gsoc2008-vkeybd/base/commandLine.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/base/commandLine.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/base/commandLine.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -365,7 +365,7 @@
END_OPTION
DO_OPTION('p', "path")
- Common::FilesystemNode path(option);
+ Common::FSNode path(option);
if (!path.exists()) {
usage("Non-existent game path '%s'", option);
} else if (!path.isReadable()) {
@@ -408,7 +408,7 @@
END_OPTION
DO_LONG_OPTION("soundfont")
- Common::FilesystemNode path(option);
+ Common::FSNode path(option);
if (!path.exists()) {
usage("Non-existent soundfont path '%s'", option);
} else if (!path.isReadable()) {
@@ -438,7 +438,7 @@
END_OPTION
DO_LONG_OPTION("savepath")
- Common::FilesystemNode path(option);
+ Common::FSNode path(option);
if (!path.exists()) {
usage("Non-existent savegames path '%s'", option);
} else if (!path.isWritable()) {
@@ -447,7 +447,7 @@
END_OPTION
DO_LONG_OPTION("extrapath")
- Common::FilesystemNode path(option);
+ Common::FSNode path(option);
if (!path.exists()) {
usage("Non-existent extra path '%s'", option);
} else if (!path.isReadable()) {
@@ -465,7 +465,7 @@
END_OPTION
DO_LONG_OPTION("themepath")
- Common::FilesystemNode path(option);
+ Common::FSNode path(option);
if (!path.exists()) {
usage("Non-existent theme path '%s'", option);
} else if (!path.isReadable()) {
@@ -623,9 +623,9 @@
gameid = name;
}
- Common::FilesystemNode dir(path);
+ Common::FSNode dir(path);
Common::FSList files;
- if (!dir.getChildren(files, Common::FilesystemNode::kListAll)) {
+ if (!dir.getChildren(files, Common::FSNode::kListAll)) {
printf(" ... invalid path, skipping\n");
continue;
}
@@ -736,7 +736,7 @@
if (!settings.contains("savepath")) {
const char *dir = getenv("SCUMMVM_SAVEPATH");
if (dir && *dir && strlen(dir) < MAXPATHLEN) {
- Common::FilesystemNode saveDir(dir);
+ Common::FSNode saveDir(dir);
if (!saveDir.exists()) {
warning("Non-existent SCUMMVM_SAVEPATH save path. It will be ignored.");
} else if (!saveDir.isWritable()) {
Modified: scummvm/branches/gsoc2008-vkeybd/base/plugins.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/base/plugins.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/base/plugins.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -207,8 +207,8 @@
Common::FSList pluginDirs;
// Add the default directories
- pluginDirs.push_back(Common::FilesystemNode("."));
- pluginDirs.push_back(Common::FilesystemNode("plugins"));
+ pluginDirs.push_back(Common::FSNode("."));
+ pluginDirs.push_back(Common::FSNode("plugins"));
// Add the provider's custom directories
addCustomDirectories(pluginDirs);
@@ -216,14 +216,14 @@
// Add the user specified directory
Common::String pluginsPath(ConfMan.get("pluginspath"));
if (!pluginsPath.empty())
- pluginDirs.push_back(Common::FilesystemNode(pluginsPath));
+ pluginDirs.push_back(Common::FSNode(pluginsPath));
Common::FSList::const_iterator dir;
for (dir = pluginDirs.begin(); dir != pluginDirs.end(); dir++) {
// Load all plugins.
// Scan for all plugins in this directory
Common::FSList files;
- if (!dir->getChildren(files, Common::FilesystemNode::kListFilesOnly)) {
+ if (!dir->getChildren(files, Common::FSNode::kListFilesOnly)) {
debug(1, "Couldn't open plugin directory '%s'", dir->getPath().c_str());
continue;
} else {
@@ -231,8 +231,8 @@
}
for (Common::FSList::const_iterator i = files.begin(); i != files.end(); ++i) {
- if (isPluginFilename(i->getName())) {
- pl.push_back(createPlugin(i->getPath()));
+ if (isPluginFilename(*i)) {
+ pl.push_back(createPlugin(*i));
}
}
}
@@ -240,7 +240,9 @@
return pl;
}
-bool FilePluginProvider::isPluginFilename(const Common::String &filename) const {
+bool FilePluginProvider::isPluginFilename(const Common::FSNode &node) const {
+ Common::String filename = node.getName();
+
#ifdef PLUGIN_PREFIX
// Check the plugin prefix
if (!filename.hasPrefix(PLUGIN_PREFIX))
@@ -258,7 +260,7 @@
void FilePluginProvider::addCustomDirectories(Common::FSList &dirs) const {
#ifdef PLUGIN_DIRECTORY
- dirs.push_back(Common::FilesystemNode(PLUGIN_DIRECTORY));
+ dirs.push_back(Common::FSNode(PLUGIN_DIRECTORY));
#endif
}
Modified: scummvm/branches/gsoc2008-vkeybd/base/plugins.h
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/base/plugins.h 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/base/plugins.h 2008-10-03 14:25:03 UTC (rev 34730)
@@ -32,6 +32,7 @@
namespace Common {
class FSList;
+ class FSNode;
}
@@ -238,19 +239,19 @@
* Subclasses of FilePluginProvider have to at least overload this method.
* If the file is not found, or does not contain loadable code, 0 is returned instead.
*
- * @param filename the name of the loadable code module
+ * @param node the FSNode of the loadable code module
* @return a pointer to a Plugin instance, or 0 if an error occurred.
*/
- virtual Plugin *createPlugin(const Common::String &filename) const = 0;
+ virtual Plugin *createPlugin(const Common::FSNode &node) const = 0;
/**
- * Check if the supplied filename corresponds to a loadable plugin file in
- * the current platform.
+ * Check if the supplied file corresponds to a loadable plugin file in
+ * the current platform. Usually, this will just check the file name.
*
- * @param filename the name of the file to check
+ * @param node the FSNode of the file to check
* @return true if the filename corresponds to a plugin, false otherwise
*/
- virtual bool isPluginFilename(const Common::String &filename) const;
+ virtual bool isPluginFilename(const Common::FSNode &node) const;
/**
* Optionally add to the list of directories to be searched for
Modified: scummvm/branches/gsoc2008-vkeybd/common/advancedDetector.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/common/advancedDetector.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/common/advancedDetector.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -246,9 +246,9 @@
path = ".";
warning("No path was provided. Assuming the data files are in the current directory");
}
- FilesystemNode dir(path);
+ FSNode dir(path);
FSList files;
- if (!dir.isDirectory() || !dir.getChildren(files, FilesystemNode::kListAll)) {
+ if (!dir.isDirectory() || !dir.getChildren(files, FSNode::kListAll)) {
warning("Game data path does not exist or is not a directory (%s)", path.c_str());
return kNoGameDataFoundError;
}
@@ -290,6 +290,7 @@
typedef HashMap<String, bool, IgnoreCase_Hash, IgnoreCase_EqualTo> StringSet;
typedef HashMap<String, int32, IgnoreCase_Hash, IgnoreCase_EqualTo> IntMap;
+typedef HashMap<String, FSNode, IgnoreCase_Hash, IgnoreCase_EqualTo> FileMap;
static void reportUnknown(const StringMap &filesMD5, const IntMap &filesSize) {
// TODO: This message should be cleaned up / made more specific.
@@ -307,10 +308,10 @@
printf("\n");
}
-static ADGameDescList detectGameFilebased(const StringMap &allFiles, const Common::ADParams ¶ms);
+static ADGameDescList detectGameFilebased(const FileMap &allFiles, const Common::ADParams ¶ms);
static ADGameDescList detectGame(const FSList &fslist, const Common::ADParams ¶ms, Language language, Platform platform, const Common::String extra) {
- StringMap allFiles;
+ FileMap allFiles;
StringSet detectFiles;
StringMap filesMD5;
@@ -334,7 +335,7 @@
if (tstr.lastChar() == '.')
tstr.deleteLastChar();
- allFiles[tstr] = file->getPath(); // Record the presence of this file
+ allFiles[tstr] = *file; // Record the presence of this file
}
// Compute the set of files for which we need MD5s for. I.e. files which are
@@ -356,7 +357,7 @@
debug(3, "+ %s", fname.c_str());
char md5str[32+1];
- if (!md5_file_string(allFiles[fname].c_str(), md5str, params.md5Bytes))
+ if (!md5_file_string(allFiles[fname], md5str, params.md5Bytes))
continue;
filesMD5[fname] = md5str;
@@ -464,7 +465,7 @@
* the maximal number of matching files. In case of a tie, the entry
* coming first in the list is chosen.
*/
-static ADGameDescList detectGameFilebased(const StringMap &allFiles, const Common::ADParams ¶ms) {
+static ADGameDescList detectGameFilebased(const FileMap &allFiles, const Common::ADParams ¶ms) {
const ADFileBasedFallback *ptr;
const char* const* filenames;
Modified: scummvm/branches/gsoc2008-vkeybd/common/archive.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/common/archive.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/common/archive.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -26,6 +26,7 @@
#include "common/archive.h"
#include "common/fs.h"
#include "common/util.h"
+#include "common/system.h"
namespace Common {
@@ -53,7 +54,7 @@
}
-FSDirectory::FSDirectory(const FilesystemNode &node, int depth)
+FSDirectory::FSDirectory(const FSNode &node, int depth)
: _node(node), _cached(false), _depth(depth) {
}
@@ -64,11 +65,11 @@
FSDirectory::~FSDirectory() {
}
-FilesystemNode FSDirectory::getFSNode() const {
+FSNode FSDirectory::getFSNode() const {
return _node;
}
-FilesystemNode FSDirectory::lookupCache(NodeCache &cache, const String &name) {
+FSNode FSDirectory::lookupCache(NodeCache &cache, const String &name) {
// make caching as lazy as possible
if (!name.empty()) {
if (!_cached) {
@@ -80,7 +81,7 @@
return cache[name];
}
- return FilesystemNode();
+ return FSNode();
}
bool FSDirectory::hasFile(const String &name) {
@@ -88,7 +89,7 @@
return false;
}
- FilesystemNode node = lookupCache(_fileCache, name);
+ FSNode node = lookupCache(_fileCache, name);
return node.exists();
}
@@ -97,13 +98,13 @@
return 0;
}
- FilesystemNode node = lookupCache(_fileCache, name);
+ FSNode node = lookupCache(_fileCache, name);
if (!node.exists()) {
- warning("FSDirectory::openFile: FilesystemNode does not exist");
+ warning("FSDirectory::openFile: FSNode does not exist");
return 0;
} else if (node.isDirectory()) {
- warning("FSDirectory::openFile: FilesystemNode is a directory");
+ warning("FSDirectory::openFile: FSNode is a directory");
return 0;
}
@@ -120,17 +121,17 @@
return 0;
}
- FilesystemNode node = lookupCache(_subDirCache, name);
+ FSNode node = lookupCache(_subDirCache, name);
return new FSDirectory(node);
}
-void FSDirectory::cacheDirectoryRecursive(FilesystemNode node, int depth, const String& prefix) {
+void FSDirectory::cacheDirectoryRecursive(FSNode node, int depth, const String& prefix) {
if (depth <= 0) {
return;
}
FSList list;
- node.getChildren(list, FilesystemNode::kListAll, false);
+ node.getChildren(list, FSNode::kListAll, false);
FSList::iterator it = list.begin();
for ( ; it != list.end(); it++) {
@@ -231,9 +232,9 @@
_list.insert(it, node);
}
-void SearchSet::add(const String& name, ArchivePtr archive, uint priority) {
+void SearchSet::add(const String& name, ArchivePtr archive, int priority) {
if (find(name) == _list.end()) {
- Node node = { priority, name, archive };
+ Node node(priority, name, archive);
insert(node);
} else {
warning("SearchSet::add: archive '%s' already present", name.c_str());
@@ -256,7 +257,7 @@
_list.clear();
}
-void SearchSet::setPriority(const String& name, uint priority) {
+void SearchSet::setPriority(const String& name, int priority) {
ArchiveList::iterator it = find(name);
if (it == _list.end()) {
warning("SearchSet::setPriority: archive '%s' is not present", name.c_str());
@@ -328,17 +329,33 @@
DECLARE_SINGLETON(SearchManager);
-void SearchManager::addArchive(const String &name, ArchivePtr archive) {
- add(name, archive);
+SearchManager::SearchManager() {
+ clear(); // Force a reset
}
-void SearchManager::addDirectory(const String &name, const String &directory) {
- addDirectoryRecursive(name, 1);
+void SearchManager::addArchive(const String &name, ArchivePtr archive, int priority) {
+ add(name, archive, priority);
}
-void SearchManager::addDirectoryRecursive(const String &name, const String &directory, int depth) {
- add(name, SharedPtr<FSDirectory>(new FSDirectory(directory, depth)));
+void SearchManager::addDirectory(const String &name, const String &directory, int priority) {
+ addDirectoryRecursive(name, directory, 1, priority);
}
+void SearchManager::addDirectoryRecursive(const String &name, const String &directory, int depth, int priority) {
+ add(name, ArchivePtr(new FSDirectory(directory, depth)), priority);
+}
+void SearchManager::clear() {
+ SearchSet::clear();
+
+ // Always keep system specific archives in the SearchManager.
+ // But we give them a lower priority than the default priority (which is 0),
+ // so that archives added by client code are searched first.
+ g_system->addSysArchivesToSearchSet(*this, -1);
+
+ // Add the current dir as a very last resort.
+ // See also bug #2137680.
+ add(".", ArchivePtr(new FSDirectory(".")), -2);
+}
+
} // namespace Common
Modified: scummvm/branches/gsoc2008-vkeybd/common/archive.h
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/common/archive.h 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/common/archive.h 2008-10-03 14:25:03 UTC (rev 34730)
@@ -93,21 +93,21 @@
* Searching is case-insensitive, as the main intended goal is supporting
* retrieval of game data. First case-insensitive match is returned when
* searching, thus making FSDirectory heavily dependant on the underlying
- * FilesystemNode implementation.
+ * FSNode implementation.
*/
class FSDirectory : public Archive {
- FilesystemNode _node;
+ FSNode _node;
// Caches are case insensitive, clashes are dealt with when creating
// Key is stored in lowercase.
- typedef HashMap<String, FilesystemNode, IgnoreCase_Hash, IgnoreCase_EqualTo> NodeCache;
+ typedef HashMap<String, FSNode, IgnoreCase_Hash, IgnoreCase_EqualTo> NodeCache;
NodeCache _fileCache, _subDirCache;
// look for a match
- FilesystemNode lookupCache(NodeCache &cache, const String &name);
+ FSNode lookupCache(NodeCache &cache, const String &name);
// cache management
- void cacheDirectoryRecursive(FilesystemNode node, int depth, const String& prefix);
+ void cacheDirectoryRecursive(FSNode node, int depth, const String& prefix);
bool _cached;
int _depth;
@@ -122,14 +122,14 @@
* Create a FSDirectory representing a tree with the specified depth. Will result in an
* unbound FSDirectory if node does not exist or is not a directory.
*/
- FSDirectory(const FilesystemNode &node, int depth = 1);
+ FSDirectory(const FSNode &node, int depth = 1);
virtual ~FSDirectory();
/**
* This return the underlying FSNode of the FSDirectory.
*/
- FilesystemNode getFSNode() const;
+ FSNode getFSNode() const;
/**
* Create a new FSDirectory pointing to a sub directory of the instance.
@@ -153,9 +153,12 @@
*/
class SearchSet : public Archive {
struct Node {
- uint _priority;
+ int _priority;
String _name;
ArchivePtr _arc;
+ Node(int priority, const String &name, ArchivePtr arc)
+ : _priority(priority), _name(name), _arc(arc) {
+ }
};
typedef List<Node> ArchiveList;
ArchiveList _list;
@@ -169,7 +172,7 @@
/**
* Add a new archive to the searchable set.
*/
- void add(const String& name, ArchivePtr archive, uint priority = 0);
+ void add(const String& name, ArchivePtr archive, int priority = 0);
/**
* Remove an archive from the searchable set.
@@ -184,12 +187,12 @@
/**
* Empties the searchable set.
*/
- void clear();
+ virtual void clear();
/**
* Change the order of searches.
*/
- void setPriority(const String& name, uint priority);
+ void setPriority(const String& name, int priority);
virtual bool hasFile(const String &name);
virtual int matchPattern(StringList &list, const String &pattern);
@@ -205,22 +208,28 @@
class SearchManager : public Singleton<SearchManager>, public SearchSet {
public:
+ SearchManager();
+
/**
* Add an existing Archive. This is meant to support searching in system-specific
* archives, namely the MACOSX/IPHONE bundles.
*/
- void addArchive(const String &name, ArchivePtr archive);
+ void addArchive(const String &name, ArchivePtr archive, int priority = 0);
/**
* Create and add a FSDirectory by name
*/
- void addDirectory(const String &name, const String &directory);
+ void addDirectory(const String &name, const String &directory, int priority = 0);
/**
* Create and add a FSDirectory and its subdirectories by name
*/
- void addDirectoryRecursive(const String &name, const String &directory, int depth = 4);
+ void addDirectoryRecursive(const String &name, const String &directory, int depth = 4, int priority = 0);
+ /**
+ * TODO
+ */
+ virtual void clear();
};
/** Shortcut for accessing the search manager. */
Modified: scummvm/branches/gsoc2008-vkeybd/common/config-manager.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/common/config-manager.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/common/config-manager.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -77,8 +77,9 @@
void ConfigManager::loadConfigFile(const String &filename) {
_filename = filename;
+ FSNode node(filename);
File cfg_file;
- if (!cfg_file.open(filename)) {
+ if (!cfg_file.open(node)) {
printf("Creating configuration file: %s\n", filename.c_str());
} else {
printf("Using configuration file: %s\n", _filename.c_str());
Modified: scummvm/branches/gsoc2008-vkeybd/common/file.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/common/file.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/common/file.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -31,39 +31,30 @@
namespace Common {
-static Common::SearchSet *s_searchSet = 0;
-
-
void File::addDefaultDirectory(const String &directory) {
- FilesystemNode dir(directory);
+ FSNode dir(directory);
addDefaultDirectoryRecursive(dir, 1);
}
void File::addDefaultDirectoryRecursive(const String &directory, int level) {
- FilesystemNode dir(directory);
+ FSNode dir(directory);
addDefaultDirectoryRecursive(dir, level);
}
-void File::addDefaultDirectory(const FilesystemNode &directory) {
+void File::addDefaultDirectory(const FSNode &directory) {
addDefaultDirectoryRecursive(directory, 1);
}
-void File::addDefaultDirectoryRecursive(const FilesystemNode &dir, int level) {
+void File::addDefaultDirectoryRecursive(const FSNode &dir, int level) {
if (level <= 0 || !dir.exists() || !dir.isDirectory())
return;
- if (!s_searchSet) {
- s_searchSet = new Common::SearchSet();
- g_system->addSysArchivesToSearchSet(*s_searchSet);
- }
-
Common::ArchivePtr dataArchive(new Common::FSDirectory(dir, level));
- s_searchSet->add(dir.getPath(), dataArchive, 1);
+ SearchMan.add(dir.getPath(), dataArchive);
}
void File::resetDefaultDirectories() {
- delete s_searchSet;
- s_searchSet = 0;
+ SearchMan.clear();
}
File::File()
@@ -74,78 +65,66 @@
close();
}
-
bool File::open(const String &filename) {
+ return open(filename, SearchMan);
+}
+
+bool File::open(const String &filename, Archive &archive) {
assert(!filename.empty());
assert(!_handle);
- _name.clear();
clearIOFailed();
- if (s_searchSet && s_searchSet->hasFile(filename)) {
+ SeekableReadStream *stream = 0;
+ if (archive.hasFile(filename)) {
debug(3, "Opening hashed: %s", filename.c_str());
- _handle = s_searchSet->openFile(filename);
- } else if (s_searchSet && s_searchSet->hasFile(filename + ".")) {
+ stream = archive.openFile(filename);
+ } else if (archive.hasFile(filename + ".")) {
// WORKAROUND: Bug #1458388: "SIMON1: Game Detection fails"
// sometimes instead of "GAMEPC" we get "GAMEPC." (note trailing dot)
debug(3, "Opening hashed: %s.", filename.c_str());
- _handle = s_searchSet->openFile(filename);
- } else {
- // Last resort: try the current directory
- FilesystemNode file(filename);
- if (file.exists() && !file.isDirectory())
- _handle = file.openForReading();
+ stream = archive.openFile(filename + ".");
}
- if (_handle == NULL)
- debug(2, "File %s not opened", filename.c_str());
- else
- _name = filename;
-
- return _handle != NULL;
+ return open(stream, filename);
}
-bool File::open(const FilesystemNode &node) {
+bool File::open(const FSNode &node) {
+ assert(!_handle);
if (!node.exists()) {
- warning("File::open: FilesystemNode does not exist");
+ warning("File::open: '%s' does not exist", node.getPath().c_str());
return false;
} else if (node.isDirectory()) {
- warning("File::open: FilesystemNode is a directory");
+ warning("File::open: '%s' is a directory", node.getPath().c_str());
return false;
}
- String filename(node.getName());
+ SeekableReadStream *stream = node.openForReading();
+ return open(stream, node.getPath());
+}
- if (_handle) {
- error("File::open: This file object already is opened (%s), won't open '%s'", _name.c_str(), filename.c_str());
- }
-
+bool File::open(SeekableReadStream *stream, const Common::String &name) {
+ assert(!_handle);
clearIOFailed();
- _name.clear();
- _handle = node.openForReading();
-
- if (_handle == NULL)
- debug(2, "File %s not found", filename.c_str());
- else
- _name = filename;
-
+ if (stream) {
+ _handle = stream;
+ _name = name;
+ } else {
+ debug(2, "File::open: opening '%s' failed", name.c_str());
+ }
return _handle != NULL;
}
+
bool File::exists(const String &filename) {
- if (s_searchSet && s_searchSet->hasFile(filename)) {
+ if (SearchMan.hasFile(filename)) {
return true;
- } else if (s_searchSet && s_searchSet->hasFile(filename + ".")) {
+ } else if (SearchMan.hasFile(filename + ".")) {
// WORKAROUND: Bug #1458388: "SIMON1: Game Detection fails"
// sometimes instead of "GAMEPC" we get "GAMEPC." (note trailing dot)
return true;
- } else {
- // Last resort: try the current directory
- FilesystemNode file(filename);
- if (file.exists() && !file.isDirectory())
- return true;
}
return false;
@@ -217,15 +196,15 @@
assert(!filename.empty());
assert(!_handle);
- FilesystemNode node(filename);
+ FSNode node(filename);
return open(node);
}
-bool DumpFile::open(const FilesystemNode &node) {
+bool DumpFile::open(const FSNode &node) {
assert(!_handle);
if (node.isDirectory()) {
- warning("DumpFile::open: FilesystemNode is a directory");
+ warning("DumpFile::open: FSNode is a directory");
return false;
}
Modified: scummvm/branches/gsoc2008-vkeybd/common/file.h
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/common/file.h 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/common/file.h 2008-10-03 14:25:03 UTC (rev 34730)
@@ -27,13 +27,14 @@
#define COMMON_FILE_H
#include "common/scummsys.h"
+#include "common/archive.h"
#include "common/noncopyable.h"
#include "common/str.h"
#include "common/stream.h"
namespace Common {
-class FilesystemNode;
+class FSNode;
/**
* TODO: vital to document this core class properly!!! For both users and implementors
@@ -43,7 +44,7 @@
/** File handle to the actual file; 0 if no file is open. */
SeekableReadStream *_handle;
- /** The name of this file, for debugging. */
+ /** The name of this file, kept for debugging purposes. */
String _name;
public:
@@ -51,11 +52,12 @@
static void addDefaultDirectory(const String &directory);
static void addDefaultDirectoryRecursive(const String &directory, int level = 4);
- static void addDefaultDirectory(const FilesystemNode &directory);
- static void addDefaultDirectoryRecursive(const FilesystemNode &directory, int level = 4);
+ static void addDefaultDirectory(const FSNode &directory);
+ static void addDefaultDirectoryRecursive(const FSNode &directory, int level = 4);
static void resetDefaultDirectories();
+
File();
virtual ~File();
@@ -64,14 +66,56 @@
* (those were/are added by addDefaultDirectory and/or
* addDefaultDirectoryRecursive).
*
- * @param filename: the file to check for
- * @return: true if the file exists, else false
+ * @param filename the file to check for
+ * @return true if the file exists, false otherwise
*/
static bool exists(const String &filename);
+ /**
+ * Try to open the file with the given filename, by searching SearchMan.
+ * @note Must not be called if this file already is open (i.e. if isOpen returns true).
+ *
+ * @param filename the name of the file to open
+ * @return true if file was opened successfully, false otherwise
+ */
virtual bool open(const String &filename);
- virtual bool open(const FilesystemNode &node);
+ /**
+ * Try to open the file with the given filename from within the given archive.
+ * @note Must not be called if this file already is open (i.e. if isOpen returns true).
+ *
+ * @param filename the name of the file to open
+ * @param archive the archive in which to search for the file
+ * @return true if file was opened successfully, false otherwise
+ */
+ virtual bool open(const String &filename, Archive &archive);
+
+ /**
+ * Try to open the file corresponding to the give node. Will check whether the
+ * node actually refers to an existing file (and not a directory), and handle
+ * those cases gracefully.
+ * @note Must not be called if this file already is open (i.e. if isOpen returns true).
+ *
+ * @param filename the name of the file to open
+ * @param archive the archive in which to search for the file
+ * @return true if file was opened successfully, false otherwise
+ */
+ virtual bool open(const FSNode &node);
+
+ /**
+ * Try to 'open' the given stream. That is, we just wrap around it, and if stream
+ * is a NULL pointer, we gracefully treat this as if opening failed.
+ * @note Must not be called if this file already is open (i.e. if isOpen returns true).
+ *
+ * @param stream a pointer to a SeekableReadStream, or 0
+ * @param name a string describing the 'file' corresponding to stream
+ * @return true if stream was 0, false otherwise
+ */
+ virtual bool open(SeekableReadStream *stream, const Common::String &name);
+
+ /**
+ * Close the file, if open.
+ */
virtual void close();
/**
@@ -82,11 +126,11 @@
bool isOpen() const;
/**
- * Returns the filename of the opened file.
+ * Returns the filename of the opened file for debugging purposes.
*
* @return: the filename
*/
- const char *name() const { return _name.c_str(); }
+ const char *getName() const { return _name.c_str(); }
bool ioFailed() const;
void clearIOFailed();
@@ -117,7 +161,7 @@
virtual ~DumpFile();
virtual bool open(const String &filename);
- virtual bool open(const FilesystemNode &node);
+ virtual bool open(const FSNode &node);
virtual void close();
Modified: scummvm/branches/gsoc2008-vkeybd/common/fs.cpp
===================================================================
--- scummvm/branches/gsoc2008-vkeybd/common/fs.cpp 2008-10-03 00:17:42 UTC (rev 34729)
+++ scummvm/branches/gsoc2008-vkeybd/common/fs.cpp 2008-10-03 14:25:03 UTC (rev 34730)
@@ -29,48 +29,48 @@
namespace Common {
-FilesystemNode::FilesystemNode() {
+FSNode::FSNode() {
}
-FilesystemNode::FilesystemNode(AbstractFilesystemNode *realNode)
+FSNode::FSNode(AbstractFSNode *realNode)
: _realNode(realNode) {
}
-FilesystemNode::FilesystemNode(const Common::String &p) {
+FSNode::FSNode(const Common::String &p) {
FilesystemFactory *factory = g_system->getFilesystemFactory();
- AbstractFilesystemNode *tmp = 0;
+ AbstractFSNode *tmp = 0;
if (p.empty() || p == ".")
tmp = factory->makeCurrentDirectoryFileNode();
else
@@ Diff output truncated at 100000 characters. @@
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list