summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/aoc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* service: move hle_ipc from kernelLiam2023-03-012-26/+26
|
* Merge pull request #9832 from liamwhite/hle-mpliamwhite2023-03-012-4/+6
|\ | | | | service: HLE multiprocess
| * service: refactor server architectureLiam2023-02-212-4/+6
| | | | | | | | Converts services to have their own processes
* | core: Update service function tables to 16.0.0+Narr the Reg2023-02-251-0/+3
|/
* general: rename CurrentProcess to ApplicationProcessLiam2023-02-141-3/+3
|
* general: Convert source file copyright comments over to SPDXMorph2022-04-232-6/+4
| | | | | This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
* Merge pull request #7279 from Morph1984/system-get-program-idMorph2021-11-051-4/+3
|\ | | | | general: Get the current process program id directly from the system
| * general: Get the current process program id directly from the systemMorph2021-11-041-4/+3
| | | | | | | | This allows us to avoid including KProcess' header file in files that only need to get the current process' program id.
| * general: Rename GetTitleID to GetProgramIDMorph2021-11-041-3/+3
| |
* | Merge pull request #7287 from Morph1984/stub-aocFernando S2021-11-052-0/+29
|\ \ | |/ |/| service: aoc: Stub more 13.x functions used by Animal Crossing
| * service: aoc: Stub NotifyUnmountAddOnContentMorph2021-11-042-1/+9
| | | | | | | | Used by Animal Crossing: New Horizons v2.0.0 DLC
| * service: aoc: Stub NotifyMountAddOnContent and NotifyMountAddOnContentMorph2021-11-042-0/+21
| | | | | | | | Used by Animal Crossing: New Horizons v2.0.0 DLC
* | core: Remove unused includesameerj2021-11-041-1/+0
|/
* service: Replace service event creation with ServiceContext::CreateEventMorph2021-10-022-14/+23
| | | | The service context helps to manage all created events and allows us to close them upon destruction.
* hle: service: aoc: Stub GetAddOnContentListChangedEventWithProcessId.bunnei2021-06-252-1/+10
| | | | - This is used by the latest update of Doom Eternal.
* general: Replace RESULT_UNKNOWN with ResultUnknownMorph2021-06-021-1/+1
| | | | Transition to PascalCase for result names.
* general: Replace RESULT_SUCCESS with ResultSuccessMorph2021-06-021-10/+10
| | | | Transition to PascalCase for result names.
* hle: kernel: Rename Process to KProcess.bunnei2021-05-061-1/+1
|
* hle: kernel: Ensure all kernel objects with KAutoObject are properly created.bunnei2021-05-061-0/+2
|
* hle: kernel: Migrate KEvent to KAutoObject.bunnei2021-05-062-13/+10
|
* common: Move settings to common from core.bunnei2021-04-151-1/+1
| | | | - Removes a dependency on core and input_common from common.
* aoc_u: Update to 12.xMorph2021-04-091-0/+2
|
* hle: kernel: Reimplement KReadableEvent and KWritableEvent.bunnei2021-02-052-10/+12
|
* hle: kernel: Rename WritableEvent to KWritableEvent.bunnei2021-02-052-4/+4
|
* hle: kernel: Rename ReadableEvent to KReadableEvent.bunnei2021-02-051-1/+1
|
* Merge pull request #5119 from Morph1984/fs-opendatastoragewithprogramindexbunnei2020-12-151-7/+5
|\ | | | | fsp_srv: Implement OpenDataStorageWithProgramIndex
| * file_sys: Consolidate common Title ID operationsMorph2020-12-081-7/+5
| |
* | IPurchaseEventManager: Implement GetPurchasedEventReadableHandleMorph2020-12-081-1/+14
| | | | | | | | | | - Used by Pokémon Café Mix - Used by DOOM: Eternal
* | IPurchaseEventManager: Stub Set(Default)DeliveryTargetMorph2020-12-081-2/+27
| | | | | | | | | | - Used by Pokémon Café Mix - Used by DOOM: Eternal
* | aoc_u: Stub Create(Permanent)EcPurchasedEventManagerMorph2020-12-082-2/+38
|/ | | | | - Used by Pokémon Café Mix - Used by DOOM: Eternal
* service: Eliminate usages of the global system instanceLioncash2020-11-272-3/+6
| | | | | Completely removes all usages of the global system instance within the services code by passing in the using system instance to the services.
* patch_manager: Remove usages of the global system instanceLioncash2020-11-181-1/+2
| | | | | | | With this, only 19 usages of the global system instance remain within the core library. We're almost there.
* ipc_helpers: Remove usage of the global system instanceLioncash2020-11-081-0/+1
| | | | | | | | | Resolves numerous deprecation warnings throughout the codebase due to inclusion of this header. Now building core should be significantly less noisy (and also relying on less global state). This also uncovered quite a few modules that were relying on indirect includes, which have also been fixed.
* aoc: Update function table (#4170)VolcaEM2020-06-271-0/+1
| | | | | * aoc: Update function table * Remove comments
* Merge pull request #3094 from lioncash/tablesbunnei2019-11-251-0/+1
|\ | | | | service: Update function tables
| * service: Update function tablesLioncash2019-11-121-0/+1
| | | | | | | | | | | | Keeps the function tables up to date. Updated based off information from Switchbrew.
* | service: Resolve sign conversion errorsLioncash2019-11-121-1/+1
|/ | | | | These are fairly trivial to resolve and most of the changes entail using RESULT_UNKNOWN over ResultCode(-1).
* kernel: events: Remove ResetType::Automatic.bunnei2019-11-031-2/+2
| | | | | | | | - This does not actually seem to exist in the real kernel - games reset these automatically. # Conflicts: # src/core/hle/service/am/applets/applets.cpp # src/core/hle/service/filesystem/fsp_srv.cpp
* RebaseDavid Marcec2019-09-221-1/+1
|
* Deglobalize System: AocDavid Marcec2019-09-222-11/+13
|
* service/aoc: Avoid allocating and discarding dataLioncash2019-05-231-8/+8
| | | | | | | | | | | | Previously, the code was accumulating data into a std::vector and then tossing all of it away if a setting was disabled. Instead, we can just check if it's disabled and do no work at all if possible. If it's enabled, then we can append to the vector and allocate. Unlikely to impact usage much, but it is slightly less sloppy with resources.
* service/aoc: Remove unnecessary includesLioncash2019-05-231-2/+0
| | | | | Removes two header dependencies related to file handling that aren't actually used within the source file.
* service/aoc: Pop all passed values where applicableLioncash2019-05-231-12/+45
| | | | | | A few of the aoc service stubs/implementations weren't fully popping all of the parameters passed to them. This ensures that all parameters are popped and, at minimum, logged out.
* core/kernel/object: Rename ResetType enum membersLioncash2019-05-181-1/+1
| | | | | | | | | | | | | Renames the members to more accurately indicate what they signify. "OneShot" and "Sticky" are kind of ambiguous identifiers for the reset types, and can be kind of misleading. Automatic and Manual communicate the kind of reset type in a clearer manner. Either the event is automatically reset, or it isn't and must be manually cleared. The "OneShot" and "Sticky" terminology is just a hold-over from Citra where the kernel had a third type of event reset type known as "Pulse". Given the Switch kernel only has two forms of event reset types, we don't need to keep the old terminology around anymore.
* service: Update service function tablesLioncash2019-04-111-0/+4
| | | | Updates function tables based off information from SwitchBrew.
* core: Port current uses of RegisteredCache to ContentProviderZach Hilman2019-03-271-2/+2
|
* aoc_u: Obey disabled add-ons list when listing DLCZach Hilman2018-12-031-0/+12
|
* Merge pull request #1835 from lioncash/cache-globalbunnei2018-12-031-2/+2
|\ | | | | filesystem: De-globalize registered_cache_union
| * filesystem: De-globalize registered_cache_unionLioncash2018-12-021-2/+2
| | | | | | | | | | | | | | | | | | 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.
* | kernel/event: Reference ReadableEvent from WritableEventZach Hilman2018-11-292-7/+4
| |
* | core: Port all current usages of Event to Readable/WritableEventZach Hilman2018-11-292-5/+14
|/
* Changed logging to be "Log before execution", Added more error logging, all services should now log on some levelDavid Marcec2018-11-261-1/+5
|
* aoc_u: Make use of previously-unused CheckAOCTitleIDMatchesBase() functionLioncash2018-10-241-3/+3
| | | | | | | | We can just call the function instead of duplicating the code here. This also prevents an unused function warning. We also don't need to take the lambda capture by reference. It's just a u64 value, so by value is fine here.
* aoc_u: Stub GetAddOnContentListChangedEventZach Hilman2018-10-202-1/+16
| | | | This event signals the game when new DLC is purchased from the eShop while the game is running. Since, for the forseeable future, yuzu will not have this ability, it seems safe to stub with a dummy event that will never fire. This is needed to boot Sonic Mania Plus (update v1.04).
* aoc: Read DLC base title ID from RegisteredCacheZach Hilman2018-10-151-2/+13
| | | Falls back to title ID + 0x1000, which is what HOS does.
* aoc: Return size in ListAddOnContentZach Hilman2018-10-141-1/+2
|
* Fixed assertion due to CountAddOnContentDavid Marcec2018-10-071-5/+5
| | | | | | Word count should be 3 since we're pushing a result code and a u32. Also fixed up compiler warnings due to casting
* aoc_u: Fix edge case with DLC that causes breaksZach Hilman2018-10-031-1/+1
| | | | In some games (Splatoon 2 and Splatoon 2 Splatfest World Premiere, notably), pass offset=0 and count=2047 into the ListAddOnContent method which should return all DLCs for the current title. The (presumably) intended behavior is to successfully return a empty array but because of a < v. <= in an if statement, a failure error code was returned causing these games to svcBreak. This fixes that if statement.
* aoc_u: Extract AccumulateAOCTitleIDs to separate functionZach Hilman2018-10-011-20/+26
|
* aoc_u: Implement GetAddOnContentBaseIdZach Hilman2018-10-012-3/+5
| | | Command #5
* aoc_u: Implement Count, List and Prepare AddOnContentZach Hilman2018-10-012-3/+78
| | | | Commands #2, #3, and #7
* hle/service: Default constructors and destructors in the cpp file where applicableLioncash2018-09-112-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a destructor isn't defaulted into a cpp file, it can cause the use of forward declarations to seemingly fail to compile for non-obvious reasons. It also allows inlining of the construction/destruction logic all over the place where a constructor or destructor is invoked, which can lead to code bloat. This isn't so much a worry here, given the services won't be created and destroyed frequently. The cause of the above mentioned non-obvious errors can be demonstrated as follows: ------- Demonstrative example, if you know how the described error happens, skip forwards ------- Assume we have the following in the header, which we'll call "thing.h": \#include <memory> // Forward declaration. For example purposes, assume the definition // of Object is in some header named "object.h" class Object; class Thing { public: // assume no constructors or destructors are specified here, // or the constructors/destructors are defined as: // // Thing() = default; // ~Thing() = default; // // ... Some interface member functions would be defined here private: std::shared_ptr<Object> obj; }; If this header is included in a cpp file, (which we'll call "main.cpp"), this will result in a compilation error, because even though no destructor is specified, the destructor will still need to be generated by the compiler because std::shared_ptr's destructor is *not* trivial (in other words, it does something other than nothing), as std::shared_ptr's destructor needs to do two things: 1. Decrement the shared reference count of the object being pointed to, and if the reference count decrements to zero, 2. Free the Object instance's memory (aka deallocate the memory it's pointing to). And so the compiler generates the code for the destructor doing this inside main.cpp. Now, keep in mind, the Object forward declaration is not a complete type. All it does is tell the compiler "a type named Object exists" and allows us to use the name in certain situations to avoid a header dependency. So the compiler needs to generate destruction code for Object, but the compiler doesn't know *how* to destruct it. A forward declaration doesn't tell the compiler anything about Object's constructor or destructor. So, the compiler will issue an error in this case because it's undefined behavior to try and deallocate (or construct) an incomplete type and std::shared_ptr and std::unique_ptr make sure this isn't the case internally. Now, if we had defaulted the destructor in "thing.cpp", where we also include "object.h", this would never be an issue, as the destructor would only have its code generated in one place, and it would be in a place where the full class definition of Object would be visible to the compiler. ---------------------- End example ---------------------------- Given these service classes are more than certainly going to change in the future, this defaults the constructors and destructors into the relevant cpp files to make the construction and destruction of all of the services consistent and unlikely to run into cases where forward declarations are indirectly causing compilation errors. It also has the plus of avoiding the need to rebuild several services if destruction logic changes, since it would only be necessary to recompile the single cpp file.
* Rename logging macro back to LOG_*James Rowe2018-07-031-2/+2
|
* aoc: Move logging macros over to new fmt-compatible onesLioncash2018-04-241-2/+2
|
* service: Use nested namespace specifiers where applicableLioncash2018-04-202-8/+4
| | | | Tidies up namespace declarations
* Updated AOC with more service names.Hexagon122018-04-101-0/+1
|
* Stub more functionsmailwl2018-02-222-1/+9
|
* Service/AOC: stub ListAddOnContent functionmailwl2018-02-202-2/+26
|
* yuzu: Update license text to be consistent across project.bunnei2018-01-132-2/+2
|
* ap, aoc_u: Minor cleanup.bunnei2017-12-292-2/+1
|
* service: Add empty interface for aoc:u.bunnei2017-12-282-0/+40