Bastien Bouclet
f8d551803c
POSIX: Use fstat instead of fseek / ftell to retrieve file stream sizes
...
fstat is generally faster as is does not cause the IO buffer to be
invalidated / refilled.
Benchmark results for the startup time of the SCI engine with Gabriel
Knight 1 CD:
- Linux, glibc, spinning HDD, fseek/ftell: 140 ms
- Linux, glibc, spinning HDD, fstat: 100 ms
- 3DS, newlib, SD card, fseek/ftell: 68 s
- 3DS, newlib, SD card, fstat: 11 s
2019-11-20 20:54:23 +01:00
Cameron Cawley
f2b9f7bb76
BACKENDS: Remove the Windows CE port
2019-11-17 22:33:56 +01:00
Thanasis Antoniou
3e9504856f
ANDROID: Override UTF-8 compliant definition of vsn_printf
...
This sets Android as a non-standard port in configure in order to override the definition for vsn_printf
The vsn_printf implementation is taken from https://github.com/weiss/c99-snprintf
2019-11-12 20:01:43 +02:00
Hubert Maier
1f5185f130
AMIGAOS4: Formatting
2019-11-10 17:28:15 +00:00
Hubert Maier
04b111db70
AMIGAOS4: Fix oversight
2019-11-10 17:28:15 +00:00
Hubert Maier
86ba632fe0
AMIGAOS4: more verbose debug comments
2019-11-10 17:28:15 +00:00
Hubert Maier
db367845d3
AmigaOS4: More fixes and cleaning
2019-11-10 17:28:15 +00:00
Hubert Maier
072e80580b
AMIGAOS4: Fix leftovers
2019-11-10 17:28:15 +00:00
Hubert Maier
e30112b814
AMIGAOS4: Clean up fs
...
- replace sprintf with snprintf and obey MAXPATHLEN
2019-11-10 17:28:15 +00:00
Cameron Cawley
48ab35f358
RISCOS: Improve file system code
2019-11-09 18:30:21 +00:00
jepael
843e0f6a4b
POSIX: Fix compiler warning
2019-11-09 16:36:30 +01:00
Bastien Bouclet
8fb57967d7
3DS: Avoid stat calls in DrivePOSIXFilesystemNode
2019-10-31 21:35:41 +01:00
Bastien Bouclet
f22e07825f
3DS: Embed ScummVM's support files in the package
2019-10-14 21:22:23 +02:00
Hubert Maier
75ebbc865f
AMIGAOS4: Fix positioning of workaround
...
Otherwise both dos.library and it's interface will remain open in the rare (?) occasion of p.size <= 0,
2019-10-13 13:08:05 +02:00
Le Philousophe
81b364fbb3
WII: Add time.h to forbidden symbols exceptions
...
As network.h includes time.h, we must add this exception. We can't
include network.h before scummsys.h as inclusion depends on definitions
located in config.h which is loaded by scummsys.h.
2019-10-09 13:33:11 +02:00
Hubert Maier
3d60bee8a4
JANITORIAL: Add more info to track it down later
2019-10-08 11:32:30 +03:00
Hubert Maier
6dd67641f1
JANITORIAL: English and spacing
2019-10-08 11:32:30 +03:00
Hubert Maier
7525be638e
JANITORIAL: Wording
2019-10-08 11:32:30 +03:00
Hubert Maier
bfc296bc4b
AMIGAOS4: Fix NULL access
2019-10-08 11:32:30 +03:00
Eugene Sandulenko
23211392c0
ANDROID: Use external storage enumerator for the root directory
2019-09-27 00:22:20 +02:00
Cameron Cawley
281c292d67
RISCOS: Minor build system improvements
2019-09-19 17:03:09 +01:00
Alexander Tkachev
d488e1dd55
Revert "WIN32: Fix getting the parent directory of non-existant file nodes"
2019-09-16 13:15:23 +02:00
Cameron Cawley
e55e429353
WIN32: Fix getting the parent directory of non-existant file nodes
2019-09-14 19:56:43 +03:00
Cameron Cawley
196b33bb7f
PSP: Implement AbstractFSNode::createDirectory()
2019-08-26 11:38:47 +02:00
Cameron Cawley
db445bfc87
BACKENDS: Improve AbstractFSNode::createDirectory() stubs
2019-08-06 07:17:29 +03:00
Cameron Cawley
66ef50cfeb
BACKENDS: Rename and simplify AbstractFSNode::create()
2019-08-06 07:17:29 +03:00
Thierry Crozat
bfa1f392f7
POSIX: Fix missing expansion of "~" to home when it has no suffix
...
This fixes bug #10941 : Tilde in save path creates "~" folder
2019-07-14 22:11:20 +01:00
Paul Gilbert
b821e8fce4
COMMON: Changed DumpFile & StdIOStream to derive from SeekableWriteStream
2019-05-12 11:44:15 +03:00
Cameron Cawley
3309c574c0
DS: Replace strlcpy with Common::strlcpy
2019-05-01 16:43:26 +01:00
Cameron Cawley
04229fd70b
POSIX: Clean up formatting
2019-04-28 15:06:31 +01:00
Cameron Cawley
ab0fab9bf9
POSIX: Move implementation of exists, isReadable and isWritable into posix-fs.cpp
2019-04-16 00:55:43 +03:00
Cameron Cawley
8c15b41dd7
RISCOS: Move the path conversion functions into a separate file
2019-04-15 16:24:51 +01:00
Cameron Cawley
bcef809e61
WINCE: Fix compilation
2019-04-15 08:06:39 +03:00
SupSuper
1d412701d1
WIN32: Always include windows.h before util.h
...
This avoids Windows trying to stomp our definition of ARRAYSIZE
2018-12-17 12:28:33 +02:00
SupSuper
d0512db25c
WIN32: Move all ARRAYSIZE undefs to util.h
...
Instead of trying to undefine ARRAYSIZE everywhere we use a Windows header, let's just do it before we define our own
2018-12-17 12:28:33 +02:00
Cameron Cawley
174b0d1864
PS2: Fix compilation with latest PS2SDK
2018-09-14 02:33:16 +01:00
Cameron Cawley
6e40b64eb1
POSIX: Allow forbidden symbols required by FreeMiNT
2018-08-18 14:08:40 +02:00
Colin Snover
042650157a
PSP: Fix strict aliasing violation
...
Casting through pointer to void just to truncate a value to uint32
is incorrect.
2018-08-18 13:49:15 +02:00
Colin Snover
452e979101
PSP: Fix invalid return type of PspIoStream
...
The underlying API returns a SceUID, which is not valid to be
casted to a pointer.
2018-08-18 13:49:15 +02:00
Adrian Frühwirth
9bee9e1ba6
JANITORIAL: Fix whitespace
2018-04-19 12:08:31 +02:00
Cameron Cawley
9111998c49
DS: Fix compilation with devkitARM r47
2018-04-07 09:30:07 +02:00
rsn8887
a4fe03c0a5
PSP2: allow loading games from uma0: in addition to ux0:
2018-03-28 23:01:01 -05:00
Cameron Cawley
4d2e1d16b1
RISCOS: Improve detection of absolute paths
2017-11-28 22:23:58 +00:00
Cameron Cawley
509b12de65
RISCOS: Fix using filenames with spaces
2017-11-28 22:23:58 +00:00
Cameron Cawley
51949bbc9e
RISCOS: Add RISC OS filesystem
2017-10-01 20:19:42 +02:00
Eugene Sandulenko
940b2a20f1
Revert "COMMON: Change way the Singleton instances are instantiated"
...
This reverts commit eefa72afa1978a9dea10f5b1833fcc8f58a3468e.
With this patch ConfigManager is broken.
2017-07-10 21:17:41 +02:00
Thierry Crozat
eefa72afa1
COMMON: Change way the Singleton instances are instantiated
...
This fixes tons of warnings with clang from a recent xcode version on
macOS (and possibly other systems) complaining that an instantiation
of _singleton is required but no definition is available.
2017-07-10 21:11:20 +02:00
cpasjuste
70988527c6
PSP2: Add Playstation Vita (PSP2) support
2017-03-04 15:42:19 -06:00
D G Turner
adbf18abca
BACKENDS: Fix Shadowing Compiler Warning for isDirectory symbol.
...
This should ensure that any future cut-and-paste for new backends do not
repeat this same warning issue.
2017-01-12 08:22:40 +00:00
D G Turner
2615e95768
WII: Fix Variable Shadowing Compiler Warnings.
2017-01-12 05:45:41 +00:00