fearlessTobi
c9aadff9a9
Remove some references to Citra
8 years ago
James Rowe
6269a01b4e
Add configurable logging backends
8 years ago
James Rowe
0d46f0df12
Update clang format
8 years ago
James Rowe
638956aa81
Rename logging macro back to LOG_*
8 years ago
Lioncash
e8bbafb746
file_util: Make move constructor/assignment operator and related functions noexcept
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.
8 years ago
Lioncash
8475496630
general: Convert assertion macros over to be fmt-compatible
8 years ago
Lioncash
3cfe77ae75
common: Move logging macros over to new fmt-capable macros where applicable
8 years ago
James Rowe
096be16636
Format: Run the new clang format on everything
8 years ago
wwylele
d040a73bed
file_util: Log when using local user directory
9 years ago
wwylele
7cd6cc0fd9
file_util: lower logging level for harmless cases
9 years ago
noah the goodra
a2d0e2d807
file_util: Fixed implicit type conversion warning ( #2503 )
9 years ago
wwylele
488b7a4041
file_util: fix missing sysdata path
9 years ago
bunnei
707cc66362
file_util: Remove unused paths.
9 years ago
Jeffrey Pfau
fb952c399e
Common: Fix gcc build on macOS
9 years ago
freiro
0c22e52f52
WINVER definition moved to CMake and cleanup
9 years ago
freiro
972b289c78
Removed /user/ from path
9 years ago
freiro
79317b63d9
Switch to AppData/Roaming
9 years ago
freiro
3d75e3cd07
Return by value and other fixes
9 years ago
freiro
29bb82cb8e
Win32 move default user folder location to AppData
9 years ago
Anthony J. Bentley
26af2b644c
common: convert to standard stat()/fstat() interfaces
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.
10 years ago
Jan Beich
51f92f0e4e
common: stat64 is non-standard, hide on a random Unix
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.
9 years ago
Yuri Kunde Schlesner
f120e78b56
Remove special rules for Windows.h and library includes
9 years ago
Yuri Kunde Schlesner
84fbbe2629
Use negative priorities to avoid special-casing the self-include
9 years ago
Emmanuel Gil Peyrot
ebdae19fd2
Remove empty newlines in #include blocks.
This makes clang-format useful on those.
Also add a bunch of forgotten transitive includes, which otherwise
prevented compilation.
9 years ago
Yuri Kunde Schlesner
396a8d91a4
Manually tweak source formatting and then re-run clang-format
9 years ago
Emmanuel Gil Peyrot
dc8479928c
Sources: Run clang-format on everything.
9 years ago
Emmanuel Gil Peyrot
519e7013be
Common: readdir_r() is deprecated, switch to readdir().
9 years ago
Yuri Kunde Schlesner
d6792632f0
Fix recursive scanning of directories
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.
10 years ago
Emmanuel Gil Peyrot
8ab6f26c09
Common: Make recursive FileUtil functions take a maximum recursion
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!
10 years ago
wwylele
43b6cbd762
fix driver root identification on Windows
10 years ago
Lioncash
5f51622e9d
file_util: In-class initialize data members
10 years ago
Lioncash
655623ebb2
file_util: const qualify IOFile's Tell and GetSize functions
10 years ago
Lioncash
a4120ca66c
file_util: Don't expose IOFile internals through the API
10 years ago
LFsWang
87afef73b1
remove debug code
10 years ago
LFsWang
be01912539
fix unicode url problem on windows
10 years ago
LFsWang
acfa76aa38
Fix encode problem On Windows
10 years ago
Subv
922b31ebbd
DiskDirectory: Initialize the directory member with valid info.
10 years ago
LFsWang
8376821776
Add missing return values in ForeachDirectoryEntry
ForeachDirectoryEntry is changed by #1256 ,but return value at last line
was missing.
10 years ago
archshift
b3cfcf55ea
Refactor ScanDirectoryTreeAndCallback to separate errors and retvals
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 .
10 years ago
archshift
7134a17fc6
Split up FileUtil::ScanDirectoryTree to be able to use callbacks for custom behavior
Converted FileUtil::ScanDirectoryTree and FileUtil::DeleteDirRecursively
to use the new ScanDirectoryTreeAndCallback function internally.
10 years ago
Lioncash
751fbfdcc3
general: Silence some warnings when using clang
10 years ago
Emmanuel Gil Peyrot
8cf9eb7f43
Common: Fix FileUtil includes, and everything relying on those.
11 years ago
Emmanuel Gil Peyrot
b1503b2020
Remove every trailing whitespace from the project (but externals).
11 years ago
Yuri Kunde Schlesner
e1fbac3ca1
Common: Remove common.h
11 years ago
Yuri Kunde Schlesner
f3c096951b
Common: Move IO-specific compatibility macros to file_util.cpp
11 years ago
Yuri Kunde Schlesner
bf12f270b3
Common: Remove many unnecessary cross-platform compatibility macros
11 years ago
Emmanuel Gil Peyrot
129ad721c1
Common: Switch to the XDG Base Directory Specification for directory selection.
This allows for easily movable and independent configuration and data directories, using standardized paths.
11 years ago
Emmanuel Gil Peyrot
54d6f6c82b
Common: Change names containing “Dolphin” or “PPSSPP” to something more generic.
11 years ago
Subv
71a063f45c
Archives: Changed the way paths are built for the archives.
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
11 years ago
Subv
3bc9f5509b
Archives: Change the folder layout of some archives.
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
11 years ago