Jan Beich
5984a4aa1c
file: sync stat64 #ifdef with ppsspp
2015-05-25 14:37:22 -07:00
Jan Beich
bad9806687
file: extend #ifdef for any recent Unix with large file support by default
...
At least other BSDs still fail with
file/file_util.cpp: In function 'bool exists(const string&)':
file/file_util.cpp:172:16: error: aggregate 'exists(const string&)::stat64 file_info' has incomplete type and cannot be defined
struct stat64 file_info;
^
file/file_util.cpp:177:46: error: invalid use of incomplete type 'struct exists(const string&)::stat64'
int result = stat64(copy.c_str(), &file_info);
^
file/file_util.cpp:172:9: note: forward declaration of 'struct exists(const string&)::stat64'
struct stat64 file_info;
^
file/file_util.cpp: In function 'bool getFileInfo(const char*, FileInfo*)':
file/file_util.cpp:207:16: error: aggregate 'getFileInfo(const char*, FileInfo*)::stat64 file_info' has incomplete type and cannot be defined
struct stat64 file_info;
^
file/file_util.cpp:212:46: error: invalid use of incomplete type 'struct getFileInfo(const char*, FileInfo*)::stat64'
int result = stat64(copy.c_str(), &file_info);
^
file/file_util.cpp:207:9: note: forward declaration of 'struct getFileInfo(const char*, FileInfo*)::stat64'
struct stat64 file_info;
^
2015-05-25 19:03:47 +03:00
Unknown W. Brackets
6c0bc5502b
Oops, fix another leak.
2015-04-10 11:48:22 -07:00
Unknown W. Brackets
b9dfb4dbe2
Validate read size in ReadLocalFile().
2015-04-08 12:06:44 -07:00
Unknown W. Brackets
b01f18f331
Support escaped comment marks like \# in inis.
...
This fixes:
* Float values like INF and IND.
* Paths with \# in them.
* Keys with \# in them (in case of i18n strings.)
A small change in behavior: ; at the start of the line is now always a
comment. Previously, if the line had a comment already, adding ; to the
front of it would not comment it out.
2015-02-28 10:26:58 -08:00
Unknown W. Brackets
45103d1929
Fix an unlikely buffer overflow.
2015-01-18 13:15:18 -08:00
Unknown W. Brackets
255b39a6f6
Fix a small memory leak.
2015-01-17 13:54:52 -08:00
Henrik Rydgard
7f0387a31e
Improves buffer overflow protection in LOG macros. Replaces #250 .
...
Also some warning fixes.
2015-01-02 16:36:43 +01:00
Unknown W. Brackets
99c930d6d3
Try harder to get 64-bit sizes in GetSize().
...
Fixes a warning too.
2014-12-30 10:19:26 -08:00
Henrik Rydgard
ffee75fe5d
Warning fixes
2014-11-16 16:44:32 +01:00
Henrik Rydgard
428f338f28
Delete commented out code
2014-10-21 00:07:27 +02:00
Henrik Rydgard
6ee862b564
Increase some buffer sizes
2014-09-14 00:13:24 +02:00
Henrik Rydgard
1bc2fef02c
VFS: Don't log irrelevant message when a file is just missing
2014-07-20 12:08:19 +02:00
Henrik Rydgard
8cd755942b
Reduce some logging
2014-07-18 12:07:08 +02:00
Sacha
d1cccf2c26
Fix some compiler warnings.
2014-07-17 00:48:47 +10:00
Henrik Rydgard
fe1100a714
Add a pointer constructor to chunk_file
2014-06-22 17:41:15 +02:00
Sacha
f7ffcd4197
Remove a lot of #ifdef's that simply were not needed. For example: Symbian has zip in-built, no need to even compile it let alone use #ifdef's.
2014-06-10 23:05:14 +10:00
sum2012
db29bc50cf
Use @unknownbrackets fix
2014-04-24 06:36:34 +08:00
sum2012
86b7797985
Fix French UI crash
...
Reported in https://github.com/hrydgard/ppsspp/issues/5843
by @vnctdj
2014-04-24 06:03:52 +08:00
Henrik Rydgard
dc1e691ea8
Remove unnecessary check for '!' in path browser
2014-04-11 21:22:08 +02:00
Henrik Rydgård
ea404141d7
More warning fixes
2014-04-08 15:27:05 +02:00
Henrik Rydgard
2ad2bd8491
Add flag to enable getFilesInDir to get hidden files (dotfiles).
2014-03-12 19:49:44 +01:00
Henrik Rydgard
7b88bd7918
Use case insensitivity when reading from zip files
2014-02-17 18:49:57 +01:00
Henrik Rydgard
52237f3980
Fix bug where files with the same prefix as a directory would look like they were in that directory, but with their name chopped.
2014-02-12 11:03:31 +01:00
Henrik Rydgard
cf52650724
VFS: Detect non-local paths on Windows too.
2014-02-06 00:02:45 +01:00
Henrik Rydgard
b913c3c36f
Use wstring conversion in file/dialog.cpp
2014-02-05 16:18:03 +01:00
Henrik Rydgard
63f7bae9c9
Filter out A:/ and B:/ drives from PathBrowsers.
2014-02-05 10:47:49 +01:00
Henrik Rydgård
80a424fd18
Fix "in_zip_path_" functionality in GetFilesInDir for zip files
2014-01-21 14:14:45 +01:00
Henrik Rydgård
1dd3915a4c
Prevent writing pointers as bools in iniFile::section::Set
2014-01-16 16:38:40 +01:00
Henrik Rydgård
4dbff7b2d0
Remove unnecessary logging in chunk_file.cpp
2014-01-10 13:29:56 +01:00
Sacha
ecd364d854
Fix a typo that was causing VFS to fail for Qt.
2013-12-20 00:41:42 +10:00
Henrik Rydgård
123cd269b5
VFS: Always treat paths beginning with "/" as local file paths and bypass VFS.
2013-12-13 16:23:13 +01:00
Henrik Rydgård
0909dcbbf5
getFilesInDir: Actually count the number of files.
2013-12-13 16:13:29 +01:00
Henrik Rydgård
da2b26299d
Allow calling getFilesInDir with null files
2013-12-13 16:09:09 +01:00
Henrik Rydgard
b99b826f52
Fix bug with missing files in APK
2013-12-12 20:45:51 +01:00
Henrik Rydgard
c25cf61f54
Warning fix, delete broken Wait function in prio work queue
2013-12-12 12:07:09 +01:00
Henrik Rydgard
73b46f433c
Paths starting with '/' are not VFS paths.
2013-12-10 15:29:58 +01:00
Henrik Rydgård
d0d5be2c5d
Logspam reductions
2013-12-09 13:44:47 +01:00
Unknown W. Brackets
9f82f52189
Small safety tweaks to PathBrowser.
2013-12-08 13:38:31 -08:00
Sacha
17ddae23cc
Qt: Prepare for desktop UI to use embedded mobile UI.
2013-11-27 01:30:28 +10:00
Sacha
06f5d0b76a
Fix small bug that was preventing some shaders from loading.
2013-11-23 00:23:26 +10:00
Henrik Rydgård
e6cf410373
Merge pull request #174 from Bigpet/SDLJoystickRefactor
...
refactored SDL joystick into seperate file
2013-11-22 04:06:54 -08:00
Sacha
58035235da
Qt: Fix directory listing for VFS.
2013-11-22 15:25:45 +10:00
Peter Tissen
3b076b41a9
refactored SDL joystick into seperate file
2013-11-22 02:00:35 +01:00
Sacha
4177cf49db
Qt: Create a AssetsAssetReader for reading via :/assets on Qt.
2013-11-21 19:31:55 +10:00
Sacha
b34c1238e1
Qt: Load from assets if file is not in VFS.
2013-11-21 17:45:54 +10:00
Henrik Rydgard
7ac7851b33
Android crashfix
2013-11-19 23:43:19 +01:00
Sacha
b04f2d4c45
Hide account path in friendly path. There is limited space to print out a full path.
2013-11-20 01:23:15 +10:00
Henrik Rydgård
1a98d8345d
Move out PathBrowser from ppsspp
2013-11-18 14:02:56 +01:00
The Dax
adb73a8844
Only append a slash to the directory if there isn't one on the end.
2013-10-14 13:15:32 -04:00