summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/aoc/aoc_u.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-02-23aoc: Rename AOC_U to IAddOnContentManagerFearlessTobi1-219/+0
2024-02-19aoc: Migrate to use cmif serializationFearlessTobi1-106/+62
2024-02-19core/aoc: Move IPurchaseEventManager to separate fileFearlessTobi1-78/+1
2024-01-31aoc: fix DLC listing (#12867)liamwhite1-1/+1
2023-09-18aoc: stub purchase info callsLiam1-2/+18
2023-03-01service: move hle_ipc from kernelLiam1-15/+15
2023-02-25core: Update service function tables to 16.0.0+Narr the Reg1-0/+3
2023-02-21service: refactor server architectureLiam1-2/+5
Converts services to have their own processes
2023-02-14general: rename CurrentProcess to ApplicationProcessLiam1-3/+3
2022-12-29hle_ipc: Rename ReadBufferSpan to ReadBufferameerj1-2/+2
2022-12-25service: Use ReadBufferSpan where it is trivial to do soameerj1-2/+2
2022-04-23general: Convert source file copyright comments over to SPDXMorph1-3/+2
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.
2021-11-04general: Get the current process program id directly from the systemMorph1-4/+3
This allows us to avoid including KProcess' header file in files that only need to get the current process' program id.
2021-11-04general: Rename GetTitleID to GetProgramIDMorph1-3/+3
2021-11-04service: aoc: Stub NotifyUnmountAddOnContentMorph1-1/+8
Used by Animal Crossing: New Horizons v2.0.0 DLC
2021-11-04service: aoc: Stub NotifyMountAddOnContent and NotifyMountAddOnContentMorph1-0/+19
Used by Animal Crossing: New Horizons v2.0.0 DLC
2021-11-04core: Remove unused includesameerj1-1/+0
2021-10-02service: Replace service event creation with ServiceContext::CreateEventMorph1-12/+19
The service context helps to manage all created events and allows us to close them upon destruction.
2021-06-25hle: service: aoc: Stub GetAddOnContentListChangedEventWithProcessId.bunnei1-1/+9
- This is used by the latest update of Doom Eternal.
2021-06-02general: Replace RESULT_UNKNOWN with ResultUnknownMorph1-1/+1
Transition to PascalCase for result names.
2021-06-02general: Replace RESULT_SUCCESS with ResultSuccessMorph1-10/+10
Transition to PascalCase for result names.
2021-05-06hle: kernel: Rename Process to KProcess.bunnei1-1/+1
2021-05-06hle: kernel: Ensure all kernel objects with KAutoObject are properly created.bunnei1-0/+2
2021-05-06hle: kernel: Migrate KEvent to KAutoObject.bunnei1-12/+8
2021-04-15common: Move settings to common from core.bunnei1-1/+1
- Removes a dependency on core and input_common from common.
2021-04-09aoc_u: Update to 12.xMorph1-0/+2
2021-02-05hle: kernel: Reimplement KReadableEvent and KWritableEvent.bunnei1-8/+10
2021-02-05hle: kernel: Rename WritableEvent to KWritableEvent.bunnei1-3/+3
2021-02-05hle: kernel: Rename ReadableEvent to KReadableEvent.bunnei1-1/+1
2020-12-08IPurchaseEventManager: Implement GetPurchasedEventReadableHandleMorph1-1/+14
- Used by Pokémon Café Mix - Used by DOOM: Eternal
2020-12-08IPurchaseEventManager: Stub Set(Default)DeliveryTargetMorph1-2/+27
- Used by Pokémon Café Mix - Used by DOOM: Eternal
2020-12-08aoc_u: Stub Create(Permanent)EcPurchasedEventManagerMorph1-2/+36
- Used by Pokémon Café Mix - Used by DOOM: Eternal
2020-12-08file_sys: Consolidate common Title ID operationsMorph1-7/+5
2020-11-27service: Eliminate usages of the global system instanceLioncash1-2/+2
Completely removes all usages of the global system instance within the services code by passing in the using system instance to the services.
2020-11-18patch_manager: Remove usages of the global system instanceLioncash1-1/+2
With this, only 19 usages of the global system instance remain within the core library. We're almost there.
2020-11-08ipc_helpers: Remove usage of the global system instanceLioncash1-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.
2020-06-27aoc: Update function table (#4170)VolcaEM1-0/+1
* aoc: Update function table * Remove comments
2019-11-12service: Update function tablesLioncash1-0/+1
Keeps the function tables up to date. Updated based off information from Switchbrew.
2019-11-12service: Resolve sign conversion errorsLioncash1-1/+1
These are fairly trivial to resolve and most of the changes entail using RESULT_UNKNOWN over ResultCode(-1).
2019-11-03kernel: events: Remove ResetType::Automatic.bunnei1-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
2019-09-22Deglobalize System: AocDavid Marcec1-9/+10
2019-05-23service/aoc: Avoid allocating and discarding dataLioncash1-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.
2019-05-23service/aoc: Remove unnecessary includesLioncash1-2/+0
Removes two header dependencies related to file handling that aren't actually used within the source file.
2019-05-23service/aoc: Pop all passed values where applicableLioncash1-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.
2019-05-18core/kernel/object: Rename ResetType enum membersLioncash1-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.
2019-04-11service: Update service function tablesLioncash1-0/+4
Updates function tables based off information from SwitchBrew.
2019-03-27core: Port current uses of RegisteredCache to ContentProviderZach Hilman1-2/+2
2018-12-03aoc_u: Obey disabled add-ons list when listing DLCZach Hilman1-0/+12
2018-12-02filesystem: De-globalize registered_cache_unionLioncash1-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.
2018-11-29kernel/event: Reference ReadableEvent from WritableEventZach Hilman1-6/+3
2018-11-29core: Port all current usages of Event to Readable/WritableEventZach Hilman1-4/+9
2018-11-26Changed logging to be "Log before execution", Added more error logging, all services should now log on some levelDavid Marcec1-1/+5
2018-10-24aoc_u: Make use of previously-unused CheckAOCTitleIDMatchesBase() functionLioncash1-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.
2018-10-20aoc_u: Stub GetAddOnContentListChangedEventZach Hilman1-1/+14
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).
2018-10-15aoc: Read DLC base title ID from RegisteredCacheZach Hilman1-2/+13
Falls back to title ID + 0x1000, which is what HOS does.
2018-10-14aoc: Return size in ListAddOnContentZach Hilman1-1/+2
2018-10-07Fixed assertion due to CountAddOnContentDavid Marcec1-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
2018-10-03aoc_u: Fix edge case with DLC that causes breaksZach Hilman1-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.
2018-10-01aoc_u: Extract AccumulateAOCTitleIDs to separate functionZach Hilman1-20/+26
2018-10-01aoc_u: Implement GetAddOnContentBaseIdZach Hilman1-3/+4
Command #5
2018-10-01aoc_u: Implement Count, List and Prepare AddOnContentZach Hilman1-3/+75
Commands #2, #3, and #7
2018-09-11hle/service: Default constructors and destructors in the cpp file where applicableLioncash1-0/+2
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.
2018-07-03Rename logging macro back to LOG_*James Rowe1-2/+2
2018-04-24aoc: Move logging macros over to new fmt-compatible onesLioncash1-2/+2
2018-04-20service: Use nested namespace specifiers where applicableLioncash1-4/+2
Tidies up namespace declarations
2018-04-10Updated AOC with more service names.Hexagon121-0/+1
2018-02-22Stub more functionsmailwl1-1/+8
2018-02-20Service/AOC: stub ListAddOnContent functionmailwl1-2/+23
2018-01-13yuzu: Update license text to be consistent across project.bunnei1-1/+1
2017-12-29ap, aoc_u: Minor cleanup.bunnei1-1/+0
2017-12-28service: Add empty interface for aoc:u.bunnei1-0/+18