summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/pctl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* service: Stub multiple functions to increase stability of album appletNarr the Reg2023-10-081-1/+8
|
* service: pctl: Partially revert 11221Narr the Reg2023-08-091-9/+15
|
* service: pctl: Implement functions needed for QLaunchgerman772023-08-051-18/+134
|
* service: move hle_ipc from kernelLiam2023-03-012-16/+16
|
* service: refactor server architectureLiam2023-02-212-13/+16
| | | | Converts services to have their own processes
* general: rename CurrentProcess to ApplicationProcessLiam2023-02-141-1/+1
|
* core: Replace all instances of ResultCode with Resultgerman772022-06-271-4/+4
|
* general: Convert source file copyright comments over to SPDXMorph2022-04-234-12/+8
| | | | | 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.
* service/pctl: Stub EndFreeCommunicationNarr the Reg2021-11-051-1/+8
| | | - Used by Just Dance 2022
* general: Get the current process program id directly from the systemMorph2021-11-041-2/+1
| | | | 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-1/+1
|
* service: Append service name prefix to common filenamesMorph2021-07-143-2/+2
|
* general: Replace RESULT_SUCCESS with ResultSuccessMorph2021-06-021-11/+11
| | | | Transition to PascalCase for result names.
* core: Make variable shadowing a compile-time errorLioncash2021-05-162-3/+3
| | | | | | Now that we have most of core free of shadowing, we can enable the warning as an error to catch anything that may be remaining and also eliminate this class of logic bug entirely.
* hle: kernel: Rename Process to KProcess.bunnei2021-05-061-1/+1
|
* service: Remove unused class variablesLioncash2021-05-051-1/+0
| | | | Prevents some warnings from occurring.
* service: Resolve cases of member field shadowingLioncash2021-05-042-8/+6
| | | | | Now all that remains is for kernel code to be 'shadow-free' and then -Wshadow can be turned into an error.
* Merge pull request #6112 from ogniK5377/pctlbunnei2021-04-114-31/+244
|\ | | | | pctl: Rework how pctl works to be more accurate
| * Addressed issuesChloe Marcec2021-03-302-21/+22
| |
| * pctl: Rework how pctl works to be more accurateChloe Marcec2021-03-264-31/+243
| | | | | | | | Introduces the usage of compatibilities to allow it the module to be closer to how it works on hardware.
* | pctl_module: Update to 12.xgerman772021-04-091-0/+3
|/
* hle: Implement remaining services for Stereo VisionChloe Marcec2021-01-241-6/+51
| | | | Used by Zelda Breath of the Wild, Super Mario Odyssey and Nintendo Labo
* service: Eliminate usages of the global system instanceLioncash2020-11-274-15/+25
| | | | | Completely removes all usages of the global system instance within the services code by passing in the using system instance to the services.
* service: Update function tablesLioncash2020-04-201-0/+2
| | | | | | Keeps the service function tables up to date. Updated based off information on SwitchBrew.
* service: Update service function tablesLioncash2019-04-111-2/+5
| | | | Updates function tables based off information from SwitchBrew.
* Changed logging to be "Log before execution", Added more error logging, all services should now log on some levelDavid Marcec2018-11-261-2/+6
|
* hle/service: Default constructors and destructors in the cpp file where applicableLioncash2018-09-114-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Added CheckFreeCommunicationPermissionDavid Marcec2018-08-201-1/+8
| | | | This fixes save files not loading in splatoon 2
* hle/service: Make constructors explicit where applicableLioncash2018-07-191-1/+1
| | | | | Prevents implicit construction and makes these lingering non-explicit constructors consistent with the rest of the other classes in services.
* Rename logging macro back to LOG_*James Rowe2018-07-031-3/+3
|
* Service/PCTL: convert to module, add services, stubmailwl2018-04-255-36/+68
| | | | PCTL::CreateServiceWithoutInitialize and IParentalControlService::Initialize, required by Kirby Star Allies
* pctl: Move logging macros over to new fmt-compatible onesLioncash2018-04-241-1/+1
|
* service: Use nested namespace specifiers where applicableLioncash2018-04-204-16/+8
| | | | Tidies up namespace declarations
* Various fixes and clangHexagon122018-04-112-99/+99
|
* Updated pctl:a with new service names.Hexagon122018-04-101-4/+101
|
* logger: Add PCTL service logging category.bunnei2018-02-051-1/+1
|
* hle: Rename RequestBuilder to ResponseBuilder.bunnei2018-01-251-1/+1
|
* service: Fix all incorrect IPC response headers.bunnei2018-01-251-1/+1
|
* pctl: Clang format.bunnei2018-01-151-1/+1
|
* pctl: GetService should return an IParentalControlService interface.bunnei2018-01-151-3/+8
|
* yuzu: Update license text to be consistent across project.bunnei2018-01-134-4/+4
|
* IPC: Make DuplicateSession return the Domain instead of the Session if the request was made on a Domain interface.Subv2018-01-071-1/+2
|
* pctl: Remove duplicate InstallInterfaces function.bunnei2018-01-031-4/+0
|
* service: Add empty interface for pctl:a.bunnei2017-12-294-0/+84