aboutsummaryrefslogtreecommitdiff
path: root/common
AgeCommit message (Collapse)Author
2006-06-24Typo, and stress that getSavePath() is not to be used for storing savegames ↵Max Horn
via Common::File svn-id: r23286
2006-06-24Moved savefile code to new 'saves' backend module (work in progress)Max Horn
svn-id: r23282
2006-06-24Added 'timer' backend module, based on the existing TimerManager code (work ↵Max Horn
in progress) svn-id: r23279
2006-06-24Renamed class Timer to TimerManager (the old name was somewhat ↵Max Horn
incorrect/confusing) svn-id: r23278
2006-06-24* Renamed config.mak to config.mkMax Horn
* Renamed common.rules to rules.mk * Removed explicit declaration of MODULE_DIRS in various spots (instead we let rules.mk compute it) svn-id: r23275
2006-06-24Move backends/fs/fs.h and .cpp to common/fs/fs.h and .cppMax Horn
Rationale: backend implementations belong to backends/, but portable APIs meant to be used by high level code is for common / sound / graphics / ... (compare also with backends/midi vs. sound/mididrv.h) svn-id: r23274
2006-06-16Remove _name.clear(); from Close since same File instance is re-opened by ↵Lars Persson
Symbian using that filename. svn-id: r23152
2006-06-11Applied the patch included in bug rep [ 1503716 ] Leak in File::Open (on OS ↵Oystein Eftevaag
X) and unzOpen (on all) svn-id: r23019
2006-06-10fixes ps2 stuff I brokeKostas Nakos
svn-id: r23013
2006-06-10added CE port definitions sectionKostas Nakos
svn-id: r23008
2006-06-10Patch #1503718: "Strange results from Common::computeCapacity"Eugene Sandulenko
svn-id: r22998
2006-06-08fixed ps2 types.Robert Göffringmann
svn-id: r22985
2006-06-08cleanup, made osystem for .ini on different devices.Robert Göffringmann
svn-id: r22984
2006-06-05Lazily allocate _refCount in class StringMax Horn
svn-id: r22935
2006-06-04When ensureCapacity() does not have an old string to copy, make sure the newlyTorbjörn Andersson
allocated one is terminated. Hopefully this will keep the SCUMM save dialog from randomly adding garbage to my savegame names. svn-id: r22908
2006-06-03Allocate and grow Common::String objects in multiples of 32, and leave at ↵Max Horn
least 16 spare bytes at the end, in case the string grows a little bit. svn-id: r22896
2006-06-03Don't try to save settings on the Dreamcast, CD-ROM:s are read only...Marcus Comstedt
svn-id: r22890
2006-06-03Removed unnecessary typedefMax Horn
svn-id: r22875
2006-06-03Really remove HashMap::find(char *)Max Horn
svn-id: r22874
2006-06-03Replaced the bogus find(const String &key) method with the proper find(const ↵Max Horn
Key &key) one. Also removed the bogus find(const char *key) (which not only doesn't work correctly for non-string keys, but also usually will be *less* efficient) svn-id: r22871
2006-06-02Plug memory leakEugene Sandulenko
svn-id: r22842
2006-06-02Remove slipped in debug output.Eugene Sandulenko
svn-id: r22840
2006-06-02Added possibility to use (char *) as ashMap keys. For some reason it does notEugene Sandulenko
work as expected. When I try to switch _aliasmap in eval.h to it, I get crash in String constructor on dereferencing. svn-id: r22838
2006-06-02Fix mingw compileTravis Howell
svn-id: r22835
2006-06-02Allocate minimum 16 bytes on String(str) call. Reduces 2.500 malloc() callsEugene Sandulenko
on startup svn-id: r22834
2006-05-26add functions for reverse iteration of Common::ListWillem Jan Palenstijn
svn-id: r22665
2006-05-23fix VC & SDL 1.2.10 compilation errorAndrew Kurushin
svn-id: r22585
2006-05-20Make the copy constructor / assignment operator of class File private to ↵Max Horn
prevent accidental copying of File objects svn-id: r22549
2006-05-17- Heavily modified patch #1214784: "Disable overlay scaling"Eugene Sandulenko
- Eriktorbjorn's patch from same tracker item for scaling sword1/2 cutscenes is applied as is. It lacks resolution switch on-the-fly. - GUI widgets are repositioned on the fly and use most space, even aspect ratio corrected screen is used without scaling - Heavy tesing is required, but works for me in all cases except for bug #1483272: "GUI: SCUMM pause dialog breaks upon scaler switch" which needs more work. - I probavly broke some backend or two svn-id: r22505
2006-05-13Fix for bug #1483213Max Horn
svn-id: r22461
2006-05-06Added a default implementation of the OSystem CD API (which simply does nothing)Max Horn
svn-id: r22370
2006-05-04Moved GameDetector::setTarget & findGame to the new namespace Base; moved ↵Max Horn
their declaration to base/game.h, their implementation to base/main.cpp (both until we can come up with a better location). Also moved detectMain into main.cpp, where it now is a local static function svn-id: r22346
2006-05-03Removed FilesystemNode::isValid (leaving it up to the porters to decide ↵Max Horn
whether to remove their isValid code or not) svn-id: r22317
2006-05-03Changed FilesystemNode::listDir to return a bool indicating its success (or ↵Max Horn
failure) svn-id: r22315
2006-05-02Add support for reading/writing config files through saveGameManager and use ↵Travis Howell
for config files in HE games svn-id: r22273
2006-05-01Add a variant of File::addDefaultDirectory(Recursive) which takes a ↵Max Horn
FilesystemNode instead of a string object svn-id: r22265
2006-04-30Add a File::open variant that takes a FilesystemNode as parameterMax Horn
svn-id: r22251
2006-04-30Avoid 'unused variable' warning when using DISABLE_MD5Max Horn
svn-id: r22250
2006-04-27Revert kListAllNoRoot addition to listdir(), the uninitialized _isPseudoRoot ↵Travis Howell
in windows filesys backend was real cause of problem. svn-id: r22194
2006-04-26Use File::size to determine the size of a file, instead of doing a seek(0, ↵Max Horn
SEEK_END) svn-id: r22184
2006-04-26Removed 'directory' parameter of File::openMax Horn
svn-id: r22183
2006-04-26Use the joined filename for savegames, otherwise saves will be stored in theTorbjörn Andersson
current working directory instead of the save directory. svn-id: r22181
2006-04-26Changed InSaveFile (part of the save file system) to inherit from ↵Max Horn
SeekableReadStream, meaning that savegames opened for reading now are seekable (DC, PS2, Palm ports will have to be updated accordingly) svn-id: r22180
2006-04-26Added a 'skip' method to SeekableReadStream (just an alias for seek(X, ↵Max Horn
SEEK_CUR)) svn-id: r22178
2006-04-26Yet another revision of File::exists. I now believe the function really is ↵Max Horn
'wrong' right now (it has to fulfill too many roles right now). Need to correctly fix this later svn-id: r22171
2006-04-26Commited *correct* File::exists reimplementation (compared to my incomplete ↵Max Horn
previous commit. Aargh) svn-id: r22170
2006-04-26Properly re-implemented File::exists to FilesystemNode (this should fix bug ↵Max Horn
#1476651, at least partially) svn-id: r22169
2006-04-25HashMap::size does not modify the state of the hashmap, so it can be ↵Max Horn
declared const (allowing it to be used on const hashmaps, too) svn-id: r22156
2006-04-23Small tweak to allow turning off MD5 computation for debuggingMax Horn
svn-id: r22109
2006-04-23Remove superfluous exclamation markMax Horn
svn-id: r22108