summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/apm (follow)
Commit message (Collapse)AuthorAgeFilesLines
* service: move hle_ipc from kernelLiam2023-03-012-16/+16
|
* service: refactor server architectureLiam2023-02-212-10/+13
| | | | Converts services to have their own processes
* Merge pull request #9782 from arades79/fix-consexpr-value-declaration-usageliamwhite2023-02-151-1/+1
|\ | | | | Fix consexpr value declaration usage
| * remove static from pointer sized or smaller types for aesthetics, change constexpr static to static constexpr for consistencyarades792023-02-141-1/+1
| | | | | | | | Signed-off-by: arades79 <scravers@protonmail.com>
| * add static lifetime to constexpr values to force compile time evaluation where possiblearades792023-02-141-1/+1
| | | | | | | | Signed-off-by: arades79 <scravers@protonmail.com>
* | service: remove deleted servicesLiam2023-02-141-2/+0
|/
* Demote services from warning/info to debug to reduce log spam:Kelebek12022-09-011-1/+1
| | | | | | | | | | | GetCurrentFocusState SetClockSpeed EnableSixAxisSensorUnalteredPassthrough IsSixAxisSensorUnalteredPassthroughEnabled Get, GetOld SetAndWait, SetAndWaitOld IocParam IocFree
* general: Convert source file copyright comments over to SPDXMorph2022-04-236-18/+12
| | | | | 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: am: Update enum names to match documentationNarr the Reg2022-02-222-11/+14
|
* service: apm: Stub ISession SetCpuOverclockEnabledMorph2022-01-211-1/+13
| | | | | | Since we don't currently support CPU overclocking within the emulated system, this can be stubbed for now, like APM IsCpuOverclockEnabled. - Used by Gravity Rider Zero
* core: Remove unused includesameerj2021-11-041-1/+0
|
* service: Append service name prefix to common filenamesMorph2021-07-145-4/+4
|
* general: Replace RESULT_SUCCESS with ResultSuccessMorph2021-06-021-7/+7
| | | | Transition to PascalCase for result names.
* core: Make variable shadowing a compile-time errorLioncash2021-05-162-6/+6
| | | | | | 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.
* common: Move settings to common from core.bunnei2021-04-151-1/+1
| | | | - Removes a dependency on core and input_common from common.
* Stub IsCpuOverclockEnabledgerman2021-01-082-1/+10
|
* core: Remove unnecessary enum casts in log callsLioncash2020-12-082-6/+4
| | | | | Follows the video core PR. fmt doesn't require casts for enum classes anymore, so we can remove quite a few casts.
* service: Eliminate usages of the global system instanceLioncash2020-11-274-13/+20
| | | | | Completely removes all usages of the global system instance within the services code by passing in the using system instance to the services.
* settings: Preparation for per-game input settingsMorph2020-11-161-1/+2
|
* 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.
* apm/controller: Make SetPerformanceConfiguration() use an array of pairs over a mapLioncash2019-10-171-14/+34
| | | | | | | | | | | | | | | | While a map is an OK way to do lookups (and usually recommended in most cases), this is a map that lives for the entire duration of the program and only deallocates its contents when the program terminates. Given the total size of the map is quite small, we can simply use a std::array of pairs and utilize std::find_if to perform the same behavior without loss of performance. This eliminates a static constructor and places the data into the read-only segment. While we're at it, we can also handle malformed inputs instead of directly dereferencing the resulting iterator.
* apm/controller: Make GetCurrentPerformanceMode() a const member functionLioncash2019-10-172-2/+2
| | | | This doesn't modify instance state, so it can be made const qualified.
* service/apm: Silence -Wunused and -WreorderReinUsesLisp2019-10-052-4/+5
|
* apm: Implement SetCpuBoostModeZach Hilman2019-06-292-0/+14
|
* apm: Add getters for performance config and modeZach Hilman2019-06-292-33/+49
|
* apm: Add apm:am serviceZach Hilman2019-06-292-11/+9
| | | | 8.0.0+ identical version of apm
* apm: Add Controller class to manage speed data and applicationZach Hilman2019-06-292-0/+138
|
* service: Update service function tablesLioncash2019-04-111-0/+2
| | | | 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-9/+7
|
* hle/service: Default constructors and destructors in the cpp file where applicableLioncash2018-09-114-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* service/apm: Add the apm:sys serviceLioncash2018-08-073-0/+34
| | | | | Adds the basic skeleton of the apm:sys service based off the information on Switch Brew.
* apm/interface: Remove redundant declaration of InstallInterfaces()Lioncash2018-07-241-3/+0
| | | | This is already declared in apm/apm.h
* apm: Improve stub for GetPerformanceConfiguration.bunnei2018-07-201-1/+16
|
* 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.
* Update clang formatJames Rowe2018-07-031-1/+1
|
* Rename logging macro back to LOG_*James Rowe2018-07-031-2/+2
|
* apm: Move logging macros over to new fmt-compatible onesLioncash2018-04-241-3/+3
|
* service: Use nested namespace specifiers where applicableLioncash2018-04-204-16/+8
| | | | Tidies up namespace declarations
* apm: Refactor service impl. to support multiple ports.bunnei2018-02-104-58/+100
|
* logger: Add APM service logging category.bunnei2018-02-051-2/+3
|
* hle: Rename RequestBuilder to ResponseBuilder.bunnei2018-01-251-3/+3
|
* service: Fix all incorrect IPC response headers.bunnei2018-01-251-1/+1
|
* Format: Run the new clang format on everythingJames Rowe2018-01-211-1/+2
|
* Services: Stubbed APM::OpenSession and the ISession interface.Subv2018-01-172-1/+51
| | | | | | # Conflicts: # src/core/hle/service/am/applet_oe.cpp # src/core/hle/service/apm/apm.cpp
* clang-formatMerryMage2018-01-161-2/+1
|
* yuzu: Update license text to be consistent across project.bunnei2018-01-132-2/+2
|
* service: Clean up apm/lm/applet_oe/controller/sm ctor/dtor.bunnei2017-12-282-4/+2
|
* hle: Add service stubs for apm and appletOE.bunnei2017-10-152-0/+49