summaryrefslogtreecommitdiff
path: root/src/common/file_util.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Format: Run the new clang format on everythingGravatar James Rowe2018-01-201-9/+8
|
* file_util: Log when using local user directoryGravatar wwylele2017-03-111-0/+2
|
* file_util: lower logging level for harmless casesGravatar wwylele2017-03-081-9/+7
|
* file_util: Fixed implicit type conversion warning (#2503)Gravatar noah the goodra2017-01-301-2/+2
|
* file_util: fix missing sysdata pathGravatar wwylele2016-12-231-3/+1
|
* file_util: Remove unused paths.Gravatar bunnei2016-12-211-49/+3
|
* Common: Fix gcc build on macOSGravatar Jeffrey Pfau2016-12-131-0/+11
|
* WINVER definition moved to CMake and cleanupGravatar freiro2016-11-301-3/+0
|
* Removed /user/ from pathGravatar freiro2016-11-261-2/+1
|
* Switch to AppData/RoamingGravatar freiro2016-11-241-3/+3
|
* Return by value and other fixesGravatar freiro2016-11-191-13/+7
|
* Win32 move default user folder location to AppDataGravatar freiro2016-11-191-0/+23
|
* common: convert to standard stat()/fstat() interfacesGravatar Anthony J. Bentley2016-10-271-15/+10
| | | | | | | | | | | | | Most modern Unix environments use 64-bit off_t by default: OpenBSD, FreeBSD, OS X, and Linux libc implementations such as Musl. glibc is the lone exception; it can default to 32 bits but this is configurable by setting _FILE_OFFSET_BITS. Avoiding the stat64()/fstat64() interfaces is desirable because they are nonstandard and not implemented on many systems (including OpenBSD and FreeBSD), and using 64 bits for stat()/fstat() is either the default or trivial to set up.
* common: stat64 is non-standard, hide on a random UnixGravatar Jan Beich2016-10-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | src/common/file_util.cpp:79:19: error: variable has incomplete type 'struct stat64' struct stat64 file_info; ^ src/common/file_util.cpp:79:12: note: forward declaration of 'stat64' struct stat64 file_info; ^ src/common/file_util.cpp:99:19: error: variable has incomplete type 'struct stat64' struct stat64 file_info; ^ src/common/file_util.cpp:99:12: note: forward declaration of 'stat64' struct stat64 file_info; ^ src/common/file_util.cpp:342:19: error: variable has incomplete type 'struct stat64' struct stat64 buf; ^ src/common/file_util.cpp:342:12: note: forward declaration of 'stat64' struct stat64 buf; ^ src/common/file_util.cpp:359:19: error: variable has incomplete type 'struct stat64' struct stat64 buf; ^ src/common/file_util.cpp:359:12: note: forward declaration of 'stat64' struct stat64 buf; ^ 4 errors generated.
* Remove special rules for Windows.h and library includesGravatar Yuri Kunde Schlesner2016-09-211-0/+1
|
* Use negative priorities to avoid special-casing the self-includeGravatar Yuri Kunde Schlesner2016-09-211-1/+1
|
* Remove empty newlines in #include blocks.Gravatar Emmanuel Gil Peyrot2016-09-211-1/+0
| | | | | | | This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
* Manually tweak source formatting and then re-run clang-formatGravatar Yuri Kunde Schlesner2016-09-181-2/+1
|
* Sources: Run clang-format on everything.Gravatar Emmanuel Gil Peyrot2016-09-181-292/+223
|
* Common: readdir_r() is deprecated, switch to readdir().Gravatar Emmanuel Gil Peyrot2016-09-131-6/+2
|
* Fix recursive scanning of directoriesGravatar Yuri Kunde Schlesner2016-06-191-12/+10
| | | | | | ForeachDirectoryEntry didn't actually do anything with the `recursive` parameter, and the corresponding callback parameter was shadowing the actual recursion counters in the user functions.
* Common: Make recursive FileUtil functions take a maximum recursionGravatar Emmanuel Gil Peyrot2016-05-211-20/+28
| | | | | | | | | | Fixes #1115. Also improves the performances of DiskArchive’s directory implementation a lot, simply by not going through the entire tree instead of just listing the first level files. Thanks to JayRoxFox for rebasing this on current master!
* Merge pull request #1672 from wwylele/win-driver-fixGravatar bunnei2016-04-191-3/+12
|\ | | | | Fix driver root identification on Windows
| * fix driver root identification on WindowsGravatar wwylele2016-04-151-3/+12
| |
* | file_util: In-class initialize data membersGravatar Lioncash2016-04-131-4/+2
| |
* | file_util: const qualify IOFile's Tell and GetSize functionsGravatar Lioncash2016-04-131-6/+6
| |
* | file_util: Don't expose IOFile internals through the APIGravatar Lioncash2016-04-131-22/+3
|/
* remove debug codeGravatar LFsWang2016-03-311-1/+1
|
* fix unicode url problem on windowsGravatar LFsWang2016-03-311-6/+18
|
* Fix encode problem On WindowsGravatar LFsWang2016-03-311-12/+17
|
* DiskDirectory: Initialize the directory member with valid info.Gravatar Subv2016-01-161-1/+1
|
* Add missing return values in ForeachDirectoryEntryGravatar LFsWang2015-12-231-4/+14
| | | | | ForeachDirectoryEntry is changed by #1256 ,but return value at last line was missing.
* Refactor ScanDirectoryTreeAndCallback to separate errors and retvalsGravatar archshift2015-11-271-37/+35
| | | | | | | | | ScanDirectoryTreeAndCallback, before this change, coupled error/return codes and actual return values (number of entries found). This caused confusion and difficulty interpreting the precise way the function worked. Supersedes, and closes #1255.
* Merge pull request #1095 from archshift/game-listGravatar bunnei2015-10-011-100/+60
|\ | | | | Initial implementation of a game list
| * Split up FileUtil::ScanDirectoryTree to be able to use callbacks for custom ↵Gravatar archshift2015-09-301-100/+60
| | | | | | | | | | | | | | behavior Converted FileUtil::ScanDirectoryTree and FileUtil::DeleteDirRecursively to use the new ScanDirectoryTreeAndCallback function internally.
* | general: Silence some warnings when using clangGravatar Lioncash2015-09-161-2/+2
|/
* Common: Fix FileUtil includes, and everything relying on those.Gravatar Emmanuel Gil Peyrot2015-06-281-2/+9
|
* Remove every trailing whitespace from the project (but externals).Gravatar Emmanuel Gil Peyrot2015-05-291-1/+1
|
* Common: Remove common.hGravatar Yuri Kunde Schlesner2015-05-071-2/+4
|
* Common: Move IO-specific compatibility macros to file_util.cppGravatar Yuri Kunde Schlesner2015-05-071-18/+26
|
* Common: Remove many unnecessary cross-platform compatibility macrosGravatar Yuri Kunde Schlesner2015-05-061-2/+2
|
* Common: Switch to the XDG Base Directory Specification for directory selection.Gravatar Emmanuel Gil Peyrot2015-02-251-9/+68
| | | | This allows for easily movable and independent configuration and data directories, using standardized paths.
* Common: Change names containing “Dolphin” or “PPSSPP” to something ↵Gravatar Emmanuel Gil Peyrot2015-02-201-7/+7
| | | | more generic.
* Archives: Changed the way paths are built for the archives.Gravatar Subv2015-01-031-10/+2
| | | | Each archive now takes a mount point of either NAND or SDMC, and builds its own directory structure there, trying to simulate an HLE-friendly hardware layout
* Archives: Change the folder layout of some archives.Gravatar Subv2015-01-021-0/+2
| | | | This is to better represent the hardware layout, they are still aren't quite accurate, but this better and will help a bit when implementing the other archives like NAND-RO and NAND-RW
* Archives: Reduced duplicate code in RomFS and SaveCheck.Gravatar Subv2015-01-021-0/+2
| | | | Fixed a few warnings and cleaned up the code
* Archives: Implemented ExtSaveData and SharedExtSaveDataGravatar Subv2014-12-291-0/+2
| | | | | | | | They will be stored in /extsavedata/SDMC and /extsavedata/NAND respectively. Also redirect some APT_A functions to their APT_U equivalents. Implemented the gamecoin.dat file in SharedExtSaveData in the PTM module. Implemented formatting the savegame. Retake a previous savegame if it exists instead of reporting them as not formatted every time a game is loaded.
* License changeGravatar purpasmart962014-12-201-2/+2
|
* SaveData: Implemented the SystemSaveData archive.Gravatar Subv2014-12-171-0/+2
| | | | It will be stored in the /syssavedata folder. This archive is user by various Services and possibly games via the FS:U service.
* Filesystem/Archives: Implemented the SaveData archiveGravatar Subv2014-12-171-0/+2
| | | | | | | | | | The savedata for each game is stored in /savedata/<ProgramID> for NCCH files. ELF files and 3DSX files use the folder 0 because they have no ID information Got rid of the code duplication in File and Directory Files that deal with the host machine's file system now live in DiskFile, similarly for directories and DiskDirectory and archives with DiskArchive. FS_U: Use the correct error code when a file wasn't found