Johannes Schickel
f464830a17
Documenting Common::File a bit.
...
svn-id: r23588
2006-07-24 12:10:32 +00:00
Max Horn
4fcdbb9349
String class usage cleanup
...
svn-id: r23582
2006-07-23 15:08:48 +00:00
Max Horn
2859b64702
Fix struct packing issues (macros are not resolve in #pragma params, at least for GCC)
...
svn-id: r23569
2006-07-22 17:28:48 +00:00
Johannes Schickel
1ffd496043
Added some warnings if md5_file is used on an illegal FilesystemNode.
...
svn-id: r23568
2006-07-22 17:06:14 +00:00
Johannes Schickel
63aec29edb
Added isValid to FilesystemNode and AbstractFilesystemNode. See my mail to -devel for more information.
...
svn-id: r23567
2006-07-22 17:01:50 +00:00
Max Horn
c59e7ece0a
Part of the FreeMiNT patch
...
svn-id: r23566
2006-07-22 17:00:36 +00:00
Johannes Schickel
8116b6aab3
Using FilesystemNode::name instead of FilesystemNode::displayName in the fileclass too, then again this doesn't *have* to work. (check FilesystemNode documentation)
...
svn-id: r23562
2006-07-22 15:21:40 +00:00
Johannes Schickel
3f81726437
Return false for directories on md5_file with a FSNode as param.
...
svn-id: r23560
2006-07-22 15:05:59 +00:00
Johannes Schickel
4ae5cef491
- let md5_file accept a FilesystemNode too
...
- changes some engine detectors to use it
svn-id: r23559
2006-07-22 14:59:44 +00:00
Max Horn
6ed00cd055
Added FilesystemNode::name method
...
svn-id: r23553
2006-07-22 14:14:16 +00:00
Max Horn
f59cf1fcdc
Removing GCC_PACK, we fully rely on START_PACK_STRUCTS / END_PACK_STRUCTS now (hiya eriktorbjorn, this one is for you *ggg*)
...
svn-id: r23547
2006-07-21 21:25:17 +00:00
Torbjörn Andersson
6358547a43
More whitespace changes.
...
svn-id: r23496
2006-07-14 13:33:58 +00:00
Travis Howell
175c951e8e
Add cyx's patch for #1497725 - GUI: trying to enter empty CD drive
...
svn-id: r23475
2006-07-10 11:12:11 +00:00
Travis Howell
53aa4f054a
Change default config file location to 'Application Data\ScummVM' directory of the user's profile, when using Windows NT4/2000/XP/Vista
...
svn-id: r23465
2006-07-10 01:25:52 +00:00
Max Horn
f35f4a4d1c
Use START_PACK_STRUCTS / END_PACK_STRUCTS when available, instead of checking for GCC / not GCC
...
svn-id: r23458
2006-07-09 13:01:15 +00:00
Max Horn
7df2f26b34
Changed the default value of START_PACK_STRUCTS / END_PACK_STRUCTS; cleanup
...
svn-id: r23456
2006-07-09 12:45:50 +00:00
Max Horn
bea72e9514
Patch #1519399 : DS Backend
...
svn-id: r23452
2006-07-09 11:47:17 +00:00
Max Horn
eaff9344a4
Added OSystem::setFocusRectangle (first part of Nintendo DS patch)
...
svn-id: r23449
2006-07-09 09:40:44 +00:00
Torbjörn Andersson
07ffde9270
Fixed typo in comment.
...
svn-id: r23435
2006-07-08 20:20:07 +00:00
Joost Peters
240acc427a
make grabRawScreen() pure virtual, since it's now _required_ to be implemented by backends for certain SCUMM games to function properly.
...
This happened when ScummEngine::moveScreen() was changed in revision 23215 and causes Indy4 to fail the assert(_system->grabRawScreen(...)) on PSP (and Symbian?), where this function was not implemented.
svn-id: r23383
2006-07-07 09:00:18 +00:00
Max Horn
87d3e4fb0e
Moved savefile.cpp to backends, to work around link error
...
svn-id: r23361
2006-06-30 22:06:45 +00:00
Max Horn
d67f9623cc
Typo, and stress that getSavePath() is not to be used for storing savegames via Common::File
...
svn-id: r23286
2006-06-24 10:46:47 +00:00
Max Horn
6a588f8399
Moved savefile code to new 'saves' backend module (work in progress)
...
svn-id: r23282
2006-06-24 10:08:43 +00:00
Max Horn
c9fd9c4878
Added 'timer' backend module, based on the existing TimerManager code (work in progress)
...
svn-id: r23279
2006-06-24 09:53:45 +00:00
Max Horn
75628fe9d7
Renamed class Timer to TimerManager (the old name was somewhat incorrect/confusing)
...
svn-id: r23278
2006-06-24 09:34:49 +00:00
Max Horn
9a955180a4
* Renamed config.mak to config.mk
...
* 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-24 08:48:11 +00:00
Max Horn
d210b19aec
Move backends/fs/fs.h and .cpp to common/fs/fs.h and .cpp
...
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-24 08:07:48 +00:00
Lars Persson
7675b3546d
Remove _name.clear(); from Close since same File instance is re-opened by Symbian using that filename.
...
svn-id: r23152
2006-06-16 22:20:07 +00:00
Oystein Eftevaag
0aa06392f8
Applied the patch included in bug rep [ 1503716 ] Leak in File::Open (on OS X) and unzOpen (on all)
...
svn-id: r23019
2006-06-11 02:23:17 +00:00
Kostas Nakos
f29a09a35f
fixes ps2 stuff I broke
...
svn-id: r23013
2006-06-10 17:36:57 +00:00
Kostas Nakos
92ad46734c
added CE port definitions section
...
svn-id: r23008
2006-06-10 11:26:47 +00:00
Eugene Sandulenko
5b1aaf4ea0
Patch #1503718 : "Strange results from Common::computeCapacity"
...
svn-id: r22998
2006-06-10 07:56:09 +00:00
Robert Göffringmann
cd24b1d91c
fixed ps2 types.
...
svn-id: r22985
2006-06-08 08:18:55 +00:00
Robert Göffringmann
7e65543482
cleanup, made osystem for .ini on different devices.
...
svn-id: r22984
2006-06-08 06:53:00 +00:00
Max Horn
6d0a06463a
Lazily allocate _refCount in class String
...
svn-id: r22935
2006-06-05 17:36:08 +00:00
Torbjörn Andersson
2e071b59d6
When ensureCapacity() does not have an old string to copy, make sure the newly
...
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-04 09:14:07 +00:00
Max Horn
cbe66f3360
Allocate and grow Common::String objects in multiples of 32, and leave at least 16 spare bytes at the end, in case the string grows a little bit.
...
svn-id: r22896
2006-06-03 16:33:42 +00:00
Marcus Comstedt
2f935da61f
Don't try to save settings on the Dreamcast, CD-ROM:s are read only...
...
svn-id: r22890
2006-06-03 15:34:48 +00:00
Max Horn
5d1e4d7f09
Removed unnecessary typedef
...
svn-id: r22875
2006-06-03 13:56:50 +00:00
Max Horn
0e174a8adc
Really remove HashMap::find(char *)
...
svn-id: r22874
2006-06-03 13:39:39 +00:00
Max Horn
5a1eaabceb
Replaced the bogus find(const String &key) method with the proper find(const 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-03 13:32:53 +00:00
Eugene Sandulenko
061905c524
Plug memory leak
...
svn-id: r22842
2006-06-02 17:57:45 +00:00
Eugene Sandulenko
180f6c87ad
Remove slipped in debug output.
...
svn-id: r22840
2006-06-02 16:07:40 +00:00
Eugene Sandulenko
3348c32de0
Added possibility to use (char *) as ashMap keys. For some reason it does not
...
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-02 15:41:48 +00:00
Travis Howell
179f097202
Fix mingw compile
...
svn-id: r22835
2006-06-02 13:34:41 +00:00
Eugene Sandulenko
8c7abdf024
Allocate minimum 16 bytes on String(str) call. Reduces 2.500 malloc() calls
...
on startup
svn-id: r22834
2006-06-02 13:00:27 +00:00
Willem Jan Palenstijn
20c4be47a3
add functions for reverse iteration of Common::List
...
svn-id: r22665
2006-05-26 17:18:23 +00:00
Andrew Kurushin
36957a2c50
fix VC & SDL 1.2.10 compilation error
...
svn-id: r22585
2006-05-23 16:49:46 +00:00
Max Horn
4d1f4ffb50
Make the copy constructor / assignment operator of class File private to prevent accidental copying of File objects
...
svn-id: r22549
2006-05-20 15:10:04 +00:00
Eugene Sandulenko
14ec3f45fa
- Heavily modified patch #1214784 : "Disable overlay scaling"
...
- 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-17 23:52:45 +00:00