summaryrefslogtreecommitdiff
path: root/src/common/file_util.cpp
AgeCommit message (Collapse)Author
2016-09-21Remove empty newlines in #include blocks.Emmanuel Gil Peyrot
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
2016-09-18Manually tweak source formatting and then re-run clang-formatYuri Kunde Schlesner
2016-09-18Sources: Run clang-format on everything.Emmanuel Gil Peyrot
2016-09-13Common: readdir_r() is deprecated, switch to readdir().Emmanuel Gil Peyrot
2016-06-19Fix recursive scanning of directoriesYuri Kunde Schlesner
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.
2016-05-21Common: Make recursive FileUtil functions take a maximum recursionEmmanuel Gil Peyrot
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!
2016-04-19Merge pull request #1672 from wwylele/win-driver-fixbunnei
Fix driver root identification on Windows
2016-04-15fix driver root identification on Windowswwylele
2016-04-13file_util: In-class initialize data membersLioncash
2016-04-13file_util: const qualify IOFile's Tell and GetSize functionsLioncash
2016-04-13file_util: Don't expose IOFile internals through the APILioncash
2016-03-31remove debug codeLFsWang
2016-03-31fix unicode url problem on windowsLFsWang
2016-03-31Fix encode problem On WindowsLFsWang
2016-01-16DiskDirectory: Initialize the directory member with valid info.Subv
2015-12-23Add missing return values in ForeachDirectoryEntryLFsWang
ForeachDirectoryEntry is changed by #1256 ,but return value at last line was missing.
2015-11-27Refactor ScanDirectoryTreeAndCallback to separate errors and retvalsarchshift
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.
2015-10-01Merge pull request #1095 from archshift/game-listbunnei
Initial implementation of a game list
2015-09-30Split up FileUtil::ScanDirectoryTree to be able to use callbacks for custom ↵archshift
behavior Converted FileUtil::ScanDirectoryTree and FileUtil::DeleteDirRecursively to use the new ScanDirectoryTreeAndCallback function internally.
2015-09-16general: Silence some warnings when using clangLioncash
2015-06-28Common: Fix FileUtil includes, and everything relying on those.Emmanuel Gil Peyrot
2015-05-29Remove every trailing whitespace from the project (but externals).Emmanuel Gil Peyrot
2015-05-07Common: Remove common.hYuri Kunde Schlesner
2015-05-07Common: Move IO-specific compatibility macros to file_util.cppYuri Kunde Schlesner
2015-05-06Common: Remove many unnecessary cross-platform compatibility macrosYuri Kunde Schlesner
2015-02-25Common: Switch to the XDG Base Directory Specification for directory selection.Emmanuel Gil Peyrot
This allows for easily movable and independent configuration and data directories, using standardized paths.
2015-02-20Common: Change names containing “Dolphin” or “PPSSPP” to something ↵Emmanuel Gil Peyrot
more generic.
2015-01-03Archives: Changed the way paths are built for the archives.Subv
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
2015-01-02Archives: Change the folder layout of some archives.Subv
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
2015-01-02Archives: Reduced duplicate code in RomFS and SaveCheck.Subv
Fixed a few warnings and cleaned up the code
2014-12-29Archives: Implemented ExtSaveData and SharedExtSaveDataSubv
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.
2014-12-20License changepurpasmart96
2014-12-17SaveData: Implemented the SystemSaveData archive.Subv
It will be stored in the /syssavedata folder. This archive is user by various Services and possibly games via the FS:U service.
2014-12-17Filesystem/Archives: Implemented the SaveData archiveSubv
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
2014-12-13Convert old logging calls to new logging macrosYuri Kunde Schlesner
2014-12-12Common: Add "sysdata" to GetUserPath and cleanup.bunnei
2014-12-03Change NULLs to nullptrs.Rohit Nirmal
2014-11-19Remove trailing spaces in every file but the ones imported from SkyEye, AOSP ↵Emmanuel Gil Peyrot
or generated
2014-10-23Merge pull request #133 from archshift/sdmc-enabledbunnei
Use config files to store whether SDMC is enabled or not, auto-create SDMC dir.
2014-10-22Use std sized types instead of platform specific typedefsYuri Kunde Schlesner
2014-10-22Common: Return from CreateFullPath early if the directory creation failsarchshift
2014-10-07Merge pull request #108 from archshift/configbunnei
Configuration files
2014-10-07Added configuration file system.archshift
Uses QSettings on citra-qt, and inih on citra-cli.
2014-10-06Common: Add a helper function to generate a 8.3 filename from a long one.Emmanuel Gil Peyrot
Core: Fix the SDMC Directory implementation to make blargSnes work.
2014-09-28Fix warnings in core and commonLioncash
2014-09-21Use the citra user path for the sdmc directoryarchshift
2014-09-17Common: Rename the File namespace to FileUtil, to match the filename and ↵Emmanuel Gil Peyrot
prevent collisions.
2014-09-11Merge pull request #99 from archshift/ext-checkbunnei
loader.cpp: improved file extension checking, made Upper/LowerStr useful, moved string_util into Common namespace
2014-09-08common: Prune all redundant includesarchshift
2014-09-08Added string_util to common, small changes in loader.cpparchshift