- Jul 22, 2018
-
-
Lioncash authored
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.
-
Lioncash authored
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.
-
Lioncash authored
Avoids unnecessary copies when building up the FST entries.
-
- Jul 21, 2018
-
-
Lioncash authored
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.
-
Lioncash authored
Given both operands are the same type, there won't be an issue with overload selection that requires making this explicit.
-
Lioncash authored
-
- Jul 19, 2018
-
-
Lioncash authored
This disallows modifying the internal string buffer (which shouldn't be modified anyhow).
-
Zach Hilman authored
* Virtual Filesystem * Fix delete bug and documentate * Review fixes + other stuff * Fix puyo regression
-
- Jul 08, 2018
-
- Jul 06, 2018
-
-
Zach Hilman authored
* 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
-
fearlessTobi authored
-
- Jul 03, 2018
-
-
James Rowe authored
-
James Rowe authored
-
James Rowe authored
-
- Apr 29, 2018
-
-
Lioncash authored
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.
-
- Apr 27, 2018
- Jan 20, 2018
-
-
James Rowe authored
-
- Mar 11, 2017
-
-
wwylele authored
-
- Mar 08, 2017
-
-
wwylele authored
-
- Jan 31, 2017
-
-
noah the goodra authored
-
- Dec 23, 2016
-
-
wwylele authored
-
- Dec 22, 2016
-
-
bunnei authored
-
- Dec 13, 2016
-
-
Jeffrey Pfau authored
-
- Nov 30, 2016
-
-
freiro authored
-
- Nov 26, 2016
-
-
freiro authored
-
- Nov 24, 2016
-
-
freiro authored
-
- Nov 19, 2016
- Oct 27, 2016
-
-
Anthony J. Bentley authored
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.
-
Jan Beich authored
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.
-
- Sep 21, 2016
-
-
Yuri Kunde Schlesner authored
-
Yuri Kunde Schlesner authored
-
Emmanuel Gil Peyrot authored
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
-
- Sep 19, 2016
-
-
Yuri Kunde Schlesner authored
-
- Sep 18, 2016
-
-
Emmanuel Gil Peyrot authored
-
- Sep 13, 2016
-
-
Emmanuel Gil Peyrot authored
-
- Jun 19, 2016
-
-
Yuri Kunde Schlesner authored
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.
-
- May 21, 2016
-
-
Emmanuel Gil Peyrot authored
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!
-
- Apr 15, 2016
-
-
wwylele authored
-