summaryrefslogtreecommitdiff
path: root/Source/Core/Common/FileUtil.cpp
AgeCommit message (Collapse)Author
2025-10-27AdvancedPane: Add a button to restore default settingsJoshua Vandaële
2025-10-05DeleteDirRecursively: Don't report error for absent directoryDentomologist
Check if the return value of std::filesystem::remove_all is -1 rather than 0; the former is the specified return value if there's an error while 0 just means the directory already didn't exist (which is the end result we want). Previously error messages such as the following were possible: E[COMMON]: DeleteDirRecursively: [path]/User/RedirectSession/ failed The operation completed successfully. Also adds a period in the error string to make it look nicer.
2025-09-24chore: remove unused Logs/Mail/ dirFarmerbilly27
2025-07-23BTReal: Implement Realtek Bluetooth firmware loading.Jordan Woyak
Logic and structures are largely taken from Linux source: drivers/bluetooth/btusb.c drivers/bluetooth/btrtl.c drivers/bluetooth/btrtl.h
2025-07-04WiiSaveBanner: fall back to $userdir/Load/WiiBannersTillmann Karras
Unlike custom banners which work as an override, this mechanism works as a fallback. The use case is if you have games you don't really play but want to keep around for testing purposes without filling up your NAND with lots of saves. For ease of use, the directory structure is the same but only title/$title_hi/$title_lo/data/banner.bin files are relevant.
2025-04-08Use std path utility for automatic path seperator handling.Javier Martinez
It was being done manually, which a TODO comment advised against. Using generic_string() from std::filesystem::path solves this. Fix encoding issue using generic_wstring instead.
2024-10-10Modernize `std::replace` with rangesmitaclaw
2024-07-07Implement File::GetExePath() for FreeBSDAdmiral H. Curtiss
2024-07-04AchievementManager: Cache Badges on DiskLillyJadeKatrin
Badges are saved in /User/Cache/RetroAchievements on first download and reused from there instead of redownloaded.
2024-04-14RetroAchievements: Put "RetroAchievements.ini" in the correct config ↵mitaclaw
location for POSIX
2024-04-09JitCache: Software Profiling Restorationmitaclaw
Rekindle software JIT profiling with a std::chrono conversion and a config connection.
2024-03-29FileUtil: Fix BranchWatch User Pathmitaclaw
I mistakenly put `D_DUMP_IDX` here instead of `D_DUMPDEBUG_IDX`.
2024-02-27BranchWatchDialog: A Total Replacement for CodeDiffDialogmitaclaw
With a purpose-built Branch Watch feature built into the emulated system: BranchWatchDialog, replacing CodeDiffDialog, is now better than ever!
2023-12-16Merge pull request #11497 from vyuuui/debugger_assembler_uiTilka
Built-in assembler for debugger interface
2023-12-13Parser and Assembler implementationsvyuuui
2023-11-27Remove references to Debugger.iniJosJuice
This file was only used by DolphinWX. DolphinQt uses Qt.ini instead.
2023-09-24FileUtil: Don't try to retrieve size for FIFO pipeMattKC
2023-06-11VideoBackends:Vulkan: Allow loading custom drivers on AndroidRobin Kertels
... using libadrenotools
2023-04-18Common/CommonFuncs: Move interface into Common namespaceLioncash
Gets these functions out of the global namespace.
2023-04-10Resolve [-Wsign-compare]Minty-Meeo
2023-04-03Added Initial Achievement SettingsLillyJadeKatrin
Added AchievementSettings in Config with RA_INTEGRATION_ENABLED, RA_USERNAME, and RA_API_TOKEN. Includes code to load and store from Achievements.ini file in config folder.
2023-02-26Common/FileUtil: Remove obsolete CopyDir() function.Admiral H. Curtiss
2023-02-26Common/FileUtil: Add Move() function.Admiral H. Curtiss
2023-02-24Common/FileUtil: Use non-throwing overload of is_directory() in CreateDir() ↵Admiral H. Curtiss
and CreateFullPath().
2023-02-24Common/FileUtil: Add CreateDirs() function as a wrapper around ↵Admiral H. Curtiss
std::filesystem::create_directories().
2023-02-24Common/FileUtil: Add Copy() function as a wrapper around ↵Admiral H. Curtiss
std::filesystem::copy().
2023-02-22Common/FileUtil: Rename Copy() to CopyRegularFile().Admiral H. Curtiss
This is to clarify that it can only copy files, not folders.
2023-02-15Common/FileUtil: Revert behavior of CreateFullPath().Admiral H. Curtiss
This was accidentally changed in 7e6436db347c3cc479d768180de158a0f9c88226.
2023-02-14Merge pull request #11426 from shuffle2/stdfsAdmiral H. Curtiss
fileutil: use std::filesystem
2023-01-24Common: Replace StringBeginsWith/StringEndsWith with std equivalentsLioncash
Obsoletes these functions in favor of the standard member functions added in C++20.
2023-01-24convert File::ScanDirectoryTree to std::filesystemShawn Hoffman
2023-01-24fileutil: use std::filesystemShawn Hoffman
2023-01-10get rid of HAS_STD_FILESYSTEMShawn Hoffman
just use std::filesystem
2022-10-31FileUtil: Return success bool from CopyDirDentomologist
2022-10-29windows: Rename: use std::filesystem::rename for posix behaviorShawn Hoffman
2022-07-11Common: Change default path for Wii SD cards to not be inside the Wii NAND.Admiral H. Curtiss
2022-07-11Config and UICommon: Add config option and user path for Wii SD card sync ↵Admiral H. Curtiss
folder.
2022-07-11Treewide: Rename references to SD Card image path to clarify they mean the ↵Admiral H. Curtiss
image file, not the folder.
2022-07-05FileUtil: Only attempt to write to the destination in Copy if there is ↵OatmealDome
actually content to write
2022-06-26Core: add GraphicsMod directoryiwubcode
2022-05-31FileUtil: Refactor CreateSysDirectoryPath()Dentomologist
2022-05-31FileUtil: Remove GetSysDirectory log spamDentomologist
Create and log path the first time GetSysDirectory is called, then just return the path on future calls.
2022-05-31Android: Ensure File::s_android_sys_directory is set only onceDentomologist
2022-03-08Common/FileUtil: Change logging to debug levelPokechu22
These messages hid other, more important, ones often. I have left AttemptMaxTimesWithExponentialDelay and GetSysDirectory/SetSysDirectory as info, since those are called infrequently and can be useful to the end-user.
2022-02-25FileUtil: Remove redundant statementDentomologist
2021-12-25Core: Make format of D_WIIROOT_IDX consistent with the rest of the user ↵Admiral H. Curtiss
directories.
2021-12-25Common/FileUtil: Ensure consistency for custom user paths.Admiral H. Curtiss
2021-12-10Treewide: Adjust order of includesPokechu22
2021-10-24CommonPaths: Add a Riivolution subfolder in Load.Admiral H. Curtiss
2021-09-14Common/FileUtil: Strip trailing path separator in ScanDirectoryTree().Admiral H. Curtiss