Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2024-02-27 | general: fix asan errors | Liam | 1 | -2/+2 | |
2024-02-23 | fs: add ISaveDataTransferProhibiter, stub FindSaveDataWithFilter | Liam | 1 | -0/+13 | |
2024-02-21 | fs: add missing mutex header for member (#13106) | liamwhite | 1 | -0/+1 | |
2024-02-19 | Address review comments pt. 2 | FearlessTobi | 4 | -11/+30 | |
2024-02-19 | Address review comments | FearlessTobi | 6 | -22/+30 | |
2024-02-19 | fs: Refactor to use cmif serialization | FearlessTobi | 1 | -0/+36 | |
2024-02-19 | fs: Add FileSystemAccessor classes | FearlessTobi | 7 | -5/+485 | |
2024-02-19 | Address review comments | FearlessTobi | 1 | -0/+1 | |
2024-02-19 | fs: Add and use fs_save_data_types.h | FearlessTobi | 3 | -135/+197 | |
2024-02-19 | scope_exit: Make constexpr | FearlessTobi | 4 | -8/+16 | |
Allows the use of the macro in constexpr-contexts. Also avoids some potential problems when nesting braces inside it. | |||||
2024-02-18 | ns: rewrite IPlatformServiceManager | Liam | 1 | -1/+1 | |
2024-02-18 | file_sys: Fix nacp field cache_storage_max_index datatype | Leystryku | 1 | -2/+2 | |
2024-02-10 | am: use applet program loading for tested versions | Liam | 2 | -0/+5 | |
2024-02-10 | service: bcat: Address review issues | Narr the Reg | 1 | -0/+1 | |
2024-01-26 | vfs: Fix getting URI filename | t895 | 1 | -0/+9 | |
2024-01-25 | Address review comments and fix compilation problems | FearlessTobi | 8 | -249/+225 | |
2024-01-25 | fs: Add path class | FearlessTobi | 7 | -0/+2193 | |
2024-01-25 | fs/errors: Unify naming of result codes | FearlessTobi | 1 | -10/+5 | |
2024-01-25 | fs: Replace Mode enum by OpenMode enum | FearlessTobi | 9 | -121/+130 | |
2024-01-25 | vfs: Move vfs files to their own directory | FearlessTobi | 74 | -86/+86 | |
2024-01-24 | Rework time service to fix time passing offline. | Kelebek1 | 2 | -5/+8 | |
2024-01-20 | android: Add addon delete button | t895 | 2 | -14/+46 | |
Required some refactoring of retrieving patches in order for the frontend to pass the right information to ContentManager for deletion. | |||||
2024-01-11 | fsp-srv: use program registry for SetCurrentProcess | Liam | 2 | -11/+16 | |
2024-01-07 | service: set: Rename files | german77 | 1 | -1/+1 | |
2024-01-04 | android: Re-add global save manager | t895 | 2 | -0/+10 | |
Reworked to correctly collect and import/export saves that could exist in either /nand/user/save/000...000/<user id> or /nand/user/save/account/<user id raw string> | |||||
2023-12-28 | ips_layer: prevent out of bounds access with offset exceeding module size | Liam | 1 | -0/+7 | |
2023-12-23 | general: properly support multiple memory instances | Liam | 2 | -3/+16 | |
2023-12-09 | fs: don't enumerate hidden savedata size file | Liam | 2 | -4/+6 | |
2023-12-06 | Improve path splitting speed | BreadFish64 | 2 | -12/+4 | |
2023-12-03 | fsmitm_romfsbuild: optimize for data locality | Liam | 5 | -85/+82 | |
2023-12-03 | romfs: cache file and directory metadata tables | Liam | 1 | -28/+55 | |
2023-12-02 | file_sys: handle null romfs | Liam | 3 | -11/+14 | |
2023-11-01 | romfs: fix extraction of single-directory root | Liam | 2 | -37/+16 | |
2023-10-22 | kernel: update KProcess | Liam | 2 | -11/+14 | |
2023-10-20 | set: return version info from system archive | Liam | 1 | -0/+4 | |
2023-10-13 | fsmitm_romfsbuild: avoid unnecessary copies of vfs pointers | Liam | 9 | -80/+75 | |
2023-10-03 | ci: fix new codespell errors | Liam | 1 | -1/+1 | |
2023-09-30 | loader: don't reassign program ID on npdm reparse | Liam | 2 | -0/+9 | |
2023-09-21 | pfs: Fix reading filenames past the buffer end | rkfg | 1 | -0/+1 | |
2023-09-17 | registered_cache: correct file deletion case | Liam | 1 | -1/+3 | |
2023-09-14 | core: improve debug workflow | Liam | 2 | -3/+3 | |
2023-09-13 | ips_layer: Remove uncaught usage of stoul/ll | lat9nq | 1 | -2/+2 | |
2023-09-12 | qt: add verification for installed contents | Liam | 4 | -1/+37 | |
2023-09-05 | core: Add support for loading NSPs with personalized tickets. (#10048) | Steveice10 | 2 | -33/+3 | |
Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com> | |||||
2023-08-29 | vfs: ensure key area keys are validated | Liam | 1 | -4/+13 | |
2023-08-26 | registered_cache: create fake CNMT entries for program updates of multiprogram applications (#11319) | liamwhite | 1 | -9/+28 | |
2023-08-21 | patch_manager: apply manual HTML patches when present | Liam | 1 | -1/+8 | |
2023-08-18 | file_sys/card_image: support dumps with prepended key area | Liam | 2 | -7/+42 | |
2023-08-16 | file_sys: tolerate empty NCA | Liam | 3 | -3/+3 | |
2023-08-15 | fssystem: rework for yuzu style | Liam | 30 | -334/+335 | |
2023-08-15 | fssystem: reduce overalignment of unbuffered storage operations | Liam | 5 | -54/+28 | |
2023-08-15 | vfs: expand support for NCA reading | Liam | 56 | -974/+7917 | |
2023-08-08 | core: remove ResultVal type | Liam | 6 | -47/+20 | |
2023-07-21 | configure_system: Implement with for loop | lat9nq | 2 | -3/+4 | |
2023-07-12 | file_sys/content_archive: Detect compressed NCAs (#11047) | Tobias | 1 | -1/+38 | |
2023-07-06 | vfs_real: use open file size for getting size (#11016) | liamwhite | 1 | -1/+2 | |
2023-06-28 | fsmitm_romfsbuild: avoid full path lookups | Liam | 1 | -21/+17 | |
2023-06-23 | vfs_real: lock concurrent accesses | Liam | 2 | -25/+45 | |
2023-06-19 | vfs_concat: verify short read | Liam | 1 | -0/+5 | |
2023-06-19 | vfs_concat: fix offset calculation when not aligned to file boundary | Liam | 1 | -4/+5 | |
2023-06-16 | vfs_real: ensure size cache is reset on write | Liam | 1 | -0/+2 | |
2023-06-16 | patch_manager: remove unnecessary GetSize calls | Liam | 1 | -5/+4 | |
2023-06-16 | vfs_real: misc optimizations | Liam | 2 | -19/+36 | |
2023-06-16 | nx_tzdb: Correct Antarctica spelling | lat9nq | 1 | -1/+1 | |
2023-06-13 | vfs_real: require file existence on open | Liam | 1 | -0/+4 | |
2023-06-13 | vfs_real: add simplified open file cache | Liam | 2 | -1/+18 | |
2023-06-13 | vfs_real: lazily open files | Liam | 2 | -11/+3 | |
2023-06-13 | vfs_real: add file LRU cache for open file limits | Liam | 2 | -100/+106 | |
2023-06-12 | android: Add update support | Narr the Reg | 1 | -0/+1 | |
2023-06-05 | time_zone_binary: Add zoneinfo data | lat9nq | 1 | -642/+64 | |
Adds the basic time zone data for the system archive. time_zone_binary: Implement full system archive time_zone_binary: Remove unneeded template tz_binary: Make GenerateFiles static | |||||
2023-06-03 | Fix typo | Kevin Sundqvist Norlén | 1 | -1/+1 | |
Co-authored-by: liamwhite <liamwhite@users.noreply.github.com> | |||||
2023-06-03 | Update Chinese NX language names | Keve1227 | 2 | -8/+8 | |
... as per the TLoZ: TotK icon files. Would this conflict with older games? | |||||
2023-06-03 | Pick game icon based on the configured system language | Keve1227 | 1 | -1/+32 | |
2023-06-03 | romfs: use vfs_cached for romfs output | Liam | 3 | -24/+2 | |
2023-06-03 | vfs: add vfs_cached for romfs build | Liam | 3 | -2/+97 | |
2023-05-26 | vfs_concat: fix time complexity of read | Liam | 3 | -68/+124 | |
2023-05-11 | fs: adjust future save path | Liam | 1 | -2/+2 | |
2023-05-08 | vfs_layered: avoid n^2 lookup in layeredfs building | Liam | 1 | -3/+6 | |
2023-05-07 | vfs_vector: avoid n^2 lookup in layeredfs building | Liam | 2 | -0/+23 | |
2023-03-12 | general: fix spelling mistakes | Liam | 4 | -11/+11 | |
2023-02-14 | remove static from pointer sized or smaller types for aesthetics, change constexpr static to static constexpr for consistency | arades79 | 3 | -6/+6 | |
Signed-off-by: arades79 <scravers@protonmail.com> | |||||
2023-02-14 | add static lifetime to constexpr values to force compile time evaluation where possible | arades79 | 3 | -6/+6 | |
Signed-off-by: arades79 <scravers@protonmail.com> | |||||
2023-02-14 | general: rename CurrentProcess to ApplicationProcess | Liam | 1 | -1/+1 | |
2023-01-01 | vfs: Replace cstr concat with char concat | Merry | 1 | -3/+3 | |
2022-11-23 | general: fix compile for Apple Clang | Liam | 1 | -0/+1 | |
2022-10-24 | file_sys: Priority display of game titles in the current language | FengChen | 2 | -12/+37 | |
2022-10-22 | general: Resolve -Wunused-lambda-capture and C5233 | Morph | 1 | -2/+2 | |
2022-10-22 | general: Enforce C4800 everywhere except in video_core | Morph | 1 | -1/+1 | |
2022-10-17 | savedata_factory: Detect future save data paths | Morph | 2 | -9/+53 | |
Enable compatibility for new account/device save paths planned on a future implementation. | |||||
2022-09-03 | core: ns: Implement pl:s service | Narr the Reg | 1 | -1/+1 | |
2022-08-21 | core/file_sys: fix alignment of BuildId | Liam | 2 | -3/+3 | |
2022-08-19 | core/file_sys: fix BuildId padding | Liam | 2 | -11/+7 | |
2022-08-12 | ips_layer: Delimit parsed hex value string | Morph | 1 | -1/+2 | |
Delimits the hex value string on spaces, slashes, carriage returns or newlines, allowing for comments to be added in-line. | |||||
2022-07-27 | chore: make yuzu REUSE compliant | Andrea Pappacoda | 1 | -3/+2 | |
[REUSE] is a specification that aims at making file copyright information consistent, so that it can be both human and machine readable. It basically requires that all files have a header containing copyright and licensing information. When this isn't possible, like when dealing with binary assets, generated files or embedded third-party dependencies, it is permitted to insert copyright information in the `.reuse/dep5` file. Oh, and it also requires that all the licenses used in the project are present in the `LICENSES` folder, that's why the diff is so huge. This can be done automatically with `reuse download --all`. The `reuse` tool also contains a handy subcommand that analyzes the project and tells whether or not the project is (still) compliant, `reuse lint`. Following REUSE has a few advantages over the current approach: - Copyright information is easy to access for users / downstream - Files like `dist/license.md` do not need to exist anymore, as `.reuse/dep5` is used instead - `reuse lint` makes it easy to ensure that copyright information of files like binary assets / images is always accurate and up to date To add copyright information of files that didn't have it I looked up who committed what and when, for each file. As yuzu contributors do not have to sign a CLA or similar I couldn't assume that copyright ownership was of the "yuzu Emulator Project", so I used the name and/or email of the commit author instead. [REUSE]: https://reuse.software Follow-up to 01cf05bc75b1e47beb08937439f3ed9339e7b254 | |||||
2022-06-27 | core: Replace all instances of ResultCode with Result | german77 | 1 | -9/+9 | |
2022-06-14 | general: fix compilation on GCC 12 | Liam | 1 | -1/+1 | |
2022-06-14 | common: Change semantics of UNREACHABLE to unconditionally crash | Liam | 3 | -3/+3 | |
2022-04-23 | general: Convert source file copyright comments over to SPDX | Morph | 79 | -277/+158 | |
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. | |||||
2022-04-07 | patch_manager: Apply layered exefs patches from 'atmosphere' SD directory | tech-ticks | 1 | -25/+38 | |
2022-03-27 | registered_cache: Prevent nullptr dereference when accumulating files | Morph | 1 | -2/+4 | |
For whatever reason, nca_file/dir can be nullptr in the list of files/dirs. I have not determined the cause of this yet, so add a nullptr check for these prior to dereferencing them. | |||||
2022-03-20 | general: Fix clang/gcc build errors | ameerj | 1 | -0/+4 | |
2022-03-19 | common: Reduce unused includes | ameerj | 1 | -0/+2 | |
2022-03-19 | core: Reduce unused includes | ameerj | 2 | -2/+0 | |
2022-02-15 | Dump patched exefs rather than base | Kelebek1 | 1 | -9/+9 | |
2022-02-13 | program_metadata: Unpack FileAccessHeader and FileAccessControl | lat9nq | 2 | -15/+51 | |
Avoids a reference binding to a misaligned addresses. Unpacking one requires unpacking the other, otherwise there'll be a misaligned address on the leftover one. | |||||
2022-02-02 | general: Replace NonCopyable struct with equivalents | Lioncash | 1 | -3/+15 | |
2021-11-11 | program_metadata: Add default ThreadInfo kernel capability | OatmealDome | 1 | -1/+4 | |
2021-11-04 | general: Get the current process program id directly from the system | Morph | 1 | -2/+1 | |
This allows us to avoid including KProcess' header file in files that only need to get the current process' program id. | |||||
2021-11-04 | general: Rename GetTitleID to GetProgramID | Morph | 1 | -1/+1 | |
2021-11-04 | core: Fix transitive include build errors | ameerj | 1 | -0/+2 | |
2021-11-04 | core: Remove unused includes | ameerj | 12 | -12/+0 | |
2021-11-02 | general: Remove MakeResult helpers | Morph | 3 | -9/+7 | |
This is made obsolete by the presence of implicit constructors. | |||||
2021-10-29 | file_sys: control_metadata: Add BrazilianPortuguese | Morph | 2 | -2/+4 | |
2021-09-29 | style: Remove extra space preceding the :: operator | Morph | 1 | -1/+1 | |
2021-09-29 | file_sys: Remove vfs_libzip | Morph | 2 | -101/+0 | |
2021-09-14 | vfs: Partially implement GetFileTimeStampRaw | Morph | 5 | -0/+46 | |
Gets rid of homebrew warnings using this func | |||||
2021-09-11 | file_sys/kernel_executable: Add missing <string> include | Morph | 1 | -0/+1 | |
2021-07-20 | file_sys: Support load game collection (#6582) | Feng Chen | 4 | -46/+57 | |
Adds support for loading games with multiple programs embedded within such as the Dragon Quest 1+2+3 Collection | |||||
2021-07-12 | content_archive: Remove unnecessary include to <ranges> | ReinUsesLisp | 1 | -1/+0 | |
Fixes build issues on clang. | |||||
2021-06-28 | patch_manager: Do not apply LayeredFS mods when dumping | Morph | 2 | -3/+6 | |
We should not apply any mods when dumping a game's RomFS. | |||||
2021-06-28 | filesystem: Open a read-only directory for SDMC mods | Morph | 2 | -14/+16 | |
This prevents mod files from being locked due to the read-only share flag in Windows. | |||||
2021-06-28 | core: Simplify SDMC mod loading | lat9nq | 2 | -20/+8 | |
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> | |||||
2021-06-28 | core: Support LayeredFS mod from SDMC directory | lat9nq | 3 | -2/+37 | |
Enables loading a mod directly from `[yuzu data directory]/sdmc/atmosphere/contents/[title_id]`. For use with some homebrew mod managers. | |||||
2021-06-23 | General: Resolve fmt specifiers to adhere to 8.0.0 API where applicable | Lioncash | 1 | -5/+8 | |
Also removes some deprecated API usages. | |||||
2021-06-22 | vfs_real: Fix Mode to FileAccessMode conversion | Morph | 1 | -6/+1 | |
These enforce requiring the file to exist prior to opening. | |||||
2021-06-16 | hle: api_version: Add HLE API version constants | Morph | 1 | -33/+15 | |
2021-06-13 | general: Remove extraneous includes | Morph | 2 | -2/+0 | |
2021-06-10 | Fix GCC undefined behavior sanitizer. | Markus Wick | 1 | -1/+3 | |
* Wrong alignment in u64 LOG_DEBUG -> memcpy. * Huge shift exponent in stride calculation for linear buffer, unused result -> skipped. * Large shift in buffer cache if word = 0, skip checking for set bits. Non of those were critical, so this should not change any behavior. At least with the assumption, that the last one used masking behavior, which always yield continuous_bits = 0. | |||||
2021-06-03 | fspsrv: Implement DisableAutoSaveDataCreation (#6355) | Chloe | 2 | -1/+8 | |
- Used by Mii Edit | |||||
2021-06-02 | general: Replace RESULT_UNKNOWN with ResultUnknown | Morph | 2 | -5/+5 | |
Transition to PascalCase for result names. | |||||
2021-05-26 | common: fs: Rework the Common Filesystem interface to make use of std::filesystem (#6270) | Morph | 10 | -140/+136 | |
* 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 | |||||
2021-05-16 | main: Prevent installing base titles into NAND | Morph | 2 | -0/+8 | |
Many users have been installing their base titles into NAND instead of adding them into the games list. This prevents users from installing any base titles and warns the user about the action. | |||||
2021-05-16 | core: Make variable shadowing a compile-time error | Lioncash | 12 | -25/+34 | |
Now that we have most of core free of shadowing, we can enable the warning as an error to catch anything that may be remaining and also eliminate this class of logic bug entirely. | |||||
2021-05-06 | hle: kernel: Rename Process to KProcess. | bunnei | 2 | -2/+2 | |
2021-05-02 | file_sys: Resolve cases of variable shadowing | Lioncash | 21 | -114/+132 | |
Brings us closer to enabling -Wshadow as an error in the core code. | |||||
2021-05-01 | service: filesystem: Return proper error codes for CreateFile | Morph | 1 | -0/+1 | |
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 | |||||
2021-04-23 | program_metadata: Set a default resource size when a NPDM is not present | Morph | 2 | -3/+6 | |
Sets a default size of 0x1FE00000 bytes (510 MiB) for the system_resource_size when a NPDM is not present. | |||||
2021-04-23 | program_metadata: Explicitly specify copy/move functions | Lioncash | 1 | -0/+6 | |
The generation of the copy assignment operators are deprecated on being generated when a user-provided destructor is present. We can explicitly specify that we desire this behavior to keep the class forward compatible with future standards. | |||||
2021-04-15 | common: Move settings to common from core. | bunnei | 1 | -1/+1 | |
- Removes a dependency on core and input_common from common. | |||||
2021-03-26 | pctl: Rework how pctl works to be more accurate | Chloe Marcec | 2 | -0/+10 | |
Introduces the usage of compatibilities to allow it the module to be closer to how it works on hardware. | |||||
2021-03-14 | system_version: Update to 11.0.1 | Morph | 1 | -5/+5 | |
2021-03-14 | system_archive: Update NgWord archive version | Morph | 1 | -2/+2 | |
2021-01-23 | vfs_real: When moving files or directories, don't assume file opening will succeed | comex | 1 | -4/+10 | |
Found this via a warning, but it's a substantive fix. Since this is only for a cache, it should be safe to silently drop the entry if opening fails. I think. | |||||
2021-01-15 | core: Silence Wclass-memaccess warnings | ReinUsesLisp | 1 | -2/+2 | |
This requires making several types trivial and properly initialize them whenever they are called. | |||||
2021-01-15 | common/common_funcs: Rename INSERT_UNION_PADDING_{BYTES,WORDS} to _NOINIT | ReinUsesLisp | 1 | -12/+12 | |
INSERT_PADDING_BYTES_NOINIT is more descriptive of the underlying behavior. | |||||
2021-01-09 | file_sys/registered_cache: Silence virtual functions without override warnings | ReinUsesLisp | 1 | -4/+4 | |
2021-01-05 | core: Silence warnings when compiling without asserts | ReinUsesLisp | 2 | -2/+3 | |
2020-12-18 | system_archive: Add + and - buttons to the Nintendo Extended OSS font | Morph | 2 | -315/+343 | |
2020-12-17 | system_archive: Update Nintendo Extended OSS font | Morph | 2 | -182/+347 | |
Co-authored-by: Its-Rei <kupfel@gmail.com> | |||||
2020-12-12 | Revert "Merge pull request #5176 from Morph1984/fix-createfile" | Morph | 1 | -6/+2 | |
This reverts commit 6d6115475b4edccdf1bb4e96ecc3d3b1be319e76, reversing changes made to 5fe55b16a11d9ec607fb8a3fdddc77a4393cd96a. | |||||
2020-12-10 | vfs: Use existing type aliases consistently | Lioncash | 19 | -127/+133 | |
Makes use of the VirtualDir and VirtualFile aliases across the board instead of having a few isolated places that don't use it. | |||||
2020-12-09 | vfs_real: Fix CreateFile for files without a file extension | Morph | 1 | -2/+6 | |
2020-12-08 | fsp_srv: Implement OpenDataStorageWithProgramIndex | Morph | 2 | -0/+26 | |
- Used by RollerCoaster Tycoon 3: Complete Edition | |||||
2020-12-08 | file_sys: Consolidate common Title ID operations | Morph | 2 | -2/+58 | |
2020-12-08 | core: Remove unnecessary enum casts in log calls | Lioncash | 1 | -8/+11 | |
Follows the video core PR. fmt doesn't require casts for enum classes anymore, so we can remove quite a few casts. | |||||
2020-12-05 | video_core: Resolve more variable shadowing scenarios pt.3 | Lioncash | 1 | -6/+6 | |
Cleans out the rest of the occurrences of variable shadowing and makes any further occurrences of shadowing compiler errors. | |||||
2020-12-05 | system_version: Update to 11.0.0 | Chloe Marcec | 1 | -6/+6 | |
2020-11-27 | savedata_factory: Eliminate usage of the global system instance | Lioncash | 2 | -11/+18 | |
Now there's only two meaningful instances left in core. | |||||
2020-11-25 | core: loader: Implement support for loading indexed programs. | bunnei | 4 | -7/+10 | |
2020-11-18 | patch_manager: Remove usages of the global system instance | Lioncash | 3 | -48/+52 | |
With this, only 19 usages of the global system instance remain within the core library. We're almost there. | |||||
2020-10-21 | Revert "core: Fix clang build" | bunnei | 5 | -37/+23 | |
2020-10-18 | core: Fix clang build | Lioncash | 5 | -23/+37 | |
Recent changes to the build system that made more warnings be flagged as errors caused building via clang to break. Fixes #4795 | |||||
2020-10-13 | core/CMakeLists: Make some warnings errors | Lioncash | 4 | -7/+9 | |
Makes our error coverage a little more consistent across the board by applying it to Linux side of things as well. This also makes it more consistent with the warning settings in other libraries in the project. This also updates httplib to 0.7.9, as there are several warning cleanups made that allow us to enable several warnings as errors. | |||||
2020-09-24 | submission_package: Fix updates integrated into cartridge images. | Morph | 1 | -3/+22 | |
2020-09-22 | General: Make use of std::nullopt where applicable | Lioncash | 4 | -14/+18 | |
Allows some implementations to avoid completely zeroing out the internal buffer of the optional, and instead only set the validity byte within the structure. This also makes it consistent how we return empty optionals. | |||||
2020-09-22 | ips_layer: Eliminate a redundant copy in Parse() | Lioncash | 1 | -2/+4 | |
Prevents unnecessary copying of the line being parsed. | |||||
2020-09-18 | submission_package: Account for multi-content NSPs | Morph | 1 | -5/+5 | |
Previously we assumed a submission package can only contain one Program NCA with a single TitleID. However, Super Mario 3D All-Stars contains four Program NCAs, each with their unique TitleIDs. This accounts for the existence of multi-content games such as this one. - Fixes booting Super Mario 3D All-Stars from the games list. | |||||
2020-09-17 | control_metadata: Resolve typo in Portuguese language name | Lioncash | 1 | -1/+1 | |
This isn't used anywhere, so this is a trivial fix. | |||||
2020-09-17 | file_sys/romfs_factory: Eliminate usage of the global system accessor | Lioncash | 2 | -28/+43 | |
2020-09-17 | file_sys/bis_factory: Eliminate usage of the global system accessor | Lioncash | 2 | -6/+6 | |
2020-09-15 | nca_patch: Significantly reduce the stack usage size within SearchBucketEntry() | Lioncash | 1 | -4/+4 | |
Previously this function was using ~16KB of stack (16528 bytes), which was caused by the function arguments being taken by value rather than by reference. We can make this significantly lighter on the stack by taking them by reference. | |||||
2020-09-15 | nca_patch: Make SearchBucketEntry() internally linked | Lioncash | 2 | -44/+43 | |
This is only used internally and doesn't depend on any class state, so we can make it fully internal. | |||||
2020-09-15 | cheat_engine: Remove unnecessary system argument to CheatParser's Parse function | Lioncash | 1 | -9/+5 | |
This isn't used within the function at all in any implementations, so we can remove it entirely. | |||||
2020-09-15 | patch_manager: Resolve implicit truncations in FormatTitleVersion() | Lioncash | 1 | -3/+4 | |
We make it explicit that we're truncating arithmetic here to resolve compiler warnings (even if the sizes weren't u32/u64 arithmetic generally promotes to int :<) | |||||
2020-09-15 | patch_manager: Make use of type aliases | Lioncash | 2 | -69/+79 | |
We can use these to avoid typing the same type redundantly. This way, if these ever change, only a single location needs to be modified. | |||||
2020-09-15 | patch_manager: Make a few functions internally linked | Lioncash | 2 | -15/+12 | |
These functions are only used within this translation unit, so we can make them internally linked. | |||||
2020-09-03 | file_sys/patch_manager: Add missing include | ReinUsesLisp | 1 | -0/+1 | |
Fixes build issues | |||||
2020-08-23 | file_sys: Replace inclusions with forward declarations where applicable | Lioncash | 25 | -37/+64 | |
Same behavior, minus unnecessary inclusions where not necessary. | |||||
2020-08-23 | registered_cache: Make use of ends_with for string suffix checking | Lioncash | 1 | -2/+1 | |
Simplifies code. | |||||
2020-08-23 | registered_cache: Make use of designated initializers | Lioncash | 1 | -15/+15 | |
Removes the need for comments to indicate the fields being assigned. | |||||
2020-08-18 | vfs_real: Resolve sign conversion warnings | Lioncash | 1 | -2/+2 | |
2020-08-18 | vfs_real: Avoid redundant map lookups | Lioncash | 1 | -30/+46 | |
Avoids some trivially avoidable map lookups by keeping the result of find operations around and querying them. | |||||
2020-08-16 | common/fileutil: Convert namespace to Common::FS | Lioncash | 7 | -119/+130 | |
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. | |||||
2020-08-13 | General: Tidy up clang-format warnings part 2 | Lioncash | 1 | -3/+3 | |
2020-08-05 | vfs_vector: Make creation of array vfs files less verbose | Lioncash | 4 | -41/+41 | |
We can add a helper function to make creation of these files nicer. While we're at it, we can eliminate an unnecessary std::array copy in the constructor. This makes the overhead on some of these functions way less intensive, given some arrays were quite large. e.g. The timezone location names are 9633 bytes in size. | |||||
2020-08-03 | aes_util: Allow SetIV to be non-allocating | Lioncash | 2 | -4/+6 | |
In a few places, the data to be set as the IV is already within an array. We shouldn't require this data to be heap-allocated if it doesn't need to be. This allows certain callers to reduce heap churn. | |||||
2020-08-03 | time_zone_binary: Make use of designated initializers | Lioncash | 1 | -17/+25 | |
2020-08-03 | file_sys/mode: Make use of DECLARE_ENUM_FLAG_OPERATORS with Mode | Lioncash | 2 | -18/+21 | |
Same behavior, minus a hand-rolled operator. | |||||
2020-08-03 | patch_manager: Resolve -Wignored-qualifier warnings | Lioncash | 1 | -2/+2 | |
Top level const will always be ignored in this case, so it can be removed. | |||||
2020-08-03 | registered_cache: Resolve -Wmaybe_uninitialized warnings | Lioncash | 1 | -10/+15 | |
While we're at it, we can avoid a redundant map lookup. | |||||
2020-07-30 | fs: Rename SaveDataDescriptor to SaveDataAttribute | Morph | 2 | -29/+51 | |
2020-07-29 | xts_archive: Check if the file is nullptr prior to parsing | Morph | 1 | -5/+9 | |
Fixes an access violation where the file no longer exists at the specified path while being parsed. | |||||
2020-07-29 | registered_cache: Add support for removing folder ncas | Morph | 2 | -53/+54 | |
2020-07-18 | file_sys/nsp: Make SetTicketKeys actually do something | FearlessTobi | 2 | -32/+30 | |
Previously, the method wasn't modifying any class state and therefore not having any effects when called. Since this has been the case for a very long time now, I'm not sure if we couldn't just remove this method altogether. | |||||
2020-07-16 | Check for empty section0 and CNMT prior to install | Morph | 1 | -3/+19 | |
2020-07-15 | clang format | Morph | 1 | -3/+3 | |
2020-07-15 | Use proper install result when overwriting files | Morph | 1 | -1/+1 | |
2020-07-15 | Remove global system instance and address feedback | Morph | 2 | -14/+10 | |
2020-07-15 | registered_cache: Remove previous update/dlc if it exists on install | Morph | 2 | -13/+83 | |
- This checks for and removes old updates or dlc based on title id. If a content meta nca exists within the registered cache, it will attempt to remove all the ncas associated with the content meta before installing a new update/dlc | |||||
2020-07-12 | fs: Fix RomFS building when zero byte files are present | Morph | 4 | -10/+10 | |
When zero byte files are present, the key (offset) for that file is identical to the file right after. A std::map isn't able to fit key-value pairs with identical keys (offsets), therefore, the solution is to use std::multimap which permits multiple entries with the same key. This most prominently fixes Pokemon Sword and Shield weather with any RomFS mod applied. | |||||
2020-07-10 | vfs_real: Fix MoveFile | Morph | 1 | -10/+17 | |
The file wasn't closed prior to being renamed / moved, throwing an error that states "The process cannot access the file because it is being used by another process." Fix this by closing the file prior to a rename / move operation. Fixes saving in Luigi's Mansion 3 and KATANA KAMI: A Way of the Samurai Story. | |||||
2020-07-10 | bis_factory: Set User NAND free space to be 1 MiB less than total. | Morph | 1 | -1/+3 | |
2020-07-10 | sdmc_factory: Set the SDMC total size to 1 TiB | Morph | 1 | -1/+3 | |
We should not be limited by the SDMC's partition size, set this to 1 TiB. Hardware is limited to the max allowed by the MBR partition table which is 2 TiB. | |||||
2020-07-10 | bis_factory: Use hardware default NAND partition sizes | Morph | 1 | -10/+11 | |
Sets the total space of user and system partitions to their hardware defaults. Furthermore, return the total space as free space for the user partition to prevent it from reaching zero. Some games like Bioshock 2 check for the available free space prior to save creation, and we should not be limited by arbitrary limits. | |||||
2020-07-01 | key_manager: Correct casing of instance() | Lioncash | 7 | -7/+7 | |
Our codebase uppercases member function names. | |||||
2020-06-19 | mii_model: Remove redundant std::move | MerryMage | 1 | -1/+1 | |
Named return value optimization automatically applies here. | |||||
2020-06-18 | shared_font: Service::NS::EncryptSharedFont takes a size_t& | MerryMage | 1 | -1/+1 | |
2020-05-28 | Make copying directory string more concise | lat9nq | 1 | -2/+1 | |
2020-05-28 | Address requested changes | lat9nq | 2 | -4/+4 | |
2020-05-28 | *nix systems can read any-case patch directories | lat9nq | 2 | -8/+32 | |
Changes many patch_manager functions to use a case-less variant of GetSubdirectory. Fixes patches not showing up on *nix systems when patch directories are named with odd cases, i.e. `exeFS'. | |||||
2020-05-20 | crypto: Make KeyManager a singleton class | FearlessTobi | 10 | -18/+16 | |
Previously, we were reading the keys everytime a KeyManager object was created, causing yuzu to reread the keys file multiple hundreds of times when loading the game list. With this change, it is only loaded once. On my system, this decreased game list loading times by a factor of 20. | |||||
2020-05-16 | file_sys: Update SystemVersion archive to version 10.0.2 | David Marcec | 1 | -7/+7 | |
2020-05-11 | file_sys: savefata_factory: Update to support DeviceSaveData. | bunnei | 1 | -3/+6 | |
2020-05-11 | file_sys: control_metadata: Expose device_save_data_size. | bunnei | 2 | -0/+5 | |
2020-04-21 | file_sys: program_metadata: Add a helper function for generating reasonable default metadata. | bunnei | 2 | -1/+16 | |
- We need this for homebrew process initialization. | |||||
2020-04-17 | core: memory: Move to Core::Memory namespace. | bunnei | 2 | -6/+6 | |
- helpful to disambiguate Kernel::Memory namespace. | |||||
2020-04-16 | CMakeLists: Specify -Wextra on linux builds | Lioncash | 3 | -12/+18 | |
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. | |||||
2020-04-14 | file_sys: patch_manager: Return early when there are no layers to apply. | bunnei | 1 | -0/+6 | |
2020-04-07 | file_sys: fix LayeredFS error when loading some games made with… (#3602) | enler | 1 | -1/+2 | |
* fix LayeredFS error when loading some games made with the Unity | |||||
2020-01-31 | Revert "system_archive: Fix Korean and Chinese fonts" | bunnei | 5 | -880167/+27164 | |
2020-01-24 | Disable clang-format for font files | FearlessTobi | 3 | -0/+6 | |
2020-01-19 | system_archive: Fix Chinese font | FearlessTobi | 2 | -13582/+694524 | |
Adds the proper OSS font for the Chinese language. | |||||
2020-01-19 | system_archive: Fix Korean font | FearlessTobi | 2 | -13582/+185637 | |
Fixes Korean fonts when using Open-source system archives. | |||||
2020-01-04 | system_archive: Add a basic HLE implementation for time zone binary. | bunnei | 3 | -1/+673 | |
2019-11-28 | patch_manager: Adds check for disabled cheats to prevent them from being enabled (#3178) | Morph | 1 | -5/+11 | |
* Adds check for disabled cheats to prevent them from being added to the CheatList * Address feedback | |||||
2019-11-27 | filesys/romfs: Remove unused includes | Lioncash | 2 | -4/+2 | |
These inclusions aren't used at all within the public interface, so they can be removed. | |||||
2019-11-27 | filesys/romfs: Make ProcessFile and ProcessDirectory internally linked | Lioncash | 1 | -2/+3 | |
These functions aren't used outside of this file, so we can place them within an anonymous namespace. | |||||
2019-11-27 | file_sys/directory: Make EntryType an enum class | Lioncash | 1 | -1/+1 | |
This can trivially be an enum class rather than a regular enum, making it more strongly typed. | |||||
2019-11-13 | xts_archive: Remove redundant std::string constructor | Lioncash | 1 | -2/+1 | |
We can just call the .data() member of path instead of constructing a completely new string. | |||||
2019-11-12 | core: Migrate off deprecated mbedtls functions | Lioncash | 2 | -6/+6 | |
These functions are marked for deprecation and it's recommended that the *_ret variants be used instead. | |||||
2019-11-12 | loader; Resolve sign conversion/truncation errors | Lioncash | 3 | -6/+6 | |
2019-11-12 | file_sys: Resolve sign conversion warnings | Lioncash | 4 | -12/+10 | |
Resolves a few trivial sign conversion/mismatch errors. | |||||
2019-11-04 | common_func: Use std::array for INSERT_PADDING_* macros. | bunnei | 2 | -30/+28 | |
- Zero initialization here is useful for determinism. | |||||
2019-10-22 | savedata_factory: Automatically create certain savedata | Zach Hilman | 1 | -0/+12 | |
After further hardware investigation, it appears that some games, perhaps those more lazily coded, will not call EnsureSaveData, meaning that they expect the normal (current) save to be automatically made. Additionally, some games do not create a cache or temporary save before use. In these 3 specific instances, the save is created automatically for the game if it doesn't exist. | |||||
2019-10-13 | card_image: Implement system update commands in XCI | Zach Hilman | 2 | -3/+37 | |
2019-10-13 | pl_u: Fix mismatched rebase size error in font encryption | Zach Hilman | 1 | -8/+6 | |
2019-10-13 | pl_u: Use kernel physical memory | Zach Hilman | 1 | -4/+7 | |
2019-10-13 | pl_u: Use OSS system archives if real archives don't exist | Zach Hilman | 1 | -2/+1 | |
2019-10-13 | system_archive: Synthesize shared fonts system archives | Zach Hilman | 3 | -5/+101 | |
2019-10-13 | externals: Move OSS font data to file_sys in core | Zach Hilman | 12 | -0/+73309 | |
2019-10-06 | core: Remove Core::CurrentProcess() | Lioncash | 1 | -2/+3 | |
This only encourages the use of the global system instance (which will be phased out long-term). Instead, we use the direct system function call directly to remove the appealing but discouraged short-hand. | |||||
2019-10-06 | hle/service: Replace global system instance calls with instance-based ones | Lioncash | 2 | -3/+3 | |
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. | |||||
2019-09-30 | bcat: Implement DeliveryCacheProgressImpl structure | Zach Hilman | 1 | -4/+4 | |
Huge thanks to lioncash for re-ing this for me. | |||||
2019-09-30 | boxcat: Use Etag header names for file digest | Zach Hilman | 1 | -14/+10 | |
2019-09-30 | filesystem: Add getter for BCAT temporary directory | Zach Hilman | 2 | -0/+7 | |
2019-09-30 | vfs: Add function to extract ZIP file into virtual filesystem | Zach Hilman | 2 | -0/+96 | |
2019-09-23 | card_image: Add accessors for raw partitions in XCI | Zach Hilman | 2 | -0/+36 | |
2019-09-23 | card_image: Lazily load partitions in XCI | Zach Hilman | 2 | -26/+41 | |
2019-09-23 | pfs: Provide accessors for file sizes and offsets | Zach Hilman | 2 | -0/+17 | |
2019-09-22 | Revert "Merge pull request #2709 from DarkLordZach/oss-ext-fonts-1" | David Marcec | 15 | -73412/+5 | |
This reverts commit fa1c60c33ef88c6cd0b72da46842dc9098db712d, reversing changes made to e34899067b60a69bca02761bd1290c6824bb559a. | |||||
2019-09-22 | pl_u: Use kernel physical memory | Zach Hilman | 1 | -4/+7 | |
2019-09-22 | dmnt_cheat_vm: Default initialize structure values | Zach Hilman | 1 | -2/+1 | |
2019-09-22 | pl_u: Use OSS system archives if real archives don't exist | Zach Hilman | 1 | -2/+1 | |
2019-09-22 | patch_manager: Update cheat parsing for new VM | Zach Hilman | 2 | -15/+20 | |
2019-09-22 | cheat_engine: Move to memory and strip VM | Zach Hilman | 2 | -726/+0 | |
This is to go with the Atmosphere VM port, now it just contains the callbacks needed for the interface between DmntCheatVm and yuzu, along with the cheat parsers. | |||||
2019-09-22 | system_archive: Synthesize shared fonts system archives | Zach Hilman | 3 | -5/+101 | |
2019-09-22 | externals: Move OSS font data to file_sys in core | Zach Hilman | 12 | -0/+73309 | |
2019-09-22 | configure_debug: Move reporting option to logging | Zach Hilman | 1 | -4/+4 | |
2019-09-21 | filesystem: Add const qualification to various accessors | Zach Hilman | 6 | -12/+15 | |
2019-09-21 | yuzu: Port old usages of Filesystem namespace to FilesystemController | Zach Hilman | 3 | -11/+25 | |
2019-09-21 | card_image: Add accessors for gamecard certificate | Zach Hilman | 2 | -0/+9 | |
Used by fsp-srv/IDeviceOperator | |||||
2019-09-21 | card_image: Add functions to query gamecard update partition | Zach Hilman | 2 | -0/+24 | |
Includes version and meta title ID, used by fsp-srv/IDeviceOperator | |||||
2019-09-21 | content_archive: Add accessors for Rights ID and SDK Version | Zach Hilman | 2 | -0/+10 | |
2019-09-21 | sdmc_factory: Add SD Card size getters | Zach Hilman | 2 | -0/+12 | |
2019-09-21 | bis_factory: Add getters for NAND partition sizes | Zach Hilman | 2 | -0/+38 | |
2019-09-21 | submisson_package: Fix edge case with improperly sized filenames | Zach Hilman | 1 | -1/+2 | |
Prevents a crash if the filename is less than 9 characters long. | |||||
2019-09-21 | sdmc_factory: Add accessor for SDMC Album directory | Zach Hilman | 2 | -0/+6 | |
2019-09-21 | sdmc_factory: Add accessor for SDMC PlaceholderCache | Zach Hilman | 2 | -1/+10 | |
2019-09-21 | sdmc_factory: Add accessor for content directory | Zach Hilman | 2 | -0/+7 | |
2019-09-21 | savedata_factory: Implement savedata creation and don't create dir on open | Zach Hilman | 2 | -26/+40 | |
Matches hardware behavior and eliminates some nasty behavior we were doing that wasn't hw-accurate at all. | |||||
2019-09-21 | patch_manager: Add short-circuit edge-case to GetPatchVersionNames | Zach Hilman | 1 | -0/+2 | |
If title ID is 0, there are no add ons, prevents wasting time looking for them. | |||||
2019-09-21 | patch_manager: Add error checking to load dir to prevent crashes | Zach Hilman | 1 | -0/+15 | |
Prevents a crash if the load dir would be nullptr, instead logs an error and returns appropriately. | |||||
2019-09-21 | registered_cache: Process *.cnmt.nca files | Zach Hilman | 1 | -16/+23 | |
Needed to use the RegisteredCache/PlaceholderCache on gamecards. | |||||
2019-09-21 | registered_cache: Implement PlaceholderCache to manage placeholder and installing content | Zach Hilman | 2 | -0/+175 | |
2019-09-21 | bis_factory: Fix mod loader edge-case with homebrew title IDs | Zach Hilman | 1 | -1/+1 | |
Fixes a bug where homebrew that has a title ID with the update bit set can cause issues with the PatchManager | |||||
2019-09-21 | bis_factory: Add accessors for BIS placeholder caches | Zach Hilman | 2 | -1/+20 | |
2019-09-21 | bis_factory: Add accessor for NAND Image Directory | Zach Hilman | 2 | -0/+6 | |
2019-09-21 | bis_factory: Add accessors for BIS content directories | Zach Hilman | 2 | -0/+11 | |
2019-09-21 | bis_factory: Add accessors for BIS partitions | Zach Hilman | 2 | -0/+61 | |
2019-07-10 | system_archive: Add open-source reimplementation of MiiModel data | Zach Hilman | 3 | -1/+61 | |
2019-07-07 | Implement MapPhysicalMemory/UnmapPhysicalMemory | Michael Scire | 2 | -1/+7 | |
This implements svcMapPhysicalMemory/svcUnmapPhysicalMemory for Yuzu, which can be used to map memory at a desired address by games since 3.0.0. It also properly parses SystemResourceSize from NPDM, and makes information available via svcGetInfo. This is needed for games like Super Smash Bros. and Diablo 3 -- this PR's implementation does not run into the "ASCII reads" issue mentioned in the comments of #2626, which was caused by the following bugs in Yuzu's memory management that this PR also addresses: * Yuzu's memory coalescing does not properly merge blocks. This results in a polluted address space/svcQueryMemory results that would be impossible to replicate on hardware, which can lead to game code making the wrong assumptions about memory layout. * This implements better merging for AllocatedMemoryBlocks. * Yuzu's implementation of svcMirrorMemory unprotected the entire virtual memory range containing the range being mirrored. This could lead to games attempting to map data at that unprotected range/attempting to access that range after yuzu improperly unmapped it. * This PR fixes it by simply calling ReprotectRange instead of Reprotect. | |||||
2019-07-02 | file_sys: Rename other ContentRecordType members | Bakugo | 2 | -3/+3 | |
2019-07-01 | file_sys/registered_cache: Improve missing metadata error | Bakugo | 1 | -2/+2 | |
This can happen when installing NSPs too, not just XCIs. | |||||
2019-07-01 | file_sys/submission_package: Don't warn about missing DeltaFragment NCAs | Bakugo | 1 | -4/+7 | |
DeltaFragments are not useful to us and are often not included in patch NSPs. | |||||
2019-07-01 | file_sys/registered_cache: Ignore DeltaFragment NCAs during installation | Bakugo | 1 | -0/+3 | |
DeltaFragments are only used to download and apply partial patches on a real console, and are not useful to us at all. Most patch NSPs do not include them, and when they do, it's a waste of space to install them. | |||||
2019-07-01 | file_sys: Rename ContentRecordType::Patch to DeltaFragment | Bakugo | 1 | -1/+1 | |
Avoids potential confusion, since patches and DeltaFragments are not the same thing. Actual full patches are listed under the Program type. | |||||
2019-06-26 | glue: Correct missing bytes in ApplicationLaunchParameter | Zach Hilman | 2 | -7/+10 | |
2019-06-25 | registered_cache: Add getter to determine source slot in content provider union | Zach Hilman | 2 | -0/+17 | |
Used to determine StorageId source for application data. | |||||
2019-06-25 | patch_manager: Add getter for title version | Zach Hilman | 2 | -2/+14 | |
2019-06-20 | Update content_archive.cpp | jonsn0w | 1 | -2/+2 | |
log clutter in debug logs when theres really no need | |||||
2019-06-17 | Addressed issues | David Marcec | 1 | -1/+1 | |
2019-06-16 | Impl'd IsUserAccountSwitchLocked, SetAudioOutVolume, GetAudioOutVolume & Partial impl of GetAccumulatedSuspendedTickChangedEvent | David Marcec | 2 | -1/+7 | |
IPC-100 was changed to InitializeApplicationInfoOld instead of InitializeApplicationInfo. IPC-150 makes an indentical call to IPC-100 however does extra processing. They should not have the same name as it's quite confusing to debug. | |||||
2019-06-13 | file_sys/ips_layer: Remove unnecessary reserve() call | Lioncash | 1 | -1/+0 | |
Given 'replace' is assigned to on the following line, this isn't necessary, given the underlying data is going to be overwritten entirely. | |||||
2019-06-12 | common/hex_util: Combine HexVectorToString() and HexArrayToString() | Lioncash | 5 | -17/+22 | |
These can be generified together by using a concept type to designate them. This also has the benefit of not making copies of potentially very large arrays. | |||||
2019-06-12 | file_sys/card_image: Remove obsolete TODO | Lioncash | 1 | -1/+1 | |
We already support Rev 1+. | |||||
2019-06-11 | file_sys/nca_metadata: Update CNMT structures | Lioncash | 1 | -2/+7 | |
Names a few more entries in relevant structures. Information based off SwitchBrew and my own RE. | |||||
2019-06-11 | file_sys/card_image: Deduplicate casts within AddNCAFromPartition() | Lioncash | 1 | -3/+6 | |
Makes for nicer reading. | |||||
2019-06-11 | file_sys/card_image: Make bracing consistent | Lioncash | 1 | -4/+8 | |
Makes for more consistent reading. | |||||
2019-06-11 | file_sys/card_image: Assign collapsed NCA contents directly to ncas member | Lioncash | 1 | -3/+1 | |
Same thing, significantly less noisy. | |||||
2019-06-11 | file_sys/card_image: Deduplicate type cast | Lioncash | 1 | -4/+6 | |
Same thing, less duplication. We can also std::move raw into the PartitionFilesystem constructor. | |||||
2019-06-11 | file_sys/card_image: Get rid of a magic number | Lioncash | 1 | -1/+1 | |
We can just use the size of the array to dehardcode it. | |||||
2019-06-11 | file_sys/card_image: Use std::array deduction guides | Lioncash | 1 | -1/+6 | |
Same thing, less code. | |||||
2019-06-10 | nsp: Correct status codes for extracted NSPs | Zach Hilman | 1 | -0/+5 | |
Avoids all extracted NSPs being marked as error file type because they don't have program NCAs. | |||||
2019-06-10 | nsp: Use title ID from NPDM metadata for extracted type NSPs | Zach Hilman | 1 | -0/+21 | |
Avoids 0 being used as title ID for all extracted NSPs. | |||||
2019-06-07 | kernel_executable: Optimize BLZ decompression | Zach Hilman | 1 | -6/+5 | |
2019-06-05 | game_list: Accept *.kip as a file extension of executables | Zach Hilman | 1 | -1/+1 | |
2019-06-05 | program_metadata: Add function to load meta from raw parameters | Zach Hilman | 2 | -0/+20 | |
Needed for KIP loading as KIPs do not have an NPDM but do have the essential parts of the data within. | |||||
2019-06-05 | file_sys: Add classes to parse KIP1 and INI1 files | Zach Hilman | 2 | -0/+328 | |
2019-05-23 | Implement IApplicationFunctions::GetDesiredLanguage | Michael Scire | 2 | -0/+5 | |
2019-04-05 | file_sys/program_metadata: Remove obsolete TODOs | Lioncash | 2 | -15/+14 | |
BitField has been trivially copyable since e99a14862841841d74be8d0ea9426c2d23546b5e, so we can eliminate these TODO comments and use ReadObject() directly instead of memcpying the data. | |||||
2019-04-05 | file_sys/nca_metadata: Remove unnecessary comparison operators for TitleType | Lioncash | 2 | -11/+0 | |
enum class elements from the same enum can already be compared against one another without the need for explicitly defined comparison operators. | |||||
2019-04-05 | file_sys/fsmitm_romfsbuild: Utilize a string_view in romfs_calc_path_hash() | Lioncash | 1 | -1/+3 | |
The given string instance doesn't need to be copied entirely, we can just use a view instead. | |||||
2019-04-05 | service/fsp_srv: Don't pass SaveDataDescriptor instances by value. | Lioncash | 2 | -2/+2 | |
Passing around a 64 byte data struct by value is kind of wasteful, instead pass a reference to the struct. | |||||
2019-04-05 | service/fsp_srv: Update SaveDataInfo and SaveDataDescriptor structs | Lioncash | 2 | -3/+12 | |
I realized that I updated the documentation on SwitchBrew a while ago, but never actually updated the structs within yuzu. | |||||
2019-04-04 | file_sys/control_metadata: Amend naming of members | Lioncash | 2 | -12/+24 | |
Quite a bit of these were out of sync with Switchbrew (and in some cases entirely wrong). While we're at it, also expand the section of named members. A segment within the control metadata is used to specify maximum values for the user, device, and cache storage max sizes and journal sizes. These appear to be generally used by the am service (e.g. in CreateCacheStorage, etc). | |||||
2019-03-28 | patch_manager: Dump NSO name with build ID | Zach Hilman | 2 | -5/+6 | |
2019-03-27 | core: Port current uses of RegisteredCache to ContentProvider | Zach Hilman | 4 | -17/+22 | |
2019-03-27 | file_sys: Create ContentProvider interface and default implementations | Zach Hilman | 2 | -152/+279 | |
2019-03-24 | core/cheat_engine: Make MemoryReadImpl and MemoryWriteImpl internally linked | Lioncash | 1 | -0/+2 | |
These don't need to be visible outside of the translation unit, so they can be enclosed within an anonymous namespace. | |||||
2019-03-22 | file_sys/cheat_engine: Silence truncation and sign-conversion warnings | Lioncash | 2 | -5/+6 | |
2019-03-22 | file_sys/cheat_engine: Remove use of global system accessors | Lioncash | 4 | -37/+45 | |
Instead, pass in the core timing instance and make the dependency explicit in the interface. | |||||
2019-03-22 | file_sys/patch_manager: Deduplicate NSO header | Lioncash | 1 | -14/+8 | |
This source file was utilizing its own version of the NSO header. Instead of keeping this around, we can have the patch manager also use the version of the header that we have defined in loader/nso.h | |||||
2019-03-22 | file_sys/patch_manager: Remove two magic values | Lioncash | 1 | -2/+5 | |
These correspond to the NSOBuildHeader. | |||||
2019-03-19 | file_sys/content_archive: Amend name of Data_Unknown5 enum entry | Lioncash | 2 | -2/+15 | |
While we're at it, give each entry some documentation. | |||||
2019-03-11 | set_sys: Use official nintendo version string | Zach Hilman | 3 | -8/+18 | |
2019-03-11 | system_version: Correct sizes on VectorVfsFile construction | Zach Hilman | 1 | -4/+4 | |
2019-03-10 | set_sys: Implement GetFirmwareVersion(2) for libnx hosversion | Zach Hilman | 3 | -1/+63 | |
Uses the synthesized system archive 9 (SystemVersion) and reports v5.1.0-0.0 | |||||
2019-03-05 | vm_manager: Remove cheat-specific ranges from VMManager | Zach Hilman | 2 | -37/+44 | |
2019-03-05 | cheat_engine: Add parser and interpreter for game cheats | Zach Hilman | 2 | -0/+713 | |
2019-03-05 | patch_manager: Display cheats in game list add-ons | Zach Hilman | 1 | -0/+2 | |
2019-03-05 | patch_manager: Add support for loading cheats lists | Zach Hilman | 2 | -0/+56 | |
Uses load/<title_id>/<mod_name>/cheats as root dir, file name is all upper or lower hex first 8 bytes build ID. | |||||
2019-02-25 | file_sys/vfs_vector: Fix ignored offset on Write | Frederic L | 1 | -1/+1 | |
2019-01-18 | file_sys/directory: Remove unused DirectoryBackend class | Lioncash | 1 | -23/+0 | |
This isn't used at all, so we can just get rid of it. | |||||
2019-01-15 | content_archive: Add getter for logo section of NCA | Zach Hilman | 2 | -0/+16 | |
2018-12-28 | romfs: Add SingleDiscard extraction type | Zach Hilman | 2 | -2/+6 | |
Needed for manual RomFS extraction, as Full generates an extra directory and Truncated generates variable results. | |||||
2018-12-28 | file_sys/program_metadata: Print out more descriptive address space descriptions | Lioncash | 1 | -3/+7 | |
Provides extra information that makes it easier to tell if an executable being run is using a 36-bit address space or a 39-bit address space. While we don't support AArch32 executables yet, this also puts in distinguishing information for the 32-bit address space types as well. | |||||
2018-12-27 | am: Implement GetSaveDataSize and ExtendSaveData | Zach Hilman | 3 | -3/+3 | |
These functions come in a pair and are needed by Smash Ultimate, Minecraft, and Skyrim, amongst others. | |||||
2018-12-27 | savedata_factory: Partially implement IVFC save sizes using files | Zach Hilman | 2 | -0/+38 | |
This stores a file in the save directory called '.yuzu_save_size' which stores the two save sizes (normal area and journaled area) sequentially as u64s. | |||||
2018-12-27 | control_metadata: Update NACP fields with latest Switchbrew data | Zach Hilman | 2 | -6/+29 | |
2018-12-27 | control_metadata: Use value member instead of unique_ptr to store struct | Zach Hilman | 2 | -10/+13 | |
Serves no actual purpose in this instance besides making NACP's copy assignment deleted, which is not intended behavior. | |||||
2018-12-27 | vfs: Add reinterpret_casts to WriteArray and Object | Zach Hilman | 1 | -2/+2 | |
Allows these functions to compile when T is not u8. | |||||
2018-12-21 | kernel/process: Hook up the process capability parser to the process itself | Lioncash | 2 | -0/+17 | |
While we're at it, we can also toss out the leftover capability parsing from Citra. | |||||
2018-12-19 | Fixed uninitialized memory due to missing returns in canary | David Marcec | 1 | -0/+1 | |
Functions which are suppose to crash on non canary builds usually don't return anything which lead to uninitialized memory being used. | |||||
2018-12-11 | patch_manager: Prevent use of a dangling pointer within PatchRomFS | Lioncash | 1 | -4/+3 | |
fmt::format() returns a std::string instance by value, so calling .c_str() on it here is equivalent to doing: auto* ptr = std::string{}.c_str(); The data being pointed to isn't guaranteed to actually be valid anymore after that expression ends. Instead, we can just take the string as is, and provide the necessary formatting parameters. | |||||
2018-12-08 | file_sys/save_data_factory: Update SaveDataSpaceId enum | Lioncash | 1 | -1/+3 | |
Amends it with missing values deduced from RE (ProperSystem being from SwitchBrew for naming) (SdCardUser wasn't that difficult to discern given it's used alongside SdCardSystem when creating the save data indexer, based off the usage of the string "saveDataIxrDbSd" nearby). | |||||
2018-12-07 | savedata_factory: Add support for CacheStorage | Zach Hilman | 1 | -0/+2 | |
2018-12-07 | savedata_factory: Delete TemporaryStorage on startup | Zach Hilman | 1 | -1/+5 | |
Mimics hardware behavior. | |||||
2018-12-06 | system_archive: Implement open source NgWord2 | Zach Hilman | 3 | -1/+41 | |
2018-12-05 | ng_word: Deduplicate use of a constant value | Lioncash | 1 | -1/+1 | |
We've already given the constant to the vector itself, so we don't need to re-hardcode it in the array. | |||||
2018-12-05 | system_archive: Use a regular function pointer instead of std::function for file-scope system archive array | Lioncash | 1 | -3/+2 | |
This allows the array to be constexpr. std::function is also allowed to allocate memory, which makes its constructor non-trivial, we definitely don't want to have all of these execute at runtime, taking up time before the application can actually load. | |||||
2018-12-03 | patch_manager: Obey disabled add-ons list when patching game | Zach Hilman | 2 | -11/+50 | |
2018-12-03 | file_sys/directory: Amend path buffer size for directory entries | Lioncash | 1 | -2/+2 | |
The path buffer is actually 0x301 (769) characters in length, with the extra character being intended for the null-terminator. | |||||
2018-12-02 | file_sys/registered_cache: Eliminate variable shadowing | Lioncash | 1 | -27/+26 | |
Also inverts if statements where applicable to allow unindenting code a little bit. | |||||
2018-12-02 | filesystem: De-globalize registered_cache_union | Lioncash | 2 | -11/+10 | |
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. | |||||
2018-12-01 | file_sys: Override missing mutating functions to be stubbed out for ReadOnlyVfsDirectory by default | Lioncash | 2 | -0/+25 | |
Ensures that read only indeed means read only. | |||||
2018-12-01 | service/fsp_srv: Implement CleanDirectoryRecursively | Lioncash | 2 | -4/+37 | |
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/ | |||||
2018-11-27 | file_sys/registered_cache: Remove unused <map> include | Lioncash | 1 | -1/+0 | |
2018-11-27 | file_sys/registered_cache: Use regular const references instead of std::shared_ptr for InstallEntry() | Lioncash | 2 | -27/+26 | |
These parameters don't need to utilize a shared lifecycle directly in the interface. Instead, the caller should provide a regular reference for the function to use. This also allows the type system to flag attempts to pass nullptr and makes it more generic, since it can now be used in contexts where a shared_ptr isn't being used (in other words, we don't constrain the usage of the interface to a particular mode of memory management). | |||||
2018-11-27 | control_metadata: Correct typo in language name (Portugese -> Portuguese) | Lioncash | 1 | -7/+17 | |
While we're at it, organize the array linearly, since clang formats the array elements quite wide length-wise with the addition of the missing 'u'. Technically also fixes patch lookup and icon lookup with Portuguese, though I doubt anyone has actually run into this issue. | |||||
2018-11-23 | file_sys: Implement system archive synthesizer for NgWord (806) | Zach Hilman | 5 | -6/+61 | |
2018-11-21 | patch_manager: Show LayeredExeFS patch in add-ons column | Zach Hilman | 1 | -3/+14 | |
The decision was made to name them LayeredExeFS instead of just LayeredFS to differentiate from normal RomFS-based mods. The name may be long/unweildy, but conveys the meaning well. | |||||
2018-11-21 | file_sys/card_image: Provide named members for the GamecardInfo struct | Lioncash | 1 | -1/+12 | |
Fills out the struct according to information provided by SwitchBrew | |||||
2018-11-20 | patch_manager: Apply LayeredExeFS patches | Zach Hilman | 1 | -0/+25 | |
This will scan the <mod>/exefs dir for all files and then layer those on top of the game's exefs and use this as the new exefs. This allows for overriding of the compressed NSOs or adding new files. This does use the same dir as IPS/IPSwitch patch, but since the loader will not look for those they are ignored. | |||||
2018-11-20 | settings: Add option to dump ExeFS of games upon launch | Zach Hilman | 1 | -0/+9 | |
When enabled, all exefs(es) will be copied to yuzu/dump/<title_id>/exefs. | |||||
2018-11-16 | file_sys/errors: Remove currently unused filesystem error codes | Lioncash | 1 | -10/+0 | |
Rather than keeping around unused values, we can just introduce them as needed. | |||||
2018-11-16 | file_sys/errors: Get rid of the ErrCodes namespace | Lioncash | 1 | -17/+5 | |
There's no real point to keeping the separate enum around, especially given the name of the error code itself is supposed to document what the value actually represents. | |||||
2018-11-16 | file_sys/errors: Extract FS-related error codes to file_sys/errors.h | Lioncash | 1 | -1/+8 | |
Keeps filesystem-related error codes in one spot. | |||||
2018-11-16 | file_sys: Add framework for synthesizing open source archives | Zach Hilman | 2 | -0/+105 | |
2018-11-16 | vfs_vector: Add VFS backend for std::array | Zach Hilman | 1 | -0/+52 | |
Allows using constexpr/static const data with VFS. | |||||
2018-11-02 | file_sys: Use common KeyManager in NCA container types | Zach Hilman | 6 | -7/+18 | |
Creates a single KeyManager for the entire container and then passes it into the NCA constructor, eliminating several unnecessary KeyManager reads. | |||||
2018-11-02 | content_archive: Add optional KeyManager parameter to constructor | Zach Hilman | 2 | -3/+5 | |
Allows resuing a common KeyManager when a large amount of NCAs are handled by the same class. Should the parameter not be provided, a new KeyManager will be constructed, as was the default behavior prior to this. | |||||
2018-10-30 | general: Remove unused boost inclusions where applicable | Lioncash | 1 | -1/+0 | |
Cleans up unused includes and trims off some dependencies on externals. | |||||
2018-10-30 | global: Use std::optional instead of boost::optional (#1578) | Frederic L | 11 | -84/+76 | |
* get rid of boost::optional * Remove optional references * Use std::reference_wrapper for optional references * Fix clang format * Fix clang format part 2 * Adressed feedback * Fix clang format and MacOS build | |||||
2018-10-29 | ns: Implement command 400: GetApplicationControlData | Zach Hilman | 2 | -2/+2 | |
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. | |||||
2018-10-29 | patch_manager: Add support for dumping decompressed NSOs | Zach Hilman | 1 | -0/+13 | |
When enabled in settings, PatchNSO will dump the unmodified NSO that it was passed to a file named <build id>.nso in the dump root for the current title ID. | |||||
2018-10-29 | bis_factory: Add getter for mod dump root for a title ID | Zach Hilman | 2 | -2/+11 | |
Equates to yuzu_dir/dump/<title id>/ | |||||
2018-10-29 | savedata_factory: Expose accessors for SaveDataSpace | Zach Hilman | 2 | -14/+21 | |
2018-10-29 | control_metadata: Add GetRawBytes function to NACP | Zach Hilman | 2 | -0/+7 | |
Returns the raw bytes of the NACP file. Needed for GetApplicationControlData which returns the raw, unprocessed NACP to the game. | |||||
2018-10-28 | file_sys/patch_manager: Remove unnecessary if-statements (#1586) | Frederic L | 1 | -7/+6 | |
* remove unnecessary if-statements * Addressed feedback | |||||
2018-10-25 | ips_layer: Use rle_size instead of data_size in RLE patch application | Zach Hilman | 1 | -1/+1 | |
Prevents a potential bug when using RLE records in an IPS patch. | |||||
2018-10-24 | vfs: Handle failure of file reading within VfsRawCopy() | Lioncash | 1 | -2/+6 | |
Also gets rid of an unused variable. | |||||
2018-10-19 | vfs: Remove InterpretAsDirectory and related functions | Zach Hilman | 17 | -95/+1 | |
When writing VFS, it initally seemed useful to include a function to in-place convert container files into directories in one homogenous directory structure, but re-evaluating it now there have been plenty of chances to use it and there has always been a better way. Removing as it is unused and likely will not be used. | |||||
2018-10-18 | qt: Add support for dumping a DLC Data RomFS | Zach Hilman | 2 | -0/+5 | |
2018-10-17 | registered_cache: Deduplicate results of ListEntry and ListEntryFilter | Zach Hilman | 2 | -2/+16 | |
Prevents a Entry from appearing in the list twice if the user has it installed in two places (e.g. User NAND and SDMC) | |||||
2018-10-17 | patch_manager: Add support for using LayeredFS with Data | Zach Hilman | 1 | -2/+3 | |
2018-10-16 | content_archive: Simpify assignment of bktr_base_romfs in the constructor | Lioncash | 1 | -2/+1 | |
std::move doesn't actually dereference the data, so it doesn't matter whether or not the type is null. | |||||
2018-10-16 | content_archive: Make IsValidNCA() an internally linked function | Lioncash | 2 | -3/+1 | |
This is only ever used within the cpp file, so it can just be an internal function. | |||||
2018-10-16 | content_archive: Simplify rights ID check | Lioncash | 1 | -2/+2 | |
This is the same as using std::any_of with an inverted predicate. | |||||
2018-10-16 | content_archive: Split loading into separate functions | Lioncash | 2 | -253/+290 | |
The constructor alone is pretty large, the reading code should be split into its consistuent parts to make it easier to understand it without having to build a mental model of a 300+ line function. | |||||
2018-10-16 | content_archive: Pass and take NCASectionHeader instance by reference | Lioncash | 2 | -3/+3 | |
Each header is 512 bytes in size, which is kind of an excessive amount to copy all the time when it's possible to avoid doing so. | |||||
2018-10-16 | XCI: Add function for checking the existence of the program NCA | Lioncash | 2 | -5/+7 | |
The only reason the getter existed was to check whether or not the program NCA was null. Instead, we can just provide a function to query for the existence of it, instead of exposing it entirely. | |||||
2018-10-16 | savedata_factory: Add TemporaryStorage SaveDataSpaceId | Zach Hilman | 1 | -1/+4 | |
Required for TemporaryStorage saves (in addition to SaveDataType) | |||||
2018-10-16 | savedata_factory: Add support for DeviceSaveData | Zach Hilman | 1 | -0/+8 | |
Uses the same path as SaveData except with UID 0. Adds a warning if UID is not 0. | |||||
2018-10-16 | file_sys/registered_cache: Use unique_ptr and regular pointers instead of shared_ptrs where applicable | Lioncash | 7 | -30/+30 | |
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. | |||||
2018-10-16 | file_sys/control_metadata: Get rid of magic constants | Lioncash | 1 | -3/+6 | |
These are just the size of the data being passed in, so we can specify that via the size() member function. | |||||
2018-10-15 | aoc: Read DLC base title ID from RegisteredCache | Zach Hilman | 2 | -0/+5 | |
Falls back to title ID + 0x1000, which is what HOS does. | |||||
2018-10-13 | patch_manager: Move non-Program RomFS patch log to Debug | Zach Hilman | 1 | -2/+8 | |
Normal Program-type patches will still be logged to aid in debugging, but for others (mainly Control), it was moved to Debug. | |||||
2018-10-13 | content_archive: Move get key log to Trace level | Zach Hilman | 1 | -1/+1 | |
Avoids printing live keys in the general log. | |||||
2018-10-09 | patch_manager: Return a std::unique_ptr from ParseControlNCA() and GetControlMetadata() instead of a std::shared_ptr | Lioncash | 2 | -11/+9 | |
Neither of these functions require the use of shared ownership of the returned pointer. This makes it more difficult to create reference cycles with, and makes the interface more generic, as std::shared_ptr instances can be created from a std::unique_ptr, but the vice-versa isn't possible. This also alters relevant functions to take NCA arguments by const reference rather than a const reference to a std::shared_ptr. These functions don't alter the ownership of the memory used by the NCA instance, so we can make the interface more generic by not assuming anything about the type of smart pointer the NCA is contained within and make it the caller's responsibility to ensure the supplied NCA is valid. | |||||
2018-10-09 | ips_layer: Avoid constructing std::vector instances where not necessary | Lioncash | 1 | -6/+25 | |
We can just compare the existing std::vector instance with a constexpr std::array containing the desired match. This is lighter resource-wise, as we don't need to allocate on the heap. | |||||
2018-10-09 | ips_layer: Remove unnecessary explicit std::pair constructor in std::array | Lioncash | 1 | -5/+13 | |
Makes the layout of the array consistent, by making all elements match, instead of special-casing the first one. | |||||
2018-10-09 | ips_layer: Add missing includes | Lioncash | 2 | -7/+17 | |
Adds missing includes to prevent potential compilation issues in the future. Also moves the definition of a struct into the cpp file, so that some includes don't need to be introduced within the header. | |||||
2018-10-09 | ips_layer: std::move data within PatchIPS() and Apply() | Lioncash | 1 | -2/+5 | |
We don't need to make a copy of the read data, so we can std::move it into the make_shared call here. | |||||
2018-10-09 | ips_layer: Silence truncation and conversion warnings | Lioncash | 1 | -3/+3 | |
Makes type conversions explicit to avoid compiler warnings. | |||||
2018-10-07 | vfs: Move forward declarations to separate file | Zach Hilman | 2 | -9/+22 | |
2018-10-05 | romfs_factory: Extract packed update setter to new function | Zach Hilman | 5 | -6/+15 | |
2018-10-05 | patch_manager: Add support for NSP packed updates | Zach Hilman | 1 | -2/+2 | |
Reads as Update (NSP) in add-ons | |||||
2018-10-05 | patch_manager: Add support for packed updates | Zach Hilman | 4 | -5/+18 | |
Will prefer any installed update over the packed version. | |||||
2018-10-04 | patch_manager: Avoid romfs_ext requirement for patching | Zach Hilman | 1 | -4/+1 | |
2018-10-04 | fsmitm_romfsbuild: Extract stubs and IPS to romfs_ext dir | Zach Hilman | 5 | -21/+38 | |
2018-10-04 | fsmitm_romfsbuild: Add support for stubbing and IPS patches in LFS | Zach Hilman | 1 | -0/+14 | |
2018-10-04 | ips_layer: Fix inaccuracies with comments and flags | Zach Hilman | 3 | -16/+51 | |
Specifically bugs/crashes that arise when putting them in positions that are legal but not typical, such as midline, between patch data, or between patch records. | |||||
2018-10-04 | ips_layer: Deduplicate resource usage | Zach Hilman | 3 | -31/+37 | |
2018-10-04 | ips_layer: Add support for escape sequences and midline comments | Zach Hilman | 3 | -8/+41 | |
More accurately follows IPSwitch specification. | |||||
2018-10-04 | patch_manager: Add support for IPSwitch format patches | Zach Hilman | 1 | -22/+56 | |
2018-10-04 | ips_layer: Add IPSwitchCompiler to process IPSwitch format | Zach Hilman | 2 | -0/+168 | |
2018-10-03 | submission_package: Avoid dangling std::string_view within SetTicketKeys() | Lioncash | 1 | -2/+5 | |
GetName() returns a std::string by value, not by reference, so after the std::string_view is constructed, it's not well defined to actually execute any member functions of std::string_view that attempt to access the data, as the std::string has already been destroyed. Instead, we can just use a std::string and erase the last four characters. | |||||
2018-10-03 | submission_package: Correct location of null check within SetTicketKeys() | Lioncash | 1 | -3/+6 | |
If a ticket file was ever a null pointer, we'd cause a null pointer dereference, as we were calling GetExtension() on the pointer instance. | |||||
2018-10-03 | submission_package: Use std::string's rfind() when looking for the extension in InitializeExeFSAndRomFS() | Lioncash | 1 | -1/+1 | |
When searching for a file extension, it's generally preferable to begin the search at the end of the string rather than the beginning, as the whole string isn't going to be walked just to check for something at the end of it. | |||||
2018-10-03 | submission_package: Ensure the 'extracted' member variable is always initialized | Lioncash | 2 | -3/+1 | |
If an error occurs when constructing the PartitionFilesystem instance, the constructor would be exited early, which wouldn't initialize the extracted data member, making it possible for other code to perform an uninitialized read by calling the public IsExtractedType() member function. This prevents that. | |||||
2018-10-03 | submission_package: Move ExeFS and RomFS initialization to its own function | Lioncash | 2 | -10/+18 | |
Like the other two bits of factored out code, this can also be put within its own function. We can also modify the code so that it accepts a const reference to a std::vector of files, this way, we can deduplicate the file retrieval. Now the constructor for NSP isn't a combination of multiple behaviors in one spot. It's nice and separate. | |||||
2018-10-03 | submission_package: Move NCA reading code to its own function | Lioncash | 2 | -43/+48 | |
This too, is completely separate behavior from what is in the constructor, so we can move this to its own isolated function to keep everything self-contained. | |||||
2018-10-03 | submission_package: Move ticket key setting to its own function | Lioncash | 1 | -21/+28 | |
This behavior is entirely independent of the surrounding code, so it can be put in its own function to keep the behavior separate. | |||||
2018-10-03 | submission_package: Invert conditionals within NSP's constructor to reduce nesting | Lioncash | 1 | -45/+49 | |
We can use early continues here to reduce the amount of nesting. | |||||
2018-10-03 | card_image: Ensure program_nca_status is always initialized | Lioncash | 1 | -1/+3 | |
If any of the error paths before the NCA retrieval are taken, it'll result in program_nca_status being left in an inconsistent state. So we initialize it by default with a value indicating an error. | |||||
2018-10-02 | nso: Optimize loading of IPS patches | Zach Hilman | 2 | -45/+38 | |
Avoid resource-heavy classes and remove quasi-duplicated code. | |||||
2018-10-01 | patch_manager: Add PatchNSO function | Zach Hilman | 2 | -0/+102 | |
While PatchExeFS operated on the entire directory, this function operates on the uncompressed NSO. Avoids copying decompression code to PatchManager. | |||||
2018-10-01 | patch_manager: Use strings for patch type instead of enum | Zach Hilman | 2 | -29/+33 | |
2018-10-01 | file_sys: Implement function to apply IPS patches | Zach Hilman | 2 | -0/+103 | |
2018-10-01 | aoc_u: Extract AccumulateAOCTitleIDs to separate function | Zach Hilman | 1 | -1/+2 | |
2018-10-01 | aoc_u: Implement GetAddOnContentBaseId | Zach Hilman | 1 | -2/+3 | |
Command #5 | |||||
2018-10-01 | romfs_factory: Read from all locations with StorageId None | Zach Hilman | 1 | -26/+25 | |
Previous behavior was to assert. Seems to mirror expected game behavior. | |||||
2018-10-01 | patch_manager: Add DLC recognition to PatchManager | Zach Hilman | 2 | -0/+27 | |
2018-09-30 | kernel/process: Make data member variables private | Lioncash | 2 | -2/+2 | |
Makes the public interface consistent in terms of how accesses are done on a process object. It also makes it slightly nicer to reason about the logic of the process class, as we don't want to expose everything to external code. | |||||
2018-09-26 | fsmitm_romfsbuild: std::move std::vector instances in Build() | Lioncash | 1 | -2/+2 | |
Avoids making copies of large std::vector instances where it's trivially avoidable to do so. | |||||
2018-09-26 | fsmitm_romfsbuild: Replace manual value aligning with Common::AlignUp() | Lioncash | 1 | -12/+11 | |
Theres no need to do explicit bitwise arithmetic here, when we have a function that does this with a more descriptive name. | |||||
2018-09-26 | patch_manager: Invert conditionals within ApplyLayeredFS() | Lioncash | 1 | -27/+30 | |
Avoids the need to nest code quite a bit by early-exiting in error cases. | |||||
2018-09-26 | vfs_vector: Amend initializer list order in VectorVfsFile's constructor initializer list | Lioncash | 1 | -1/+1 | |
Orders the initializer list members to be in the same order that they would be initialized in. Avoids compiler warnings. | |||||
2018-09-26 | fsmitm_romfsbuild: Avoid type truncation warnings | Lioncash | 1 | -7/+10 | |
Cast where explicitly necessary and in other cases we can simply modify the algorithm to accomodate larger data. | |||||
2018-09-26 | fsmitm_romfsbuild: Remove unnecessary constructors and initializers for RomFSBuildFileContext and RomFSBuildDirectoryContext | Lioncash | 1 | -5/+3 | |
There's no need to duplicate in-class initializers with a constructor initializer list. std::strings also initialize to empty by default. | |||||
2018-09-26 | fsmitm_romfsbuild: Remove unnecessary loops in Build() | Lioncash | 1 | -6/+0 | |
The std::vector instances are already initially allocated with all entries having these values, there's no need to loop through and fill them with it again when they aren't modified. | |||||
2018-09-26 | fsmitm_romfsbuild: Make auto variable into a std::size_t variable within Build() | Lioncash | 1 | -1/+1 | |
auto x = 0; auto-deduces x to be an int. This is undesirable when working with unsigned values. It also causes sign conversion warnings. Instead, we can make it a proper unsigned value with the correct width that the following expressions operate on. | |||||
2018-09-26 | vfs/etc: Append std:: to size_t usages | Lioncash | 6 | -22/+23 | |
Given we just recently had a patch backport this from citra, let's try and keep the convention uniform. | |||||
2018-09-26 | vfs_concat/vfs_layered: Remove friend declarations from ConcatenatedVfsFile | Lioncash | 7 | -60/+58 | |
Given these are only added to the class to allow those functions to access the private constructor, it's a better approach to just make them static functions in the interface, to make the dependency explicit. | |||||
2018-09-25 | vfs_static: Remove template byte parameter from StaticVfsFile | Lioncash | 4 | -42/+42 | |
This converts it into a regular constructor parameter. There's no need to make this a template parameter on the class when it functions perfectly well as a constructor argument. This also reduces the amount of code bloat produced by the compiler, as it doesn't need to generate the same code for multiple different instantiations of the same class type, but with a different fill value. | |||||
2018-09-24 | process/vm_manager: Amend API to allow reading parameters from NPDM metadata | Lioncash | 2 | -3/+7 | |
Rather than hard-code the address range to be 36-bit, we can derive the parameters from supplied NPDM metadata if the supplied exectuable supports it. This is the bare minimum necessary for this to be possible. The following commits will rework the memory code further to adjust to this. | |||||
2018-09-24 | fsmitm: Cleanup and modernize fsmitm port | Zach Hilman | 20 | -376/+376 | |
2018-09-22 | qt: Add UI elements for LayeredFS and related tools | Zach Hilman | 2 | -2/+2 | |
2018-09-22 | romfs: Implement CreateRomFS | Zach Hilman | 2 | -4/+25 | |
2018-09-22 | file_sys: Port Atmosphere-NX fs_mitm implementation | Zach Hilman | 2 | -0/+474 | |
2018-09-22 | bis_factory: Add mod directory VFS getter | Zach Hilman | 2 | -3/+14 | |
2018-09-22 | patch_manager: Add LayeredFS mods support | Zach Hilman | 2 | -1/+44 | |
2018-09-22 | vfs_concat: Rewrite and fix ConcatenatedVfsFile | Zach Hilman | 2 | -14/+59 | |
2018-09-22 | vfs_layered: Add LayeredVfsDirectory | Zach Hilman | 2 | -0/+178 | |
Reads multiple dirs through as if a waterfall. | |||||
2018-09-22 | vfs_vector: Add VectorVfsFile | Zach Hilman | 2 | -0/+75 | |
Maps a vector into the VFS interface. | |||||
2018-09-22 | vfs_static: Add StaticVfsFile | Zach Hilman | 1 | -0/+77 | |
Always returns the template argument byte for all reads. Doesn't support writes. | |||||
2018-09-22 | vfs: Add and rewite VfsRawCopy functions | Zach Hilman | 2 | -6/+36 | |
2018-09-22 | vfs: Add GetEntries method | Zach Hilman | 4 | -0/+32 | |
Maps name string to directory or file. | |||||
2018-09-20 | file-sys: Default heavy-weight class destructors in the cpp file | Lioncash | 25 | -1/+45 | |
Several classes have a lot of non-trivial members within them, or don't but likely should have the destructor defaulted in the cpp file for future-proofing/being more friendly to forward declarations. Leaving the destructor unspecified allows the compiler to inline the destruction code all over the place, which is generally undesirable from a code bloat perspective. | |||||
2018-09-20 | control_metadata: Remove unnecessary else within GetLanguageEntry() | Lioncash | 1 | -8/+8 | |
There's no need to indent the code here, given the if case contains a return statement at the end of it. | |||||
2018-09-20 | control_metadata: Move language name array definition to the cpp file | Lioncash | 2 | -6/+9 | |
This was used in two different translation units (deconstructed_rom_directory and patch_manager). This means we'd be pointlessly duplicating the whole array twice due to it being defined within the header. | |||||
2018-09-19 | xts_archive: Remove unused variables from CalculateHMAC256() | Lioncash | 1 | -3/+0 | |
These variables aren't used, which still has an impact, as std::vector cannot be optimized away by the compiler (it's constructor and destructor are both non-trivial), so this was just wasting memory. | |||||
2018-09-19 | xts_archive: Make AsNCA() return a std::unique_ptr instead of a std::shared_ptr | Lioncash | 2 | -3/+3 | |
std::shared_ptr isn't strictly necessary here and is only ever used in contexts where the object doesn't depend on being shared. This also makes the interface more flexible, as it's possible to create a std::shared_ptr from a std::unique_ptr (std::shared_ptr has a constructor that accepts a std::unique_ptr), but not the other way around. | |||||
2018-09-19 | xts_archive: Ensure NAX's type member is always initialized | Lioncash | 1 | -1/+1 | |
Ensures that the member always has a deterministic value. | |||||
2018-09-19 | xts_archive: Amend initializer order of NAX's constructor | Lioncash | 1 | -2/+2 | |
Orders the initializer list in the same order the members would be initialized. Avoids compiler warnings. | |||||
2018-09-19 | savedata_factory: Add TemporaryStorage SaveDataType | Zach Hilman | 1 | -4/+7 | |
Seems to be used by NSO NES Emulator | |||||
2018-09-15 | Port #4182 from Citra: "Prefix all size_t with std::" | fearlessTobi | 21 | -128/+130 | |
2018-09-06 | file_sys/nca_patch: Amend constructor initializer list order | Lioncash | 1 | -2/+2 | |
Orders the elements in the initializer list in the order they're specified in the class. This prevents compiler warnings about initialization order. | |||||
2018-09-06 | file_sys/nca_patch: Remove unnecessary includes | Lioncash | 2 | -2/+9 | |
romfs.h doesn't need to be included in the header, the only real dependency here is common's swap.h that needs to be included. | |||||
2018-09-06 | file_sys/patch_manager: Add missing includes | Lioncash | 2 | -0/+5 | |
These includes were previously being satisfied indirectly. | |||||
2018-09-05 | file_sys/submission_package: Correct constructor initialization list order | Lioncash | 1 | -2/+2 | |
Orders the elements in the sequence to match the order in which they'll actually be initialized in. | |||||
2018-09-05 | file_sys/submission_package: Replace includes with forward declarations where applicable | Lioncash | 2 | -6/+15 | |
2018-09-04 | bktr: Fix bucket overlap error | Zach Hilman | 5 | -6/+6 | |
2018-09-04 | patch_manager: Centralize Control-type NCA parsing | Zach Hilman | 2 | -22/+66 | |
2018-09-04 | nsp: Fix error masking issue with XCI files | Zach Hilman | 3 | -6/+13 | |
Now display correct error instead of catch-all MissingProgramNCA | |||||
2018-09-04 | game_list: Fix version display on non-NAND titles | Zach Hilman | 2 | -7/+23 | |
2018-09-04 | bktr: Add logging on successful patch | Zach Hilman | 3 | -7/+24 | |
2018-09-04 | bktr: Implement IVFC offset shifting | Zach Hilman | 5 | -8/+20 | |
Fixes base game read errors | |||||
2018-09-04 | bktr: Fix missing includes and optimize style | Zach Hilman | 6 | -96/+102 | |
2018-09-04 | patch_manager: Add usages of patches to ExeFS | Zach Hilman | 2 | -1/+11 | |
2018-09-04 | file_sys: Add class to manage game patches | Zach Hilman | 2 | -0/+132 | |
Right now only includes Updates, but should eventually contain all of the other patches we need. | |||||
2018-09-04 | file_sys: Add BKTR patching mechanism | Zach Hilman | 2 | -0/+352 | |
2018-09-04 | content_archive: Add BKTR header parsing to NCA | Zach Hilman | 2 | -19/+160 | |
2018-09-04 | registration: Add RegisteredCacheUnion | Zach Hilman | 2 | -0/+154 | |
Aggregates multiple caches into one interface | |||||
2018-09-04 | main: Only show DRD deprecation warning once | Zach Hilman | 5 | -2/+5 | |
2018-09-04 | control_metadata: Use alternate language names if AmericanEnglish isn't available | Zach Hilman | 2 | -4/+17 | |
2018-09-04 | card_image: Add program title ID getter | Zach Hilman | 2 | -0/+6 | |
2018-09-04 | nsp: Comply with style and performance guidelines | Zach Hilman | 4 | -25/+37 | |
2018-09-04 | registration: Add support for installing NSP files | Zach Hilman | 2 | -10/+16 | |
2018-09-04 | card_image: Parse XCI secure partition with NSP | Zach Hilman | 2 | -7/+33 | |
Eliminated duplicate code and adds support for Rev1+ carts | |||||
2018-09-04 | file_sys: Add Nintendo Submission Package (NSP) | Zach Hilman | 2 | -0/+296 | |
2018-09-04 | file_sys: Replace includes with forward declarations where applicable | Lioncash | 17 | -21/+51 | |
Cuts down on include dependencies, resulting in less files that need to be rebuilt when certain things are changed. | |||||
2018-09-02 | vfs_real: Forward declare IOFile | Lioncash | 4 | -7/+22 | |
Eliminates the need to rebuild some source files if the file_util header ever changes. This also uncovered some indirect inclusions, which have also been fixed. | |||||
2018-08-31 | core/core: Replace includes with forward declarations where applicable | Lioncash | 2 | -0/+2 | |
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. | |||||
2018-08-27 | vfs_real: Remove unused variable in CreateDirectoryRelative() | Lioncash | 1 | -1/+0 | |
2018-08-27 | registered_cache: Get rid of variable shadowing in ProcessFiles() | Lioncash | 1 | -3/+3 | |
Prevents compiler warnings. | |||||
2018-08-25 | file_sys/crypto: Fix missing/unnecessary includes | Zach Hilman | 4 | -0/+6 | |
2018-08-24 | xci: Ignore NCA files with updates in secure | Zach Hilman | 1 | -0/+3 | |
2018-08-24 | content_archive: Add update title detection | Zach Hilman | 2 | -0/+11 | |
This is needed because the title IDs of update NCAs will not use the update title ID. The only sure way to tell is to look for a partition with BKTR crypto. | |||||
2018-08-23 | key_manager: Create keys dir if it dosen't exist | Zach Hilman | 1 | -0/+1 | |
On call to WriteKeyToFile, so that the autogenerated file can be written. | |||||
2018-08-23 | file_sys: Cut down on includes and copies | Zach Hilman | 3 | -0/+6 | |
2018-08-23 | crypto: Eliminate magic constants | Zach Hilman | 2 | -16/+19 | |
2018-08-23 | file_sys: Implement NAX containers | Zach Hilman | 2 | -0/+232 | |
2018-08-23 | registration: Add GetEntryUnparsed methods | Zach Hilman | 2 | -0/+15 | |
Returns the file before calling parser on it. | |||||
2018-08-23 | sdmc_factory: Add SDMC RegisteredCache getter | Zach Hilman | 2 | -1/+14 | |
2018-08-23 | vfs: Add GetOrCreateDirectoryRelative method | Zach Hilman | 3 | -9/+13 | |
2018-08-23 | xts_encryption_layer: Implement XTSEncryptionLayer | Zach Hilman | 1 | -1/+1 | |
2018-08-23 | xci: Fix error masking issue | Zach Hilman | 2 | -0/+11 | |
Prevents NCA-related errors from being masked into MissingProgramNCA or MissingKeyFile | |||||
2018-08-21 | vfs: Replace mode.h include with forward declarations where applicable | Lioncash | 2 | -2/+4 | |
Avoids the need to rebuild these source files if the mode header changes. | |||||
2018-08-21 | sdmc_factory: Remove unnecessary core include | Lioncash | 2 | -1/+1 | |
This doesn't require the central core header to be included, it just needs the vfs headers. | |||||
2018-08-21 | qt/main: Port part of citra(#3411), open savedata works | tech4me | 2 | -4/+4 | |
2018-08-21 | service/filesystem: Use forward declarations where applicable | Lioncash | 1 | -0/+1 | |
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 | |||||
2018-08-21 | romfs_factory: Remove unnecessary includes and use forward declarations where applicable | Lioncash | 3 | -3/+12 | |
Avoids the need to rebuild whatever includes the romfs factory header if the loader header ever changes. We also don't need to include the main core header. We can instead include the headers we specifically need. | |||||
2018-08-20 | registration: Add Data_Unknown5 NCAContentType | Zach Hilman | 3 | -2/+3 | |
2018-08-19 | filesystem: Add support for loading of system archives | Zach Hilman | 3 | -4/+49 | |
2018-08-16 | common: Namespace hex_util.h/.cpp | Lioncash | 1 | -8/+10 | |
It's in the common code, so it should be under the Common namespace like everything else. | |||||
2018-08-15 | loader: Make ResultStatus directly compatible with fmt | Lioncash | 1 | -2/+5 | |
We can make the enum class type compatible with fmt by providing an overload of operator<<. While we're at it, perform proper bounds checking. If something exceeds the array, it should be a hard fail, because it's, without a doubt, a programmer error in this case. | |||||
2018-08-12 | vfs: Make VfsFilesystem constructor explicit | Lioncash | 1 | -1/+1 | |
Makes it consistent with the other VFS interfaces and prevents implicit construction. | |||||
2018-08-12 | vfs: Make type hierarchy objects classes instead of structs | Lioncash | 3 | -9/+15 | |
struct should be used when the data type is very simple or otherwise has no invariants associated with it. Given these are used to form a hierarchy, class should be used instead. | |||||
2018-08-12 | registration: Various style and documentation improvements | Zach Hilman | 3 | -18/+22 | |
Fix logic in RealVfsFilesystem Create methods Remove magic numbers Fix regex errors | |||||
2018-08-12 | vfs: Use sanitized paths within MoveFile() and MoveDirectory() | Lioncash | 1 | -10/+10 | |
Previously these were being unused (or partially unused). While we're at it, use better naming to make it visibly obvious which variant of the path is being used. | |||||
2018-08-12 | card_image: Use type aliases to shorten definitions | Lioncash | 2 | -6/+6 | |
We have the aliases, so we may as well use 'em. | |||||
2018-08-12 | card_image: Simplify return statement of GetSubdirectories() | Lioncash | 1 | -1/+1 | |
We don't need to write out the construction long-form, we can just let the language itself work it out off the return type. | |||||
2018-08-12 | made ResultStatus a u16 | David Marcec | 2 | -2/+2 | |
2018-08-12 | registration: Add support for force overwrite of installed | Zach Hilman | 2 | -22/+48 | |
2018-08-12 | vfs_real: Add CreateFullPath to Create* operations | Zach Hilman | 2 | -13/+6 | |
2018-08-12 | control_metadata: Remove unnecessary reference to base file | Zach Hilman | 2 | -2/+1 | |
2018-08-12 | romfs: Remove cyclic shared_ptr leak in romfs code | Zach Hilman | 3 | -8/+8 | |
2018-08-12 | registration: Update documentation and style | Zach Hilman | 5 | -42/+69 | |
2018-08-12 | nca_metadata: Remove unnecessary reference to base file | Zach Hilman | 2 | -3/+2 | |
2018-08-12 | bis_factory: Create NAND dirs if they don't exist | Zach Hilman | 1 | -2/+9 | |
2018-08-12 | registration: Take RawCopy function as parameter | Zach Hilman | 2 | -10/+15 | |
Instead of defaulting to VfsRawCopy | |||||
2018-08-12 | registered_cache: Fix missing reading from yuzu_meta | Zach Hilman | 1 | -7/+16 | |
2018-08-12 | file_sys: Comply to style guidelines | Zach Hilman | 6 | -27/+38 | |
2018-08-12 | qt: Add 'Install to NAND' option to menu | Zach Hilman | 1 | -1/+1 | |
Prompts for title type on NCA files. | |||||
2018-08-12 | file_sys: Add RegisteredCache | Zach Hilman | 2 | -0/+543 | |
Manages NAND NCA get and install. | |||||
2018-08-12 | file_sys: Add support for parsing NCA metadata (CNMT) | Zach Hilman | 2 | -0/+230 | |
2018-08-12 | card_image: Add accessor for all NCAs in XCI | Zach Hilman | 2 | -0/+5 | |
2018-08-12 | vfs_real: Add CreateFullPath to CreateFile | Zach Hilman | 1 | -3/+6 | |
Fixes bugs with calling CreateFile when the immediate directory does not exist. | |||||
2018-08-12 | bis_factory: Add partial implementation of BISFactory | Zach Hilman | 2 | -0/+54 | |
Creates and stores RegisteredCaches for user and system NAND, as creation of a RegisteredCache is expensive. | |||||
2018-08-12 | vfs: Add ConcatenatedVfsFile | Zach Hilman | 2 | -0/+134 | |
2018-08-10 | loader: Add more descriptive errors | Zach Hilman | 5 | -35/+95 | |
Full list of new errors and descriptions in core/loader/loader.h | |||||
2018-08-09 | vfs: Fix documentation | Zach Hilman | 1 | -2/+2 | |
2018-08-09 | vfs: Fix typo in VfsFilesystem docs | Zach Hilman | 1 | -1/+1 | |
2018-08-09 | file_util: Use enum instead of bool for specifing path behavior | Zach Hilman | 1 | -17/+27 | |
2018-08-09 | vfs: Use RealVfsFilesystem for fs-operations in RealVfsDirectory | Zach Hilman | 1 | -2/+10 | |
2018-08-09 | file_sys: Add missing include in savedata_factory | Zach Hilman | 1 | -0/+1 | |
2018-08-09 | vfs: Add unreachable assert to file permissions converter | Zach Hilman | 1 | -1/+3 | |
2018-08-09 | vfs: Add RealVfsFilesystem implementation | Zach Hilman | 2 | -81/+290 | |
2018-08-09 | vfs: Add VfsFilesystem interface and default implementation | Zach Hilman | 2 | -3/+211 | |
2018-08-09 | fsp_srv: Use std::string_view's copy() function instead of strncpy() | Lioncash | 1 | -3/+9 | |
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. | |||||
2018-08-07 | loader: Add icon and title support to XCI | Zach Hilman | 3 | -0/+6 | |
2018-08-07 | Use const where applicable | Zach Hilman | 1 | -1/+1 | |
2018-08-07 | Avoid parsing RomFS to directory in NCA | Zach Hilman | 1 | -0/+7 | |
2018-08-04 | content_archive: Add support for titlekey cryptography | Zach Hilman | 2 | -7/+39 | |
2018-08-02 | vfs_vector: Remove unused variable in FindAndRemoveVectorElement() | Lioncash | 1 | -2/+2 | |
This wasn't being used for anything, so it can be removed. | |||||
2018-08-02 | vfs_vector: Avoid unnecessary copies where applicable | Lioncash | 1 | -2/+5 | |
The lambda elements should be taken by const reference here, and we can move the virtual directory passed to ReplaceFileWithSubdirectory() | |||||
2018-08-01 | Add missing parameter to files.push_back() | Zach Hilman | 1 | -5/+5 | |
2018-08-01 | Use more descriptive error codes and messages | Zach Hilman | 1 | -2/+8 | |
2018-08-01 | Use ErrorEncrypted where applicable and fix no keys crash | Zach Hilman | 3 | -17/+33 | |
2018-08-01 | Add missing includes and use const where applicable | Zach Hilman | 4 | -9/+14 | |
2018-08-01 | Make XCI comply to review and style guidelines | Zach Hilman | 4 | -45/+30 | |
2018-08-01 | Extract mbedtls to cpp file | Zach Hilman | 1 | -1/+2 | |
2018-08-01 | Remove files that are not used | Zach Hilman | 6 | -36/+425 | |
2018-07-29 | partition_filesystem: Remove dynamic_cast in PrintDebugInfo() | Lioncash | 1 | -3/+2 | |
We shouldn't be upcasting our file instances. Given a PartitionFilesystem is currently designed to accept any arbitrary VfsFile instances, casting to a more specific type than that is just bad design, and shows an interface design issue. | |||||
2018-07-28 | RomFS Extraction | Zach Hilman | 11 | -20/+347 | |
2018-07-24 | VFS Regression and Accuracy Fixes (#776) | Zach Hilman | 2 | -20/+33 | |
* 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& | |||||
2018-07-24 | partition_filesystem: Use std::move where applicable | Lioncash | 1 | -3/+3 | |
Avoids copying a std::string instance and avoids unnecessary atomic reference count incrementing and decrementing. | |||||
2018-07-23 | NRO Assets and NACP file format | Zach Hilman | 2 | -0/+123 | |
Cleanup Review fixes | |||||
2018-07-22 | vfs: Correct file_p variable usage within InterpretAsDirectory() | Lioncash | 1 | -2/+5 | |
ReplaceFileWithSubdirectory() takes a VirtualFile and a VirtualDir, but it was being passed a string as one of its arguments. The only reason this never caused issues is because this template isn't instantiated anywhere yet. This corrects an issue before it occurs. | |||||
2018-07-22 | file_util, vfs: Use std::string_view where applicable | Lioncash | 6 | -89/+150 | |
Avoids unnecessary construction of std::string instances where applicable. | |||||
2018-07-22 | file_util: Use a u64 to represent number of entries | Lioncash | 1 | -3/+3 | |
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. | |||||
2018-07-21 | file_sys/errors: Remove redundant object constructor calls | Lioncash | 1 | -8/+8 | |
Given we're already constructing the error code, we don't need to call the constructor inside of it. | |||||
2018-07-21 | vfs_real: Remove redundant copying of std::vector instances in GetFiles() and GetSubdirectories() | Lioncash | 1 | -2/+3 | |
We already return by value, so we don't explicitly need to make the copy. | |||||
2018-07-21 | partition_filesystem, vfs_real: Add missing standard includes | Lioncash | 2 | -0/+4 | |
2018-07-21 | partition_filesystem, vfs_real: Use std::move in ReplaceFileWithSubdirectory() where applicable | Lioncash | 2 | -2/+3 | |
Avoids unnecessary atomic increment and decrement operations. | |||||
2018-07-21 | partition_filesystem, vfs_real: Use std::distance() instead of subtraction | Lioncash | 2 | -4/+10 | |
This is a little bit more self-documenting on what is being done here. | |||||
2018-07-21 | vfs_offset: Simplify TrimToFit() | Lioncash | 1 | -1/+2 | |
We can simply use std::clamp() here, instead of using an equivalent with std::max() and std::min(). | |||||
2018-07-21 | vfs: Make WriteBytes() overload taking a std::vector pass the std::vector by const reference | Lioncash | 4 | -4/+4 | |
Given the data is intended to be directly written, there's no need to take the std::vector by value and copy the data. | |||||
2018-07-21 | vfs: Use variable template variants of std::is_trivially_copyable | Lioncash | 1 | -13/+6 | |
Provides the same behavior, but with less writing | |||||
2018-07-21 | vfs: Amend constness on pointers in WriteBytes() and WriteArrays() member functions to be const qualified | Lioncash | 1 | -3/+3 | |
These functions don't modify the data being pointed to, so these can be pointers to const data | |||||
2018-07-20 | vfs_offset: std::move file and name parameters of OffsetVfsFile | Lioncash | 2 | -3/+5 | |
Avoids potentially unnecessary atomic reference count incrementing and decrementing, as well as string copying. | |||||
2018-07-20 | partition_filesystem: Return pfs_dirs member variable within GetSubdirectories() | Lioncash | 1 | -1/+1 | |
This should be returned here, otherwise pfs_dirs is effectively only ever added to, but never read. | |||||
2018-07-19 | savedata_factory: Make SaveDataDescriptor's DebugInfo() function a const member function | Lioncash | 2 | -2/+2 | |
This function doesn't alter class state. | |||||
2018-07-19 | partition_filesystem: Ensure all class members of PartitionFilesystem are initialized | Lioncash | 2 | -24/+15 | |
Previously is_hfs and pfs_header members wouldn't be initialized in the constructor, as they were stored in locals instead. This would result in things like GetName() and PrintDebugInfo() behaving incorrectly. While we're at it, initialize the members to deterministic values as well, in case loading ever fails. | |||||
2018-07-19 | content_archive: Make IsDirectoryExeFS() take a shared_ptr as a const reference | Lioncash | 1 | -1/+1 | |
There's no need to take this by value when it's possible to avoid unnecessary copies entirely like this. | |||||
2018-07-19 | content_archive: Add missing standard includes | Lioncash | 1 | -0/+5 | |
2018-07-19 | content_archive: std::move VirtualFile in NCA's constructor | Lioncash | 1 | -1/+4 | |
Gets rid of unnecessary atomic reference count incrementing and decrementing. | |||||
2018-07-19 | vfs: Deduplicate accumulation code in VfsDirectory's GetSize() | Lioncash | 1 | -6/+6 | |
We can just use a generic lambda to avoid writing the same thing twice. | |||||
2018-07-19 | Virtual Filesystem 2: Electric Boogaloo (#676) | Zach Hilman | 30 | -1211/+1267 | |
* Virtual Filesystem * Fix delete bug and documentate * Review fixes + other stuff * Fix puyo regression | |||||
2018-07-17 | General Filesystem and Save Data Fixes (#670) | Zach Hilman | 8 | -106/+123 | |
2018-07-14 | FileSys: Append the requested path to the filesystem base path in DeleteFile. | Subv | 1 | -2/+4 | |
We were trying to delete things in the current directory instead of the actual filesystem directory. This may fix some savedata issues in some games. | |||||
2018-07-08 | savedata_factory: Always create a save directory for games. | bunnei | 1 | -0/+9 | |
2018-07-08 | Revert "Virtual Filesystem (#597)" | bunnei | 23 | -1127/+996 | |
This reverts commit 77c684c1140f6bf3fb7d4560d06d2efb1a2ee5e2. | |||||
2018-07-06 | Virtual Filesystem (#597) | Zach Hilman | 23 | -996/+1127 | |
* 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 | |||||
2018-07-03 | Update clang format | James Rowe | 3 | -10/+8 | |
2018-07-03 | Rename logging macro back to LOG_* | James Rowe | 8 | -55/+55 | |
2018-06-21 | Add support for decrypted NCA files (#567) | Zach Hilman | 2 | -4/+16 | |
* Start to add NCA support in loader * More nca stuff * More changes to nca.cpp * Now identifies decrypted NCA cont. * Game list fixes and more structs and stuff * More updates to Nca class * Now reads ExeFs (i think) * ACTUALLY LOADS EXEFS! * RomFS loads and games execute * Cleanup and Finalize * plumbing, cleanup and testing * fix some things that i didnt think of before * Preliminary Review Changes * Review changes for bunnei and subv | |||||
2018-06-20 | Build: Fixed some MSVC warnings in various parts of the code. | Subv | 2 | -6/+6 | |
2018-06-19 | Services/FS: Return the correct error code when trying to mount a nonexistent savedata. | Subv | 1 | -0/+1 | |
2018-05-02 | general: Make formatting of logged hex values more straightforward | Lioncash | 1 | -9/+9 | |
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). | |||||
2018-04-25 | file-sys: convert a StringFromFormat call into fmt::format in GetFullPath() | Lioncash | 1 | -4/+1 | |
Lessens the amount to read and gets rid of the PRIX64 macro, allowing us to use a single string for the whole path, making it easier to read. | |||||
2018-04-25 | file-sys: Move logging macros over to the new fmt-capable ones | Lioncash | 8 | -64/+58 | |
2018-04-24 | Service/FS: implement IFileSystem::RenameFile | mailwl | 5 | -7/+15 | |
2018-04-20 | disk_filesystem: Remove unused total_entries_in_directory member from Disk_Directory | Lioncash | 1 | -1/+0 | |
2018-04-20 | disk_filesystem: Remove redundant initializer in Disk_Directory's constructor | Lioncash | 1 | -1/+1 | |
2018-04-20 | disk_filesystem: Make constructors explicit where applicable | Lioncash | 1 | -2/+2 | |
2018-04-17 | file_sys: Use NGLOG | shinyquagsire23 | 1 | -5/+5 | |
2018-04-16 | file_sys: tweaks | shinyquagsire23 | 2 | -6/+7 | |
2018-04-16 | file_sys: Add HFS/PFS helper component | shinyquagsire23 | 2 | -0/+211 | |
2018-04-15 | fsp_srv: Implement DeleteFile. | bunnei | 5 | -8/+12 | |
- Used by Binding of Isaac. | |||||
2018-03-31 | fsp_srv: Implement GetSize and SetSize. | bunnei | 1 | -2/+3 | |
2018-03-23 | FS: Move the file open mode calculation to a separate function. | Subv | 1 | -7/+14 | |
2018-03-21 | FS: Implemented IFileSystem::CreateDirectory. | Subv | 5 | -7/+14 | |
2018-03-20 | FS: Implement DiskFileSystem's OpenDirectory interface. | Subv | 5 | -6/+19 | |
2018-03-20 | FS: Implement DiskFileSystem::GetEntryType for existing files/directories. | Subv | 1 | -2/+4 | |
2018-03-20 | FS: Updated the Directory Entry structure to match the Switch. | Subv | 5 | -30/+84 | |
2018-03-20 | FS: Support the file Append open mode. | Subv | 2 | -2/+23 | |
2018-03-20 | FS: Added an SDMC archive factory and registered it to the SDMC archive on startup. | Subv | 2 | -0/+71 | |
2018-03-14 | core: Move process creation out of global state. | bunnei | 1 | -1/+2 | |
2018-03-04 | FS: Use the correct error code when trying to open files that don't exist. | Subv | 2 | -26/+6 | |
2018-03-04 | FS: Make EnsureSaveData create the savedata folder when called for the first time. | Subv | 5 | -15/+30 | |
2018-03-02 | SaveData: Use the current titleid when opening the savedata archive. | Subv | 1 | -2/+3 | |
2018-03-02 | Filesystem: Added a SaveData Factory and associated Disk_FileSystem. | Subv | 7 | -14/+315 | |
2018-02-26 | file_sys: Style tweaks | shinyquagsire23 | 2 | -11/+5 | |
Asdf | |||||
2018-02-25 | file_sys: Add support for parsing NPDM files | shinyquagsire23 | 2 | -0/+274 | |
2018-01-21 | file_sys: Clang format fixes. | bunnei | 3 | -4/+4 | |
2018-01-21 | file_sys: Cleanup to better match Switch file system constructs. | bunnei | 9 | -57/+128 | |
file_sys: Add factory class for RomFS file system. | |||||
2018-01-21 | file_sys: Remove disk_archive, savedata_archive, and title_metadata. | bunnei | 6 | -829/+0 | |
2018-01-21 | archive_backend: Minor changes to match Switch IFileSystem. | bunnei | 5 | -26/+26 | |
2018-01-21 | file_sys: Repurpose 3DS IVFC code for Switch ROMFS. | bunnei | 2 | -49/+41 | |
2018-01-21 | Format: Run the new clang format on everything | James Rowe | 1 | -1/+1 | |
2018-01-17 | Update title_metadata.h | N00byKing | 1 | -0/+1 | |
2018-01-13 | core: Gut out cryptop, since it doesn't compile with C++17. | bunnei | 1 | -50/+1 | |
2017-11-01 | hle: Use Switch formatted result codes. | bunnei | 3 | -74/+24 | |
2017-10-15 | core: Refactor MakeMagic usage and remove dead code. | bunnei | 2 | -697/+0 | |
2017-10-13 | Remove lots more 3DS-specific code. | bunnei | 18 | -1935/+0 | |
2017-10-01 | file_sys, loader: add support for reading TMDs to determine app paths | shinyquagsire23 | 1 | -2/+13 | |
2017-10-01 | file_sys: add class for Title Metadata (TMD) | shinyquagsire23 | 2 | -0/+337 | |
2017-10-01 | file_sys/ncch_container: add RomFS, ExeFS override to allow for backward compatibility with existing .romfs system archive dumps | shinyquagsire23 | 2 | -69/+206 | |
2017-10-01 | file_sys/archive_ncch: use NCCHContainer instead of loading .romfs files | shinyquagsire23 | 1 | -6/+12 | |
2017-09-30 | nso: Refactor and allocate .bss section. | bunnei | 1 | -3/+6 | |
2017-09-25 | HLE/Archives: Allow multiple loaded applications to access their SelfNCCH archive independently. | Subv | 2 | -13/+39 | |
The loaders now register each loaded ROM with the SelfNCCH factory, which keeps the data around for the duration of the emulation session. When opening the SelfNCCH archive, the factory queries the current program's programid and uses that as a key to the map that contains the NCCHData structure (RomFS, Icon, Banner, etc). 3dsx files do not have a programid and will use a default of 0 for this value, thus, only 1 3dsx file with RomFS is loadable at the same time. | |||||
2017-09-25 | Loader/NCCH: Add support for loading application updates (#2927) | Max Thomas | 4 | -5/+587 | |
* loader/ncch: split NCCH parsing into its own file * loader/ncch: add support for loading update NCCHs from the SD card * loader/ncch: fix formatting * file_sys/ncch_container: Return a value for OpenFile * loader/ncch: cleanup, always instantiate overlay_ncch to base_ncch * file_sys/ncch_container: better encryption checks, allow non-app NCCHs to load properly and for the existence of NCCH structures to be checked * file_sys/ncch_container: pass filepath as a const reference | |||||
2017-08-21 | Warnings: Add UNREACHABLE macros to switches that contemplate all possible values. | Subv | 1 | -0/+2 | |
2017-07-31 | Handle invalid filenames when renaming files/directories | James | 2 | -4/+78 | |
2017-06-03 | Addressed Bunnei's review comments, and made some other tweaks: | TheKoopaKingdom | 1 | -6/+6 | |
- Deleted GetStatus() because it wasn't used anywhere outside of Core::System. - Fixed design flaw where the message bar status could be set despite the game being stopped. | |||||
2017-06-03 | Switched to the ERROR_NOT_FOUND constant from errors.h. | TheKoopaKingdom | 1 | -2/+2 | |
2017-06-03 | Moved whitelist checks from FS_User to the Archive_NCCH handler. | TheKoopaKingdom | 1 | -1/+35 | |
2017-06-03 | Made some changes from review comments: | TheKoopaKingdom | 1 | -1/+2 | |
- Made LoadKernelSystemMode return a pair consisting of a system mode and a result code (Could use review). - Deleted ErrorOpenGL error code in favor of just having ErrorVideoCore. - Made dialog messages more clear. - Compared archive ID in fs_user.cpp to ArchiveIdCode::NCCH as opposed to hex magic. - Cleaned up some other stuff. | |||||
2017-05-25 | FileSys: Move all result description to errors.h | Yuri Kunde Schlesner | 5 | -61/+96 | |
2017-03-08 | file_sys: lower log level for setting host path | wwylele | 4 | -4/+4 | |
2017-02-27 | Doxygen: Amend minor issues (#2593) | Mat M | 1 | -1/+1 | |
Corrects a few issues with regards to Doxygen documentation, for example: - Incorrect parameter referencing. - Missing @param tags. - Typos in @param tags. and a few minor other issues. | |||||
2017-02-13 | loader: use self NCCH archive | wwylele | 2 | -81/+0 | |
2017-02-13 | file_sys: add Self NCCH archive | wwylele | 3 | -0/+312 | |
2017-01-29 | core: fix savedata_archive.cpp warnings about unhandled enumeration values on OSX | Kloen | 1 | -0/+12 | |
2017-01-29 | core: fix archive_sdmc.cpp warnings about unhandled enumeration value on OSX | Kloen | 1 | -0/+12 | |
2017-01-29 | core: fix archive_extsavedata.cpp warning on OSX | Kloen | 1 | -0/+2 | |
2016-12-22 | Address clang-format issues. | bunnei | 1 | -4/+3 | |
2016-12-22 | core: Remove HLE module, consolidate code & various cleanups. | bunnei | 4 | -5/+5 | |
2016-12-15 | archive_source_sd_savedata: Add static method to get a specific save data path | MerryMage | 2 | -0/+7 | |
2016-12-07 | file_sys: Make a few single-argument constructors explicit | Lioncash | 8 | -10/+10 | |
Prevents implicit conversions. | |||||
2016-11-29 | FileSys: Implement OtherSaveData | wwylele | 3 | -0/+200 | |
2016-11-29 | FileSys: abstract SD save data archive source | wwylele | 4 | -78/+132 | |
2016-11-19 | FileSys: rename SaveDataCheck archive to NCCH archive | wwylele | 2 | -15/+15 | |
According to the observation from game and 3dbrew "Used for accessing general NCCH data" | |||||
2016-11-19 | FileSys: remove unused DiskArchive | wwylele | 2 | -179/+0 | |
All "subclasses" of DiskArchive are splitted out. This class is useless | |||||
2016-11-19 | FileSys: w->rw permission lift only happens in SDMC archive | wwylele | 4 | -2/+14 | |
2016-11-19 | FileSys: add SDMCWriteOnlyArchive | wwylele | 3 | -0/+129 | |
2016-11-19 | FileSys: add SDMCArchive | wwylele | 3 | -1/+301 | |
Now DiskArchive only serves for SDMC, then it should be just a "SDMCArchive" | |||||
2016-11-19 | FileSys: add ExtSaveDataArchive | wwylele | 1 | -1/+114 | |
ExtSaveData is more similar to SaveData, so let it be a subclass of SaveData | |||||
2016-11-19 | FileSys: add SaveDataArchive | wwylele | 5 | -4/+359 | |
The error checking of SaveDataArchive is completely different from DiskArchive, so it has to be a new class instead of a subclass of DiskArchive. | |||||
2016-11-19 | FileSys: remove Open from FileBackend | wwylele | 4 | -64/+44 | |
Same as directory, file shouldn't expose Open either. | |||||
2016-11-19 | FileSys: remove Open from DirectoryBackend | wwylele | 4 | -25/+5 | |
Open should not be an interface exposed by Directory because it is the Archive thats implement the methed to open the directory. The service API of 3DS also implies this - Open is not a function of directory service, but is of FS main service | |||||
2016-11-19 | FileSys: add PathParser | wwylele | 2 | -0/+159 | |
2016-11-01 | FileSys: make Archive interfaces return error code | wwylele | 5 | -55/+82 | |
and make the mode parameter a reference since it is a BitField union | |||||
2016-10-02 | fs: implement DeleteDirectoryRecursively | wwylele | 5 | -0/+19 | |
2016-09-21 | Use negative priorities to avoid special-casing the self-include | Yuri Kunde Schlesner | 9 | -9/+9 | |
2016-09-21 | Remove empty newlines in #include blocks. | Emmanuel Gil Peyrot | 20 | -44/+9 | |
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation. | |||||
2016-09-19 | Manually tweak source formatting and then re-run clang-format | Yuri Kunde Schlesner | 8 | -43/+30 | |
2016-09-18 | Sources: Run clang-format on everything. | Emmanuel Gil Peyrot | 20 | -136/+217 | |
2016-05-21 | FileSys/Path: Replace Memory::GetPointer with Memory::ReadBlock | MerryMage | 1 | -6/+6 | |
2016-04-05 | Common: Remove Common::make_unique, use std::make_unique | MerryMage | 8 | -19/+17 | |
2016-03-21 | archive_extsavedata: Fix member initialization order | Lioncash | 1 | -1/+2 | |
shared appears in the initializer list before mount_point | |||||
2016-03-20 | HLE/FS: Change the error code returned when an ExtSaveData archive is not found. | Subv | 4 | -29/+37 | |
This allows Fire Emblem to boot again. | |||||
2016-03-20 | HLE/FS: Corrected some style concerns. | Subv | 4 | -8/+8 | |
2016-03-20 | HLE/FS: Implemented GetFormatInfo | Subv | 13 | -14/+130 | |
Format information is currently only implemented for the ExtSaveData, SharedExtSaveData and SaveData archives, the information is stored in a file alongside the root folder of the archive. | |||||
2016-03-20 | HLE/FS: Return the proper error codes when opening files. | Subv | 6 | -25/+39 | |
2016-03-20 | HLE/FS: Return the proper error codes on file Read/Write operations. | Subv | 5 | -16/+24 | |
These operations are limited by the open flags specified while opening the file. | |||||
2016-03-20 | HLE/FS: Corrected the error codes for DeleteFile | Subv | 5 | -8/+21 | |
2016-03-20 | HLE/FS: Corrected the error codes for CreateFile | Subv | 1 | -1/+4 | |
2016-03-20 | HLE/FS: FS::CreateFile takes an u64 for the file size. | Subv | 5 | -5/+5 | |
2016-01-25 | archive_backend: Remove unnecessary const from return types | Lioncash | 2 | -8/+8 | |
This doesn't return by reference so const isn't really necessary | |||||
2016-01-16 | DiskDirectory: Initialize the directory member with valid info. | Subv | 1 | -2/+4 | |
2015-10-28 | Implement FS_User::GetFreeBytes | archshift | 5 | -0/+18 | |
2015-09-30 | ivfc_archive: Fix a printf specifier | Lioncash | 1 | -1/+1 | |
2015-09-10 | disk_archive: Remove unimplemented constructor declarations | Lioncash | 1 | -2/+0 | |
2015-08-29 | Services/FS: Correctly tell the guest app whether a file was correctly opened or not. | Subv | 1 | -1/+1 | |
Closes #1067 | |||||
2015-07-14 | Archive: Correct a few incorrect types in function signatures | Yuri Kunde Schlesner | 5 | -21/+21 | |
Buffer lengths should be size_t, and file offsets should be u64. | |||||
2015-07-14 | Loader: Remove unnecessary pointer indirection to IOFile | Yuri Kunde Schlesner | 2 | -2/+2 | |
2015-07-14 | FS: Stream RomFS from file instead of loading all of it to memory | condut | 5 | -23/+27 | |
2015-07-12 | Core: Properly configure address space when loading a binary | Yuri Kunde Schlesner | 1 | -2/+2 | |
The code now properly configures the process image to match the loaded binary segments (code, rodata, data) instead of just blindly allocating a large chunk of dummy memory. | |||||
2015-06-28 | Core: Cleanup file_sys includes. | Emmanuel Gil Peyrot | 17 | -30/+52 | |
2015-06-28 | CitraQt: Cleanup includes. | Emmanuel Gil Peyrot | 1 | -0/+1 | |
2015-06-28 | Common: Cleanup memory and misc includes. | Emmanuel Gil Peyrot | 1 | -0/+2 | |
2015-06-28 | Common: Fix FileUtil includes, and everything relying on those. | Emmanuel Gil Peyrot | 4 | -0/+4 | |
2015-06-02 | ExtSavedata: Save the icon passed to CreateExtSaveData to the correct folder. | Subv | 1 | -3/+6 | |
Organize the ExtSaveData folders as they are stored in the console. | |||||
2015-05-29 | Remove every trailing whitespace from the project (but externals). | Emmanuel Gil Peyrot | 3 | -5/+5 | |
2015-05-15 | Memmap: Re-organize memory function in two files | Yuri Kunde Schlesner | 1 | -1/+1 | |
memory.cpp/h contains definitions related to acessing memory and configuring the address space mem_map.cpp/h contains higher-level definitions related to configuring the address space accoording to the kernel and allocating memory. | |||||
2015-05-09 | Kernel: Remove g_program_id | Yuri Kunde Schlesner | 1 | -2/+3 | |
This has been obsoleted by the field in Process. | |||||
2015-05-07 | Common: Remove common.h | Yuri Kunde Schlesner | 8 | -1/+7 | |
2015-05-07 | Clean-up includes | Yuri Kunde Schlesner | 2 | -4/+2 | |
2015-05-07 | FileSys: De-inline Path members | Yuri Kunde Schlesner | 2 | -125/+136 | |
2015-05-07 | FileSys: Clean-up includes, de-inline destructors | Yuri Kunde Schlesner | 3 | -7/+14 | |
2015-04-14 | Headers: Add some forgotten overrides, thanks clang! | Emmanuel Gil Peyrot | 1 | -1/+1 | |
2015-03-14 | Services/FS: Implemented DeleteExtSaveData, CreateSystemSaveData and DeleteSystemSaveData | Subv | 4 | -2/+76 | |
Also fixed a bug with CreateExtSaveData that made it unable to create ExtSaveData archives in the SDMC directory. | |||||
2015-02-26 | Archives: Properly implemented the SystemSaveData archive. | Subv | 2 | -19/+28 | |
Ported to the new factory pattern we have for archives. | |||||
2015-02-10 | FS: Allow multiple instances of the same archive type to be open at once | Yuri Kunde Schlesner | 15 | -129/+163 | |
2015-01-24 | Services: Stubbed more services. | Subv | 2 | -2/+19 | |
Implemented FSUser::CreateExtSaveData | |||||
2015-01-06 | Archives/Exdata: Don't set concrete_mount_point in the ctor | Subv | 1 | -1/+1 | |
2015-01-06 | Archives: Addressed some comments | Subv | 4 | -13/+13 | |
2015-01-05 | SaveDataCheck: Fixed a typo | Subv | 1 | -1/+1 | |
2015-01-04 | Archives: Make SYSTEM_ID and SDCARD_ID strings | Subv | 4 | -5/+7 | |
2015-01-04 | Archives: Changed the way paths are built for the archives. | Subv | 6 | -12/+44 | |
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 | |||||
2015-01-04 | SaveDataCheck: Move the files to nand/title | Subv | 1 | -1/+2 | |
under /nand/title/high/low/content/00000000.app.romfs | |||||
2015-01-03 | FileSys: Fix crash bug in DiskFile exposed by #400 | Yuri Kunde Schlesner | 1 | -4/+0 | |
2015-01-03 | FileSys: Fix a few memory leaks | Yuri Kunde Schlesner | 2 | -6/+7 | |
2015-01-03 | Archives: Change the folder layout of some archives. | Subv | 1 | -2/+1 | |
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 | |||||
2015-01-03 | IVFCArchive: Use a critical log to notify of invalid operations. | Subv | 1 | -9/+9 | |
2015-01-03 | SaveDataCheck: Remove unneeded constructor from a class | Subv | 1 | -2/+0 | |
2015-01-03 | Archives: Added some documentation to IVFCArchive | Subv | 1 | -0/+5 | |
2015-01-03 | Archives: Reduced duplicate code in RomFS and SaveCheck. | Subv | 11 | -333/+229 | |
Fixed a few warnings and cleaned up the code | |||||
2015-01-03 | SaveDataCheck: Preliminary work in this archive. | Subv | 2 | -4/+28 | |
This allows Steel Diver to boot further, some files are needed. This is still not ready and needs a big cleanup, this will possibly be delayed until the way we handle archives is fixed (with factory classes instead of ahead-of-time creation of archives) | |||||
2014-12-30 | Archives: Implemented ExtSaveData and SharedExtSaveData | Subv | 8 | -15/+168 | |
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. | |||||
2014-12-24 | FileSys: Clean up according to the coding style, and remove redundant namespaced names. | Emmanuel Gil Peyrot | 9 | -169/+97 | |
2014-12-21 | CFG: Create a new subfolder cfg inside service to handle cfg | Subv | 1 | -0/+1 | |
Moved most of the shared CFG code there, implemented a few CFG:I functions | |||||
2014-12-21 | Style: Addressed some comments | Subv | 1 | -2/+7 | |
2014-12-21 | CFG: Refactored how the config file works. | Subv | 1 | -1/+1 | |
It is now kept in memory as per 3dbrew, all updates happen on memory, then they can be saved using UpdateConfigNANDSavegame. | |||||
2014-12-21 | CFG: Implemented the GetConfigInfoBlk2 function. | Subv | 3 | -3/+9 | |
Added a "config" file to the CFG process service (CFG:U), and added a few default blocks to it. Implemented GetSystemModel and GetModelNintendo2DS | |||||
2014-12-21 | Added CreateFile to the FS_USER service | archshift | 5 | -0/+44 | |
Tested with hwtests. | |||||
2014-12-21 | License change | purpasmart96 | 17 | -17/+17 | |
2014-12-20 | Clean up some warnings | Chin | 1 | -1/+10 | |
2014-12-20 | Common: Add a clone of std::make_unique | Yuri Kunde Schlesner | 1 | -2/+3 | |
2014-12-18 | SystemSaveData: Added a TODO to move it to the NAND. | Subv | 1 | -1/+3 | |
Maybe sometime when we actually implement that | |||||
2014-12-18 | SaveData: Implemented the SystemSaveData archive. | Subv | 3 | -2/+65 | |
It will be stored in the /syssavedata folder. This archive is user by various Services and possibly games via the FS:U service. | |||||
2014-12-18 | Filesystem/Archives: Implemented the SaveData archive | Subv | 12 | -473/+344 | |
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 | |||||
2014-12-16 | FS.Archive: Clean up treatment of archives and their handles | Yuri Kunde Schlesner | 7 | -190/+21 | |
- Refactor FS::Archive internals to make Archive creation and lifetime management clearer. - Remove the "Archive as a File" hack. - Implement 64-bit Archive handles. | |||||
2014-12-16 | Service.FS: Rename FileSys::File to FileBackend | Yuri Kunde Schlesner | 8 | -15/+15 | |
2014-12-16 | Service.FS: Rename FileSys::Directory to DirectoryBackend | Yuri Kunde Schlesner | 8 | -15/+15 | |
2014-12-16 | Service.FS: Rename FileSys::Archive to ArchiveBackend | Yuri Kunde Schlesner | 3 | -6/+6 | |
2014-12-16 | Service.FS: Do archive registration using IdCode instead of name | Yuri Kunde Schlesner | 3 | -25/+4 | |
2014-12-13 | Convert old logging calls to new logging macros | Yuri Kunde Schlesner | 5 | -24/+28 | |
2014-12-08 | Kernel/File: Fixed file read/write hwtests | Subv | 1 | -3/+6 | |
The 3DS allows the user to read from files opened with the Write access modifier, even if he did not specify the Read access modifier. Open the files in binary mode so that we can prevent CR/LF problems in Windows, where a line-end is replaced by these two bytes instead of just 0xA, this was causing problems with the GetSize test | |||||
2014-12-07 | Make OpenDirectory fail if the directory doesn't exist | archshift | 6 | -3/+35 | |
This is in line with what the hardware itself does. It does this by splitting the initial directory opening into Directory.Open(), which will return false if a stat fails. Then, Archive::OpenDirectory will return nullptr, and archive.cpp will return an error code . | |||||
2014-12-04 | Updated archive.cpp functions for proper error handling | archshift | 2 | -24/+0 | |
2014-11-27 | Fixed formatting and switch statement warnings | vaguilar | 2 | -1/+3 | |
2014-11-25 | Implemented RenameDirectory in FS:USER | archshift | 5 | -0/+45 | |
2014-11-25 | Implemented RenameFile in FS:USER | archshift | 5 | -0/+45 | |
2014-11-23 | Added DeleteFile and DeleteDirectory functions to FS:USER and the archives. | archshift | 5 | -0/+80 | |
2014-11-19 | Remove trailing spaces in every file but the ones imported from SkyEye, AOSP or generated | Emmanuel Gil Peyrot | 2 | -2/+2 | |
2014-11-18 | directory_sdmc: Fix a signed/unsigned mismatch comparison | Lioncash | 1 | -1/+1 | |
2014-11-18 | Remove extraneous semicolons | Lioncash | 3 | -3/+3 | |
2014-11-18 | FileSys: Updated backend code to use FileSys::Path instead of string for paths. | bunnei | 9 | -24/+24 | |
2014-11-18 | FileSys: Added DebugStr method to Path class. | bunnei | 1 | -0/+29 | |
2014-11-13 | Use std::u16string for conversion between UTF-8 and UTF-16, FS:USER functions | archshift | 1 | -0/+99 | |
2014-11-02 | Added CreateDirectory function to service/fs.cpp, and in Archive. | archshift | 5 | -0/+40 | |
2014-10-30 | Fix some warnings | Sean | 2 | -2/+2 | |
2014-10-23 | Use config files to store whether SDMC is enabled or not | archshift | 1 | -2/+8 | |
Before, it used to use whether the directory actually existed. As a result, .citra-emu/sdmc was never auto-created (something quite confusing to me until I read through the logs). | |||||
2014-10-06 | Common: Add a helper function to generate a 8.3 filename from a long one. | Emmanuel Gil Peyrot | 3 | -29/+27 | |
Core: Fix the SDMC Directory implementation to make blargSnes work. | |||||
2014-10-06 | FileSys: Add static asserts for the Directory struct, and fix its fields position. | Emmanuel Gil Peyrot | 1 | -2/+8 | |
2014-10-06 | FileSys: split the constructor into an Open method, in order to notify the opener something went wrong. | Emmanuel Gil Peyrot | 6 | -14/+54 | |
Kernel: Return an invalid handle to OpenFile when it failed to open. | |||||
2014-10-06 | FileSys/Kernel: Implement SetSize service call for File objects. | Emmanuel Gil Peyrot | 5 | -0/+41 | |
2014-10-06 | FileSys: Add forgotten docstrings. | Emmanuel Gil Peyrot | 7 | -4/+35 | |
2014-09-28 | Fix warnings in core and common | Lioncash | 1 | -1/+1 | |
2014-09-17 | Core: Add a method to obtain a Directory from an Archive. | Emmanuel Gil Peyrot | 5 | -0/+44 | |
2014-09-17 | Core: Add a Directory object, with both a stub and a passthrough implementations. | Emmanuel Gil Peyrot | 5 | -0/+259 | |
2014-09-17 | Core: Add a passthrough backend for the filesystem, exposed as SDMC. | Emmanuel Gil Peyrot | 4 | -0/+298 | |
2014-09-17 | Core: Add a new File class, obtainable from an Archive, and a stub implementation. | Emmanuel Gil Peyrot | 6 | -0/+205 | |
2014-08-23 | Added FS functions to Archive and Archive_RomFS | archshift | 3 | -8/+57 | |
2014-07-05 | Marked AppLoader_ELF, AppLoader_NCCH, and Archive_RomFS virtual functions as "override". | bunnei | 1 | -4/+4 | |
2014-07-05 | Marked AppLoader_ELF, AppLoader_NCCH, and Archive_RomFS classes as "final" | bunnei | 1 | -1/+1 | |
2014-07-05 | Loader: Updated read methods to be const | bunnei | 2 | -2/+2 | |
- Required "file" handle to be made local and explicitly opened/closed as needed | |||||
2014-07-05 | FileSys: Added preliminary support for applications reading the RomFS archive. | bunnei | 4 | -138/+150 | |
Archive: Fixed brace ugliness for neobrain :) FS: Commented out unused local variables to prevent warnings. ...But keeping them here for future use. archive_romfs: Removed unused #include. | |||||
2014-06-27 | Core: Removed unused directory_file_system and meta_file_system modules. | bunnei | 4 | -1453/+0 | |
Core: Updated CMakeLists.txt to remove directory_file_system and meta_file_system modules. | |||||
2014-04-23 | fixes to build on linux | bunnei | 2 | -22/+22 | |
2014-04-09 | fixed project includes to use new directory structure | bunnei | 5 | -20/+15 | |
2014-04-09 | got rid of 'src' folders in each sub-project | bunnei | 5 | -0/+1596 | |