Subv
5f57a70a7d
Services/FS: Return the correct error code when trying to mount a nonexistent savedata.
8 years ago
Lioncash
7c9644646f
general: Make formatting of logged hex values more straightforward
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).
8 years ago
Lioncash
3f78a61f09
file-sys: convert a StringFromFormat call into fmt::format in GetFullPath()
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.
8 years ago
Lioncash
5aafc83cc9
file-sys: Move logging macros over to the new fmt-capable ones
8 years ago
mailwl
a0179e5ca5
Service/FS: implement IFileSystem::RenameFile
8 years ago
Lioncash
80982748c8
disk_filesystem: Remove unused total_entries_in_directory member from Disk_Directory
8 years ago
Lioncash
e61a4dd485
disk_filesystem: Remove redundant initializer in Disk_Directory's constructor
8 years ago
Lioncash
b05f8ea5b5
disk_filesystem: Make constructors explicit where applicable
8 years ago
shinyquagsire23
de580ccdd5
file_sys: Use NGLOG
8 years ago
shinyquagsire23
83aa38b239
file_sys: tweaks
8 years ago
shinyquagsire23
c03795300a
file_sys: Add HFS/PFS helper component
8 years ago
bunnei
bddad50dd4
fsp_srv: Implement DeleteFile.
- Used by Binding of Isaac.
8 years ago
bunnei
88582b84a5
fsp_srv: Implement GetSize and SetSize.
8 years ago
Subv
4c06d55a81
FS: Move the file open mode calculation to a separate function.
8 years ago
Subv
eff3f60b73
FS: Implemented IFileSystem::CreateDirectory.
8 years ago
Subv
6d90d99d12
FS: Implement DiskFileSystem's OpenDirectory interface.
8 years ago
Subv
e1d7b9fc2c
FS: Implement DiskFileSystem::GetEntryType for existing files/directories.
8 years ago
Subv
a9ba2c2000
FS: Updated the Directory Entry structure to match the Switch.
8 years ago
Subv
fc44261dd1
FS: Support the file Append open mode.
8 years ago
Subv
c4ca802b9d
FS: Added an SDMC archive factory and registered it to the SDMC archive on startup.
8 years ago
bunnei
7d6653268f
core: Move process creation out of global state.
8 years ago
Subv
84e1c0a430
FS: Use the correct error code when trying to open files that don't exist.
8 years ago
Subv
0eefe6e4d1
FS: Make EnsureSaveData create the savedata folder when called for the first time.
8 years ago
Subv
3209cff530
SaveData: Use the current titleid when opening the savedata archive.
8 years ago
Subv
d140c8ecf7
Filesystem: Added a SaveData Factory and associated Disk_FileSystem.
8 years ago
shinyquagsire23
e29710818f
file_sys: Style tweaks
Asdf
8 years ago
shinyquagsire23
2b28fd7809
file_sys: Add support for parsing NPDM files
8 years ago
bunnei
5035d18baa
file_sys: Clang format fixes.
8 years ago
bunnei
00851a5ef4
file_sys: Cleanup to better match Switch file system constructs.
file_sys: Add factory class for RomFS file system.
8 years ago
bunnei
1c06c918af
file_sys: Remove disk_archive, savedata_archive, and title_metadata.
8 years ago
bunnei
7988f02489
archive_backend: Minor changes to match Switch IFileSystem.
8 years ago
bunnei
2f71a32363
file_sys: Repurpose 3DS IVFC code for Switch ROMFS.
8 years ago
James Rowe
096be16636
Format: Run the new clang format on everything
8 years ago
N00byKing
66388f7576
Update title_metadata.h
8 years ago
bunnei
8e51c61dbc
core: Gut out cryptop, since it doesn't compile with C++17.
8 years ago
bunnei
34571f4d2e
hle: Use Switch formatted result codes.
8 years ago
bunnei
746c2a3ae7
core: Refactor MakeMagic usage and remove dead code.
8 years ago
bunnei
72b03025ac
Remove lots more 3DS-specific code.
8 years ago
shinyquagsire23
4887d18591
file_sys, loader: add support for reading TMDs to determine app paths
8 years ago
shinyquagsire23
8e10c9bb2e
file_sys: add class for Title Metadata (TMD)
8 years ago
shinyquagsire23
e21f2348e7
file_sys/ncch_container: add RomFS, ExeFS override to allow for backward compatibility with existing .romfs system archive dumps
8 years ago
shinyquagsire23
c93e5ecfe6
file_sys/archive_ncch: use NCCHContainer instead of loading .romfs files
8 years ago
bunnei
8c92435ded
nso: Refactor and allocate .bss section.
8 years ago
Subv
774e7deae8
HLE/Archives: Allow multiple loaded applications to access their SelfNCCH archive independently.
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.
8 years ago
Max Thomas
c91ccbd0ba
Loader/NCCH: Add support for loading application updates ( #2927 )
* 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
8 years ago
Subv
65f19b51c4
Warnings: Add UNREACHABLE macros to switches that contemplate all possible values.
9 years ago
James
941a722ff1
Handle invalid filenames when renaming files/directories
9 years ago
TheKoopaKingdom
f008b22e3b
Addressed Bunnei's review comments, and made some other tweaks:
- 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.
9 years ago
TheKoopaKingdom
59de38b965
Switched to the ERROR_NOT_FOUND constant from errors.h.
9 years ago
TheKoopaKingdom
cea19fd659
Moved whitelist checks from FS_User to the Archive_NCCH handler.
9 years ago