summaryrefslogtreecommitdiffstats
path: root/src/common/file_util.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Common: Make recursive FileUtil functions take a maximum recursionEmmanuel 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-fixbunnei2016-04-191-3/+12
|\ | | | | Fix driver root identification on Windows
| * fix driver root identification on Windowswwylele2016-04-151-3/+12
| |
* | file_util: In-class initialize data membersLioncash2016-04-141-4/+2
| |
* | file_util: const qualify IOFile's Tell and GetSize functionsLioncash2016-04-141-6/+6
| |
* | file_util: Don't expose IOFile internals through the APILioncash2016-04-141-22/+3
|/
* remove debug codeLFsWang2016-03-311-1/+1
|
* fix unicode url problem on windowsLFsWang2016-03-311-6/+18
|
* Fix encode problem On WindowsLFsWang2016-03-311-12/+17
|
* DiskDirectory: Initialize the directory member with valid info.Subv2016-01-161-1/+1
|
* Add missing return values in ForeachDirectoryEntryLFsWang2015-12-231-4/+14
| | | | | ForeachDirectoryEntry is changed by #1256 ,but return value at last line was missing.
* Refactor ScanDirectoryTreeAndCallback to separate errors and retvalsarchshift2015-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-listbunnei2015-10-021-100/+60
|\ | | | | Initial implementation of a game list
| * Split up FileUtil::ScanDirectoryTree to be able to use callbacks for custom behaviorarchshift2015-10-011-100/+60
| | | | | | | | | | Converted FileUtil::ScanDirectoryTree and FileUtil::DeleteDirRecursively to use the new ScanDirectoryTreeAndCallback function internally.
* | general: Silence some warnings when using clangLioncash2015-09-161-2/+2
|/
* Common: Fix FileUtil includes, and everything relying on those.Emmanuel Gil Peyrot2015-06-281-2/+9
|
* Remove every trailing whitespace from the project (but externals).Emmanuel Gil Peyrot2015-05-291-1/+1
|
* Common: Remove common.hYuri Kunde Schlesner2015-05-071-2/+4
|
* Common: Move IO-specific compatibility macros to file_util.cppYuri Kunde Schlesner2015-05-071-18/+26
|
* Common: Remove many unnecessary cross-platform compatibility macrosYuri Kunde Schlesner2015-05-071-2/+2
|
* Common: Switch to the XDG Base Directory Specification for directory selection.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 more generic.Emmanuel Gil Peyrot2015-02-201-7/+7
|
* Archives: Changed the way paths are built for the archives.Subv2015-01-041-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.Subv2015-01-031-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.Subv2015-01-031-0/+2
| | | | Fixed a few warnings and cleaned up the code
* Archives: Implemented ExtSaveData and SharedExtSaveDataSubv2014-12-301-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 changepurpasmart962014-12-211-2/+2
|
* SaveData: Implemented the SystemSaveData archive.Subv2014-12-181-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 archiveSubv2014-12-181-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
* Convert old logging calls to new logging macrosYuri Kunde Schlesner2014-12-131-42/+42
|
* Common: Add "sysdata" to GetUserPath and cleanup.bunnei2014-12-121-13/+1
|
* Change NULLs to nullptrs.Rohit Nirmal2014-12-031-12/+12
|
* Remove trailing spaces in every file but the ones imported from SkyEye, AOSP or generatedEmmanuel Gil Peyrot2014-11-191-31/+31
|
* Merge pull request #133 from archshift/sdmc-enabledbunnei2014-10-241-2/+4
|\ | | | | Use config files to store whether SDMC is enabled or not, auto-create SDMC dir.
| * Common: Return from CreateFullPath early if the directory creation failsarchshift2014-10-231-2/+4
| |
* | Use std sized types instead of platform specific typedefsYuri Kunde Schlesner2014-10-231-0/+1
|/
* Merge pull request #108 from archshift/configbunnei2014-10-081-36/+36
|\ | | | | Configuration files
| * Added configuration file system.archshift2014-10-081-36/+36
| | | | | | | | Uses QSettings on citra-qt, and inih on citra-cli.
* | Common: Add a helper function to generate a 8.3 filename from a long one.Emmanuel Gil Peyrot2014-10-061-0/+42
| | | | | | | | Core: Fix the SDMC Directory implementation to make blargSnes work.
* | Fix warnings in core and commonLioncash2014-09-281-2/+2
|/
* Use the citra user path for the sdmc directoryarchshift2014-09-211-0/+2
|
* Common: Rename the File namespace to FileUtil, to match the filename and prevent collisions.Emmanuel Gil Peyrot2014-09-171-19/+19
|
* Merge pull request #99 from archshift/ext-checkbunnei2014-09-111-13/+13
|\ | | | | loader.cpp: improved file extension checking, made Upper/LowerStr useful, moved string_util into Common namespace
| * Added string_util to common, small changes in loader.cpparchshift2014-09-091-13/+13
| |
* | common: Prune all redundant includesarchshift2014-09-091-7/+0
|/
* Common: Move remaining C header includes over to their C++ equivalentLioncash2014-08-171-2/+2
|
* fixes to build on linuxbunnei2014-04-231-1/+1
|
* fixed project includes to use new directory structurebunnei2014-04-091-5/+5
|
* got rid of 'src' folders in each sub-projectbunnei2014-04-091-0/+910