Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove files that are not used | Zach Hilman | 2018-08-01 | 1 | -0/+12 |
| | |||||
* | VFS Regression and Accuracy Fixes (#776) | Zach Hilman | 2018-07-24 | 1 | -1/+10 |
| | | | | | | | | | | | | | | | | * Regression and Mode Fixes * Review Fixes * string_view correction * Add operator& for FileSys::Mode * Return std::string from SanitizePath * Farming Simulator Fix * Use != With mode operator& | ||||
* | Merge pull request #768 from lioncash/string-view | bunnei | 2018-07-22 | 1 | -34/+48 |
|\ | | | | | file_util, vfs: Use std::string_view where applicable | ||||
| * | file_util, vfs: Use std::string_view where applicable | Lioncash | 2018-07-22 | 1 | -34/+48 |
| | | | | | | | | | | Avoids unnecessary construction of std::string instances where applicable. | ||||
* | | Merge pull request #765 from lioncash/file | bunnei | 2018-07-22 | 1 | -24/+14 |
|\ \ | |/ |/| | file_util: Remove goto usages from Copy() | ||||
| * | file_util: Remove goto usages from Copy() | Lioncash | 2018-07-22 | 1 | -24/+14 |
| | | | | | | | | | | | | We can just leverage std::unique_ptr to automatically close these for us in error cases instead of jumping to the end of the function to call fclose on them. | ||||
* | | file_util: Use a u64 to represent number of entries | Lioncash | 2018-07-22 | 1 | -9/+9 |
| | | | | | | | | | | This avoids a truncating cast on size. I doubt we'd ever traverse a directory this large, however we also shouldn't truncate sizes away. | ||||
* | | file_util: std::move FST entries in ScanDirectoryTree() | Lioncash | 2018-07-22 | 1 | -1/+1 |
|/ | | | | Avoids unnecessary copies when building up the FST entries. | ||||
* | Merge pull request #759 from lioncash/redundant | bunnei | 2018-07-22 | 1 | -2/+1 |
|\ | | | | | file_util: Remove redundant duplicate return in GetPathWithoutTop() | ||||
| * | file_util: Remove explicit type from std::min() in GetPathWithoutTop() | Lioncash | 2018-07-21 | 1 | -1/+1 |
| | | | | | | | | | | Given both operands are the same type, there won't be an issue with overload selection that requires making this explicit. | ||||
| * | file_util: Remove redundant duplicate return in GetPathWithoutTop() | Lioncash | 2018-07-21 | 1 | -1/+0 |
| | | |||||
* | | file_util: Use an enum class for GetUserPath() | Lioncash | 2018-07-21 | 1 | -33/+35 |
|/ | | | | | | | | | | | | | Instead of using an unsigned int as a parameter and expecting a user to always pass in the correct values, we can just convert the enum into an enum class and use that type as the parameter type instead, which makes the interface more type safe. We also get rid of the bookkeeping "NUM_" element in the enum by just using an unordered map. This function is generally low-frequency in terms of calls (and I'd hope so, considering otherwise would mean we're slamming the disk with IO all the time) so I'd consider this acceptable in this case. | ||||
* | file_util: return string by const reference for GetExeDirectory() | Lioncash | 2018-07-19 | 1 | -1/+1 |
| | | | | | This disallows modifying the internal string buffer (which shouldn't be modified anyhow). | ||||
* | Virtual Filesystem 2: Electric Boogaloo (#676) | Zach Hilman | 2018-07-19 | 1 | -26/+81 |
| | | | | | | | | | | * Virtual Filesystem * Fix delete bug and documentate * Review fixes + other stuff * Fix puyo regression | ||||
* | Revert "Virtual Filesystem (#597)" | bunnei | 2018-07-08 | 1 | -67/+26 |
| | | | | This reverts commit 77c684c1140f6bf3fb7d4560d06d2efb1a2ee5e2. | ||||
* | Merge pull request #630 from FearlessTobi/remove-citra-references | bunnei | 2018-07-06 | 1 | -1/+1 |
|\ | | | | | Remove some references to Citra | ||||
| * | Remove some references to Citra | fearlessTobi | 2018-07-06 | 1 | -1/+1 |
| | | |||||
* | | Virtual Filesystem (#597) | Zach Hilman | 2018-07-06 | 1 | -26/+67 |
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add VfsFile and VfsDirectory classes * Finish abstract Vfs classes * Implement RealVfsFile (computer fs backend) * Finish RealVfsFile and RealVfsDirectory * Finished OffsetVfsFile * More changes * Fix import paths * Major refactor * Remove double const * Use experimental/filesystem or filesystem depending on compiler * Port partition_filesystem * More changes * More Overhaul * FSP_SRV fixes * Fixes and testing * Try to get filesystem to compile * Filesystem on linux * Remove std::filesystem and document/test * Compile fixes * Missing include * Bug fixes * Fixes * Rename v_file and v_dir * clang-format fix * Rename NGLOG_* to LOG_* * Most review changes * Fix TODO * Guess 'main' to be Directory by filename | ||||
* | Add configurable logging backends | James Rowe | 2018-07-03 | 1 | -5/+12 |
| | |||||
* | Update clang format | James Rowe | 2018-07-03 | 1 | -10/+8 |
| | |||||
* | Rename logging macro back to LOG_* | James Rowe | 2018-07-03 | 1 | -40/+40 |
| | |||||
* | file_util: Make move constructor/assignment operator and related functions noexcept | Lioncash | 2018-04-30 | 1 | -3/+3 |
| | | | | | | | Without this, it's possible to get compilation failures in the (rare) scenario where a container is used to store a bunch of live IOFile instances, as they may be using std::move_if_noexcept under the hood. Given these definitely don't throw exceptions this is also not incorrect to add either. | ||||
* | general: Convert assertion macros over to be fmt-compatible | Lioncash | 2018-04-27 | 1 | -3/+3 |
| | |||||
* | common: Move logging macros over to new fmt-capable macros where applicable | Lioncash | 2018-04-27 | 1 | -48/+48 |
| | |||||
* | Format: Run the new clang format on everything | James Rowe | 2018-01-21 | 1 | -9/+8 |
| | |||||
* | file_util: Log when using local user directory | wwylele | 2017-03-11 | 1 | -0/+2 |
| | |||||
* | file_util: lower logging level for harmless cases | wwylele | 2017-03-08 | 1 | -9/+7 |
| | |||||
* | file_util: Fixed implicit type conversion warning (#2503) | noah the goodra | 2017-01-31 | 1 | -2/+2 |
| | |||||
* | file_util: fix missing sysdata path | wwylele | 2016-12-23 | 1 | -3/+1 |
| | |||||
* | file_util: Remove unused paths. | bunnei | 2016-12-22 | 1 | -49/+3 |
| | |||||
* | Common: Fix gcc build on macOS | Jeffrey Pfau | 2016-12-13 | 1 | -0/+11 |
| | |||||
* | WINVER definition moved to CMake and cleanup | freiro | 2016-11-30 | 1 | -3/+0 |
| | |||||
* | Removed /user/ from path | freiro | 2016-11-26 | 1 | -2/+1 |
| | |||||
* | Switch to AppData/Roaming | freiro | 2016-11-24 | 1 | -3/+3 |
| | |||||
* | Return by value and other fixes | freiro | 2016-11-19 | 1 | -13/+7 |
| | |||||
* | Win32 move default user folder location to AppData | freiro | 2016-11-19 | 1 | -0/+23 |
| | |||||
* | common: convert to standard stat()/fstat() interfaces | Anthony J. Bentley | 2016-10-28 | 1 | -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 Unix | Jan Beich | 2016-10-28 | 1 | -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 includes | Yuri Kunde Schlesner | 2016-09-21 | 1 | -0/+1 |
| | |||||
* | Use negative priorities to avoid special-casing the self-include | Yuri Kunde Schlesner | 2016-09-21 | 1 | -1/+1 |
| | |||||
* | Remove empty newlines in #include blocks. | Emmanuel Gil Peyrot | 2016-09-21 | 1 | -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-format | Yuri Kunde Schlesner | 2016-09-19 | 1 | -2/+1 |
| | |||||
* | Sources: Run clang-format on everything. | Emmanuel Gil Peyrot | 2016-09-18 | 1 | -292/+223 |
| | |||||
* | Common: readdir_r() is deprecated, switch to readdir(). | Emmanuel Gil Peyrot | 2016-09-13 | 1 | -6/+2 |
| | |||||
* | Fix recursive scanning of directories | Yuri Kunde Schlesner | 2016-06-19 | 1 | -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 recursion | Emmanuel Gil Peyrot | 2016-05-21 | 1 | -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-fix | bunnei | 2016-04-19 | 1 | -3/+12 |
|\ | | | | | Fix driver root identification on Windows | ||||
| * | fix driver root identification on Windows | wwylele | 2016-04-15 | 1 | -3/+12 |
| | | |||||
* | | file_util: In-class initialize data members | Lioncash | 2016-04-14 | 1 | -4/+2 |
| | | |||||
* | | file_util: const qualify IOFile's Tell and GetSize functions | Lioncash | 2016-04-14 | 1 | -6/+6 |
| | | |||||
* | | file_util: Don't expose IOFile internals through the API | Lioncash | 2016-04-14 | 1 | -22/+3 |
|/ | |||||
* | remove debug code | LFsWang | 2016-03-31 | 1 | -1/+1 |
| | |||||
* | fix unicode url problem on windows | LFsWang | 2016-03-31 | 1 | -6/+18 |
| | |||||
* | Fix encode problem On Windows | LFsWang | 2016-03-31 | 1 | -12/+17 |
| | |||||
* | DiskDirectory: Initialize the directory member with valid info. | Subv | 2016-01-16 | 1 | -1/+1 |
| | |||||
* | Add missing return values in ForeachDirectoryEntry | LFsWang | 2015-12-23 | 1 | -4/+14 |
| | | | | | ForeachDirectoryEntry is changed by #1256 ,but return value at last line was missing. | ||||
* | Refactor ScanDirectoryTreeAndCallback to separate errors and retvals | archshift | 2015-11-27 | 1 | -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-list | bunnei | 2015-10-02 | 1 | -100/+60 |
|\ | | | | | Initial implementation of a game list | ||||
| * | Split up FileUtil::ScanDirectoryTree to be able to use callbacks for custom behavior | archshift | 2015-10-01 | 1 | -100/+60 |
| | | | | | | | | | | Converted FileUtil::ScanDirectoryTree and FileUtil::DeleteDirRecursively to use the new ScanDirectoryTreeAndCallback function internally. | ||||
* | | general: Silence some warnings when using clang | Lioncash | 2015-09-16 | 1 | -2/+2 |
|/ | |||||
* | Common: Fix FileUtil includes, and everything relying on those. | Emmanuel Gil Peyrot | 2015-06-28 | 1 | -2/+9 |
| | |||||
* | Remove every trailing whitespace from the project (but externals). | Emmanuel Gil Peyrot | 2015-05-29 | 1 | -1/+1 |
| | |||||
* | Common: Remove common.h | Yuri Kunde Schlesner | 2015-05-07 | 1 | -2/+4 |
| | |||||
* | Common: Move IO-specific compatibility macros to file_util.cpp | Yuri Kunde Schlesner | 2015-05-07 | 1 | -18/+26 |
| | |||||
* | Common: Remove many unnecessary cross-platform compatibility macros | Yuri Kunde Schlesner | 2015-05-07 | 1 | -2/+2 |
| | |||||
* | Common: Switch to the XDG Base Directory Specification for directory selection. | Emmanuel Gil Peyrot | 2015-02-25 | 1 | -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 Peyrot | 2015-02-20 | 1 | -7/+7 |
| | |||||
* | Archives: Changed the way paths are built for the archives. | Subv | 2015-01-04 | 1 | -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. | Subv | 2015-01-03 | 1 | -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. | Subv | 2015-01-03 | 1 | -0/+2 |
| | | | | Fixed a few warnings and cleaned up the code | ||||
* | Archives: Implemented ExtSaveData and SharedExtSaveData | Subv | 2014-12-30 | 1 | -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 change | purpasmart96 | 2014-12-21 | 1 | -2/+2 |
| | |||||
* | SaveData: Implemented the SystemSaveData archive. | Subv | 2014-12-18 | 1 | -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 archive | Subv | 2014-12-18 | 1 | -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 macros | Yuri Kunde Schlesner | 2014-12-13 | 1 | -42/+42 |
| | |||||
* | Common: Add "sysdata" to GetUserPath and cleanup. | bunnei | 2014-12-12 | 1 | -13/+1 |
| | |||||
* | Change NULLs to nullptrs. | Rohit Nirmal | 2014-12-03 | 1 | -12/+12 |
| | |||||
* | Remove trailing spaces in every file but the ones imported from SkyEye, AOSP or generated | Emmanuel Gil Peyrot | 2014-11-19 | 1 | -31/+31 |
| | |||||
* | Merge pull request #133 from archshift/sdmc-enabled | bunnei | 2014-10-24 | 1 | -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 fails | archshift | 2014-10-23 | 1 | -2/+4 |
| | | |||||
* | | Use std sized types instead of platform specific typedefs | Yuri Kunde Schlesner | 2014-10-23 | 1 | -0/+1 |
|/ | |||||
* | Merge pull request #108 from archshift/config | bunnei | 2014-10-08 | 1 | -36/+36 |
|\ | | | | | Configuration files | ||||
| * | Added configuration file system. | archshift | 2014-10-08 | 1 | -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 Peyrot | 2014-10-06 | 1 | -0/+42 |
| | | | | | | | | Core: Fix the SDMC Directory implementation to make blargSnes work. | ||||
* | | Fix warnings in core and common | Lioncash | 2014-09-28 | 1 | -2/+2 |
|/ | |||||
* | Use the citra user path for the sdmc directory | archshift | 2014-09-21 | 1 | -0/+2 |
| | |||||
* | Common: Rename the File namespace to FileUtil, to match the filename and prevent collisions. | Emmanuel Gil Peyrot | 2014-09-17 | 1 | -19/+19 |
| | |||||
* | Merge pull request #99 from archshift/ext-check | bunnei | 2014-09-11 | 1 | -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.cpp | archshift | 2014-09-09 | 1 | -13/+13 |
| | | |||||
* | | common: Prune all redundant includes | archshift | 2014-09-09 | 1 | -7/+0 |
|/ | |||||
* | Common: Move remaining C header includes over to their C++ equivalent | Lioncash | 2014-08-17 | 1 | -2/+2 |
| | |||||
* | fixes to build on linux | bunnei | 2014-04-23 | 1 | -1/+1 |
| | |||||
* | fixed project includes to use new directory structure | bunnei | 2014-04-09 | 1 | -5/+5 |
| | |||||
* | got rid of 'src' folders in each sub-project | bunnei | 2014-04-09 | 1 | -0/+910 |