summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am/am.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* am: Deglobalize software keyboard appletZach Hilman2018-11-181-4/+6
|
* am: Move IStorageAccessor to header and update backing bufferZach Hilman2018-11-181-0/+26
| | | Writes to an AM::IStorage object through an IStorageAccessor will now be preserved once the accessor is destroyed.
* am: Implement CreateTransferMemoryStorageZach Hilman2018-11-181-0/+1
| | | Creates an AM::IStorage object with the contents of the transfer memory located at the handle provided.
* Stubbed am:EnableApplicationCrashReportMysticExile2018-11-171-0/+1
|
* FixupsDavid Marcec2018-11-071-1/+1
|
* Ability to switch between docked and undocked mode in-gameDavid Marcec2018-11-071-1/+28
| | | | Started implementation of the AM message queue mainly used in state getters. Added the ability to switch docked mode whilst in game without stopping emulation. Also removed some things which shouldn't be labelled as stubs as they're implemented correctly
* Stubbed home blockingDavid Marcec2018-10-191-0/+4
| | | | Needed by arms due to new hid rework
* Implemented GetDefaultDisplayResolutionDavid Marcec2018-09-181-0/+1
|
* hle/service: Default constructors and destructors in the cpp file where applicableLioncash2018-09-111-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 GetBootMode (#1107)David2018-08-241-0/+1
| | | | | | | | * Added GetBootMode Used by homebrew * Added enum for GetBootMode
* Implement SetIdleTimeDetectionExtension & GetIdleTimeDetectionExtension (#1059)greggameplayer2018-08-171-0/+3
| | | * Used by Mario Tennis Aces
* Implement GetDefaultDisplayResolutionChangeEventgreggameplayer2018-08-161-0/+1
| | | | Require by Toki Tori and Toki Tori 2+
* am: Stub SetScreenShotImageOrientation.bunnei2018-08-081-0/+1
| | | | - Used by Super Mario Odyssey.
* 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.
* am: Stub out IApplicationFunctions::GetPseudoDeviceId.bunnei2018-06-061-0/+1
|
* am: Implement ILibraryAppletCreator::CreateStorage.bunnei2018-06-041-0/+1
|
* am: Stub IApplicationFunctions GetDisplayVersion.bunnei2018-05-261-0/+1
|
* Add & correct miscellaneous things (#470)greggameplayer2018-05-261-2/+17
| | | | | | | | | | | | * add some InfoType * correct OpenApplicationProxy cmd number * add IDisplayController functions * fix clang-format * add more system languages
* Stubs for QLaunch (#428)Hexagon122018-05-071-0/+25
| | | | | | | | | | * Stubs for QLaunch * Wiped unrelated stuff * Addressed comment * Dropped GetPopFromGeneralChannelEvent
* Stub more functionsmailwl2018-02-221-0/+7
|
* Stub am::SetScreenShotPermission, and bsd::StartMonitoring functionsmailwl2018-02-221-0/+1
|
* Service: stub some functions in am, audio, time, vi servicesmailwl2018-02-071-0/+5
|
* IApplicationFunctions: Stub out EnsureSaveData.bunnei2018-02-061-0/+1
|
* Service/am: Add AppletAE service (#153)mailwl2018-02-021-0/+93
| | | | | | * Add AppletAE, step 1: move common interfaces to am.h * Add AppletAE, step 2
* AppletOE: Make ISelfController keep a reference to nvflinger.Subv2018-01-221-1/+7
| | | | It'll be needed when we implement CreateManagedDisplayLayer.
* yuzu: Update license text to be consistent across project.bunnei2018-01-131-1/+1
|
* hle: Add service stubs for apm and appletOE.bunnei2017-10-151-0/+16
|
* hle: Remove a large amount of 3ds-specific service code.bunnei2017-10-101-164/+0
|
* Update AM service function tablesLioncash2016-12-081-10/+10
| | | | Updated based off information from 3dbrew.
* update the code of AM service! (#1623)JamePeng2016-04-081-11/+115
|
* services: Get rid of unnecessary includesLioncash2016-02-021-3/+3
|
* Services/AM: Stubbed am:app::GetNumContentInfos to return 0 results.Subv2015-07-211-0/+13
| | | | | | Named the service functions in am:app as per 3dbrew. This fixes an illegal read loop in Steel Diver
* Services: Continue separation of services into their own folderspurpasmart962015-06-121-0/+47