Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+
2021-12-26 18:48:43 +01:00
Orgad Shaneh
7adcd48a41
COMMON: Use override
...
Using clang-tidy modernize-use-override
2021-11-14 14:35:15 +02:00
djsrv
0d65c2fd12
ALL: Use Path type in File functions
2021-08-07 10:44:37 +02:00
Paul Gilbert
005561d305
COMMON: Increase Stream pos, seek, size from int32 to int64
2021-07-08 18:24:28 -07:00
Bartosz Gentkowski
24e3b6096e
DOXYGEN: Doxygen improvements part 3
...
Editing doxygen comments in files:
- debug.h
- dialogs.h
- encoding.h
- endian.h
- error.h
- events.h
- fft.h
- file.h
- frac.h
- fs.h
- gui_options.h
- hash-ptr.h
- hashmap.h
- huffman.h
- ini-file.h
Plus some small changes in the config file.
2020-11-04 19:42:34 +00:00
Bartosz Gentkowski
ec24687ce4
DOXYGEN: Add doxygen groups to header files in the common folder
...
Adding @defgroup and @ingroup doxygen tags into all headers
in the common folder that contain doxygen blocks.
This improves the structure, readability, and findability
of information in the resulting output.
This commit targets purely structure and does not deal with
the content of the currently existing doxygen documentation.
2020-10-04 18:25:50 +02:00
Eugene Sandulenko
507dd5c178
COMMON: Mark methods as override
2020-01-31 12:26:29 +01:00
Paul Gilbert
b821e8fce4
COMMON: Changed DumpFile & StdIOStream to derive from SeekableWriteStream
2019-05-12 11:44:15 +03:00
Alexander Tkachev
ae8e7f39f5
CLOUD: Make download() create necessary directories
...
DumpFile::open() with createPath=true create would create the missing
directories from the path before opening a file. Thus, one can easily
create a file and avoid "can't open a file" error.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
7a89caac84
COMMON: Add WriteStream::pos()
...
It returns int32, because some complex streams are derived from both
WriteStream and ReadStream, and in ReadStream pos() returns int32,
because -1 means an error.
I had to change MemoryStream's uint32 to int32, which is probably not so
good.
2016-08-04 14:36:21 +06:00
Einar Johan Trøan Sømåen
b7c5ce879f
COMMON: Fix some Doxygen comments that seem wrong.
2014-08-29 03:28:00 +02:00
Johannes Schickel
854e22b38b
COMMON: Make GPL headers consistent in themselves.
2014-02-18 02:39:33 +01:00
Christoph Mallon
84220d2ca0
COMMON: Remove superfluous Common:: qualifiers.
2011-08-07 15:19:07 +02:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Ori Avtalion
9414d7a6e2
JANITORIAL: Reduce header dependencies in shared code
...
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Max Horn
ba1d97211f
Remove last traces of File::addDefaultDirectory
...
svn-id: r48027
2010-02-09 22:37:13 +00:00
Johannes Schickel
c50940bbf4
Got rid of Common::File::addDefaultDirectory, instead implemented the solution proposed in "Case agnostic handling for directories (and files)" on -devel.
...
svn-id: r44266
2009-09-23 00:15:00 +00:00
Max Horn
eedce48aa3
Removed redundant File::ioFailed() implementation; also turned ReadStream::ioFailed from a virtual into an inline method
...
svn-id: r42911
2009-07-29 21:39:16 +00:00
Max Horn
6df25f47c3
Removed last traces of clearIOFailed. Yay :)
...
svn-id: r42910
2009-07-29 21:39:00 +00:00
Max Horn
65b5d31814
COMMON: Removed Stream::ioFailed() and clearIOFailed(), as they are deprecated; however, retained ioFailed in SeekableReadStream and File for now (so for now this mainly affects WriteStream subclasses)
...
svn-id: r40725
2009-05-19 11:42:14 +00:00
Jordi Vilalta Prat
b1999a2a16
Fixed indentation and removed whitespaces at the end of line
...
svn-id: r35481
2008-12-22 11:22:15 +00:00
Johannes Schickel
19aea83411
Fixed documentation.
...
svn-id: r35109
2008-11-18 14:57:40 +00:00
Max Horn
d387206175
Pushed down some header deps
...
svn-id: r34845
2008-10-23 07:59:10 +00:00
Max Horn
f881b95ddd
Removed File::addDefaultDirectoryRecursive, tweaked SearchMan API slightly
...
svn-id: r34836
2008-10-22 17:08:17 +00:00
Max Horn
c7fde102e3
Renamed FilesystemNode -> FSNode
...
svn-id: r34716
2008-10-02 16:58:59 +00:00
Max Horn
7c0b2cfd27
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()
...
svn-id: r34696
2008-09-30 09:12:02 +00:00
Willem Jan Palenstijn
c8eeae8d4d
Big patch changing semantics of ReadStream::eos():
...
eos() now only returns true _after_ trying to read past the end of the stream.
This has a large potential for regressions. Please test!
svn-id: r34549
2008-09-14 22:28:53 +00:00
Max Horn
655ce26b3f
Big patch changing the signature of various Stream methods (some ports may need to be slightly tweaked to fix overloading errors/warnings)
...
svn-id: r34514
2008-09-13 16:51:46 +00:00
Max Horn
ff058e062d
Switched File::open, File::addDefaultDirectory to use a SearchSet internally. Code is a lot shorter & simpler now, far less failing fopen calls (good for NDS and other ports); drawback: regressions :). Good bug hunting to everybody
...
svn-id: r34444
2008-09-08 11:11:32 +00:00
Max Horn
6bfa3e274a
Got rid of File::eof()
...
svn-id: r34396
2008-09-06 21:23:08 +00:00
Max Horn
1cecbebc49
Switched class File & DumpFile to use StdioStream internally
...
svn-id: r34391
2008-09-06 20:49:48 +00:00
Max Horn
320a5dc99f
Moved StdioStream to its own files inside backends
...
svn-id: r34303
2008-09-03 11:49:02 +00:00
Max Horn
531bcf847c
Moved FilesystemNode / FSList to namespace Common; also got rid of some 'typedef Common::String String;' name aliases
...
svn-id: r34302
2008-09-03 11:22:51 +00:00
Max Horn
8246582f5e
Added new StdioStream class, a thin wrapper around FILE
...
svn-id: r34300
2008-09-03 10:11:36 +00:00
Max Horn
99f546caad
Moved the OutSaveFile::finalize method to WriteStream; implemented DumpFile::flush()
...
svn-id: r33604
2008-08-04 11:30:47 +00:00
Max Horn
fe9323ae57
Implemented DumpFile::open(FSNode)
...
svn-id: r33586
2008-08-03 18:11:27 +00:00
Max Horn
0be985ce83
Changed class File (and derived classes) to only support read-only access; added a new class DumpFile for writing
...
svn-id: r33412
2008-07-29 16:09:10 +00:00
Jordi Vilalta Prat
4306e1e0eb
Made some methods virtual to allow File subclasses
...
svn-id: r32311
2008-05-27 02:39:51 +00:00
David Corrales
2ac075e569
Removed the Common::File::removeFile() methods, and moved their implementation to the Common::DefaultSaveFileManager::removeSavefile() method, as per Marcus' appraisal and Max's approval.
...
svn-id: r29337
2007-10-31 13:59:59 +00:00
Travis Howell
6b639c6b21
Rename file removal functions, to avoid conflicts. Add save game path, when removing files via SaveFileManager.
...
svn-id: r29001
2007-09-21 05:27:33 +00:00
Nicola Mettifogo
258901bab9
Merged common/stdafx.h into common/scummsys.h. All referencing files have been updated.
...
svn-id: r28966
2007-09-19 08:40:12 +00:00
Max Horn
c3d3aebe87
Patch #1768757 : Merge fsnode-gsoc into trunk (MAJOR change, will break compilation on some ports)
...
svn-id: r28944
2007-09-18 20:02:04 +00:00
David Corrales
1dc13a641d
Merged some of the changes from the trunk patch back in to the GSoC fsnode branch.
...
svn-id: r28649
2007-08-18 05:24:18 +00:00
David Corrales
6856535010
Merged fsnode with trunk: r27971:28460
...
svn-id: r28462
2007-08-05 19:34:20 +00:00
David Corrales
1400d28bfb
Initial commit of the new BaseFile implementation. It provides a common ground for file objects across platforms and divides responsibilities between the Common::File class and a base file implementation.
...
Also rearranged the factories into a new directory for clarity.
Note 1: The posix-file.h and cpp files are for testing only. Only the ds, ps2 and symbian architecture will use special BaseFile based objects.
Note 2: The current code does not yet make use of this new structure, since the Common::File remains intact.
svn-id: r28395
2007-08-01 22:07:50 +00:00
David Corrales
f42108e633
Added a remove() function to the Common::File class. Also changed the exists() function to account for new capabilities in the FSNode layer.
...
svn-id: r28150
2007-07-20 19:42:38 +00:00
Max Horn
218e132e37
Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
...
svn-id: r27024
2007-05-30 21:56:52 +00:00
Max Horn
743698da6e
Changed File::_handle to be of type void* instead of FILE* (to ease porting); moved PS2 std C I/O defines to file.cpp (no code other than the file & savegame code should use fopen etc. directly)
...
svn-id: r26017
2007-03-08 16:46:02 +00:00
Max Horn
4efda86d7a
Removed File::incRef and decRef
...
svn-id: r25920
2007-03-01 17:25:49 +00:00
Max Horn
7287ce2a4c
Typo
...
svn-id: r25858
2007-02-25 18:26:33 +00:00