aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/fs/archive.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Remove lots more 3DS-specific code.bunnei2017-10-121-605/+0
|
* Fixed type conversion ambiguityHuw Pascoe2017-09-301-1/+1
|
* HLE/Archives: Allow multiple loaded applications to access their SelfNCCH ↵Subv2017-09-251-1/+17
| | | | | | | | | | 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.
* ResultVal: Remove MoveFrom()Yuri Kunde Schlesner2017-06-181-2/+2
| | | | | Replace it with std::move(result_val).Unwrap(), or Foo().Unwrap() in case you already have an rvalue.
* Service: Remove unnecessary includes from service.hYuri Kunde Schlesner2017-06-061-0/+3
| | | | | This has a huge fallout in terms of needing to fix other files because all service implementations included that file.
* Kernel: Add a dedicated SetHleHandler method to ServerPort/ServerSessionYuri Kunde Schlesner2017-06-061-4/+7
| | | | | | This allows attaching a HLE handle to a ServerPort at any point after it is created, allowing port/session creation to be generic between HLE and regular services.
* HLE: Move SessionRequestHandler from Service:: to Kernel::Yuri Kunde Schlesner2017-06-051-0/+1
| | | | | Most of the code that works with this is or will be in the kernel, so it's a more appropriate place for it to be.
* Addressed Bunnei's review comments, and made some other tweaks:TheKoopaKingdom2017-06-021-1/+2
| | | | | - 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.
* Switched to the ERROR_NOT_FOUND constant from errors.h.TheKoopaKingdom2017-06-021-2/+1
|
* Made some changes from review comments:TheKoopaKingdom2017-06-021-5/+3
| | | | | | | | - 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.
* FS: Remove unused result definitionYuri Kunde Schlesner2017-05-241-5/+0
|
* FileSys: Move all result description to errors.hYuri Kunde Schlesner2017-05-241-16/+12
|
* core: Remove HLE module, consolidate code & various cleanups.bunnei2016-12-211-4/+1
|
* FS: fix debug build from #2249wwylele2016-12-161-11/+9
|
* Merge pull request #2249 from Subv/sessions_v3Yuri Kunde Schlesner2016-12-141-19/+21
|\ | | | | Kernel/IPC: Use Ports and Sessions as the fundamental building block of Inter Process Communication.
| * Fixed the codestyle to match our clang-format rules.Subv2016-12-141-4/+6
| |
| * Moved the HLE command buffer translation task to ServerSession instead of ↵Subv2016-12-091-2/+2
| | | | | | | | the HLE handler superclass.
| * Added a framework for partially handling Session disconnections.Subv2016-12-081-0/+1
| | | | | | | | | | | | Further implementation will happen in a future commit. Fixes a regression.
| * Split SessionRequestHandler::HandleSyncRequest into HandleSyncRequest, ↵Subv2016-12-051-8/+6
| | | | | | | | | | | | TranslateRequest and HandleSyncRequestImpl. HandleSyncRequest now takes care of calling the command buffer translate function before actually invoking the command handler for HLE services.
| * Fixed the rebase mistakes.Subv2016-11-301-4/+4
| |
| * A bit of a redesign.Subv2016-11-301-17/+18
| | | | | | | | | | | | | | 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 ↵Subv2016-11-301-6/+6
| | | | | | | | | | | | | | | | | | Inter Process Communication. 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.
* | FileSys: Implement OtherSaveDatawwylele2016-11-291-0/+9
| |
* | FileSys: abstract SD save data archive sourcewwylele2016-11-291-1/+2
|/
* FileSys: rename SaveDataCheck archive to NCCH archivewwylele2016-11-191-5/+4
| | | | According to the observation from game and 3dbrew "Used for accessing general NCCH data"
* FileSys: add SDMCWriteOnlyArchivewwylele2016-11-191-0/+8
|
* FileSys: make Archive interfaces return error codewwylele2016-11-011-32/+9
| | | | and make the mode parameter a reference since it is a BitField union
* fs: implement DeleteDirectoryRecursivelywwylele2016-10-021-0/+12
|
* Use negative priorities to avoid special-casing the self-includeYuri Kunde Schlesner2016-09-211-1/+1
|
* Remove empty newlines in #include blocks.Emmanuel Gil Peyrot2016-09-211-4/+1
| | | | | | | 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-formatYuri Kunde Schlesner2016-09-181-8/+4
|
* Sources: Run clang-format on everything.Emmanuel Gil Peyrot2016-09-181-186/+203
|
* Merge pull request #1894 from wwylele/set-config-blockYuri Kunde Schlesner2016-07-091-8/+16
|\ | | | | Implement config savegame editing & clean up
| * Service::CFG/FS: add and refactor out utilities for front-endwwylele2016-07-031-8/+16
| |
* | Fix the errorcode of archive handleJamePeng2016-07-051-10/+14
|/
* Memory: Handle RasterizerCachedMemory and RasterizerCachedSpecial page types ↵Subv2016-05-281-1/+0
| | | | in the memory block manipulation functions.
* FS/Archive: Remove use of Memory::GetPointerMerryMage2016-05-281-7/+14
|
* HWRasterizer: Texture forwardingtfarley2016-04-211-0/+1
|
* Common: Remove Common::make_unique, use std::make_uniqueMerryMage2016-04-051-7/+6
|
* HLE/FS: Change the error code returned when an ExtSaveData archive is not found.Subv2016-03-201-4/+8
| | | | This allows Fire Emblem to boot again.
* HLE/FS: Corrected some style concerns.Subv2016-03-201-4/+1
|
* HLE/FS: Implemented GetFormatInfoSubv2016-03-201-26/+22
| | | | 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 ↵Subv2016-03-201-1/+1
| | | | exist.
* HLE/FS: Return the proper error codes when opening files.Subv2016-03-201-3/+4
|
* HLE/FS: Fixed the OpenDirectory error codeSubv2016-03-201-1/+1
|
* HLE/FS: Return the proper error codes on file Read/Write operations.Subv2016-03-201-2/+15
| | | | These operations are limited by the open flags specified while opening the file.
* HLE/FS: Corrected the error codes for DeleteFileSubv2016-03-201-4/+1
|
* HLE/FS: FS::CreateFile takes an u64 for the file size.Subv2016-03-201-1/+1
|
* Implement FS_User::GetFreeBytesarchshift2015-10-271-0/+7
|
* Archive: Correct a few incorrect types in function signaturesYuri Kunde Schlesner2015-07-131-1/+1
| | | | Buffer lengths should be size_t, and file offsets should be u64.