Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | FileSys: Move all result description to errors.h | Yuri Kunde Schlesner | 2017-05-25 | 2 | -19/+14 |
| | |||||
* | loader: use self NCCH archive | wwylele | 2017-02-13 | 1 | -1/+1 |
| | |||||
* | IPC helpers example | Lectem | 2016-12-26 | 1 | -12/+15 |
| | |||||
* | Address clang-format issues. | bunnei | 2016-12-22 | 1 | -2/+2 |
| | |||||
* | core: Remove HLE module, consolidate code & various cleanups. | bunnei | 2016-12-22 | 2 | -6/+3 |
| | |||||
* | FS: fix debug build from #2249 | wwylele | 2016-12-15 | 1 | -11/+9 |
| | |||||
* | Merge pull request #2249 from Subv/sessions_v3 | Yuri Kunde Schlesner | 2016-12-15 | 3 | -40/+65 |
|\ | | | | | Kernel/IPC: Use Ports and Sessions as the fundamental building block of Inter Process Communication. | ||||
| * | Fixed the codestyle to match our clang-format rules. | Subv | 2016-12-14 | 3 | -13/+24 |
| | | |||||
| * | Moved the HLE command buffer translation task to ServerSession instead of the HLE handler superclass. | Subv | 2016-12-09 | 2 | -4/+4 |
| | | |||||
| * | Added a framework for partially handling Session disconnections. | Subv | 2016-12-08 | 2 | -0/+4 |
| | | | | | | | | | | | | Further implementation will happen in a future commit. Fixes a regression. | ||||
| * | Use std::move where appropriate. | Subv | 2016-12-08 | 1 | -2/+2 |
| | | |||||
| * | Split SessionRequestHandler::HandleSyncRequest into HandleSyncRequest, TranslateRequest and HandleSyncRequestImpl. | Subv | 2016-12-05 | 2 | -12/+12 |
| | | | | | | | | HandleSyncRequest now takes care of calling the command buffer translate function before actually invoking the command handler for HLE services. | ||||
| * | Fixed the rebase mistakes. | Subv | 2016-12-01 | 1 | -4/+4 |
| | | |||||
| * | A bit of a redesign. | Subv | 2016-12-01 | 3 | -33/+40 |
| | | | | | | | | | | | | | | Sessions and Ports are now detached from each other. HLE services are handled by means of a SessionRequestHandler class, Interface now inherits from this class. The File and Directory classes are no longer kernel objects, but SessionRequestHandlers instead, bound to a ServerSession when requested. File::OpenLinkFile now creates a new session pair and binds the File instance to it. | ||||
| * | Kernel/IPC: Use Ports and Sessions as the fundamental building block of Inter Process Communication. | Subv | 2016-12-01 | 3 | -15/+18 |
| | | | | | | | | | | | | | | All handles obtained via srv::GetServiceHandle or svcConnectToPort are references to ClientSessions. Service modules will wait on the counterpart of those ClientSessions (Called ServerSessions) using svcReplyAndReceive or svcWaitSynchronization[1|N], and will be awoken when a SyncRequest is performed. HLE Interfaces are now ClientPorts which override the HandleSyncRequest virtual member function to perform command handling immediately. | ||||
* | | fs_user: Update function table | Lioncash | 2016-12-08 | 1 | -0/+2 |
| | | | | | | | | Updated based off information from 3dbrew. | ||||
* | | Merge pull request #2232 from wwylele/other-save | bunnei | 2016-12-07 | 2 | -2/+14 |
|\ \ | |/ |/| | FS: implement archives for other game save data | ||||
| * | FileSys: Implement OtherSaveData | wwylele | 2016-11-29 | 2 | -0/+11 |
| | | |||||
| * | FS: add missing MediaType | wwylele | 2016-11-29 | 1 | -1/+1 |
| | | |||||
| * | FileSys: abstract SD save data archive source | wwylele | 2016-11-29 | 1 | -1/+2 |
| | | |||||
* | | Set client SDK version to Service APIs | mailwl | 2016-11-30 | 1 | -10/+14 |
|/ | |||||
* | FileSys: rename SaveDataCheck archive to NCCH archive | wwylele | 2016-11-19 | 2 | -6/+5 |
| | | | | According to the observation from game and 3dbrew "Used for accessing general NCCH data" | ||||
* | FileSys: add SDMCWriteOnlyArchive | wwylele | 2016-11-19 | 1 | -0/+8 |
| | |||||
* | FileSys: make Archive interfaces return error code | wwylele | 2016-11-01 | 1 | -32/+9 |
| | | | | and make the mode parameter a reference since it is a BitField union | ||||
* | fs: clean up log format | wwylele | 2016-10-02 | 1 | -22/+24 |
| | |||||
* | fs: implement DeleteDirectoryRecursively | wwylele | 2016-10-02 | 3 | -1/+51 |
| | |||||
* | Use negative priorities to avoid special-casing the self-include | Yuri Kunde Schlesner | 2016-09-21 | 2 | -2/+2 |
| | |||||
* | Remove empty newlines in #include blocks. | Emmanuel Gil Peyrot | 2016-09-21 | 3 | -8/+2 |
| | | | | | | | This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation. | ||||
* | Manually tweak source formatting and then re-run clang-format | Yuri Kunde Schlesner | 2016-09-19 | 2 | -9/+6 |
| | |||||
* | Sources: Run clang-format on everything. | Emmanuel Gil Peyrot | 2016-09-18 | 3 | -393/+447 |
| | |||||
* | Merge pull request #1894 from wwylele/set-config-block | Yuri Kunde Schlesner | 2016-07-10 | 2 | -8/+22 |
|\ | | | | | Implement config savegame editing & clean up | ||||
| * | Service::CFG/FS: add and refactor out utilities for front-end | wwylele | 2016-07-03 | 2 | -8/+22 |
| | | |||||
* | | Merge pull request #1940 from JamePeng/fix-archive-error-code | bunnei | 2016-07-07 | 1 | -10/+14 |
|\ \ | | | | | | | Fix the errorcode of archive handle | ||||
| * | | Fix the errorcode of archive handle | JamePeng | 2016-07-04 | 1 | -10/+14 |
| |/ | |||||
* / | HLE/FS: Document some command parameters and implemented command 0x08560240 (CreateLegacySystemSaveData) | Subv | 2016-07-03 | 1 | -11/+42 |
|/ | |||||
* | Memory: Handle RasterizerCachedMemory and RasterizerCachedSpecial page types in the memory block manipulation functions. | Subv | 2016-05-28 | 1 | -1/+0 |
| | |||||
* | FS/Archive: Remove use of Memory::GetPointer | MerryMage | 2016-05-28 | 1 | -7/+14 |
| | |||||
* | fs: Fix what appears to be a typo (filename_size / file_size) | Sam Spilsbury | 2016-04-23 | 1 | -1/+1 |
| | |||||
* | HWRasterizer: Texture forwarding | tfarley | 2016-04-21 | 1 | -0/+1 |
| | |||||
* | Common: Remove Common::make_unique, use std::make_unique | MerryMage | 2016-04-05 | 1 | -7/+6 |
| | |||||
* | HLE/FS: Change the error code returned when an ExtSaveData archive is not found. | Subv | 2016-03-20 | 1 | -4/+8 |
| | | | | This allows Fire Emblem to boot again. | ||||
* | HLE/FS: Corrected some style concerns. | Subv | 2016-03-20 | 3 | -6/+3 |
| | |||||
* | HLE/FS: Implemented GetFormatInfo | Subv | 2016-03-20 | 3 | -46/+124 |
| | | | | 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. | ||||
* | HLE/FS: Don't return an error when deleting the ExtSaveData if it does not exist. | Subv | 2016-03-20 | 1 | -1/+1 |
| | |||||
* | HLE/FS: Return the proper error codes when opening files. | Subv | 2016-03-20 | 1 | -3/+4 |
| | |||||
* | HLE/FS: Fixed the OpenDirectory error code | Subv | 2016-03-20 | 1 | -1/+1 |
| | |||||
* | HLE/FS: Return the proper error codes on file Read/Write operations. | Subv | 2016-03-20 | 1 | -2/+15 |
| | | | | These operations are limited by the open flags specified while opening the file. | ||||
* | HLE/FS: Corrected the error codes for DeleteFile | Subv | 2016-03-20 | 1 | -4/+1 |
| | |||||
* | HLE/FS: FS::CreateFile takes an u64 for the file size. | Subv | 2016-03-20 | 3 | -5/+5 |
| | |||||
* | Fix header | pippo2931 | 2016-03-12 | 1 | -1/+1 |
| | |||||
* | GetArchiveResource stub | pippo2931 | 2016-03-12 | 1 | -1/+25 |
| | |||||
* | services: Update some function tables | Lioncash | 2015-12-30 | 1 | -89/+107 |
| | |||||
* | Implement FS_User::GetFreeBytes | archshift | 2015-10-28 | 3 | -1/+42 |
| | |||||
* | General: Fix up doxygen comments | Lioncash | 2015-09-10 | 1 | -1/+1 |
| | |||||
* | Services/Logging: Log more useful information when some operations fail. | Subv | 2015-07-21 | 1 | -4/+8 |
| | | | | Namely OpenFileDirectly, OpenDirectory and OpenArchive | ||||
* | Archive: Correct a few incorrect types in function signatures | Yuri Kunde Schlesner | 2015-07-14 | 1 | -1/+1 |
| | | | | Buffer lengths should be size_t, and file offsets should be u64. | ||||
* | Core: Cleanup file_sys includes. | Emmanuel Gil Peyrot | 2015-06-28 | 2 | -7/+16 |
| | |||||
* | ExtSavedata: Save the icon passed to CreateExtSaveData to the correct folder. | Subv | 2015-06-02 | 3 | -11/+32 |
| | | | | Organize the ExtSaveData folders as they are stored in the console. | ||||
* | Remove every trailing whitespace from the project (but externals). | Emmanuel Gil Peyrot | 2015-05-29 | 2 | -6/+6 |
| | |||||
* | APT/FS: Remove asserts that were causing false positives | purpasmart96 | 2015-05-16 | 1 | -3/+5 |
| | |||||
* | Common: Remove common.h | Yuri Kunde Schlesner | 2015-05-07 | 2 | -1/+5 |
| | |||||
* | FileSys: Clean-up includes, de-inline destructors | Yuri Kunde Schlesner | 2015-05-07 | 2 | -10/+16 |
| | |||||
* | Services: Stubs and minor changes | purpasmart96 | 2015-04-03 | 1 | -8/+72 |
| | |||||
* | Service/FS: Document and log some unknown values. | Subv | 2015-03-19 | 1 | -1/+26 |
| | | | | In CreateExtSaveData, DeleteExtSaveData and CreateSystemSaveData | ||||
* | Services/FS: Implemented DeleteExtSaveData, CreateSystemSaveData and DeleteSystemSaveData | Subv | 2015-03-14 | 3 | -24/+164 |
| | | | | Also fixed a bug with CreateExtSaveData that made it unable to create ExtSaveData archives in the SDMC directory. | ||||
* | Services: Moved the PTM and APT services to their own folder | Subv | 2015-03-04 | 3 | -7/+8 |
| | | | | | | This coincidentally fixes an issue about the PTM service failing to create its SharedExtSaveData archive due to the FS service not being initialized by the time the creating code runs. Ideally I'd like to move each process to its own folder, and have a single file per process that registers the service classes, which would be in their own files inside that folder. Then each service class would just call functions from the process to complete the commands. | ||||
* | Services/FS: Stubbed CardSlotIsInserted to always return false | Subv | 2015-03-01 | 1 | -1/+25 |
| | | | | We won't be emulating this for the foreseeable future and it is needed for Home Menu to boot further | ||||
* | Archives: Properly implemented the SystemSaveData archive. | Subv | 2015-02-26 | 1 | -0/+4 |
| | | | | Ported to the new factory pattern we have for archives. | ||||
* | Build: Fixed some warnings | Subv | 2015-02-12 | 1 | -4/+4 |
| | |||||
* | Asserts: break/crash program, fit to style guide; log.h->assert.h | archshift | 2015-02-11 | 1 | -1/+1 |
| | | | | | | | Involves making asserts use printf instead of the log functions (log functions are asynchronous and, as such, the log won't be printed in time) As such, the log type argument was removed (printf obviously can't use it, and it's made obsolete by the file and line printing) Also removed some GEKKO cruft. | ||||
* | Archives: Made the Format function more generic. | Subv | 2015-02-10 | 3 | -9/+10 |
| | |||||
* | Archives: Expose the File and Directory classes to HLE | Subv | 2015-02-10 | 3 | -58/+62 |
| | |||||
* | FS: Allow multiple instances of the same archive type to be open at once | Yuri Kunde Schlesner | 2015-02-10 | 2 | -27/+28 |
| | |||||
* | FS: Get rid of completely useless Archive class | Yuri Kunde Schlesner | 2015-02-10 | 1 | -36/+26 |
| | |||||
* | FS: Remove use of GetHandle | Yuri Kunde Schlesner | 2015-02-02 | 1 | -1/+1 |
| | |||||
* | Service: Clean-up Interface | Yuri Kunde Schlesner | 2015-02-02 | 1 | -1/+1 |
| | |||||
* | Filesys: Move creation of Handles for File/Directory to service handlers | Yuri Kunde Schlesner | 2015-02-02 | 3 | -32/+33 |
| | |||||
* | archive: Fix initializer list order for the File class. | Lioncash | 2015-01-30 | 1 | -1/+1 |
| | |||||
* | Remove result.h InvalidHandle | Yuri Kunde Schlesner | 2015-01-30 | 1 | -9/+14 |
| | | | | | It was only being used in two places, where it was replaced by a local constant. | ||||
* | Services: Stubbed more services. | Subv | 2015-01-24 | 3 | -0/+41 |
| | | | | Implemented FSUser::CreateExtSaveData | ||||
* | core: Fix a few docstrings | Lioncash | 2015-01-20 | 1 | -1/+1 |
| | |||||
* | Added Archive ID to fs:USER debug logs involving opening the archive. | archshift | 2015-01-10 | 1 | -3/+3 |
| | |||||
* | Logging: Log all called service functions (under trace). Compile out all trace logs under release for performance. | archshift | 2015-01-10 | 1 | -4/+0 |
| | |||||
* | Archives: Changed the unimplemented archives comment. | Subv | 2015-01-06 | 1 | -1/+1 |
| | | | | It now refers to me as the PoC | ||||
* | Archives: Addressed some comments | Subv | 2015-01-06 | 1 | -2/+2 |
| | |||||
* | Archives: Make SYSTEM_ID and SDCARD_ID strings | Subv | 2015-01-04 | 2 | -4/+4 |
| | |||||
* | Archives: Changed the way paths are built for the archives. | Subv | 2015-01-04 | 2 | -10/+15 |
| | | | | 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 | ||||
* | Archives: Change the folder layout of some archives. | Subv | 2015-01-03 | 1 | -1/+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 | ||||
* | Archives: Reduced duplicate code in RomFS and SaveCheck. | Subv | 2015-01-03 | 2 | -4/+5 |
| | | | | Fixed a few warnings and cleaned up the code | ||||
* | SaveDataCheck: Preliminary work in this archive. | Subv | 2015-01-03 | 2 | -3/+35 |
| | | | | | | 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) | ||||
* | archive: Fix initializer list order | Lioncash | 2015-01-03 | 1 | -3/+3 |
| | |||||
* | Archives: Implemented ExtSaveData and SharedExtSaveData | Subv | 2014-12-30 | 3 | -43/+36 |
| | | | | | | | | 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. | ||||
* | Kernel: New handle manager | Yuri Kunde Schlesner | 2014-12-28 | 1 | -4/+6 |
| | | | | | | | | | | | This handle manager more closely mirrors the behaviour of the CTR-OS one. In addition object ref-counts and support for DuplicateHandle have been added. Note that support for DuplicateHandle is still experimental, since parts of the kernel still use Handles internally, which will likely cause troubles if two different handles to the same object are used to e.g. wait on a synchronization primitive. | ||||
* | Rename ObjectPool to HandleTable | Yuri Kunde Schlesner | 2014-12-28 | 1 | -4/+4 |
| | |||||
* | Merge pull request #330 from purpasmart96/new_srv | bunnei | 2014-12-26 | 2 | -10/+0 |
|\ | | | | | More services & small clean ups | ||||
| * | More services & small clean ups | purpasmart96 | 2014-12-26 | 2 | -10/+0 |
| | | |||||
* | | Stubbed IsSdmcWriteable to always return writeable. | archshift | 2014-12-24 | 1 | -1/+18 |
|/ | |||||
* | CFG: Implemented the GetConfigInfoBlk2 function. | Subv | 2014-12-21 | 1 | -9/+0 |
| | | | | | | Added a "config" file to the CFG process service (CFG:U), and added a few default blocks to it. Implemented GetSystemModel and GetModelNintendo2DS | ||||
* | Merge pull request #291 from purpasmart96/license | bunnei | 2014-12-21 | 4 | -4/+4 |
|\ | | | | | License change | ||||
| * | License change | purpasmart96 | 2014-12-21 | 4 | -4/+4 |
| | | |||||
* | | Added CreateFile to the FS_USER service | archshift | 2014-12-21 | 3 | -1/+47 |
| | | | | | | | | Tested with hwtests. | ||||
* | | Common: Add a clone of std::make_unique | Yuri Kunde Schlesner | 2014-12-20 | 1 | -6/+7 |
| | | |||||
* | | Merge pull request #306 from Subv/even_more_savedata | bunnei | 2014-12-20 | 1 | -2/+31 |
|\ \ | |/ |/| | SaveData: Added some documentation to FormatSaveData | ||||
| * | FS_U: Added the command to the docs of SaveData functions | Subv | 2014-12-20 | 1 | -0/+2 |
| | | |||||
| * | SaveData: Added some documentation to FormatSaveData | Subv | 2014-12-18 | 1 | -2/+29 |
| | | | | | | | | | | We still don't know what the other parameters do, but they appear to be very similar to those of FormatThisUserSaveData. Most likely FormatThisUserSaveData is just an alias for FormatSaveData with LowPathType Empty | ||||
* | | SystemSaveData: Fixed a typo that was segfaulting | Subv | 2014-12-19 | 1 | -1/+1 |
| | | |||||
* | | SaveData: Implemented the SystemSaveData archive. | Subv | 2014-12-18 | 1 | -0/+9 |
|/ | | | | It will be stored in the /syssavedata folder. This archive is user by various Services and possibly games via the FS:U service. | ||||
* | Filesystem/Archives: Implemented the SaveData archive | Subv | 2014-12-18 | 3 | -13/+86 |
| | | | | | | | | | | 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 | ||||
* | Work around libstdc++'s lack of support for std::hash on enums | Yuri Kunde Schlesner | 2014-12-16 | 1 | -0/+15 |
| | |||||
* | FS.Archive: Clean up treatment of archives and their handles | Yuri Kunde Schlesner | 2014-12-16 | 3 | -196/+175 |
| | | | | | | | - Refactor FS::Archive internals to make Archive creation and lifetime management clearer. - Remove the "Archive as a File" hack. - Implement 64-bit Archive handles. | ||||
* | Service.FS: Rename FileSys::File to FileBackend | Yuri Kunde Schlesner | 2014-12-16 | 1 | -1/+1 |
| | |||||
* | Service.FS: Rename FileSys::Directory to DirectoryBackend | Yuri Kunde Schlesner | 2014-12-16 | 1 | -2/+2 |
| | |||||
* | Service.FS: Rename FileSys::Archive to ArchiveBackend | Yuri Kunde Schlesner | 2014-12-16 | 2 | -5/+5 |
| | |||||
* | Service.FS: Do archive registration using IdCode instead of name | Yuri Kunde Schlesner | 2014-12-16 | 3 | -16/+27 |
| | |||||
* | HLE: Rename namespaces to match move & fix initialization order | Yuri Kunde Schlesner | 2014-12-16 | 4 | -30/+32 |
| | |||||
* | HLE: Move kernel/archive.* to service/fs/ | Yuri Kunde Schlesner | 2014-12-16 | 4 | -0/+1038 |