summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/filesystem (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #13073 from FearlessTobi/fsp-srv-ipcliamwhite2024-02-2310-496/+500
|\ | | | | fsp: Migrate remaining interfaces to cmif serialization
| * Address review commentsFearlessTobi2024-02-196-17/+19
| |
| * fs: Add and use fs_save_data_types.hFearlessTobi2024-02-193-25/+25
| |
| * fsp: Migrate remaining interfaces to cmif serializationFearlessTobi2024-02-196-62/+48
| |
| * fsp-srv: Migrate to use cmif serializationFearlessTobi2024-02-192-263/+203
| |
| * fsp: Move IMultiCommitManager to a seperate fileFearlessTobi2024-02-193-29/+58
| |
| * fsp: Move ISaveDataInfoReader to a seperate fileFearlessTobi2024-02-193-165/+212
| |
* | Address review comments pt. 2FearlessTobi2024-02-192-28/+4
| |
* | Address review commentsFearlessTobi2024-02-192-4/+5
| |
* | fs: Refactor to use cmif serializationFearlessTobi2024-02-196-295/+209
| |
* | fs: Add FileSystemAccessor classesFearlessTobi2024-02-196-125/+65
|/
* service: Add proper GetCacheStorageMax implementation to IApplicationFunctionsLeystryku2024-02-181-1/+1
|
* fsp: Add FlushAccessLogOnSdCard stubLeystryku2024-02-182-2/+10
|
* service: fs: Skip non user id foldersNarr the Reg2024-02-021-0/+9
|
* core: support offline web appletLiam2024-01-301-13/+35
|
* Address review comments and fix compilation problemsFearlessTobi2024-01-251-0/+1
|
* fs: Add path classFearlessTobi2024-01-252-2/+5
|
* fs/errors: Unify naming of result codesFearlessTobi2024-01-255-30/+30
|
* fs: Replace Mode enum by OpenMode enumFearlessTobi2024-01-257-50/+47
|
* vfs: Move vfs files to their own directoryFearlessTobi2024-01-258-9/+9
|
* fs: Move fsp_srv subclasses to separate filesFearlessTobi2024-01-2516-540/+676
| | | | fs: Move additional files to the fsp directory
* fsp-srv: use program registry for SetCurrentProcessLiam2024-01-118-231/+318
|
* fs: implement OpenDirectoryModeLiam2023-12-182-8/+17
|
* Merge pull request #12290 from liamwhite/deferred-path-splitliamwhite2023-12-161-5/+1
|\ | | | | Improve path splitting speed
| * Improve path splitting speedBreadFish642023-12-061-5/+1
| |
* | fs: don't enumerate hidden savedata size fileLiam2023-12-091-1/+7
|/
* fsp-srv: enable auto save data creation on initLiam2023-10-021-0/+3
|
* fsp-srv: add GetFileSystemAttributeLiam2023-09-261-0/+41
|
* service: fsp: Implement CreateSaveDataFileSystemBySystemSaveDataId and OpenSaveDataFileSystemBySystemSaveDataIdgerman772023-09-242-2/+24
|
* filesystem: Return correct error for RenameFile when dest_path already existsFearlessTobi2023-08-241-1/+10
| | | | | | Allows Grid Autosport to boot. Fixes https://github.com/yuzu-emu/yuzu/issues/8287.
* fssystem: rework for yuzu styleLiam2023-08-151-2/+2
|
* vfs: expand support for NCA readingLiam2023-08-153-3/+12
|
* fs: return result on null outputsLiam2023-08-081-4/+24
|
* general: fix incorrect conversionsLiam2023-08-081-1/+1
|
* core: remove ResultVal typeLiam2023-08-083-104/+140
|
* fsp-srv: avoid patching romfs multiple timesLiam2023-06-031-8/+12
|
* fs: adjust future save pathLiam2023-05-111-2/+2
|
* fs: stub cache storage and fix params alignmentLiam2023-05-112-5/+17
|
* service: move hle_ipc from kernelLiam2023-03-012-68/+67
|
* service: refactor server architectureLiam2023-02-213-13/+14
| | | | Converts services to have their own processes
* general: rename CurrentProcess to ApplicationProcessLiam2023-02-142-4/+5
|
* fsp_srv: Copy HLE Read Buffer for OutputAccessLogToSdCardameerj2023-02-031-1/+1
|
* Revert "Merge pull request #9718 from yuzu-emu/revert-9508-hle-ipc-buffer-span"ameerj2023-02-031-6/+3
| | | | | This reverts commit 25fc5c0e1158cb8e81cbc769b24ad84032a1fbfd, reversing changes made to af20e25081f97d55b451606c87922e2b49f0d363.
* Revert "hle_ipc: Use std::span to avoid heap allocations/copies when calling ReadBuffer"liamwhite2023-02-021-3/+6
|
* hle_ipc: Rename ReadBufferSpan to ReadBufferameerj2022-12-291-14/+14
|
* fsp_srv: Use ReadBufferSpanameerj2022-12-251-17/+14
|
* service: Make use of buffer element count helpersLioncash2022-11-231-2/+2
|
* fsp_srv: stub GetCacheStorageSizeLiam2022-10-082-1/+14
|
* core:filesystem: speed up IDirectory servicevonchenplus2022-08-231-1/+2
|
* core: Replace all instances of ResultCode with Resultgerman772022-06-272-28/+27
|
* common: Change semantics of UNREACHABLE to unconditionally crashLiam2022-06-141-1/+1
|
* general: Convert source file copyright comments over to SPDXMorph2022-04-238-24/+16
| | | | | This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
* Merge pull request #8122 from bunnei/improve-thread-usagebunnei2022-04-061-5/+8
|\ | | | | Improve usage of service host threads
| * hle: service: filesystem: Create a service thread where appropriate.bunnei2022-04-021-5/+8
| |
* | fix: typosAndrea Pappacoda2022-04-021-1/+1
|/
* service/filsystem: Update fsp-srv function tableLioncash2022-01-211-0/+3
|
* general: Get the current process program id directly from the systemMorph2021-11-042-7/+4
| | | | This allows us to avoid including KProcess' header file in files that only need to get the current process' program id.
* general: Rename GetTitleID to GetProgramIDMorph2021-11-042-4/+5
|
* core: Remove unused includesameerj2021-11-041-1/+0
|
* general: Remove MakeResult helpersMorph2021-11-021-11/+10
| | | | This is made obsolete by the presence of implicit constructors.
* service: Reduce header include overheadMorph2021-10-072-2/+0
|
* vfs: Partially implement GetFileTimeStampRawMorph2021-09-143-1/+37
| | | | Gets rid of homebrew warnings using this func
* FS: Mark recursive CreateDirectory as inaccurate and temporaryMorph2021-09-121-0/+5
|
* Addressed issuesChloe2021-09-081-1/+1
| | | Co-authored-by: Mai M. <mathew1800@gmail.com>
* FS: Recursively create directories for CreateDirectoryChloe Marcec2021-09-061-8/+13
| | | | | | Originally we only created the parent directory, this caused issues for creating directories which also contained subdirectories, eg `/Folder1/Folder2` This allows the ultimate mod manager homebrew to at least boot
* filesystem: Open a read-only directory for SDMC modsMorph2021-06-281-5/+9
| | | | This prevents mod files from being locked due to the read-only share flag in Windows.
* core: Simplify SDMC mod loadinglat9nq2021-06-281-1/+2
| | | | | | | | | | If someone else wants to support other mod formats in the SDMC directory, that can be added later. For now, just allow RomFS modding here and force people to do other types of mods the old way. Addresses review comments. Co-authored-by: LC <mathew1800@gmail.com>
* core: Support LayeredFS mod from SDMC directorylat9nq2021-06-282-0/+10
| | | | | | Enables loading a mod directly from `[yuzu data directory]/sdmc/atmosphere/contents/[title_id]`. For use with some homebrew mod managers.
* fsp_srv: Fix filesystem access loggingMorph2021-06-162-12/+15
| | | | | | | | This introduces a new setting Enable FS Access Log which saves the filesystem access log to sdmc:/FsAccessLog.txt If this setting is not enabled, this will indicate to FS to not call OutputAccessLogToSdCard. Fixes softlocks during loading in Xenoblade Chronicles 2 when certain DLC is enabled.
* fsp-srv: Replace one last instance of RESULT_SUCCESSMorph2021-06-031-1/+1
|
* fspsrv: Implement DisableAutoSaveDataCreation (#6355)Chloe2021-06-034-1/+17
| | | - Used by Mii Edit
* general: Replace RESULT_UNKNOWN with ResultUnknownMorph2021-06-022-19/+19
| | | | Transition to PascalCase for result names.
* general: Replace RESULT_SUCCESS with ResultSuccessMorph2021-06-022-50/+50
| | | | Transition to PascalCase for result names.
* common: fs: Rework the Common Filesystem interface to make use of std::filesystem (#6270)Morph2021-05-261-9/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * common: fs: fs_types: Create filesystem types Contains various filesystem types used by the Common::FS library * common: fs: fs_util: Add std::string to std::u8string conversion utility * common: fs: path_util: Add utlity functions for paths Contains various utility functions for getting or manipulating filesystem paths used by the Common::FS library * common: fs: file: Rewrite the IOFile implementation * common: fs: Reimplement Common::FS library using std::filesystem * common: fs: fs_paths: Add fs_paths to replace common_paths * common: fs: path_util: Add the rest of the path functions * common: Remove the previous Common::FS implementation * general: Remove unused fs includes * string_util: Remove unused function and include * nvidia_flags: Migrate to the new Common::FS library * settings: Migrate to the new Common::FS library * logging: backend: Migrate to the new Common::FS library * core: Migrate to the new Common::FS library * perf_stats: Migrate to the new Common::FS library * reporter: Migrate to the new Common::FS library * telemetry_session: Migrate to the new Common::FS library * key_manager: Migrate to the new Common::FS library * bis_factory: Migrate to the new Common::FS library * registered_cache: Migrate to the new Common::FS library * xts_archive: Migrate to the new Common::FS library * service: acc: Migrate to the new Common::FS library * applets/profile: Migrate to the new Common::FS library * applets/web: Migrate to the new Common::FS library * service: filesystem: Migrate to the new Common::FS library * loader: Migrate to the new Common::FS library * gl_shader_disk_cache: Migrate to the new Common::FS library * nsight_aftermath_tracker: Migrate to the new Common::FS library * vulkan_library: Migrate to the new Common::FS library * configure_debug: Migrate to the new Common::FS library * game_list_worker: Migrate to the new Common::FS library * config: Migrate to the new Common::FS library * configure_filesystem: Migrate to the new Common::FS library * configure_per_game_addons: Migrate to the new Common::FS library * configure_profile_manager: Migrate to the new Common::FS library * configure_ui: Migrate to the new Common::FS library * input_profiles: Migrate to the new Common::FS library * yuzu_cmd: config: Migrate to the new Common::FS library * yuzu_cmd: Migrate to the new Common::FS library * vfs_real: Migrate to the new Common::FS library * vfs: Migrate to the new Common::FS library * vfs_libzip: Migrate to the new Common::FS library * service: bcat: Migrate to the new Common::FS library * yuzu: main: Migrate to the new Common::FS library * vfs_real: Delete the contents of an existing file in CreateFile Current usages of CreateFile expect to delete the contents of an existing file, retain this behavior for now. * input_profiles: Don't iterate the input profile dir if it does not exist Silences an error produced in the log if the directory does not exist. * game_list_worker: Skip parsing file if the returned VfsFile is nullptr Prevents crashes in GetLoader when the virtual file is nullptr * common: fs: Validate paths for path length * service: filesystem: Open the mod load directory as read only
* hle: kernel: Rename Process to KProcess.bunnei2021-05-062-2/+2
|
* service: filesystem: Return proper error codes for CreateFileMorph2021-05-011-2/+7
| | | | | | This improves the accuracy of CreateFile by returning the correct error codes on certain conditions (parent directory does not exist, path already exists). This fixes saving and the loading of existing saves in New Pokemon Snap
* service: Eliminate cases of member shadowingLioncash2021-04-261-10/+11
| | | | | Resolves a few localized instances of member variable shadowing. Brings us a little closer to turning shadowing warnings into errors.
* common: Move settings to common from core.bunnei2021-04-151-1/+1
| | | | - Removes a dependency on core and input_common from common.
* IFile: Update to 12.xMorph2021-04-071-3/+7
|
* fsp-srv: Update to 12.xMorph2021-04-072-3/+8
|
* Merge pull request #5119 from Morph1984/fs-opendatastoragewithprogramindexbunnei2020-12-154-1/+57
|\ | | | | fsp_srv: Implement OpenDataStorageWithProgramIndex
| * fsp_srv: Implement OpenDataStorageWithProgramIndexMorph2020-12-084-1/+57
| | | | | | | | - Used by RollerCoaster Tycoon 3: Complete Edition
* | core: Remove unnecessary enum casts in log callsLioncash2020-12-082-24/+21
|/ | | | | Follows the video core PR. fmt doesn't require casts for enum classes anymore, so we can remove quite a few casts.
* savedata_factory: Eliminate usage of the global system instanceLioncash2020-11-271-1/+2
| | | | Now there's only two meaningful instances left in core.
* service: Eliminate usages of the global system instanceLioncash2020-11-277-37/+47
| | | | | Completely removes all usages of the global system instance within the services code by passing in the using system instance to the services.
* patch_manager: Remove usages of the global system instanceLioncash2020-11-183-7/+15
| | | | | | | With this, only 19 usages of the global system instance remain within the core library. We're almost there.
* Revert "core: Fix clang build"bunnei2020-10-211-5/+3
|
* Merge pull request #4796 from lioncash/clangLC2020-10-211-3/+5
|\ | | | | core: Fix clang build
| * core: Fix clang buildLioncash2020-10-181-3/+5
| | | | | | | | | | | | | | Recent changes to the build system that made more warnings be flagged as errors caused building via clang to break. Fixes #4795
* | filesystem: Fix CreateDirectory and DeleteFileMorph2020-10-131-2/+3
|/ | | | | | Add a check if dir is nullptr (does not exist) Fixes save game creation in Hades
* file_sys/bis_factory: Eliminate usage of the global system accessorLioncash2020-09-171-1/+1
|
* fsp_srv: Resolve -Wunused-but-set-variable warningLioncash2020-08-231-1/+8
| | | | We can just log out the parameters in the meantime.
* fsp_srv: Resolve -Wmaybe_uninitialized warning in OpenSaveDataFileSystem()Lioncash2020-08-231-2/+5
| | | | | Initialize id to a deterministic value and also mark the unreachable cases in the switch with UNREACHABLE().
* common/fileutil: Convert namespace to Common::FSLioncash2020-08-161-40/+40
| | | | | | | | | | | | Migrates a remaining common file over to the Common namespace, making it consistent with the rest of common files. This also allows for high-traffic FS related code to alias the filesystem function namespace as namespace FS = Common::FS; for more concise typing.
* minor nitsMorph2020-07-311-1/+3
|
* fsp-srv: Stub Read/WriteSaveDataFileSystemExtraDataWithMaskBySaveDataAttributeMorph2020-07-302-23/+56
| | | | Stub these 2 service commands required for Animal Crossing: New Horizons Update 1.4.0
* fs: Rename SaveDataDescriptor to SaveDataAttributeMorph2020-07-302-7/+7
|
* Add comment to clarify the nullptr checkMorph2020-07-161-0/+1
|
* filesystem: Create subdirectories prior to creating a fileMorph2020-07-161-0/+3
| | | | | If subdirectories exist in the given path parameter and don't exist in the real filesystem create them prior to creating the files within. This fixes the softlocks upon save creation in The Legend of Zelda: Breath of the Wild
* service: fsp_srv: Stub implementation of OpenMultiCommitManager.bunnei2020-05-112-1/+38
|
* fs-srv: GetFreeSpaceSize & GetTotalSpaceSizeDavid Marcec2020-04-301-2/+2
| | | | | | Closes #3533 Turns out the functions were already implemented but just never added
* service: Update function tablesLioncash2020-04-201-0/+4
| | | | | | Keeps the service function tables up to date. Updated based off information on SwitchBrew.
* CMakeLists: Specify -Wextra on linux buildsLioncash2020-04-162-1/+5
| | | | | | | | | | | Allows reporting more cases where logic errors may exist, such as implicit fallthrough cases, etc. We currently ignore unused parameters, since we currently have many cases where this is intentional (virtual interfaces). While we're at it, we can also tidy up any existing code that causes warnings. This also uncovered a few bugs as well.
* hle: services: Use std::shared_ptr instead of copy by value.bunnei2020-02-081-7/+9
|
* Merge pull request #3169 from lioncash/memorybunnei2019-11-281-5/+2
|\ | | | | core/memory: Deglobalize memory management code
| * core: Prepare various classes for memory read/write migrationLioncash2019-11-271-5/+2
| | | | | | | | | | | | | | | | | | | | Amends a few interfaces to be able to handle the migration over to the new Memory class by passing the class by reference as a function parameter where necessary. Notably, within the filesystem services, this eliminates two ReadBlock() calls by using the helper functions of HLERequestContext to do that for us.
* | file_sys/directory: Make EntryType an enum classLioncash2019-11-271-2/+2
|/ | | | | This can trivially be an enum class rather than a regular enum, making it more strongly typed.
* Merge pull request #3094 from lioncash/tablesbunnei2019-11-251-0/+6
|\ | | | | service: Update function tables
| * service: Update function tablesLioncash2019-11-121-0/+6
| | | | | | | | | | | | Keeps the function tables up to date. Updated based off information from Switchbrew.
* | service: Resolve sign conversion errorsLioncash2019-11-122-16/+16
|/ | | | | These are fairly trivial to resolve and most of the changes entail using RESULT_UNKNOWN over ResultCode(-1).
* hle/service: Replace global system instance calls with instance-based onesLioncash2019-10-062-11/+17
| | | | | | | | | | Migrates the HLE service code off the use of directly accessing the global system instance where trivially able to do so. This removes all usages of Core::CurrentProcess from the service code, only 8 occurrences of this function exist elsewhere. There's still quite a bit of "System::GetInstance()" being used, however this was able to replace a few instances.
* service/filesystem: Silence -Wunused-variableReinUsesLisp2019-10-051-1/+1
|
* bcat: Add FSC accessors for BCAT dataZach Hilman2019-10-012-1/+3
| | | Ports BCAT to use FSC interface
* filesystem: Add getter for BCAT temporary directoryZach Hilman2019-09-301-0/+9
|
* configure_debug: Move reporting option to loggingZach Hilman2019-09-224-6/+6
|
* filesystem: Add const qualification to various accessorsZach Hilman2019-09-213-68/+76
|
* yuzu: Port old usages of Filesystem namespace to FilesystemControllerZach Hilman2019-09-213-14/+37
|
* filesystem: Pass Size Getter functions to IFileSystem for sizesZach Hilman2019-09-213-20/+31
|
* filesystem: Add FileSystemController to deglobalize FS servicesZach Hilman2019-09-212-58/+359
|
* fsp-srv: Implement GetAccessLogVersionInfoZach Hilman2019-06-292-3/+14
| | | | Returns some misc. data about logging to help the game determine if it should log.
* fsp-srv: Implement OutputAccessLogToSdCardZach Hilman2019-06-294-21/+58
| | | | Allows games to log data to the SD.
* Merge pull request #2382 from lioncash/tablebunnei2019-04-161-0/+7
|\ | | | | service: Update service function tables
| * service: Update service function tablesLioncash2019-04-111-0/+7
| | | | | | | | Updates function tables based off information from SwitchBrew.
* | fsp_srv: Remove unnecessary parameter popping in IDirectory's Read()Lioncash2019-04-101-4/+1
| | | | | | | | | | IDirectory's Read() function doesn't take any input parameters. It only uses the output parameters that we already provide.
* | fsp_srv: Log out option values in IFile's Read and Write functionsLioncash2019-04-101-4/+6
|/ | | | | | | | These indicate options that alter how a read/write is performed. Currently we don't need to handle these, as the only one that seems to be used is for writes, but all the custom options ever seem to do is immediate flushing, which we already do by default.
* Merge pull request #1957 from DarkLordZach/title-providerbunnei2019-04-102-7/+6
|\ | | | | file_sys: Provide generic interface for accessing game data
| * core: Port current uses of RegisteredCache to ContentProviderZach Hilman2019-03-272-7/+6
| |
* | Merge pull request #2339 from lioncash/rankbunnei2019-04-063-12/+15
|\ \ | | | | | | service/fsp_srv: Update SaveDataInfo and SaveDataDescriptor structs
| * | service/fsp_srv: Don't pass SaveDataDescriptor instances by value.Lioncash2019-04-052-4/+4
| | | | | | | | | | | | | | | Passing around a 64 byte data struct by value is kind of wasteful, instead pass a reference to the struct.
| * | service/fsp_srv: Remove unnecessary unknown member in OpenSaveDataFileSystemLioncash2019-04-051-7/+8
| | | | | | | | | | | | | | | The unknown member here is actually padding due to being passed as a struct. We can do the same, and remove the need to pop a padding word.
| * | service/fsp_srv: Update SaveDataInfo and SaveDataDescriptor structsLioncash2019-04-051-1/+3
| |/ | | | | | | | | I realized that I updated the documentation on SwitchBrew a while ago, but never actually updated the structs within yuzu.
* | Merge pull request #2338 from lioncash/fsbunnei2019-04-051-5/+8
|\ \ | | | | | | filesystem: Use a std::string_view in OpenFile()
| * | filesystem: Use a std::string_view in OpenFile()Lioncash2019-04-051-5/+8
| |/ | | | | | | | | | | Rather than make a full copy of the path, we can just use a string view and truncate the viewed portion of the string instead of creating a totally new truncated string.
* / hle/service: Resolve unused variable warningsLioncash2019-04-041-41/+29
|/ | | | | | | | | In several places, we have request parsers where there's nothing to really parse, simply because the HLE function in question operates on buffers. In these cases we can just remove these instances altogether. In the other cases, we can retrieve the relevant members from the parser and at least log them out, giving them some use.
* fsp_srv: Unstub SetCurrentProcessLioncash2019-03-182-1/+5
| | | | | This just acts as a basic setter for a given PID value and performs no further checking, so we can just store the passed in value.
* service/fsp-srv: Update function tablesLioncash2019-01-302-17/+25
| | | | Updates function tables based off information provided by SwitchBrew.
* filesystem: Populate save data sizes from control dataZach Hilman2018-12-272-0/+53
|
* Merge pull request #1891 from DarkLordZach/istorage-getsizeMat M2018-12-121-2/+15
|\ | | | | fsp_srv: Implement IStorage::GetSize
| * fsp_srv: Implement IStorage::GetSizeZach Hilman2018-12-101-2/+15
| | | | | | | | Takes no input and returns the size as a u64. Needed by Katamari Damacy Reroll to boot.
* | service/fsp_srv: Correct returned value in GetGlobalAccessLogMode()Lioncash2018-12-101-1/+10
|/ | | | | | | | | Based off RE, the backing code only ever seems to use 0-2 as the range of values 1 being a generic log enable, with 2 indicating logging should go to the SD card. These are used as a set of flags internally. Given we only care about receiving the log in general, we can just always signify that we want logging in general.
* Merge pull request #1704 from DarkLordZach/oss-sysarchivebunnei2018-12-051-0/+10
|\ | | | | file_sys: Implement open source system archives
| * fsp_srv: Add support for using open source archive if not found in NANDZach Hilman2018-11-161-0/+10
| |
* | Merge pull request #1835 from lioncash/cache-globalbunnei2018-12-032-17/+4
|\ \ | | | | | | filesystem: De-globalize registered_cache_union
| * | filesystem: De-globalize registered_cache_unionLioncash2018-12-022-17/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | We can just return a new instance of this when it's requested. This only ever holds pointers to the existing registed caches, so it's not a large object. Plus, this also gets rid of the need to keep around a separate member function just to properly clear out the union. Gets rid of one of five globals in the filesystem code.
* | | service/fsp_srv: Implement CleanDirectoryRecursivelyLioncash2018-12-013-1/+35
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the same behavior-wise as DeleteDirectoryRecursively, with the only difference being that it doesn't delete the top level directory in the hierarchy, so given: root_dir/ - some_dir/ - File.txt - OtherFile.txt The end result is just: root_dir/
* | Reworked svcs slightly, improved error messages in AM and fsp_srvDavid Marcec2018-11-271-6/+6
| |
* | Changed logging to be "Log before execution", Added more error logging, all services should now log on some levelDavid Marcec2018-11-261-1/+14
| |
* | filesystem: Clear registered union paths on factory creationZach Hilman2018-11-192-0/+6
| |
* | Merge pull request #1632 from DarkLordZach/keys-manager-optimizationsbunnei2018-11-162-4/+11
|\ \ | | | | | | game_list: Optimize game list refresh
| * | filesystem: Cache RegisteredCacheUnion instead of constructing on demandZach Hilman2018-11-022-4/+11
| |/ | | | | | | Prevents unnecessary re-reads of the metadata and unnecessary temporary objects.
* | file_sys/errors: Extract FS-related error codes to file_sys/errors.hLioncash2018-11-162-11/+11
| | | | | | | | Keeps filesystem-related error codes in one spot.
* | Merge pull request #1618 from DarkLordZach/dump-nsobunnei2018-11-152-4/+22
|\ \ | | | | | | patch_manager: Add support for dumping uncompressed NSOs
| * | bis_factory: Add getter for mod dump root for a title IDZach Hilman2018-10-292-4/+22
| |/ | | | | | | Equates to yuzu_dir/dump/<title id>/
* | ns: Implement command 400: GetApplicationControlDataZach Hilman2018-10-291-14/+10
| | | | | | Returns the raw NACP bytes and the raw icon bytes into a title-provided buffer. Pulls from Registration Cache for control data, returning all zeros should it not exist.
* | fsp_srv: Implement ISaveDataInfoReaderZach Hilman2018-10-291-0/+144
| | | | | | | | An object to read SaveDataInfo objects, which describe a unique save on the system. This implementation iterates through all the directories in the save data space and uses the paths to reconstruct the metadata.
* | fsp_srv: Implement command 61: OpenSaveDataInfoReaderBySaveDataSpaceIdZach Hilman2018-10-292-1/+13
| | | | | | | | Needed by Checkpoint. Returns an object that can iterate through all savedata on the system.
* | savedata_factory: Expose accessors for SaveDataSpaceZach Hilman2018-10-292-0/+11
|/
* service/filesystem: Add DirectoryDelete & DirectoryDeleteRecursivelyDeeJayBro2018-10-271-2/+26
|
* fsp_srv: Apply patches to Data storage in OpenDataStorageByDataIdZach Hilman2018-10-171-1/+5
|
* file_sys/registered_cache: Use unique_ptr and regular pointers instead of shared_ptrs where applicableLioncash2018-10-162-11/+10
| | | | | | | | | | | | | | | The data retrieved in these cases are ultimately chiefly owned by either the RegisteredCache instance itself, or the filesystem factories. Both these should live throughout the use of their contained data. If they don't, it should be considered an interface/design issue, and using shared_ptr instances here would mask that, as the data would always be prolonged after the main owner's lifetime ended. This makes the lifetime of the data explicit and makes it harder to accidentally create cyclic references. It also makes the interface slightly more flexible than the previous API, as a shared_ptr can be created from a unique_ptr, but not the other way around, so this allows for that use-case if it ever becomes necessary in some form.
* filesystem: Make CreateFactories() and InstallInterface() take a VfsFilesystem instance by referenceLioncash2018-10-132-10/+10
| | | | | | | Neither of these functions alter the ownership of the provided pointer, so we can simply make the parameters a reference rather than a direct shared pointer alias. This way we also disallow passing incorrect memory values like nullptr.
* romfs_factory: Extract packed update setter to new functionZach Hilman2018-10-052-0/+10
|
* services/fsp_srv: Amend service function tableLioncash2018-10-031-0/+2
| | | | | Adds new functions that have been given names to the table. Information is based off what is provided on Switchbrew.
* filesystem: Add LayeredFS VFS directory getterZach Hilman2018-09-222-1/+14
|
* Fixed GetAccountId stub, Added error code for OpenDirectory and added ActivateNpadWithRevisionDavid Marcec2018-09-191-1/+1
| | | | With these, `Nintendo Entertainment System - Nintendo Switch Online` loads
* hle/service: Default constructors and destructors in the cpp file where applicableLioncash2018-09-118-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a destructor isn't defaulted into a cpp file, it can cause the use of forward declarations to seemingly fail to compile for non-obvious reasons. It also allows inlining of the construction/destruction logic all over the place where a constructor or destructor is invoked, which can lead to code bloat. This isn't so much a worry here, given the services won't be created and destroyed frequently. The cause of the above mentioned non-obvious errors can be demonstrated as follows: ------- Demonstrative example, if you know how the described error happens, skip forwards ------- Assume we have the following in the header, which we'll call "thing.h": \#include <memory> // Forward declaration. For example purposes, assume the definition // of Object is in some header named "object.h" class Object; class Thing { public: // assume no constructors or destructors are specified here, // or the constructors/destructors are defined as: // // Thing() = default; // ~Thing() = default; // // ... Some interface member functions would be defined here private: std::shared_ptr<Object> obj; }; If this header is included in a cpp file, (which we'll call "main.cpp"), this will result in a compilation error, because even though no destructor is specified, the destructor will still need to be generated by the compiler because std::shared_ptr's destructor is *not* trivial (in other words, it does something other than nothing), as std::shared_ptr's destructor needs to do two things: 1. Decrement the shared reference count of the object being pointed to, and if the reference count decrements to zero, 2. Free the Object instance's memory (aka deallocate the memory it's pointing to). And so the compiler generates the code for the destructor doing this inside main.cpp. Now, keep in mind, the Object forward declaration is not a complete type. All it does is tell the compiler "a type named Object exists" and allows us to use the name in certain situations to avoid a header dependency. So the compiler needs to generate destruction code for Object, but the compiler doesn't know *how* to destruct it. A forward declaration doesn't tell the compiler anything about Object's constructor or destructor. So, the compiler will issue an error in this case because it's undefined behavior to try and deallocate (or construct) an incomplete type and std::shared_ptr and std::unique_ptr make sure this isn't the case internally. Now, if we had defaulted the destructor in "thing.cpp", where we also include "object.h", this would never be an issue, as the destructor would only have its code generated in one place, and it would be in a place where the full class definition of Object would be visible to the compiler. ---------------------- End example ---------------------------- Given these service classes are more than certainly going to change in the future, this defaults the constructors and destructors into the relevant cpp files to make the construction and destruction of all of the services consistent and unlikely to run into cases where forward declarations are indirectly causing compilation errors. It also has the plus of avoiding the need to rebuild several services if destruction logic changes, since it would only be necessary to recompile the single cpp file.
* bktr: Fix bucket overlap errorZach Hilman2018-09-041-1/+1
|
* registration: Add RegisteredCacheUnionZach Hilman2018-09-042-0/+10
| | | | Aggregates multiple caches into one interface
* Merge pull request #1213 from DarkLordZach/octopath-fsbunnei2018-09-022-2/+30
|\ | | | | filesystem/maxwell_3d: Various changes to boot Project Octopath Traveller
| * filesystem: Implement OpenReadOnlySaveDataFilesystemZach Hilman2018-09-012-1/+7
| |
| * filesystem: Add OpenFileSystemWithPatchZach Hilman2018-09-012-1/+23
| |
* | filesystem: Move dir retrieval after path checking in DeleteFile()Lioncash2018-09-021-2/+5
|/ | | | | We don't need to do the lookup if the path is considered empty currently.
* core/core: Replace includes with forward declarations where applicableLioncash2018-08-311-0/+1
| | | | | | | | | | | The follow-up to e2457418dae19b889b2ad85255bb95d4cd0e4bff, which replaces most of the includes in the core header with forward declarations. This makes it so that if any of the headers the core header was previously including change, then no one will need to rebuild the bulk of the core, due to core.h being quite a prevalent inclusion. This should make turnaround for changes much faster for developers.
* Merge pull request #1166 from lioncash/typoSebastian Valle2018-08-251-1/+1
|\ | | | | filesystem: Fix typo in log message
| * filesystem: Fix typo in log messageLioncash2018-08-241-1/+1
| |
* | filesystem: Add CreateFactories methods to fsZach Hilman2018-08-232-8/+11
| | | | | | | | Allows frontend to create registration caches for use before a game has booted.
* | filesystem: Add logging to registration gettersZach Hilman2018-08-231-4/+25
|/
* vfs: Replace mode.h include with forward declarations where applicableLioncash2018-08-213-2/+3
| | | | | Avoids the need to rebuild these source files if the mode header changes.
* service/filesystem: Use forward declarations where applicableLioncash2018-08-213-5/+19
| | | | | | | | Avoids the need to rebuild multiple source files if the filesystem code headers change. This also gets rid of a few instances of indirect inclusions being relied upon
* filesystem: Add support for loading of system archivesZach Hilman2018-08-194-16/+50
|
* filesystem: Add Open and Register functions for BISFactoryZach Hilman2018-08-122-4/+23
|
* Merge pull request #990 from lioncash/entrybunnei2018-08-101-6/+3
|\ | | | | fsp_srv: Emplace entries first when building index instead of emplacing last
| * fsp_srv: Use std::string_view's copy() function instead of strncpy()Lioncash2018-08-091-5/+1
| | | | | | | | | | | | Given elements inserted into a vector are zeroed out, we can just copy MAX_LEN - 1 elements and the data will already be properly null terminated.
| * fsp_srv: Emplace entries first when building index instead of emplacing lastLioncash2018-08-091-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current way were doing it would require copying a 768 character buffer (part of the Entry struct) to the new element in the vector. Given it's a plain array, std::move won't eliminate that. Instead, we can emplace an instance directly into the destination buffer and then fill it out, avoiding the need to perform any unnecessary copies. Given this is done in a loop, we can request the destination to allocate all of the necessary memory ahead of time, avoiding the need to potentially keep reallocating over and over on every few insertions into the vector.
* | core: Port core to VfsFilesystem for file accessZach Hilman2018-08-092-8/+8
| |
* | filesystem: Remove unnecessary if conditionsZach Hilman2018-08-091-1/+1
|/
* service: Remove redundant #pragma once directivesLioncash2018-08-042-4/+0
| | | | | These don't do anything within .cpp files (we don't include cpp files, so...)
* service/filesystem: Add fsp:ldr and fsp:pr servicesLioncash2018-08-015-0/+85
| | | | | Adds the basic skeleton for the remaining fsp services based off information provided by Switch Brew.
* VFS Regression and Accuracy Fixes (#776)Zach Hilman2018-07-241-16/+29
| | | | | | | | | | | | | | | | * 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&
* file_util, vfs: Use std::string_view where applicableLioncash2018-07-221-1/+1
| | | | | Avoids unnecessary construction of std::string instances where applicable.
* file_util: Use an enum class for GetUserPath()Lioncash2018-07-211-2/+2
| | | | | | | | | | | | | 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.
* Merge pull request #720 from Subv/getentrytype_rootSebastian Valle2018-07-191-0/+4
|\ | | | | Filesystem: Return EntryType::Directory for the root directory.
| * Filesystem: Return EntryType::Directory for the root directory.Subv2018-07-191-0/+4
| | | | | | | | It is unknown if this is correct behavior, but it makes sense and fixes a regression with Stardew Valley.
* | Merge pull request #712 from lioncash/fspbunnei2018-07-191-17/+22
|\ \ | | | | | | fsp_srv: Misc individual changes
| * | fsp_srv: Remove unnecessary vector construction in IFile's Write() functionLioncash2018-07-191-2/+3
| | | | | | | | | | | | | | | | | | | | | We can avoid constructing a std::vector here by simply passing a pointer to the original data and the size of the copy we wish to perform to the backend's Write() function instead, avoiding copying the data where it's otherwise not needed.
| * | fsp_srv: Remove unnecessary std::vector construction in IDirectory's Read() functionLioncash2018-07-191-10/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We were using a second std::vector as a buffer to convert another std::vector's data into a byte sequence, however we can just use pointers to the original data and use them directly with WriteBuffer, which avoids copying the data at all into a separate std::vector. We simply cast the pointers to u8* (which is allowed by the standard, given std::uint8_t is an alias for unsigned char on platforms that we support).
| * | fsp_srv: Make IStorage constructor explicitLioncash2018-07-191-1/+1
| | | | | | | | | | | | Prevents implicit conversions.
| * | fsp_srv: Add missing includesLioncash2018-07-191-0/+5
| | | | | | | | | | | | Gets rid of relying on indirect inclusions.
| * | fsp_srv: Resolve sign-mismatch warnings in assertion comparisonsLioncash2018-07-191-3/+3
| | |
| * | fsp_srv: Respect write length in Write()Lioncash2018-07-191-4/+5
| |/ | | | | | | | | | | | | | | | | | | | | Previously we were just copying the data whole-sale, even if the length was less than the total data size. This effectively makes the actual_data vector useless, which is likely not intended. Instead, amend this to only copy the given length amount of data. At the same time, we can avoid zeroing out the data before using it by passing iterators to the constructor instead of a size.
* | filesystem: std::move VirtualDir instance in VfsDirectoryServiceWrapper's constructorLioncash2018-07-191-1/+3
| | | | | | | | Avoids unnecessary atomic reference count incrementing and decrementing
* | filesystem: Use std::string's empty() function instead of comparing against a literalLioncash2018-07-191-1/+1
| | | | | | | | | | This is simply a basic value check as opposed to potentially doing string based operations (unlikely, but still, avoiding it is free).
* | filesystem: Remove pragma disabling global optimizationsLioncash2018-07-191-2/+0
|/ | | | This was just an artifact missed during PR review.
* Virtual Filesystem 2: Electric Boogaloo (#676)Zach Hilman2018-07-194-115/+383
| | | | | | | | | | * Virtual Filesystem * Fix delete bug and documentate * Review fixes + other stuff * Fix puyo regression
* General Filesystem and Save Data Fixes (#670)Zach Hilman2018-07-174-87/+125
|
* Merge pull request #559 from Subv/mount_savedatabunnei2018-07-121-2/+11
|\ | | | | Services/FS: Return the correct error code when trying to mount a nonexistent savedata.
| * Services/FS: Return the correct error code when trying to mount a nonexistent savedata.Subv2018-06-191-2/+11
| |
* | Revert "Virtual Filesystem (#597)"bunnei2018-07-084-404/+70
| | | | | | | | This reverts commit 77c684c1140f6bf3fb7d4560d06d2efb1a2ee5e2.
* | Virtual Filesystem (#597)Zach Hilman2018-07-064-70/+404
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | Update clang formatJames Rowe2018-07-031-2/+2
| |
* | Rename logging macro back to LOG_*James Rowe2018-07-032-28/+28
|/
* Common/string_util: add StringFromBuffer functionmailwl2018-06-071-22/+9
| | | | convert input buffer (std::vector<u8>) to string, stripping zero chars
* general: Make formatting of logged hex values more straightforwardLioncash2018-05-022-6/+6
| | | | | | This makes the formatting expectations more obvious (e.g. any zero padding specified is padding that's entirely dedicated to the value being printed, not any pretty-printing that also gets tacked on).
* filesystem: Move logging macros over to new fmt-compatible onesLioncash2018-04-242-30/+29
|
* Service/FS: implement IFileSystem::RenameFilemailwl2018-04-241-1/+21
|
* service: Use nested namespace specifiers where applicableLioncash2018-04-203-12/+6
| | | | Tidies up namespace declarations
* fsp_srv: Implement DeleteFile.bunnei2018-04-151-1/+15
| | | | - Used by Binding of Isaac.
* fsp_srv: Implement IFile::Flush.bunnei2018-04-151-1/+9
|
* Various fixes and clangHexagon122018-04-111-12/+5
|
* Updated fsp-srv with more service names.Hexagon122018-04-101-4/+102
|
* Fix spelling of InitializeJames Rowe2018-04-072-3/+3
|
* hle_ipc, fsp_srv: Cleanup logging.bunnei2018-04-011-2/+2
|
* fsp_srv: Implement GetSize and SetSize.bunnei2018-03-311-2/+21
|
* Merge pull request #255 from Subv/sd_cardbunnei2018-03-243-2/+106
|\ | | | | FS: Implemented access to the SD card
| * FS: Implemented IFileSystem::CreateDirectory.Subv2018-03-211-0/+15
| |
| * FS: Implemented IFileSystem's OpenDirectory function.Subv2018-03-201-0/+28
| | | | | | | | Note that the filter parameter is not yet implemented.
| * FS: Added the IDirectory IPC interface and implemented its two functions.Subv2018-03-201-0/+51
| |
| * FS: Implement MountSdCard.Subv2018-03-201-2/+6
| |
| * FS: Added an SDMC archive factory and registered it to the SDMC archive on startup.Subv2018-03-202-0/+6
| |
* | oopsN00byKing2018-03-191-3/+3
| |
* | Clean Warnings (?)N00byKing2018-03-191-3/+3
|/
* FS: Stubbed CreateSaveData. It currently does nothing.Subv2018-03-042-0/+15
|
* FS: Make EnsureSaveData create the savedata folder when called for the first time.Subv2018-03-042-0/+20
|
* FS: Implement MountSaveData and some of the IFile interface.Subv2018-03-022-0/+189
|
* Filesystem: Added a SaveData Factory and associated Disk_FileSystem.Subv2018-03-022-2/+10
|
* service: Remove remaining uses of BufferDescriptor*.bunnei2018-02-141-3/+1
|
* fsp_srv: Stub MountSdCard.bunnei2018-02-102-0/+9
|
* Service: stub some functions in am, audio, time, vi servicesmailwl2018-02-071-0/+1
|
* hle: Rename RequestBuilder to ResponseBuilder.bunnei2018-01-251-9/+9
|
* service: Fix all incorrect IPC response headers.bunnei2018-01-251-2/+2
|
* fsp_srv: Various improvements to IStorage:Read implementation.bunnei2018-01-213-48/+72
|
* filesystem: Implement basic IStorage functionality.David Marcec2018-01-214-0/+252