summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am (follow)
Commit message (Collapse)AuthorAgeFilesLines
* am: Implement ILibraryAppletAccessor IsCompleted and GetResultZach Hilman2018-11-181-4/+8
|
* am: Implement text check software keyboard modeZach Hilman2018-11-183-14/+95
| | | | Allows the game to verify and send a message to the frontend.
* am: Deglobalize software keyboard appletZach Hilman2018-11-186-27/+44
|
* am: Construct and use proper applets with ILibraryAppletAccessorZach Hilman2018-11-181-1/+26
| | | Allows use of software keyboard applet and future applets to be easily added by adding enum ID and a switch case.
* am/applets: Add connector between frontend and AM applet classesZach Hilman2018-11-182-0/+128
| | | Provides a middleman between the Frontend provider class and the expected AM::Applets::Applet class needed by ILibraryAppletAccessor
* am/applets: Add Applet superclass to describe a generic appletZach Hilman2018-11-182-0/+75
| | | Adds an Initialize and Execute methods which are used by the ILibraryAppletAccessor to start and control the applet.
* am: Unstub ILibraryAppletAccessor::StartZach Hilman2018-11-181-5/+17
| | | Now starts the applet provided in constructor.
* am: Implement PopInteractiveOutData and PushInteractiveInDataZach Hilman2018-11-181-14/+24
| | | Used by software keyboard applet for data transfer.
* am: Convert storage stack to vectorZach Hilman2018-11-181-27/+59
| | | std::stack was no longer suitable for non-trivial operations
* am: Move AM::IStorage to headerZach Hilman2018-11-181-0/+16
| | | Needs to be accessible by applet files.
* am: Move IStorageAccessor to header and update backing bufferZach Hilman2018-11-182-64/+62
| | | Writes to an AM::IStorage object through an IStorageAccessor will now be preserved once the accessor is destroyed.
* am: Implement CreateTransferMemoryStorageZach Hilman2018-11-182-0/+26
| | | Creates an AM::IStorage object with the contents of the transfer memory located at the handle provided.
* Stubbed am:EnableApplicationCrashReportMysticExile2018-11-172-10/+18
|
* FixupsDavid Marcec2018-11-071-1/+1
|
* Ability to switch between docked and undocked mode in-gameDavid Marcec2018-11-076-35/+138
| | | | 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
* global: Use std::optional instead of boost::optional (#1578)Frederic L2018-10-301-1/+1
| | | | | | | | | | | | | | | | * get rid of boost::optional * Remove optional references * Use std::reference_wrapper for optional references * Fix clang format * Fix clang format part 2 * Adressed feedback * Fix clang format and MacOS build
* profile_manager: Use std::optional instead of boost::optionalLioncash2018-10-241-1/+1
| | | | | Now that we can actually use std::optional on macOS, we don't need to continue using boost::optional here.
* acc: Fix account UUID duplication errorZach Hilman2018-10-241-10/+19
|
* profile_manager: Load user icons, names, and UUIDs from system saveZach Hilman2018-10-241-2/+6
|
* am: Pass current user UUID to launch parametersZach Hilman2018-10-241-7/+9
|
* am: Add the basic skeleton for the tcap serviceLioncash2018-10-213-0/+42
| | | | Added based off information provided by Switchbrew.
* am: Update service function tablesLioncash2018-10-214-15/+60
| | | | Updated based off information from Switchbrew
* Merge pull request #1526 from lioncash/svc-idbunnei2018-10-201-16/+18
|\ | | | | service: Update function tables
| * omm: Update service function tablesLioncash2018-10-191-16/+18
| | | | | | | | Updated based off information provided by Switchbrew.
* | Stubbed home blockingDavid Marcec2018-10-192-4/+36
|/ | | | Needed by arms due to new hid rework
* Removed the use of rp.MakeBuilderDavid Marcec2018-09-191-4/+4
| | | | Due to keeping the code style consistent in the yuzu codebase. `rb = rp.MakeBuilder(...)` was replaced with `rb{ctx, ...}`
* Implemented GetDefaultDisplayResolutionDavid Marcec2018-09-182-1/+18
|
* Port #4182 from Citra: "Prefix all size_t with std::"fearlessTobi2018-09-151-1/+1
|
* hle/service: Default constructors and destructors in the cpp file where applicableLioncash2018-09-1112-2/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* kernel: Eliminate kernel global stateLioncash2018-08-291-3/+6
| | | | | | | | | | | | | | | | | | | | | | As means to pave the way for getting rid of global state within core, This eliminates kernel global state by removing all globals. Instead this introduces a KernelCore class which acts as a kernel instance. This instance lives in the System class, which keeps its lifetime contained to the lifetime of the System class. This also forces the kernel types to actually interact with the main kernel instance itself instead of having transient kernel state placed all over several translation units, keeping everything together. It also has a nice consequence of making dependencies much more explicit. This also makes our initialization a tad bit more correct. Previously we were creating a kernel process before the actual kernel was initialized, which doesn't really make much sense. The KernelCore class itself follows the PImpl idiom, which allows keeping all the implementation details sealed away from everything else, which forces the use of the exposed API and allows us to avoid any unnecessary inclusions within the main kernel header.
* Added GetBootMode (#1107)David2018-08-242-1/+12
| | | | | | | | * Added GetBootMode Used by homebrew * Added enum for GetBootMode
* am: Utilize std::array within PopLaunchParameter()Lioncash2018-08-211-3/+4
| | | | | | Gets rid of the potential for C array-to-pointer decay, and also makes pointer arithmetic to get the end of the copy range unnecessary. We can just use std::array's begin() and end() member functions.
* Implement SetIdleTimeDetectionExtension & GetIdleTimeDetectionExtension (#1059)greggameplayer2018-08-172-2/+22
| | | * Used by Mario Tennis Aces
* correct coding stylegreggameplayer2018-08-161-1/+1
|
* Implement GetDefaultDisplayResolutionChangeEventgreggameplayer2018-08-162-1/+13
| | | | Require by Toki Tori and Toki Tori 2+
* am: Stub SetScreenShotImageOrientation.bunnei2018-08-082-1/+9
| | | | - Used by Super Mario Odyssey.
* Added ability to change username & language code in the settings ui. Added IProfile::Get and SET::GetLanguageCode for libnx tests (#851)David2018-08-031-1/+2
|
* service/am: Add missing am servicesLioncash2018-07-317-0/+150
| | | | | Adds the basic skeleton for missing am services idle:sys, omm, and spsm based off the information provided by Switch Brew.
* hle/service: Make constructors explicit where applicableLioncash2018-07-195-5/+5
| | | | | Prevents implicit construction and makes these lingering non-explicit constructors consistent with the rest of the other classes in services.
* Virtual Filesystem 2: Electric Boogaloo (#676)Zach Hilman2018-07-191-1/+0
| | | | | | | | | | * Virtual Filesystem * Fix delete bug and documentate * Review fixes + other stuff * Fix puyo regression
* General Filesystem and Save Data Fixes (#670)Zach Hilman2018-07-171-14/+5
|
* Revert "Virtual Filesystem (#597)"bunnei2018-07-081-1/+1
| | | | This reverts commit 77c684c1140f6bf3fb7d4560d06d2efb1a2ee5e2.
* Virtual Filesystem (#597)Zach Hilman2018-07-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add VfsFile and VfsDirectory classes * Finish abstract Vfs classes * Implement RealVfsFile (computer fs backend) * Finish RealVfsFile and RealVfsDirectory * Finished OffsetVfsFile * More changes * Fix import paths * Major refactor * Remove double const * Use experimental/filesystem or filesystem depending on compiler * Port partition_filesystem * More changes * More Overhaul * FSP_SRV fixes * Fixes and testing * Try to get filesystem to compile * Filesystem on linux * Remove std::filesystem and document/test * Compile fixes * Missing include * Bug fixes * Fixes * Rename v_file and v_dir * clang-format fix * Rename NGLOG_* to LOG_* * Most review changes * Fix TODO * Guess 'main' to be Directory by filename
* Rename logging macro back to LOG_*James Rowe2018-07-033-74/+74
|
* am: Stub out IApplicationFunctions::GetPseudoDeviceId.bunnei2018-06-062-1/+13
|
* am: Implement ILibraryAppletAccessor::PopOutData.bunnei2018-06-041-1/+11
|
* am: ISelfController:LaunchableEvent should be sticky.bunnei2018-06-041-1/+1
|
* am: Stub out ILibraryAppletAccessor Start and GetResult methods.bunnei2018-06-041-2/+16
|
* am: Implement ILibraryAppletAccessor::PushInData.bunnei2018-06-041-43/+55
|
* am: Implement IStorageAccessor::Write.bunnei2018-06-041-1/+17
|
* am: Cleanup IStorageAccessor::Read.bunnei2018-06-041-5/+3
|
* am: Implement ILibraryAppletCreator::CreateStorage.bunnei2018-06-042-21/+34
|
* am: Stub IApplicationFunctions GetDisplayVersion.bunnei2018-05-262-1/+10
|
* Add & correct miscellaneous things (#470)greggameplayer2018-05-263-4/+52
| | | | | | | | | | | | * add some InfoType * correct OpenApplicationProxy cmd number * add IDisplayController functions * fix clang-format * add more system languages
* Stubs for QLaunch (#428)Hexagon122018-05-074-5/+221
| | | | | | | | | | * Stubs for QLaunch * Wiped unrelated stuff * Addressed comment * Dropped GetPopFromGeneralChannelEvent
* general: Make formatting of logged hex values more straightforwardLioncash2018-05-021-1/+1
| | | | | | This makes the formatting expectations more obvious (e.g. any zero padding specified is padding that's entirely dedicated to the value being printed, not any pretty-printing that also gets tacked on).
* am: Fix GetDesiredLanguage implementation.bunnei2018-04-291-2/+4
|
* am: Move logging macros over to new fmt-compatible onesLioncash2018-04-243-50/+50
|
* service: Use nested namespace specifiers where applicableLioncash2018-04-203-12/+6
| | | | Tidies up namespace declarations
* Various fixes and clangHexagon122018-04-111-1/+1
|
* Updated AppletOE with more service names.Hexagon122018-04-101-0/+1
|
* Updated AppletAE with more service names.Hexagon122018-04-101-0/+1
|
* Updated AM with more service names.Hexagon122018-04-101-2/+82
|
* config: Rename is_docked to use_docked_mode to be consistent with other config bools.bunnei2018-03-271-5/+5
|
* config: Add setting for whether the system is docked or not.bunnei2018-03-271-2/+6
|
* FS: Make EnsureSaveData create the savedata folder when called for the first time.Subv2018-03-041-2/+20
|
* Stub more functionsmailwl2018-02-222-1/+39
|
* Stub am::SetScreenShotPermission, and bsd::StartMonitoring functionsmailwl2018-02-222-0/+9
|
* AM: Corrected the response in EnsureSaveData.Subv2018-02-191-1/+2
| | | | | The values are still unknown and the function is still considered a stub. Puyo Puyo Tetris now tries to call fsp-srv:MountSaveData.
* service: Remove remaining uses of BufferDescriptor*.bunnei2018-02-141-3/+3
|
* Service: stub some functions in am, audio, time, vi servicesmailwl2018-02-072-1/+82
|
* IApplicationFunctions: Stub out EnsureSaveData.bunnei2018-02-062-0/+8
|
* logger: Add AM service logging category.bunnei2018-02-043-42/+42
|
* Service/am: Add AppletAE service (#153)mailwl2018-02-026-379/+569
| | | | | | * Add AppletAE, step 1: move common interfaces to am.h * Add AppletAE, step 2
* hle: Rename RequestBuilder to ResponseBuilder.bunnei2018-01-251-33/+33
|
* service: Fix all incorrect IPC response headers.bunnei2018-01-251-11/+11
|
* AppletOE: Stubbed CreateManagedDisplayLayer to create a new layer in the Default display.Subv2018-01-221-0/+14
| | | | This function is used by libnx to obtain a new layer.
* AppletOE: Make ISelfController keep a reference to nvflinger.Subv2018-01-224-9/+31
| | | | It'll be needed when we implement CreateManagedDisplayLayer.
* Format: Run the new clang format on everythingJames Rowe2018-01-211-1/+2
|
* Merge pull request #112 from Rozelette/masterbunnei2018-01-191-0/+16
|\ | | | | ISelfController: Stub LockExit and UnlockExit
| * ISelfController: Stub LockExit and UnlockExitRozlette2018-01-191-0/+16
| |
* | acc, set, applet_oe: stub various functions, add set service (#105)goaaats2018-01-192-0/+14
|/ | | | | | | | | | | | | | * Stubs for various acc:u0 funcs needed * Stub for GetDesiredLanguage in IApplicationFunctions * Add set service + stubs needed for games * Fix formatting * Implement IProfile, IManagerForApplication, return bool in CheckAvailability, style fixes * Remove IProfile::Get(needs more research), fix IPC response sizes
* applet_oe: Clang-format.bunnei2018-01-191-2/+1
|
* Stub PopLaunchParameter and implement Buffer C Descriptors reading on hle_ipc (#96)gdkchan2018-01-181-0/+86
| | | | | | | | | | * Stub PopLaunchParameter and implement Buffer C Descriptors reading * Address PR feedback * Ensure we push a u64 not a size_t * Fix formatting
* applet_oe: Fix GetOperationMode and GetPerformanceMode.bunnei2018-01-171-2/+2
|
* Services: Stubbed APM::OpenSession and the ISession interface.Subv2018-01-171-1/+2
| | | | | | # Conflicts: # src/core/hle/service/am/applet_oe.cpp # src/core/hle/service/apm/apm.cpp
* AppletOE: Stub a bunch of functions required by libnx homebrew.Subv2018-01-171-4/+62
|
* implemented more of ISelfController and IApplicationFunctionsDavid Marcec2018-01-161-0/+53
|
* applet_oe: Stub SetFocusHandlingMode, GetCurrentFocusState, SetTerminateResult.bunnei2018-01-151-2/+55
|
* Games expect 15 for ICommonStateGetter::ReceiveMessage in order to continue executionDavid Marcec2018-01-151-1/+1
|
* yuzu: Update license text to be consistent across project.bunnei2018-01-134-4/+4
|
* AppletOE: Fixed command buffer structure for ReceiveMessage.Subv2018-01-071-2/+1
|
* IPC: Corrected some command header sizes in appletOE.Subv2018-01-071-12/+21
|
* IPC Cleanup: Remove 3DS-specific code and translate copy, move and domain objects in IPC requests.Subv2018-01-071-1/+1
| | | | Popping objects from the buffer is still not implemented.
* applet_oe: Stub out a bunch of interfaces necessary for boot.bunnei2017-12-292-1/+159
|
* ap, aoc_u: Minor cleanup.bunnei2017-12-291-2/+0
|
* 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-154-0/+75
|
* hle: Remove a large amount of 3ds-specific service code.bunnei2017-10-1010-772/+0
|
* Service: Remove unnecessary includes from service.hYuri Kunde Schlesner2017-06-061-2/+4
| | | | | This has a huge fallout in terms of needing to fix other files because all service implementations included that file.
* Update AM service function tablesLioncash2016-12-086-113/+246
| | | | Updated based off information from 3dbrew.
* Use negative priorities to avoid special-casing the self-includeYuri Kunde Schlesner2016-09-215-5/+5
|
* Remove empty newlines in #include blocks.Emmanuel Gil Peyrot2016-09-211-3/+1
| | | | | | | This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
* Manually tweak source formatting and then re-run clang-formatYuri Kunde Schlesner2016-09-195-61/+64
|
* Sources: Run clang-format on everything.Emmanuel Gil Peyrot2016-09-185-143/+150
|
* am: title_id is long long uintSam Spilsbury2016-04-241-1/+1
|
* update the code of AM service! (#1623)JamePeng2016-04-086-51/+289
|
* services: Get rid of unnecessary includesLioncash2016-02-026-11/+3
|
* services: Update some function tablesLioncash2015-12-303-0/+73
|
* core: Eliminate some unused variable warningsLioncash2015-07-291-1/+1
|
* core: Fix missing prototype warningsLioncash2015-07-291-0/+1
|
* am_net: Add missing function to the function tableLioncash2015-07-291-0/+1
|
* am_net: Add correct function name to the function tableLioncash2015-07-291-1/+1
|
* Services/AM: Stubbed am:app::GetNumContentInfos to return 0 results.Subv2015-07-213-3/+33
| | | | | | 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-1210-0/+294