summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-08-03Added ability to change username & language code in the settings ui. Added IProfile::Get and SET::GetLanguageCode for libnx tests (#851)David4-5/+45
2018-08-02service: Add migration servicesLioncash3-0/+51
Adds the basic skeleton for the mig:usr service based off information provided by Switch Brew.
2018-08-02kernel: Move object class to its own source filesLioncash3-8/+8
General moving to keep kernel object types separate from the direct kernel code. Also essentially a preliminary cleanup before eliminating global kernel state in the kernel code.
2018-08-02service: Add psc servicesLioncash3-0/+94
Adds the basic skeleton for the psc services based off the information provided by Switch Brew.
2018-08-02service/ns: Add missing ns servicesLioncash1-0/+447
Implements the basic skeleton of ns:am2, ns:ec, ns:rid, ns:rt, ns:su, ns:vm, and ns:web based off the information provided by Switch Brew and SwIPC.
2018-08-01lm: Amend name of ILoggerLioncash1-4/+4
Previously this was being registered with the name "Logger". While we're at it, also change the name of the class to match it.
2018-08-01service/filesystem: Add fsp:ldr and fsp:pr servicesLioncash5-0/+85
Adds the basic skeleton for the remaining fsp services based off information provided by Switch Brew.
2018-08-01service: Add capture servicesLioncash3-0/+169
Adds the basic skeleton for the capture services based off information provided by Switch Brew.
2018-08-01service: Add bpc and pcv servicesLioncash5-0/+175
Adds the basic skeleton for the remaining pcv-related services based off information on Switch Brew.
2018-08-01service/audio: Add missing servicesLioncash13-0/+277
Adds the missing audctl service, as well as the :a and :d services for audin, audout, audrec, and audren.
2018-07-31audout_u: Remove std::move in OpenAudioOutImpl()Lioncash1-1/+1
Previously the code was using the values from params further below after it was std::moved. Thankfully, given AudoutParams is a trivially copyable struct, the values would have simply been copied in this instance and not invalidated to garbage values.
2018-07-31service/am: Add missing am servicesLioncash7-0/+150
Adds the basic skeleton for missing am services idle:sys, omm, and spsm based off the information provided by Switch Brew.
2018-07-31service: Add fgm servicesLioncash3-0/+92
Adds the basic skeleton for the fgm services based off the information provided by Switch Brew.
2018-07-31service: Add the pcie serviceLioncash3-0/+81
Adds the basic skeleton of the pcie service based off information on Switch Brew.
2018-07-31nvhost_gpu: Added checks to ensure we don't read past the end of the entries when handling a GPU command list.Subv1-3/+6
2018-07-31nvhost_ctrl_gpu: Only read the input parameters if they are actually there.Subv1-3/+11
Passing nullptr to memcpy is undefined behavior.
2018-07-31audio_core: Move to audout_u impl.bunnei2-4/+6
- This is necessary so streams are created on the same thread.
2018-07-31Implemented various hwopus functions (#853)David2-5/+131
2018-07-30Add some HID commands (#843)Hexagon121-2/+16
* Added some HID commands * Addressed comments
2018-07-29service: Add wlan servicesLioncash3-1/+190
Adds the basic skeleton for the wlan services based off the information on Switch Brew.
2018-07-29service/btm: Add basic implementation of GetCoreImpl()Lioncash1-1/+35
Based off information on SwIPC and Switch Brew.
2018-07-29service: Add btm servicesLioncash3-0/+104
Adds the skeleton for the btm services based off the information on Switch Brew.
2018-07-28audout: Implement IAudioOut interface with AudioCore.bunnei2-93/+114
2018-07-27service: Add ncm servicesLioncash3-0/+76
Adds the basic skeleton for the ncm services based off information on Switch Brew.
2018-07-27service: Add mii servicesLioncash3-0/+124
Adds the skeleton for the mii services based off information provided by Switch Brew
2018-07-27service/nfc: Implement Create[x]Interface functionsLioncash1-4/+43
These simply return the respective interface.
2018-07-27service: Add nfc servicesLioncash3-0/+200
Adds the skeleton of the nfc service based off the information provided on Switch Brew.
2018-07-27service/lbl: Implement EnableVrMode, DisableVrMode and GetVrModeLioncash1-3/+35
Implements these functions according to the information available on Switch Brew.
2018-07-27service: Add the lbl serviceLioncash3-0/+75
Adds the skeleton of the lbl service based off the information provided by Switch Brew.
2018-07-27service: Add the btdrv serviceLioncash3-1/+91
Adds the skeleton for the btdrv service based off the information provided by Switch Brew
2018-07-26service/hid: Add the hidbus, hid:dbg, hid:sys, and hid:tmp servicesLioncash1-0/+220
2018-07-26service/hid: Add the xcd:sys serviceLioncash3-0/+55
2018-07-26service/hid: Add irs servicesLioncash3-0/+73
2018-07-26service: Add the grc:c serviceLioncash3-0/+48
Adds the basic skeleton for the grc:c service based off the information provided by Switch Brew.
2018-07-26service: Add the nim servicesLioncash3-0/+141
Adds the skeleton for the nim services based off information from Switch Brew.
2018-07-26service: Add ldn servicesLioncash3-0/+160
Adds ldn services based off information provided by Switch Brew.
2018-07-26service/sockets: Add ethc:c and ethc:i servicesLioncash3-0/+64
2018-07-26service/sockets: Add missing bsdcfg socket serviceLioncash3-0/+29
2018-07-26service: Add ldr servicesLioncash3-0/+99
Adds the skeleton for the ldr-related services based off the information provided on Switch Brew.
2018-07-26lm: Move LM's class declaration into the cpp fileLioncash2-37/+31
This isn't used directly outside of this translation unit, so we can hide it from external use.
2018-07-26lm: Amend names of Initialize() in Logger and Initialize() in LMLioncash2-7/+7
Amends these to match the information on Switch Brew.
2018-07-26lm: Add missing function entry to Logger's function tableLioncash1-0/+1
2018-07-26service: Add eupld servicesLioncash3-0/+70
Adds the skeleton for the eupld services based off information on Switch Brew.
2018-07-26service: Add the erpt servicesLioncash3-0/+69
Adds the basic skeleton of the erpt service based off information on Switch Brew.
2018-07-25service/nvdrv: Take std::string in Open() by const referenceLioncash2-2/+2
Avoids copies from being made, since the string is only ever used for lookup, the data is never transfered anywhere. Ideally, we'd use a std::string_view here, but devices is a std::unordered_map, not a std::map, so we can't use heterogenous lookup here.
2018-07-25service/nvdrv: Use std::move where applicableLioncash1-3/+5
Avoids unnecessary reference count increments and decrements. In one case, we don't need to make a shared_ptr copy at all, just to call a member function.
2018-07-25service/nifm: Deduplicate interface codeLioncash8-135/+30
Rather than having the same code for each nifm service variant, we can centralize it on one class and get rid of a bit of extra code.
2018-07-25service: Add pm servicesLioncash3-0/+88
Adds the skeleton for the process management services based off information on Switch Brew.
2018-07-25service: Add the es serviceLioncash3-0/+75
Adds the skeleton for the ETicket service based off the information on Switch Brew
2018-07-25time: Add the time:a serviceLioncash3-10/+11
Given we already have time:s and time:u, we should also have time:a
2018-07-24friend: Add friend:m, friend:s, and friend:v servicesLioncash1-0/+3
Given we already have friend:a and friend:u, we should add the remaining services as well.
2018-07-24friend/interface: Add missing CreateDaemonSuspendSessionService() to the function handler tableLioncash1-0/+1
2018-07-24friend: Deduplicate interfacesLioncash5-44/+9
2018-07-24time: Simplify interface creationLioncash5-60/+13
We can use one instance of the interface instead of duplicating code.
2018-07-24core_timing: Split off utility functions into core_timing_utilMerryMage5-0/+5
2018-07-24set_sys: Implement SetColorSetId()Lioncash2-5/+25
2018-07-24core: Make converting constructors explicit where applicableLioncash2-2/+2
Avoids unwanted implicit conversions. Thankfully, given the large amount of cleanup in past PRs, only this tiny amount is left over to cover.
2018-07-24apm/interface: Remove redundant declaration of InstallInterfaces()Lioncash1-3/+0
This is already declared in apm/apm.h
2018-07-24VFS Regression and Accuracy Fixes (#776)Zach Hilman1-16/+29
* Regression and Mode Fixes * Review Fixes * string_view correction * Add operator& for FileSys::Mode * Return std::string from SanitizePath * Farming Simulator Fix * Use != With mode operator&
2018-07-23vi: Add std::is_trivially_copyable checks to Read and Write functionsLioncash1-2/+13
It's undefined behavior to memcpy an object that isn't considered trivially copyable, so put a compile-time check in to make sure this doesn't occur.
2018-07-23vi: std::move std::vector in constructors where applicableLioncash1-9/+9
Allows avoiding unnecessary copies of the vector depending on the calling code. While we're at it, remove a redundant no-parameter base constructor call
2018-07-23set: Add missing log call in GetAvailableLanguageCodeCount()Lioncash1-0/+2
Forgot to include this in 22f448b6327044076959e338811ee576f3dcf093
2018-07-23set: Implement GetAvailableLanguageCodeCount()Lioncash2-21/+29
This just returns the size of the language code buffer.
2018-07-23set: Correct return code size of value in GetAvailableLanguageCodes()Lioncash1-2/+2
The return code should be 32-bit in size.
2018-07-22file_util, vfs: Use std::string_view where applicableLioncash1-1/+1
Avoids unnecessary construction of std::string instances where applicable.
2018-07-21GPU: Implement the NVGPU_IOCTL_CHANNEL_KICKOFF_PB ioctl2 command.Subv3-6/+34
This behaves quite similarly to the SubmitGPFIFO command. Referenced from Ryujinx. Many thanks to @gdkchan for investigating this!
2018-07-21file_util: Use an enum class for GetUserPath()Lioncash2-3/+3
Instead of using an unsigned int as a parameter and expecting a user to always pass in the correct values, we can just convert the enum into an enum class and use that type as the parameter type instead, which makes the interface more type safe. We also get rid of the bookkeeping "NUM_" element in the enum by just using an unordered map. This function is generally low-frequency in terms of calls (and I'd hope so, considering otherwise would mean we're slamming the disk with IO all the time) so I'd consider this acceptable in this case.
2018-07-20apm: Improve stub for GetPerformanceConfiguration.bunnei1-1/+16
2018-07-20HLE/ACC: Stub IManagerForApplication::GetAccountId to return an error.Subv1-6/+8
And make IManagerForApplication::CheckAvailability always return false. Returning a bogus id from GetAccountId causes games to crash on boot. We should investigate this with a hwtest and either stub it properly or implement it.
2018-07-20audren_u: Use a std::array instead of std::string for holding the audio interface/device nameLioncash1-2/+4
std::string doesn't include the null-terminator in its data() + size() range. This ensures that the null-terminator will also be written to the buffer
2018-07-20audout_u: Use a std::array instead of std::string for holding the audio interface nameLioncash1-1/+2
Uses a type that doesn't potentially dynamically allocate, and ensures that the name of the interface is properly null-terminated when writing it to the buffer.
2018-07-20pl_u: Simplify WriteBuffer() calls in GetSharedFontInOrderOfPriority()Lioncash1-3/+3
With the new overload, we can simply pass the container directly.
2018-07-19HLE/ACC: Return an IProfile that is consistent with what was requested.Subv1-5/+15
The default username for now is "yuzu". We should eventually allow the creation of users in the emulator and have the ability to modify their parameters.
2018-07-19HLE/ACC: Change the default user id to be consistent with what we tell games on startup.Subv1-2/+1
In IApplicationFunctions::PopLaunchParameter we tell the games that they were launched as user id 1.
2018-07-19HLE/ACC: Write a single whole user id in ListAllUsers and ListOpenUsers.Subv1-4/+6
We only emulate a single user id for now.
2018-07-19hle_ipc: Introduce generic WriteBuffer overload for multiple container typesLioncash3-4/+4
This introduces a slightly more generic variant of WriteBuffer(). Notably, this variant doesn't constrain the arguments to only accepting std::vector instances. It accepts whatever adheres to the ContiguousContainer concept in the C++ standard library. This essentially means, std::array, std::string, and std::vector can be used directly with this interface. The interface no longer forces you to solely use containers that dynamically allocate. To ensure our overloads play nice with one another, we only enable the container-based WriteBuffer if the argument is not a pointer, otherwise we fall back to the pointer-based one.
2018-07-19pl_u: Specify correct size for buffers in GetSharedFontInOrderOfPriority()Lioncash1-3/+3
This WriteBuffer overload expects its size argument to be in bytes, not elements.
2018-07-19pl_u: Remove printf specifier in log call in a log call in GetSharedFontInOrderOfPriority()Lioncash1-1/+1
This can just use the fmt specifiers and be type-agnostic.
2018-07-19hid: Use a ranged-for loops in UpdatePadCallbackLioncash1-7/+3
Modernizes the loops themselves while also getting rid of a signed/unsigned comparison in a loop condition.
2018-07-19hid: Use HID_NUM_LAYOUTS constant for indicating size of the layouts arrayLioncash1-1/+1
Gets rid of the use of a magic constant
2018-07-19Filesystem: Return EntryType::Directory for the root directory.Subv1-0/+4
It is unknown if this is correct behavior, but it makes sense and fixes a regression with Stardew Valley.
2018-07-19hle/service: Make constructors explicit where applicableLioncash22-25/+25
Prevents implicit construction and makes these lingering non-explicit constructors consistent with the rest of the other classes in services.
2018-07-19nvflinger: Emplace Display instances directlyLioncash1-9/+4
We can use emplace_back to construct the Display instances directly, instead of constructing them separately and copying them, avoiding the need to copy std::string and std::vector instances that are part of the Display struct.
2018-07-19nvdrv: Take std::string by const reference in GetDevice()Lioncash1-1/+1
This is only ever used as a lookup into the device map, so we don't need to take the std::string instance by value here.
2018-07-19fsp_srv: Remove unnecessary vector construction in IFile's Write() functionLioncash1-2/+3
We can avoid constructing a std::vector here by simply passing a pointer to the original data and the size of the copy we wish to perform to the backend's Write() function instead, avoiding copying the data where it's otherwise not needed.
2018-07-19fsp_srv: Remove unnecessary std::vector construction in IDirectory's Read() functionLioncash1-10/+8
We were using a second std::vector as a buffer to convert another std::vector's data into a byte sequence, however we can just use pointers to the original data and use them directly with WriteBuffer, which avoids copying the data at all into a separate std::vector. We simply cast the pointers to u8* (which is allowed by the standard, given std::uint8_t is an alias for unsigned char on platforms that we support).
2018-07-19filesystem: std::move VirtualDir instance in VfsDirectoryServiceWrapper's constructorLioncash1-1/+3
Avoids unnecessary atomic reference count incrementing and decrementing
2018-07-19filesystem: Use std::string's empty() function instead of comparing against a literalLioncash1-1/+1
This is simply a basic value check as opposed to potentially doing string based operations (unlikely, but still, avoiding it is free).
2018-07-19filesystem: Remove pragma disabling global optimizationsLioncash1-2/+0
This was just an artifact missed during PR review.
2018-07-19fsp_srv: Make IStorage constructor explicitLioncash1-1/+1
Prevents implicit conversions.
2018-07-19fsp_srv: Add missing includesLioncash1-0/+5
Gets rid of relying on indirect inclusions.
2018-07-19fsp_srv: Resolve sign-mismatch warnings in assertion comparisonsLioncash1-3/+3
2018-07-19fsp_srv: Respect write length in Write()Lioncash1-4/+5
Previously we were just copying the data whole-sale, even if the length was less than the total data size. This effectively makes the actual_data vector useless, which is likely not intended. Instead, amend this to only copy the given length amount of data. At the same time, we can avoid zeroing out the data before using it by passing iterators to the constructor instead of a size.
2018-07-19Virtual Filesystem 2: Electric Boogaloo (#676)Zach Hilman5-116/+383
* Virtual Filesystem * Fix delete bug and documentate * Review fixes + other stuff * Fix puyo regression
2018-07-19service/prepo: Add missing header guardLioncash1-0/+2
2018-07-18hle/filesystem: Amend trace log in OpenSaveData() to compile in debug modeLioncash1-1/+1
Previously this wouldn't compile, since no such function named SaveStructDebugInfo() exists.
2018-07-18Fill in more fields in TouchScreenEntryTouchZach Hilman1-4/+9
2018-07-18Single touch supportZach Hilman1-4/+19
2018-07-18vi: Change TransactionId::CancelBuffer to LOG_CRITICAL.bunnei1-1/+1
2018-07-18vi: Fix size for ListDisplays default display.bunnei1-2/+2
2018-07-18vi: Partially implement buffer crop parameters.bunnei6-10/+26
2018-07-17General Filesystem and Save Data Fixes (#670)Zach Hilman5-101/+130
2018-07-17nvflinger: Fix for BufferQueue event handling.bunnei4-29/+10
2018-07-15HID: Update controllers less oftenJames Rowe1-3/+3
2018-07-14Services/BSD: Corrected the return for StartMonitoring according to SwIPC.Subv1-2/+1
2018-07-13We only need to alert for memory pool changesDavid Marcec1-2/+0
2018-07-13initialized voice status and unused sizes in the update data headerDavid Marcec1-1/+3
2018-07-12Audout "Auto" functionsDavid Marcec2-14/+14
Audout autos are identical to their counterpart except for the buffer type which yuzu already handles for us.
2018-07-12Added IsWirelessCommunicationEnabled, IsEthernetCommunicationEnabled, IsAnyInternetRequestAcceptedDavid Marcec1-3/+21
Since we have no socket implementation we should be returning 0 to indicate we're currently offline.
2018-07-11hid: Fix timestamps and controller type.bunnei1-7/+5
- This fixes user input in SMO.
2018-07-10NvOsGetConfigU32 production implDavid Marcec1-17/+2
Settings are only used when RMOS_SET_PRODUCTION_MODE is set to 0. If production mode is set, the error code 0x30006 is returned instead
2018-07-08nvhost_ctrl: Fix NvOsGetConfigU32 for Snipper Clips.bunnei1-1/+1
2018-07-08Revert "Virtual Filesystem (#597)"bunnei5-405/+71
This reverts commit 77c684c1140f6bf3fb7d4560d06d2efb1a2ee5e2.
2018-07-06Virtual Filesystem (#597)Zach Hilman5-71/+405
* 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
2018-07-03Update AudioRenderer Voice Sections (#614)David1-0/+87
* voice section updating * fixed slight offset miscalculation * fixed overflow
2018-07-03Update clang formatJames Rowe11-37/+35
2018-07-03Rename logging macro back to LOG_*James Rowe43-322/+322
2018-07-01GPU: Remove a surface from the cache when its backing memory is being unmapped from the GPU's MMU.Subv1-0/+5
2018-07-01nvmap: Return the address of the nvmap object when Freeing it for the last time.Subv2-4/+11
This behavior is confirmed by reverse engineering.
2018-06-25Send the correct RequestUpdateAudioRenderer revision in the output header (#587)David1-1/+1
* We should be returning our revision instead of what is requested. Hardware test on a 5.1.0 console * Added sysversion comment
2018-06-25Service/Audio: add hwopus service, stub GetWorkBufferSize functionmailwl3-0/+51
2018-06-24Removed duplicate structs, changed AudioRendererResponse -> UpdateDataHeader (#583)David2-34/+21
* Removed duplicate structs, changed AudioRendererResponse -> UpdateDataHeader According to game symbols(SMO), there's references to UpdateDataHeader which seems to be what AudioRendererResponse actually is * oops * AudioRendererParameters should be AudioRendererParameter according to SMO
2018-06-23Fixed RequestUpdateAudioRenderer deadlocks and calculated section sizes properly (#580)David2-44/+76
* Fixed RequestUpdateAudioRenderer deadlocks and calculated section sizes properly This fixes RequestUpdateAudioRenderer deadlocks in games like Puyo Puyo Tetris and games which require a proper section size in games such as Retro City Rampage. This fixes causes various games to start rendering or trying to render
2018-06-21Service/Audio: update audren:u servicemailwl2-49/+60
2018-06-20Build: Fixed some MSVC warnings in various parts of the code.Subv2-2/+3
2018-06-19Implement GetAvailableLanguageCodes2 (#575)greggameplayer1-4/+1
* Implement GetAvailableLanguageCodes2 * Revert "Implement GetAvailableLanguageCodes2" This reverts commit caadd9eea3497ae2a13382aecb8ca29e1c02c5af. * Implement GetAvailableLanguageCodes2 * Implement GetAvailableLanguageCodes2
2018-06-19Services/FS: Return the correct error code when trying to mount a nonexistent savedata.Subv1-2/+11
2018-06-14Narrow down filter of layout configsZach Hilman2-10/+5
2018-06-13Move loop condition to free functionZach Hilman1-4/+9
2018-06-13Avoid initializing single-joycon layouts with handheld controllerZach Hilman2-1/+5
2018-06-12hid: Update all layouts and only show handheld as connected, fixes libnx input for P1_AUTOshinyquagsire232-2/+3
2018-06-07Common/string_util: add StringFromBuffer functionmailwl1-22/+9
convert input buffer (std::vector<u8>) to string, stripping zero chars
2018-06-06Stub IUser::AttachAvailabilityChangeEventmailwl1-5/+23
2018-06-06nvdrv/devices/nvidia_ctrl_gpu : add IoctlCommands with their params (#524)greggameplayer2-0/+53
* add IoctlCommands with their params in nvidia_ctrl_gpu.h * add function related to the changes done previously * fix clang-format * delete trailing whitespace * correct mistake
2018-06-06Remove unused header filesmailwl1-2/+0
2018-06-06nifm: Stub out IRequest::SetConnectionConfirmationOption.bunnei1-1/+10
2018-06-06am: Stub out IApplicationFunctions::GetPseudoDeviceId.bunnei2-1/+13
2018-06-05Small fixesmailwl2-6/+8
2018-06-05Service/MM: add service and stub some functionsmailwl3-0/+81
2018-06-04Nvdrv/devices/nvhost_gpu : Add some IoctlCommands with their params (#511)greggameplayer1-0/+47
* Add some IoctlCommand with their params to nvhost_gpu * fix clang-format * delete trailing whitespace * fix some clang-format * delete one other trailing whitespace * last clang-format fix
2018-06-04Correct function resultsmailwl1-4/+16
2018-06-04Service/nfp:user : stub some functions.mailwl1-6/+70
Used by Zelda: BoTW
2018-06-04am: Implement ILibraryAppletAccessor::PopOutData.bunnei1-1/+11
2018-06-04am: ISelfController:LaunchableEvent should be sticky.bunnei1-1/+1
2018-06-04am: Stub out ILibraryAppletAccessor Start and GetResult methods.bunnei1-2/+16
2018-06-04am: Implement ILibraryAppletAccessor::PushInData.bunnei1-43/+55
2018-06-04am: Implement IStorageAccessor::Write.bunnei1-1/+17
2018-06-04am: Cleanup IStorageAccessor::Read.bunnei1-5/+3
2018-06-04am: Implement ILibraryAppletCreator::CreateStorage.bunnei2-21/+34
2018-06-01Service/time: implement posix time to calendar conversionmailwl2-14/+72
2018-05-30add IPC CommandType & Some HID FunctionInfo (#487)greggameplayer1-0/+30
* add some CommandType * add some hid FunctionInfo * add some other HID FunctionInfo * delete non useful comments
2018-05-30Services/nvdrv: add '/dev/nvhost-nvdec' devicemailwl3-0/+72
2018-05-30nvhost_ctrl: Stub out IocCtrlEventRegister.bunnei2-0/+10
2018-05-30nvhost_ctrl: Stub out IocCtrlEventWaitAsyncCommand.bunnei2-5/+9
2018-05-28Service/BCAT: add module and servicesmailwl5-0/+114
2018-05-27NvOsGetConfigU32 should return null instead of 0 for default outputDavid Marcec1-1/+1
2018-05-26am: Stub IApplicationFunctions GetDisplayVersion.bunnei2-1/+10
2018-05-26Add & correct miscellaneous things (#470)greggameplayer3-4/+52
* add some InfoType * correct OpenApplicationProxy cmd number * add IDisplayController functions * fix clang-format * add more system languages
2018-05-26GetAudioRendererWorkBufferSize impl (#465)David2-2/+88
* GetAudioRendererWorkBufferSize impl Impl of GetAudioRendererWorkBufferSize based on RE, if this can be cleaned up, please contribute! * Naming conventions * Removed unneeded placeholder * lioncache changes * fixed const * switched to Common::AlignUp
2018-05-25Stubbed NVGPU_GPU_IOCTL_ZBC_SET_TABLE (#463)David2-0/+22
We have no clue on what this actually does yet so stubbing it since it's just input only should be fine for now
2018-05-24Stub NVGPU_IOCTL_CHANNEL_SET_TIMEOUTmailwl2-0/+16
Used in Nintendo Labo ToyCon 1&2
2018-05-24Fix deadlocks caused from HID having too many layoutsDavid Marcec1-1/+1
Games such as SMO deadlock if we have more than 2 layouts
2018-05-23change some functionsgreggameplayer1-6/+6
according to the changes made previously
2018-05-23correct placement and add size checkgreggameplayer1-21/+25
2018-05-23Add ioctl commands with their params and size checkgreggameplayer1-2/+86
2018-05-22Implemented NVHOST_IOCTL_CHANNEL_GET_WAITBASE (#440)David2-1/+20
* Implemented NVHOST_IOCTL_CHANNEL_GET_WAITBASE struct + 4 seems to be hard coded at 0 and struct + 0 seems to be ignored? * IocGetWaitbase -> IocChannelGetWaitbaseCommand * Added super late fixes
2018-05-21Correct audio command numbers & add or rename some functions (#455)greggameplayer5-34/+34
* Add unknown function at the number command 2 * correct audout:u commands numbers * correct audrec:u cmd number & add Unknown function * correct IAudioDevice command numbers * correct codecctl cmd numbers & rename the 8 function * correct place of unknown function & fix clang-format
2018-05-20GPU: Implemented the nvmap Free ioctl.Subv2-1/+48
It releases a reference to an nvmap object
2018-05-20GPU: Implemented nvhost-as-gpu's UnmapBuffer ioctl.Subv2-0/+50
It removes a mapping previously created with the MapBufferEx ioctl.
2018-05-18rename fatal:u functions & add ThrowFatalgreggameplayer1-2/+3
2018-05-18Properly update fatal.h void namegreggameplayer1-2/+2
2018-05-18Properly rename fatal module functionsgreggameplayer1-2/+2
2018-05-17Added RequestWithContext & ControlWithContextDavid Marcec1-0/+2
2018-05-13Updated nfp with more service namesHexagon121-24/+24
2018-05-11More accurate GetTPCMasks implDavid Marcec2-4/+8
2018-05-07Stubs for QLaunch (#428)Hexagon124-5/+221
* Stubs for QLaunch * Wiped unrelated stuff * Addressed comment * Dropped GetPopFromGeneralChannelEvent
2018-05-07hid: Tweaks, Analog Sticks (#435)Max Thomas2-68/+220
* hid: Update mouse/keyboard state * hid: Working analog sticks * hid: Nits * hid: Nits * hid: Update mystery sections * hid: Tweaks
2018-05-02general: Make formatting of logged hex values more straightforwardLioncash14-24/+24
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).
2018-05-01GetSharedFontInOrderOfPriority (#381)David2-1/+27
* GetSharedFontInOrderOfPriority * Update pl_u.cpp * Ability to use ReadBuffer and WriteBuffer with different buffer indexes, fixed up GetSharedFontInOrderOfPriority * switched to NGLOG * Update pl_u.cpp * Update pl_u.cpp * language_code is actually language code and not index * u32->u64 * final cleanups
2018-05-01GPU: Don't write to invalid memory locations when handling ioctls that don't have an output.Subv2-5/+0
2018-04-30core_timing: Namespace all functions and constants in core_timing's headerLioncash5-7/+8
All of these variables and functions are related to timings and should be within the namespace.
2018-04-30string_util: Remove StringFromFormat() and related functionsLioncash1-3/+2
Given we utilize fmt, we don't need to provide our own functions for formatting anymore
2018-04-29am: Fix GetDesiredLanguage implementation.bunnei1-2/+4
2018-04-29set: Fix GetAvailableLanguageCodes implementation.bunnei2-6/+45
2018-04-27general: Convert assertion macros over to be fmt-compatibleLioncash2-3/+3
2018-04-27Switched to NGLOG_WARNINGDavid Marcec3-4/+4
2018-04-26Added PREPO to logging backend, Removed comments from SaveReportWithUserDavid Marcec2-13/+2
2018-04-25Service/PCTL: convert to module, add services, stubmailwl6-37/+69
PCTL::CreateServiceWithoutInitialize and IParentalControlService::Initialize, required by Kirby Star Allies
2018-04-24service: Move logging macros over to new fmt-compatible onesLioncash1-5/+5
2018-04-24vi: Move logging macros over to new fmt-compatible onesLioncash1-26/+27
2018-04-24time: Move logging macros over to new fmt-compatible onesLioncash1-12/+12
2018-04-24ssl: Move logging macros over to new fmt-compatible onesLioncash1-3/+3
2018-04-24spl: Move logging macros over to new fmt-compatible onesLioncash1-1/+1
2018-04-24sockets: Move logging macros over to new fmt-compatible onesLioncash2-7/+8
2018-04-24sm: Move logging macros over to new fmt-compatible onesLioncash2-9/+8
2018-04-24set: Move logging macros over to new fmt-compatible onesLioncash2-2/+2
2018-04-24pctl: Move logging macros over to new fmt-compatible onesLioncash1-1/+1
2018-04-24nvflinger: Move logging macros over to new fmt-compatible onesLioncash2-3/+3
2018-04-24nvdrv: Move logging macros over to new fmt-compatible onesLioncash7-60/+61
2018-04-24ns: Move logging macros over to new fmt-compatible onesLioncash1-6/+6
2018-04-24nifm: Move logging macros over to new fmt-compatible onesLioncash1-11/+11
2018-04-24nfp: Move logging macros over to new fmt-compatible onesLioncash1-1/+1
2018-04-24lm: Move logging macros over to new fmt-compatible onesLioncash1-6/+6
2018-04-24hid: Move logging macros over to new fmt-compatible onesLioncash1-25/+25
2018-04-24friend: Move logging macros over to new fmt-compatible onesLioncash1-1/+1
2018-04-24filesystem: Move logging macros over to new fmt-compatible onesLioncash2-30/+29
2018-04-24fatal: Move logging macros over to new fmt-compatible onesLioncash1-2/+2
2018-04-24audio: Move logging macros over to new fmt-compatible onesLioncash2-21/+21
2018-04-24apm: Move logging macros over to new fmt-compatible onesLioncash1-3/+3
2018-04-24aoc: Move logging macros over to new fmt-compatible onesLioncash1-2/+2
2018-04-24am: Move logging macros over to new fmt-compatible onesLioncash3-50/+50
2018-04-24acc: Move logging macros over to new fmt-compatible onesLioncash1-10/+10
2018-04-24Service/FS: implement IFileSystem::RenameFilemailwl1-1/+21
2018-04-23NvDrv/nvhost-as-gpu: Ensure that the object passed to MapBufferEx has already been allocated.Subv1-0/+10
Also added a consistency check and a comment for the case when the object id is different than its handle. The real nvservices doesn't make a distinction between ids and handles, each object gets an unique handle which doubles as its id.
2018-04-23Nvdrv/nvhost-as-gpu: Implemented the ioctl REMAP command.Subv2-0/+47
It takes a previously-reserved (AllocateSpace) GPU memory address and maps it to the address of the nvmap object passed to Remap.
2018-04-23Nvdrv: Assert when receiving an unimplemented ioctl in the nv* handlers.Subv5-5/+5
2018-04-23GetIUserInterface->CreateUserInterface, Added todos and stub logs. Playreport->PlayReport.David Marcec9-25/+63
2018-04-22lioncash proposed changesDavid1-2/+2
2018-04-22Implemented GetIUserInterface properly, Playreport and SSL::SetInterfaceVersion. Fixed ipc issues with IAudioDevice(wrong ids)David Marcec10-11/+107
2018-04-21Qt: Update the WaitTree widget to show info about the current mutex of each thread.Subv2-4/+8
2018-04-21core: Relocate g_service_manager to the System classLioncash4-32/+32
Converts the service manager from a global into an instance-based variable.
2018-04-20service: Use nested namespace specifiers where applicableLioncash136-570/+273
Tidies up namespace declarations
2018-04-20vi: Remove redundant initializers in the constructorsLioncash1-9/+5
2018-04-19nvflinger: Call MicroProfileFlip on NVFlinger::Compose.bunnei1-0/+3
2018-04-17Service/VI: stub SetLayerVisibility, fix GetDisplayResolution outputmailwl1-7/+27
both SetLayerVisibility() functions used in Lego games, GetDisplayResolution() fixed according switchbrew.org
2018-04-17Various service name fixes - part 2 (rebased) (#322)Hexagon1212-3/+199
* Updated ACC with more service names * Updated SVC with more service names * Updated set with more service names * Updated sockets with more service names * Updated SPL with more service names * Updated time with more service names * Updated vi with more service names
2018-04-15pl_u: Use empty shared font if none is available.bunnei1-17/+14
- Makes games work in lieu of shared_font.bin.
2018-04-15fsp_srv: Implement DeleteFile.bunnei1-1/+15
- Used by Binding of Isaac.
2018-04-15fsp_srv: Implement IFile::Flush.bunnei1-1/+9
2018-04-13Fixed normal params in GetDisplayResolutionHexagon121-1/+1
2018-04-13Stubbed out GetPlayerLedPatternHexagon121-1/+7
2018-04-11Service/SSL: update service according switchbrewmailwl2-1/+98
2018-04-11Various fixes and clangHexagon126-115/+108
2018-04-10Decimal changeHexagon121-4/+4
2018-04-10Updated pctl:a with new service names.Hexagon121-4/+101
2018-04-10Updated nvmemp with new service names.Hexagon121-4/+4
2018-04-10Updated nvdrv with more service names.Hexagon121-0/+7
2018-04-10Updated pl:u with more service names.Hexagon121-1/+3
2018-04-10Updated hid with more service names.Hexagon121-0/+50
2018-04-10Updated friend:u with more service names.Hexagon121-1/+2
2018-04-10Updated the unknown nameHexagon121-1/+1
2018-04-10Updated friend:a with more service names.Hexagon121-1/+2
2018-04-10Updated fsp-srv with more service names.Hexagon121-4/+102
2018-04-10Updated CodecCtl with more service names.Hexagon121-3/+3
2018-04-10Updated audren with more service names.Hexagon121-10/+14
2018-04-10Updated audrec with more service names.Hexagon121-7/+9
2018-04-10Updated audout with more service names.Hexagon121-13/+16
2018-04-10Updated audin with more service names.Hexagon121-9/+16
2018-04-10Updated AOC with more service names.Hexagon121-0/+1
2018-04-10Updated AppletOE with more service names.Hexagon121-0/+1
2018-04-10Updated AppletAE with more service names.Hexagon121-0/+1
2018-04-10Updated AM with more service names.Hexagon121-2/+82
2018-04-10Service/ACC: convert to module, add acc:aa, acc:su, acc:u1 servicesmailwl10-127/+336
2018-04-07Fix spelling of InitializeJames Rowe2-3/+3
2018-04-03audren_u: Stub out GetActiveAudioDeviceName.bunnei1-1/+13
2018-04-03audout_u: Implement GetAudioOutState.bunnei1-1/+8
2018-04-03nifm: GetResult does not return a data field.bunnei1-2/+1
2018-04-03vi: Implement GetDisplayResolution.bunnei2-0/+26
2018-04-03service: Add friend:u interface.bunnei3-0/+39
2018-04-02externals: Update fmt to 4d35f94Daniel Lim Wee Soong1-6/+6
Versions prior to this didn't compile on OpenBSD due to unconditional use of the non-standard strtod_l() function. The fmt::MemoryWriter API has been removed in the intervening versions, so replace its use with fmt::memory_buffer and fmt::format_to. The library also no longer provides the fmt::fmt ALIAS, so define it in externals/CMakeLists.txt.
2018-04-01hid: Write empty touch screen state.bunnei1-5/+21
2018-04-01hle_ipc, fsp_srv: Cleanup logging.bunnei1-2/+2
2018-03-31hid: Stub out GetSupportedNpadStyleSet.bunnei1-0/+8
2018-03-31fsp_srv: Implement GetSize and SetSize.bunnei1-2/+21
2018-03-30audren_u: Stub QueryAudioDeviceSystemEvent and GetActiveChannelCount.bunnei1-8/+36
2018-03-30service: Add NFP module interface.bunnei5-0/+95
service: Initialize NFP service. Log: Add NFP service as a log subtype.
2018-03-27config: Rename is_docked to use_docked_mode to be consistent with other config bools.bunnei1-5/+5
2018-03-27config: Add setting for whether the system is docked or not.bunnei1-2/+6
2018-03-25Service/sockets: add bsd:s, nsd:a, nsd:u servicesmailwl7-30/+92
2018-03-25audren_u: Fix GetAudioDevice.bunnei2-7/+48
2018-03-25hid: Stub out SetNpadJoyAssignmentModeDual.bunnei1-1/+7
2018-03-25pl_u: Add RequestLoad.bunnei2-0/+11
2018-03-23renderer_opengl: Fixes for properly flushing & rendering the framebuffer.bunnei1-6/+0
2018-03-23renderer_opengl: Better handling of framebuffer transform flags.bunnei2-3/+3
2018-03-23Service/SSL: add ssl servicemailwl3-0/+41
2018-03-23nvdisp_disp0: Always flush and invalidate framebuffer region.bunnei1-0/+7
- Workaround for texture forwarding until we have a better place.
2018-03-23video_core: Move FramebufferInfo to FramebufferConfig in GPU.bunnei1-3/+3
2018-03-22Service/spl: add module and servicesmailwl7-0/+168
2018-03-21FS: Implemented IFileSystem::CreateDirectory.Subv1-0/+15
2018-03-21Service/vi: convert services to modulemailwl8-212/+160
2018-03-20Service: add fatal:u, fatal:p servicesmailwl7-0/+138
2018-03-20FS: Implemented IFileSystem's OpenDirectory function.Subv1-0/+28
Note that the filter parameter is not yet implemented.
2018-03-20FS: Added the IDirectory IPC interface and implemented its two functions.Subv1-0/+51
2018-03-20FS: Implement MountSdCard.Subv1-2/+6
2018-03-20FS: Added an SDMC archive factory and registered it to the SDMC archive on startup.Subv2-0/+6
2018-03-19Clang FixesN00byKing1-2/+2
2018-03-19oopsN00byKing1-3/+3
2018-03-19Clean Warnings (?)N00byKing5-7/+7
2018-03-19vi: Remove DequeueBuffer and wait until next available buffer.bunnei3-12/+49
2018-03-19hle_ipc: Remove GetPointer(..) usage with WriteToOutgoingCommandBuffer.bunnei1-2/+1
2018-03-17nvflinger: Remove superfluous buffer format check.bunnei1-3/+1
2018-03-16IGeneralService: fix function listmailwl1-2/+3
2018-03-16Service/NIFM: stub cancel functionmailwl1-1/+6
2018-03-16Service/NIFM: convert to modulemailwl8-122/+75
2018-03-14core: Move process creation out of global state.bunnei2-6/+7
2018-03-04FS: Stubbed CreateSaveData. It currently does nothing.Subv2-0/+15
2018-03-04FS: Make EnsureSaveData create the savedata folder when called for the first time.Subv3-2/+40
2018-03-04CoreTiming: Unschedule the pending events when an Interface is destroyed.Subv3-2/+10
2018-03-03Vi: Signal the BufferQueue's Native Handle right after ReleaseBuffer is called.Subv1-0/+3
This prevents a thread starvation issue in Puyo Puyo Tetris. We should hwtest this behavior and figure out where exactly this event is signaled.
2018-03-03Service/Set: add more servicesmailwl11-10/+340
2018-03-02FS: Implement MountSaveData and some of the IFile interface.Subv2-0/+189
2018-03-02Filesystem: Added a SaveData Factory and associated Disk_FileSystem.Subv2-2/+10
2018-02-23time: Add missing time:s functions, used for libnxshinyquagsire231-0/+4
2018-02-22Stub more functionsmailwl6-7/+79
2018-02-22Stub am::SetScreenShotPermission, and bsd::StartMonitoring functionsmailwl4-0/+20
2018-02-22time: Add GetStandardLocalSystemClock, used by libnxshinyquagsire233-0/+9
2018-02-20Service/AOC: stub ListAddOnContent functionmailwl2-2/+26
2018-02-19acc_u0: Stub ListOpenUsers service function.bunnei2-1/+11
2018-02-19service: Add Friend service interface.bunnei5-0/+96
2018-02-19AM: Corrected the response in EnsureSaveData.Subv1-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.
2018-02-17nvmap: Make IocFromId return the same existing handle instead of creating a new one.Subv1-5/+2
Games like Puyo Puyo Tetris and BOTW seem to depend on the buffer always having the same handle
2018-02-17Parcel: Ensure we don't read past the end of the parcels in Vi.Subv1-0/+5
2018-02-17Vi: Mark all fences as NO_FENCE in the DequeueBuffer response parcel.Subv1-2/+2
2018-02-17Vi: Always write the IGBPBuffer in the RequestBuffer response parcel.Subv1-1/+2
This may break libnx homebrew due to a bug in libnx but is required by official games since they always assume that the buffer will be there.
2018-02-16Service/hid: stub some functionsmailwl2-1/+45
2018-02-15nvhost-ctrl: Stub NVHOST_IOCTL_CTRL_EVENT_WAIT.Subv2-0/+25
2018-02-15Vi: Mark the fences as valid in the DequeueBuffer response parcel.Subv1-0/+3
2018-02-15Vi: Added a missing u32 in the DequeueBuffer response parcel.Subv1-0/+1
2018-02-15Vi: Don't write the IGBPBuffer in the IGBPRequestBufferResponseParcel.Subv1-4/+2
2018-02-15Vi: Properly write the BufferProducerFence object in the DequeueBuffer response parcel.Subv2-18/+28
2018-02-15pl_u: Implement basic shared font loading from RAM dump.bunnei5-0/+178
2018-02-15hid: Stub GetVibrationDeviceInfo and SendVibrationValues.bunnei1-0/+15
2018-02-14Fix fps counter to correctly measure frame end when there was no frame to drawJames Rowe1-0/+2
2018-02-14nvdrv/interface: Silence formatting specifier warningsLioncash1-1/+2
2018-02-14nvmap: Silence formatting specifier warningsLioncash1-1/+2
2018-02-14nvhost_gpu: Silence formatting specifier warningsLioncash1-6/+8
2018-02-14nvhost_ctrl: Silence formatting specifier warningsLioncash1-2/+2
2018-02-14nvhost_ctrl_gpu: Silence formatting specifier warningsLioncash1-3/+4
2018-02-14nvhost_as_gpu: Silence formatting specifier warningsLioncash1-5/+7
2018-02-14service: Remove remaining uses of BufferDescriptor*.bunnei5-14/+8
2018-02-14audio: Use WriteBuffer instead of BufferDescriptorB.bunnei2-9/+3
2018-02-14vi: Eliminate direct usage of BufferDescriptorB.bunnei1-14/+3
2018-02-14nvdrv: Use ReadBuffer/WriteBuffer functions for Ioctl.bunnei1-17/+5
2018-02-14vi: Use ReadBuffer/WriteBuffer functions for TransactParcel.bunnei1-44/+19
2018-02-14vi: Fix TransactParcelAuto to support both buffer formats.bunnei1-25/+16
2018-02-14audren_u: Schedule reoccuring event. (#183)bunnei2-6/+36
* audren_u: Schedule reoccuring event. * audren_u: Stub GetAudioRenderersProcessMasterVolume, and misc. changes.
2018-02-13Service/lm: add support to multiline logsmailwl1-20/+49
2018-02-13vi: Add FENCE_HACK, which is useful for booting BOTW.bunnei1-7/+21
2018-02-13vi: Stub TransactParcel CancelBuffer.bunnei1-0/+2
2018-02-13TransactParcel: Move WriteBlock to narrowest scope.bunnei1-10/+13
2018-02-12Add RequestUpdateAudioRenderer, StartAudioRenderer and StopAudioRenderer stubs to audren:ugdkchan1-2/+76
2018-02-12Make a GPU class in VideoCore to contain the GPU state.Subv7-181/+15
Also moved the GPU MemoryManager class to video_core since it makes more sense for it to be there.
2018-02-12GPU: Added a command processor to decode the GPU pushbuffers and forward the commands to their respective engines.Subv3-3/+5
2018-02-12nvdrv: Make the GPU memory manager available to nvhost-gpu.Subv3-6/+16
2018-02-12vi: Parse IGBPQueueBufferRequestParcel params and expose buffer flip vertical.bunnei6-11/+46
2018-02-11vi: Fix OpenLayer and CreateStrayLayer.bunnei1-6/+8
2018-02-10fsp_srv: Stub MountSdCard.bunnei2-0/+9
2018-02-10apm: Refactor service impl. to support multiple ports.bunnei4-58/+100
2018-02-10vi: Implement TransactParcelAuto.bunnei1-32/+46
2018-02-10nvflinger: (Hack) Use first available buffer if none are found.bunnei1-1/+5
2018-02-10IGBPQueueBufferRequestParcel: Don't enforce buffer length.bunnei1-1/+0
- Another fix for libnx.
2018-02-10IGBPRequestBufferResponseParcel: Fix response for libnx.bunnei1-7/+4
2018-02-09nvdrv: Fix QueryEvent for libnx.bunnei2-4/+8
2018-02-09IApplicationDisplayService::CloseDisplay: Fix response params size.bunnei1-1/+1
2018-02-09nvhost_ctrl_gpu: Implement ZCullGetInfo.bunnei1-2/+14
2018-02-09acc_u0: Implement ListAllUsers.bunnei2-2/+15
2018-02-08nvhost_as_gpu: Implement AllocateSpace and MapBufferEx.bunnei2-10/+33
2018-02-08nvdrv: Add MemoryManager class to track GPU memory.bunnei2-0/+160
2018-02-08nvmap: Refactor to expose nvmap objects.bunnei2-19/+22
2018-02-08nvhost_as_gpu: Add nvmap as a class member.bunnei3-2/+9
2018-02-07Service: stub some functions in am, audio, time, vi servicesmailwl9-6/+191
2018-02-06Service/hid: stub SetNpadHandheldActivationModemailwl1-0/+7
2018-02-06hid: Stub ActivateTouchScreen and SetNpadJoyHoldType.bunnei1-2/+14
2018-02-06Extra nvdrv support (#162)David16-37/+761
* FinishInitalize needed for 3.0.1+ games * nvdrv:s and nvdrv:t both use NVDRV * Most settings return 0 on hardware, disabled NV_MEMORY_PROFILER for now. NVN_THROUGH_OPENGL & NVRM_GPU_PREVENT_USE are a few interesting settings to look at. Carefully choosing settings can help with drawing graphics later on * Initial /dev/nvhost-gpu support * ZCullBind * Stubbed SetErrorNotifier * Fixed SetErrorNotifier log, Added SetChannelPriority * Allocate GPFIFO Ex2, Allocate Obj Ctx, Submit GPFIFO * oops * Fixed up naming/structs/enums. Used vector instead of array for "gpfifo_entry" * Added missing fixes * /dev/nvhost-ctrl-gpu * unneeded struct * Forgot u32 in enum class * Automatic descriptor swapping for ioctls, fixed nvgpu_gpu_get_tpc_masks_args being incorrect size * nvdrv#QueryEvent * Renamed logs for nvdrv * Refactor ioctl so nv_result isn't needed * /dev/nvhost-as-gpu * Fixed Log service naming, CtxObjects now u32, renamed all structs, added static_asserts to structs, used INSERT_PADDING_WORDS instead of u32s * nvdevices now uses "Ioctl" union, * IoctlGpfifoEntry now uses bit field * final changes
2018-02-06IApplicationFunctions: Stub out EnsureSaveData.bunnei2-0/+8
2018-02-05Dont call UNIMPLEMENTED for 'empty services', just return error codeDavid Marcec1-0/+2
2018-02-05set: GetAvailableLanguageCodes should not return lang_codes size.bunnei1-2/+3
2018-02-05nvflinger: Signal BufferQueue native handle event.bunnei1-0/+1
- This gets BOTW booting.
2018-02-05logger: Add Time service logging category.bunnei1-10/+10
2018-02-05logger: Add SET service logging category.bunnei1-1/+1
2018-02-05logger: Add PCTL service logging category.bunnei1-1/+1
2018-02-05logger: Add LM service logging category.bunnei1-2/+2
2018-02-05logger: Add APM service logging category.bunnei1-2/+3
2018-02-05lm: Ensure log string is non-empty before checking back().bunnei1-1/+1
2018-02-05logger: Add NIFM service logging category.bunnei4-11/+11
2018-02-05logger: Add VI service logging category.bunnei4-21/+20
2018-02-05hid: Stub out several functions.bunnei1-1/+39
2018-02-04hid: Implement CreateActiveVibrationDeviceList.bunnei1-0/+25
2018-02-04logger: Use Service_HID category where applicable.bunnei1-2/+2
2018-02-04logger: Use Service_NVDRV category where applicable.bunnei2-10/+10
2018-02-04logger: Add AM service logging category.bunnei3-42/+42
2018-02-04logger: Add "account" service logging category.bunnei1-8/+8
2018-02-04acc_u0: Stub out GetLastOpenedUser.bunnei2-0/+10
2018-02-04acc:u0 : stub GetAccountIdmailwl1-1/+9
2018-02-03controller: DuplicateSession should return a ClientSession.bunnei1-4/+9
2018-02-03Service:nifm: add nifm:a, nifm:s and nifm:u servicesmailwl9-0/+370
2018-02-02Service/am: Add AppletAE service (#153)mailwl6-379/+569
* Add AppletAE, step 1: move common interfaces to am.h * Add AppletAE, step 2
2018-02-02Services/vi: add vi:s and vi:u servicesmailwl5-0/+124
2018-02-02vi::CreateStrayLayer : add padding to requestmailwl1-0/+1
2018-01-30[WIP] sfdnsres: stub (#146)mailwl4-2/+51
sfdnsres: Add several stubs
2018-01-26time: Implement ISteadyClock::GetCurrentTimePoint.bunnei2-1/+22
2018-01-25audout_u: Various cleanups.bunnei1-29/+17
2018-01-25ResponseBuilder: Use a bit field for customizing instead of always_move_handles.bunnei2-2/+3
2018-01-25time: Stub GetSystemClockContext function.bunnei2-2/+17
2018-01-25hle: Rename RequestBuilder to ResponseBuilder.bunnei17-107/+107
2018-01-25service: Fix all incorrect IPC response headers.bunnei14-82/+42
2018-01-25hle: Integrate Domain handling into ServerSession.bunnei1-7/+5
2018-01-25hle: Remove Domain and SyncObject kernel objects.bunnei1-1/+0
2018-01-25audout:u OpenAudioOut and IAudioOut (#138)st4rk2-14/+166
* Updated the audout:u and IAudioOut, now it might work with RetroArch without trigger an assert, however it's not the ideal implementation * Updated the audout:u and IAudioOut, now it might work with RetroArch without trigger an assert, however it's not the ideal implementation * audout:u OpenAudioOut implementation and IAudioOut cmd 1,2,3,4,5 implementation * using an enum for audio_out_state as well as changing its initialize to member initializer list * Minor fixes, added Service_Audio for LOG_*, changed PcmFormat enum to EnumClass * Minor fixes, added Service_Audio for LOG_*, changed PcmFormat enum to EnumClass * added missing Audio loggin subclass, minor fixes, clang comment breakline * Solving backend logging conflict * minor fix * Fixed duplicated Service NVDRV in backend.cpp, my bad
2018-01-24Fix time returning epoch time in milliseconds rather than in secondsgdkchan1-1/+1
2018-01-23Services: Added a todo about returning interfaces as domain objects in lm, hid and time.Subv3-0/+12
2018-01-22Time: Don't create unnecessary ports when retrieving the clock service sessions.Subv1-33/+27
2018-01-22HID: Don't create an unnecessary port in CreateAppletResource.Subv1-13/+13
2018-01-22LM: Don't create an unnecessary port in Initialize.Subv2-15/+10
2018-01-22Stub OpenAudioOut and fix a issue with HID IAppletResource being created more than oncegdkchan3-2/+21
2018-01-22AppletOE: Stubbed CreateManagedDisplayLayer to create a new layer in the Default display.Subv1-0/+14
This function is used by libnx to obtain a new layer.
2018-01-22AppletOE: Make ISelfController keep a reference to nvflinger.Subv5-10/+32
It'll be needed when we implement CreateManagedDisplayLayer.
2018-01-22Services: Vi shouldn't be responsible for creating nvflinger.Subv5-7/+13
It is now created during Service initialization and passed to all the services that need it.
2018-01-22VI: Move BufferQueue and NVFlinger to their own folder/namespace.Subv8-363/+448
2018-01-22Added stubs for audio services. (#116)st4rk11-5/+299
* stubs for audout:u, audin:u, audrec:u, audren:u, codecctl and decoding tables with nullptr for future implementations * fixing the changes requested (remove private, explicit)
2018-01-21Added nvmemp, Added /dev/nvhost-ctrl, SetClientPID now stores pid (#114)David7-5/+158
* Added nvmemp, Added /dev/nvhost-ctrl, SetClientPID now stores pid * used clang-format-3.9 instead * lowercase pid * Moved nvmemp handlers to cpp * Removed unnecessary logging for NvOsGetConfigU32. Cleaned up log and changed to LOG_DEBUG * using std::arrays instead of c arrays * nvhost get config now uses std::array completely * added pid logging back * updated cmakelist * missing includes * added array, removed memcpy * clang-format6.0
2018-01-21nvmap: Add a return 0 underneath the UNIMPLEMENTED macroLioncash1-0/+1
This macro resolves to an empty macro in release builds.
2018-01-21nvmap: Make IoctlCommands an enum classLioncash2-12/+12
Prevents the enum values from polluting the surrounding scope
2018-01-21fsp_srv: Various improvements to IStorage:Read implementation.bunnei3-48/+72
2018-01-21filesystem: Implement basic IStorage functionality.David Marcec5-0/+254
2018-01-21VI: Implement the Query transaction of IHOSBinderDriver, and stubbed some results.Subv2-0/+58
2018-01-21service/time: remove accidental #pragmastgsm2-4/+0
2018-01-21Format: Run the new clang format on everythingJames Rowe4-5/+7
2018-01-20Added CreateSharedMemory & UNIMPLEMENTED() for non existent services. (#113)David1-0/+1
* Added svcCreateSharedMemory * Services which are not implemented now throw UNIMPLEMENTED() * clang-format * changed perms to u32 * removed camelcase
2018-01-20Fixes some cast warnings, partial port of citra #3064 (#106)River City Ransomware1-1/+1
* Fixes some cast warnings, partially fixes citra #3064 * Converted casts to uint32_t to u32 * Ran clang-format
2018-01-19acc, set, applet_oe: stub various functions, add set service (#105)goaaats7-0/+159
* 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
2018-01-19ISelfController: Stub LockExit and UnlockExitRozlette1-0/+16
2018-01-19time: Add new line to ends of files.bunnei4-4/+4
2018-01-19applet_oe: Clang-format.bunnei1-2/+1
2018-01-19time: Stub out GetTotalLocationNameCount and some cleanup.bunnei2-4/+12
2018-01-19nvdrv: Stub SetClientPID.bunnei2-0/+13
2018-01-19Fix dispdrv typogdkchan1-1/+1
2018-01-18Stub PopLaunchParameter and implement Buffer C Descriptors reading on hle_ipc (#96)gdkchan1-0/+86
* Stub PopLaunchParameter and implement Buffer C Descriptors reading * Address PR feedback * Ensure we push a u64 not a size_t * Fix formatting
2018-01-18Start to implement/stub BSD:U and SFDNSRES services (#78)flerovium^-^6-0/+154
* bsd: start stubbing bsd:u and sfdnsres * bsd: stubbed RegisterClient * bsd: attempt to get past socket() * bsd: fix some wrong assumptions about IPC * bsd: fix format specifiers * bsd: stubbed Connect() * bsd: stubbed SendTo() * made requested changes * sockets: respect alphabetical order at service installation * run clang-format * bsd: start stubbing bsd:u and sfdnsres * bsd: stubbed RegisterClient * bsd: attempt to get past socket() * bsd: fix some wrong assumptions about IPC * bsd: fix format specifiers * bsd: stubbed Connect() * bsd: stubbed SendTo() * made requested changes * sockets: respect alphabetical order at service installation * run clang-format * run clang-format (2)
2018-01-18time: Fix use of CamelCase in ToCalendarTimeWithMyRuleRozlette1-6/+6
2018-01-18time: Refactor time:* to use a single shared moduleRozlette6-26/+103
2018-01-18lm: Minor logging fix to skip a byte.bunnei1-0/+7
2018-01-18controller: Use DuplicateSession for DuplicateSessionEx.bunnei2-1/+8
2018-01-18vi: Make constructors explicit where applicableLioncash1-13/+14
Prevents implicit conversions.
2018-01-18vi: Add missing override specifiersLioncash1-7/+7
2018-01-18vi: Copy data directly into the std::vector within Parcel's ReadBlock functionLioncash1-2/+3
Previously this would unnecessarily zero-initialize the vector before copying the actual data into the vector instance.
2018-01-17TIME: consolidate time:* interfaces, stub functions and structsRozlette4-83/+164
2018-01-17nvdrv: stubbed Close(cmd 2)Frederic Meyer4-0/+26
2018-01-17hid: Adjust timing based on actual hardwareshinyquagsire231-3/+3
2018-01-17UI: Fix frame rate perf statsJames Rowe1-0/+3
Adds in a missing EndGameFrame when nvdrv swaps buffers
2018-01-17acc_u0: Add IPC interface and stub InitializeApplicationInfo.bunnei5-0/+82
2018-01-17hid: clang-formatshinyquagsire231-3/+3
2018-01-17hid: Adjust for style guideshinyquagsire232-63/+68
2018-01-17applet_oe: Fix GetOperationMode and GetPerformanceMode.bunnei1-2/+2
2018-01-17NV: Implemented the nvdrv service, which uses the same interface as nvdrv:aSubv3-14/+16
2018-01-17NV: Move the nvdrv classes into the Nvidia namespace, and move the functionality to a s single module that services call.Subv13-165/+95
2018-01-17VI: Stubbed GetNativeHandle, Create/DestroyStrayLayer and CloseDisplaySubv2-3/+85
2018-01-17Services: Stubbed APM::OpenSession and the ISession interface.Subv3-2/+53
# Conflicts: # src/core/hle/service/am/applet_oe.cpp # src/core/hle/service/apm/apm.cpp
2018-01-17AppletOE: Stub a bunch of functions required by libnx homebrew.Subv1-4/+62
2018-01-16implemented more of ISelfController and IApplicationFunctionsDavid Marcec1-0/+53
2018-01-16clang-formatMerryMage2-2/+2
2018-01-16hid: Write to all layouts, implement circular buffers, set up controller metadata.shinyquagsire232-39/+71
2018-01-15pctl: Clang format.bunnei1-1/+1
2018-01-15pctl: GetService should return an IParentalControlService interface.bunnei1-3/+8
2018-01-15applet_oe: Stub SetFocusHandlingMode, GetCurrentFocusState, SetTerminateResult.bunnei1-2/+55
2018-01-15hid: Bare-minimum sharedmem inputshinyquagsire232-2/+88
2018-01-15hid: Remove redundant HID prefix on structs/enumsshinyquagsire231-73/+73
2018-01-15hid: Add sharedmem structsshinyquagsire231-0/+312
2018-01-15vi: Add IManagerDisplayService::CloseDisplay functionbsaleil1-0/+10
2018-01-15Games expect 15 for ICommonStateGetter::ReceiveMessage in order to continue executionDavid Marcec1-1/+1
2018-01-15renderer: Render previous frame when no new one is available.bunnei1-1/+4
2018-01-15lm: Fix IPC header for Initialize.bunnei1-1/+1
2018-01-15time: Implement GetStandardUserSystemClock, GetCurrentTime.bunnei5-1/+117
2018-01-15audio: Add files to CMake.bunnei1-1/+0
2018-01-15hid: Remove unused registered_loggers.bunnei1-3/+0
2018-01-15audio: Stub out AudOutU::ListAudioOuts.bunnei5-0/+84
2018-01-15hid: Implement IAppletResource::GetSharedMemoryHandle.bunnei3-14/+68
2018-01-13yuzu: Update license text to be consistent across project.bunnei35-35/+35
2018-01-13Remove settings issues in sdl and fix a few files that broke in mingwJames Rowe1-2/+0
2018-01-13Remove references to PICA and rasterizers in video_coreJames Rowe4-249/+0
2018-01-12core: Include <algorithm> where used.bunnei2-0/+4
2018-01-12nv: Fix more broken asserts.bunnei2-3/+3
2018-01-12nvdisp_disp0: Fix broken assert.bunnei1-1/+1
2018-01-11nvdisp_disp0: Call SwapBuffers to render framebuffer.bunnei1-0/+7
2018-01-11NV: Move the nv device nodes to their own directory and namespace.Subv10-166/+423
2018-01-11VI: Use a Pulse event instead of OneShot for the vblank events.Subv1-1/+1
This prevents missing frames if the vblank fires between the DequeueBuffer and Wait(vsync) calls
2018-01-11vi: Use new CoreTiming::EventTypebunnei1-1/+5
2018-01-11NV: Expose the nvdisp_disp0 device and a weak reference to the nvdrv:a service.Subv6-172/+252
NVFlinger will call into the nvdisp_disp0 device to perform screen flips, bypassing the ioctl interface. We now have the address of the framebuffer to draw, we just need to actually put it on the screen.
2018-01-11NV: Determine what buffer to draw for each layer of each display.Subv2-13/+58
Don't try to draw buffers that the guest application is using, only queued buffers are eligible for drawing. Drawing actual pixels is still not implemented.
2018-01-11NV: Signal all display's vsync event 60 times per second.Subv2-1/+32
2018-01-11NV: Give each display its own vsync event.Subv2-12/+29
2018-01-11NV: Keep track of Displays, Layers and BufferQueues in nvflinger.Subv4-41/+261
2018-01-11NV: Implemented (with stubs) the vi:m service and some of its subservices.Subv5-0/+718
The homebrew display test application now properly writes graphics data to the graphics buffer but we still don't have a way to compose the display layers.
2018-01-11NV: Implemented the nvdrv:a service and the /dev/nvmap device.Subv4-0/+354
2018-01-10Services: Allow lm to log single-character messages.Subv1-7/+3
2018-01-07IPC: Make DuplicateSession return the Domain instead of the Session if the request was made on a Domain interface.Subv2-2/+7
2018-01-07AppletOE: Fixed command buffer structure for ReceiveMessage.Subv1-2/+1
2018-01-07IPC: Corrected some command headers in the IPC Controller interface.Subv1-4/+2
2018-01-07IPC: Corrected some command header sizes in appletOE.Subv1-12/+21
2018-01-07IPC: Take the number of domain objects as a parameter in MakeBuilder.Subv1-2/+2
2018-01-07SM: Fixed connecting to services with an 8-byte name, like appletOE.Subv1-12/+4
2018-01-07IPC: Fixed pushing ResultCodes into the command buffer.Subv1-2/+2
They should have 32 bits of padding after the error code now.
2018-01-07IPC Cleanup: Remove 3DS-specific code and translate copy, move and domain objects in IPC requests.Subv4-4/+4
Popping objects from the buffer is still not implemented.
2018-01-07IPC: Skip the entire u64 of the command id when receiving an IPC request.Subv1-14/+3
Service code now doesn't have to deal with this.
2018-01-06lm: Assert on unsupported multi-message.bunnei1-0/+9
2018-01-05lm: Improve Log() to format a useful string.bunnei1-10/+75
2018-01-03pctl: Remove duplicate InstallInterfaces function.bunnei1-4/+0
2017-12-29applet_oe: Stub out a bunch of interfaces necessary for boot.bunnei2-1/+159
2017-12-29controller: Implement DuplicateSession.bunnei2-9/+11
2017-12-29kernel: Fix implementation of ConvertSessionToDomain.bunnei3-24/+9
2017-12-29ap, aoc_u: Minor cleanup.bunnei3-4/+1
2017-12-29service: Add empty interface for pctl:a.bunnei5-0/+86
2017-12-28service: Clean up apm/lm/applet_oe/controller/sm ctor/dtor.bunnei10-20/+10
2017-12-28service: Halt on ReportUnimplementedFunction and improve output log.bunnei1-4/+2
2017-12-28service: Add empty interface for aoc:u.bunnei3-0/+42
2017-11-01service: Return proper result code for IPC::CommandType::Close.bunnei2-3/+5
2017-11-01hle: Use Switch formatted result codes.bunnei1-13/+5
2017-10-19lm: Implement lm::Initialize and Logger::log.bunnei2-3/+67
2017-10-19service: Add CreatePort function (that does not register/install).bunnei2-0/+12
2017-10-18service: Print correct command ID on unimplemented function.bunnei1-1/+1
2017-10-15hle: Implement ConvertSessionToDomain, various cleanups.bunnei5-27/+40
2017-10-15hle: Add service stubs for apm and appletOE.bunnei9-2/+130
2017-10-15hle: Initial implementation of NX service framework and IPC.bunnei10-432/+283
2017-10-13Remove more 3DS-specific code.bunnei4-45/+0
2017-10-13Remove more 3DS-specific code.bunnei5-1411/+1
2017-10-13Remove more 3DS-specific code.bunnei1-9/+0
2017-10-13Remove lots more 3DS-specific code.bunnei24-4161/+6
2017-10-10hle: Remove a large amount of 3ds-specific service code.bunnei173-20703/+2
2017-10-09Change command header in nwm::UDS Initialize functionDragios1-1/+1
2017-09-30arm: Use 64-bit addressing in a bunch of places.bunnei1-1/+1
2017-09-30Services/NIM: Implement CheckForSysUpdateEvent.Subv3-2/+29
Implementation verified by reverse engineering. This lets the Home Menu boot without crashing on startup.
2017-09-30Services/UDS: Handle the rest of the connection sequence. (#2963)B3n303-19/+250
Services/UDS: Handle the rest of the connection sequence.
2017-09-30Fixed type conversion ambiguityHuw Pascoe9-19/+21
2017-09-26HLE/APT: Always set up the APT parameter when starting a library applet.Subv2-30/+47
Only use the HLE interface if an HLE applet with the desired id was started. This commit reorganizes the APT code surrounding parameter creation and delivery to make it easier to support LLE applets in the future. As future work, the HLE applet interface can be reworked to utilize the same facilities as the LLE interface.
2017-09-25HLE/Archives: Allow multiple loaded applications to access their SelfNCCH archive independently.Subv2-1/+24
The loaders now register each loaded ROM with the SelfNCCH factory, which keeps the data around for the duration of the emulation session. When opening the SelfNCCH archive, the factory queries the current program's programid and uses that as a key to the map that contains the NCCHData structure (RomFS, Icon, Banner, etc). 3dsx files do not have a programid and will use a default of 0 for this value, thus, only 1 3dsx file with RomFS is loadable at the same time.
2017-09-25Services/UDS: Added a function to send EAPoL-Start packets (#2920)B3n305-88/+250
* Services/UDS: Added a function to generate the EAPoL-Start packet body. * Services/UDS: Added filter for beacons. * Services/UDS: Lock a mutex when accessing connection_status from both the emulation and network thread. * Services/UDS: Handle the Association Response frame and respond with the EAPoL-Start frame. * fixup: make use of current_node, changed received_beacons into a list, mutex and assert corrections * fixup: fix damn clang-format
2017-09-24HLE/APT: Always return an error from PrepareToStartNewestHomeMenu so that the Home Menu doesn't try to reboot the system.Subv3-2/+26
As per 3dbrew: "During Home Menu start-up it uses APT:PrepareToStartNewestHomeMenu. If that doesn't return an error(normally NS returns 0xC8A0CFFC for that), Home Menu starts a hardware reboot with APT:StartNewestHomeMenu etc. "
2017-09-24HLE/APT: Prepare the APT Wakeup parameter when the game calls InitializeSubv1-6/+19
We need to know what is being run so we can set the APT parameter destination AppId correctly. Delaying the preparation of the parameter until we know which AppId is running lets us support booting both the Home Menu and normal game Applications.
2017-09-24HLE/SRV: Implemented RegisterService.Subv4-1/+33
Now system modules can do more than just crash immediately on startup.
2017-09-16Services/NS: Port ns:s to the new service framework.Subv6-40/+73
2017-09-03APT: load different shared font depending on the regionwwylele3-135/+155
2017-08-27Services/UDS: Remove an old duplicated declaration of WifiPacket.Subv2-22/+0
2017-08-27Services/UDS: Handle the connection sequence packets.Subv1-17/+83
There is currently no stage tracking, a client is considered "Connected" when it receives the EAPoL Logoff packet from the server, this is not yet implemented.
2017-08-27Services/UDS: Store the received beacon frames until RecvBeaconBroadcastData is called, up to 15 beacons at the same time, removing any older beacon frames when the limit is exceeded.Subv1-3/+62
2017-08-27Services/UDS: Add functions to generate 802.11 auth and assoc response frames.Subv4-11/+142
2017-08-24HID: use TouchDevice for touch padwwylele1-4/+8
2017-08-20HID: fix a comment and a warningwwylele1-2/+2
2017-08-15dsp_dsp: Remove size assertion in LoadComponentMerryMage1-3/+4
2017-08-11HID: use MotionDevice for Accelerometer and Gyroscopewwylele1-5/+27
2017-08-10HID: zero unused PadState bitswwylele2-2/+2
2017-08-09Service/dlp: Update function tables according 3dbrewmailwl3-4/+44
2017-08-08Update cryptoppJames1-1/+1
2017-08-07Services/APT: Use the AppletAttributes union directly when dealing with applet attrs.Subv1-19/+15
2017-08-07Services/APT: Use an array to hold data about the 4 possible concurrent applet types (Application, Library, HomeMenu, System).Subv2-35/+204
This gives each applet type its own set of events as per the real NS module.
2017-08-04telemetry: Add field for RequiresSharedFont.bunnei1-0/+4
2017-07-21Service/APT: Log Send/Cancel/Receive/GlanceParameter calls even if they return an error.Subv1-7/+9
2017-07-21Services/APT: Return the proper error code when calling SendParameter with an outstanding parameter already in memory.Subv2-4/+17
2017-07-21Services/APT: Reset the APT parameter inside CancelParameter if the conditions are met.Subv1-6/+23
2017-07-21Services/APT: Properly clear the apt parameter after a successful ReceiveParameter call.Subv1-2/+8
2017-07-21Services/APT: Use the right error codes in ReceiveParameter and GlanceParameter when the parameter doesn't exist.Subv1-0/+28
2017-07-21Services/APT: Use boost::optional for the APT parameter structure.Subv1-20/+26
2017-07-17stubbed frd::UnscrambleLocalFriendCode (#2827)B3n303-1/+57
2017-07-01Service/boss:P: Add some functions to FunctionTablemailwl1-0/+3
2017-06-26UDS: Use the ToDS and FromDS fields to properly calculate the AAD used during encryption.Subv1-15/+32
2017-06-26UDS: Move the UDS keyslot used to generate the CCMP key to the AES::KeySlotID enum.Subv1-4/+1
2017-06-26UDS: Run clang-format.Subv3-51/+55
2017-06-26UDS: Added functions to encrypt and decrypt the data frames.Subv3-12/+156
The responsibility of encryption and encapsulation into an 802.11 MAC frame will fall into the callers of GenerateDataPayload.
2017-06-26apt: load shared font from system archivewwylele1-20/+134
2017-06-25apt/shared_font: don't relocate zero offsetwwylele1-2/+4
2017-06-22Memory: Add function to flush a virtual range from the rasterizer cacheYuri Kunde Schlesner2-8/+7
This is slightly more ergonomic to use, correctly handles virtual regions which are disjoint in physical addressing space, and checks only regions which can be cached by the rasterizer.
2017-06-22Memory: Make PhysicalToVirtualAddress return a boost::optionalYuri Kunde Schlesner1-1/+1
And fix a few places in the code to take advantage of that.
2017-06-19ResultVal: Remove MoveFrom()Yuri Kunde Schlesner19-46/+46
Replace it with std::move(result_val).Unwrap(), or Foo().Unwrap() in case you already have an rvalue.
2017-06-19Kernel/IPC: Make HLERequestContext usable from outside kernelYuri Kunde Schlesner1-2/+1
2017-06-15UDS: Clarify comment about the first 4 bytes of the SecureData header.Subv2-1/+5
It is likely that these 4 bytes are actually a different header, part of some protocol that encapsulates the SecureData protocol.
2017-06-15UDS: Return the correct error messages in SendTo when not connected to a network or trying to send to itself.Subv1-6/+13
2017-06-15UDS: Stub SendTo to generate the unencrypted data frame with the right headers.Subv3-1/+259
2017-06-15UDS: Added a hook for updating the connection status when a client connects to the network.Subv1-0/+36
2017-06-13Services/UDS: Set the proper bit in the ConnectionStatus structure when creating a network. (#2738)Sebastian Valle3-5/+15
* Services/UDS: Set the proper bit in the ConnectionStatus structure when creating a network. This lets the application know that the host was successfully added to the session. * Services/UDS: Reset the connection status when destroying the network * Services/UDS: Reset the connection status's bitmask of changed nodes after reporting it to the game.
2017-06-11Kernel: Basic support for IPC translation for HLE servicesYuri Kunde Schlesner1-12/+5
2017-06-11Service/sm: Convert srv: to use IPC helpersYuri Kunde Schlesner1-49/+56
2017-06-11ServiceFramework: Use separate copy of command bufferYuri Kunde Schlesner1-6/+20
Copy the IPC command buffer to/from the request context before/after the handler is invoked. This is part of a move away from using global data for handling IPC requests.
2017-06-09Service/sm: Convert 'srv:' to ServiceFrameworkYuri Kunde Schlesner5-51/+75
2017-06-08Service: Remove a few redundant namespace qualifiersYuri Kunde Schlesner1-5/+5
2017-06-08Service: Add new ServiceFramework framework for writing HLE servicesYuri Kunde Schlesner2-1/+232
The old "Interface" class had a few problems such as using free functions (Which didn't allow you to write the service handler as if it were a regular class.) which weren't very extensible. (Only received one parameter with a pointer to the Interface object.) The new ServiceFramework aims to solve these problems by working with member functions and passing a generic context struct as parameter. This struct can be extended in the future without having to update all existing service implementations.
2017-06-06Services/UDS: Implement DecryptBeaconData.Subv1-1/+97
This function decrypts the encrypted data tags contained in the 802.11 beacon frames.
2017-06-06Service: Remove unnecessary includes from service.hYuri Kunde Schlesner31-12/+79
This has a huge fallout in terms of needing to fix other files because all service implementations included that file.
2017-06-06Service: Make service registration part of the sm implementationYuri Kunde Schlesner5-24/+145
Also enhances the GetServiceHandle implementation to be more accurate.
2017-06-06Service/sm: Use an actual semaphore for the notification semaphoreYuri Kunde Schlesner1-8/+9
An Event was used way back then when we didn't have proper working semaphores. Our Semaphore implementation is good enough now.
2017-06-06Service: Move SRV interface to a new sm/ subdirectoryYuri Kunde Schlesner3-7/+8
This will contain the implementation of the sm (Service Manager) system module.
2017-06-06Kernel: Add a dedicated SetHleHandler method to ServerPort/ServerSessionYuri Kunde Schlesner4-29/+37
This allows attaching a HLE handle to a ServerPort at any point after it is created, allowing port/session creation to be generic between HLE and regular services.
2017-06-06HLE: Move SessionRequestHandler from Service:: to Kernel::Yuri Kunde Schlesner5-58/+8
Most of the code that works with this is or will be in the kernel, so it's a more appropriate place for it to be.
2017-06-03Addressed Bunnei's review comments, and made some other tweaks:TheKoopaKingdom1-1/+2
- Deleted GetStatus() because it wasn't used anywhere outside of Core::System. - Fixed design flaw where the message bar status could be set despite the game being stopped.
2017-06-03Switched to the ERROR_NOT_FOUND constant from errors.h.TheKoopaKingdom1-2/+1
2017-06-03Moved whitelist checks from FS_User to the Archive_NCCH handler.TheKoopaKingdom1-52/+2
2017-06-03Created a whitelist of system archives to prevent false positives creating dialogs.TheKoopaKingdom2-7/+53
2017-06-03Made some changes from review comments:TheKoopaKingdom2-9/+6
- Made LoadKernelSystemMode return a pair consisting of a system mode and a result code (Could use review). - Deleted ErrorOpenGL error code in favor of just having ErrorVideoCore. - Made dialog messages more clear. - Compared archive ID in fs_user.cpp to ArchiveIdCode::NCCH as opposed to hex magic. - Cleaned up some other stuff.
2017-06-03Added system for handling core errors in citra-qt.TheKoopaKingdom3-2/+12
2017-05-30Kernel: Move HandleTable to a separate fileYuri Kunde Schlesner2-1/+2
2017-05-28Core: Fix some out-of-style includesYuri Kunde Schlesner1-1/+1
2017-05-27fixup!cam: use IPCHelperwwylele2-30/+43
2017-05-25FS: Remove unused result definitionYuri Kunde Schlesner1-5/+0
2017-05-25Kernel: Centralize error definitions in errors.hYuri Kunde Schlesner5-14/+5
2017-05-25GSP_GPU: Move error codes from result.h to local fileYuri Kunde Schlesner1-14/+23
2017-05-25FileSys: Move all result description to errors.hYuri Kunde Schlesner4-23/+19
2017-05-25result: Make error description a generic integerYuri Kunde Schlesner2-3/+4
It is now known that result code description vary depending on the module, and so they're best defined on a per-module basis. To support this, allow passing in an arbitrary integer instead of limiting to the ones in the ErrorDescription enum. These will be gradually migrated to their individual users, but a few will be kept as "common" codes shared by all modules.
2017-05-24cam: move u32->u8 trancation to IPCHelperwwylele1-34/+33
2017-05-24cam: use IPCHelperwwylele1-278/+238
2017-05-19use IPCHelper for PTM servicesemmaus3-31/+45
2017-05-15Services/UDS: Use the new IPC helper functions.Subv1-21/+10
2017-05-15Services/UDS: Implement RecvBeaconBroadcastData.Subv1-19/+69
This allows the applications to retrieve 802.11 beacon frames from nearby UDS networks. Note that the networks are still not announced anywhere.
2017-05-15Services/UDS: Generate the UDS beacons when the beacon callback fires.Subv4-7/+535
2017-05-07fixup!ir: implement new 3ds HID via ir:rstwwylele1-31/+32
2017-05-06Create a random console_unique_id (#2668)B3n302-5/+71
* Create a random console_id when config save_file is created Added button in system config to refresh the console unique id * Moved the connect for the button from .ui file to constructor of ConfigureSystem * Added warning and info dialog Fixup: Make use of qt5 style connects, renamed the refresh button, removed some duplicate code, changed random device and moved all to the generate function * Changed the random generator to reflect what a real 3DS stores as console unique id Fixup: Changed the warning message * Fixup: Set and Create * Fixup: Added console id label, therfore removed second message box * Fixup: fixed the endianess * Fixup: more endianness fixes * Fixup: Endianness the 3rd
2017-05-04ir: implement new 3ds HID via ir:rstwwylele8-23/+206
2017-05-03ir: implement circle pad prowwylele4-44/+757
2017-04-17ldr_ro: use IPC helperwwylele1-193/+138
2017-04-12dsp_dsp: Messages are modified by service before being sent to DSPMerryMage1-0/+18
2017-04-03error conversion fixes for soc_unoah the goodra1-39/+32
2017-03-27Services/UDS: Fixed a style mistake in GetChannel.Sebastian Valle1-2/+1
2017-03-26Services/UDS: Use consistent spelling for WiFi and simplify the GetChannel function.Subv1-4/+4
2017-03-26Services/UDS: Signal the connection event when closing down the network.Subv1-0/+1
2017-03-26Services/UDS: Do not allow trying to start up a network that only the host can connect to.Subv1-0/+3
2017-03-26Service/UDS: Schedule an event to broadcast the beacon frames every 102.4ms.Subv2-2/+58
2017-03-26Services/UDS: Store the entire NetworkInfo structure that was used to create the network.Subv1-13/+5
It will be needed when generating the beacon frames.
2017-03-26Services/UDS: Initial support for hosting local-wlan networks.Subv2-44/+336
Currently it will let games create a network as hosts, but will not broadcast it anywhere and will not allow clients to connect.
2017-03-25ptm: create SharedExtSave file before openning itwwylele1-1/+1
2017-03-20hopefully fix clang-format issues with old versionLectem1-3/+2
2017-03-19address more commentsLectem1-20/+20
2017-03-18Cast size_t to u32 for PushStaticBuffer usagesLectem1-2/+2
2017-03-18IPCHelper Skip method + address comments for aptLectem2-37/+39
2017-03-18apt: fix RequestBuilder parameters for Unwrapwwylele1-1/+1
2017-03-18fix #2560 and other commentsLectem2-20/+20
2017-03-18move push out of class body and add u8 u16 bool specializationsLectem2-6/+4
2017-03-18refactor APT service to use the new IPC helpersLectem3-195/+246
2017-03-12cfg: implement GenHashConsoleUniquewwylele1-7/+24
2017-03-01Input: remove unused stuff & clean upwwylele1-34/+0
1. removed zl, zr and c-stick from HID::PadState. They are handled by IR, not HID 2. removed button handling in EmuWindow 3. removed key_map 4. cleanup #include
2017-03-01HID: use AnalogDevicewwylele1-2/+9
2017-03-01HID: use ButtonDevicewwylele2-1/+47
2017-02-27Doxygen: Amend minor issues (#2593)Mat M3-6/+6
Corrects a few issues with regards to Doxygen documentation, for example: - Incorrect parameter referencing. - Missing @param tags. - Typos in @param tags. and a few minor other issues.
2017-02-27Core: Make PerfStats internally lockedYuri Kunde Schlesner1-2/+1
More ergonomic to use and will be required for upcoming changes.
2017-02-27Add performance statistics to status barYuri Kunde Schlesner1-0/+3
2017-02-27Core: Remove unnecessary include in thread.hYuri Kunde Schlesner1-0/+1
2017-02-26IR: separate functions of each port to their own fileswwylele6-147/+159
2017-02-21APT: implement Wrap and Unwrapwwylele5-6/+149
2017-02-17HID: move enable_accelerometer/gyroscope_count initialization into Init() (#2574)Weiyi Wang1-2/+5
Fixes #2556
2017-02-14NWM changed to NIMnoah the goodra1-1/+1
2017-02-14turned clang format back onnoah the goodra1-1/+1
2017-02-13loader: use self NCCH archivewwylele1-1/+1
2017-02-11hid: remove the touch field from PadState (#2557)Weiyi Wang1-4/+0
2017-02-03GSP_GPU::StoreDataCache stubbed (#2428)mailwl1-1/+28
2017-01-29core: fix err_f.cpp warning about unhandled enumeration value on OSXKloen1-0/+2
2017-01-23core: fix mic_u warnings on MSVCKloen1-4/+4
2017-01-20HID: reset acceleroeter and gyroscope index in Initwwylele1-0/+2
2017-01-19CFG: override language setting on bootwwylele1-36/+38
2017-01-16CoreTiming: use named constant for ARM11 clock ratewwylele1-3/+3
2017-01-16HID: manages updating itself using correct tickswwylele2-58/+93
2017-01-14Service/NFC: stub some functionsmailwl4-20/+249
Tested on: Mini-Mario & Friends - amiibo Challenge
2017-01-14GSP::WriteHWRegsWithMask: fix register maskmailwl1-1/+1
2017-01-11Y2R: Use the proper error code when GetStandardCoefficient receives an invalid value.Subv1-1/+3
2017-01-11CAM: implement basic camera functions with a blank camerawwylele3-172/+1242
2017-01-04Fix some warnings (#2399)Jonathan Hao4-8/+6
2016-12-30Service/NFC: stub GetTagInRangeEventmailwl5-0/+42
Fix Fatal Error in Mini-Mario & Friends - amiibo Challenge
2016-12-30Service/AC: add ac:i servicemailwl8-295/+418
2016-12-26IPC helpers exampleLectem3-35/+40
2016-12-23core: Move emu_window and key_map into coreMerryMage1-1/+1
* Removes circular dependences (common should not depend on core)
2016-12-22Service/NWM: add nwm servicesmailwl17-8/+301
2016-12-22core: Replace "AppCore" nomenclature with just "CPU".bunnei1-4/+4
2016-12-22Address clang-format issues.bunnei1-2/+2
2016-12-22core: Remove HLE module, consolidate code & various cleanups.bunnei5-9/+7
2016-12-22core: Consolidate core and system state, remove system module & cleanups.bunnei1-4/+4
2016-12-15FS: fix debug build from #2249wwylele1-11/+9
2016-12-15hid: Get rid of a double -> float truncation warningLioncash1-1/+2
float literals need to have the 'f' prefix.
2016-12-15core: Add missing #pragma once directives where applicableLioncash2-0/+4
2016-12-15act: Fix docstring typoLioncash1-1/+1
These aren't the AM services.
2016-12-15Service/CECD: Add cecd:ndm servicemailwl7-13/+79
2016-12-14Fixed the codestyle to match our clang-format rules.Subv7-32/+52
2016-12-14Service/ACT: move ACT services to foldermailwl7-6/+38
2016-12-13Minor amendment of GSP_GPU::ImportDisplayCaptureInfo codeJamePeng1-3/+5
2016-12-12csnd:SND reformat source codemailwl2-49/+92
2016-12-11APT::GetStartupArgument: force clear startup argumentmailwl2-5/+11
2016-12-11Add all services to the Service namespaceLioncash41-471/+376
Previously there was a split where some of the services were in the Service namespace and others were not.
2016-12-09Moved the HLE command buffer translation task to ServerSession instead of the HLE handler superclass.Subv4-45/+15
2016-12-09Kernel/IPC: Small codestyle cleanupSubv1-1/+1
2016-12-09service: Add cfg:nor serviceLioncash3-0/+47
2016-12-09ptm: Use boolean instead of integral valueLioncash1-1/+1
The third parameter of Write is actually a bool type, not an int.
2016-12-09service: Drop '_Interface' from cfg service namesLioncash7-12/+12
2016-12-08Added a framework for partially handling Session disconnections.Subv4-0/+32
Further implementation will happen in a future commit. Fixes a regression.
2016-12-08Use std::move where appropriate.Subv4-165/+10
2016-12-08service: Add the ptm:s serviceLioncash3-0/+14
3dbrew documents this as being the exact same as ptm:sysm
2016-12-08service: Add common ptm:u commands to other ptm servicesLioncash4-0/+54
3dbrew indicates that all services have access to these commands except for ptm:sets.
2016-12-08service: Drop '_Interface' in ptm service class namesLioncash7-14/+14
Inheriting from Service::Interface makes this obvious.
2016-12-08service: Add ptm::gets and ptm::sets servicesLioncash5-0/+86
2016-12-08service: Add mvd and qtm servicesLioncash13-0/+259
Adds the two New3DS-only modules. 3dbrew was used for command information.
2016-12-08service: Add nfc servicesLioncash7-30/+193
3dbrew was used for the command information.
2016-12-08ssl_c: Update function tableLioncash1-0/+3
Updated based off information from 3dbrew
2016-12-08ptm: Update ptm_sysm function tableLioncash3-6/+7
Updated based off information from 3dbrew.
2016-12-08pm_app: Update function tableLioncash1-6/+9
Updated based off information from 3dbrew.
2016-12-08nwm_uds: Update function tableLioncash1-5/+7
Updated based off information from 3dbrew.
2016-12-08nim: Update function tablesLioncash2-0/+2
Updated based off information from 3dbrew.
2016-12-08http_c: Update function tableLioncash1-0/+4
Updated based off information from 3dbrew.
2016-12-08gsp_lcd: Update function tableLioncash1-0/+4
Updated based off information from 3dbrew.
2016-12-08fs_user: Update function tableLioncash1-0/+2
Updated based off information from 3dbrew.
2016-12-08dlp_srvr: Update function tableLioncash1-0/+7
2016-12-08cfg: Update function tablesLioncash3-0/+3
Updated based off information from 3dbrew
2016-12-08cecd_u: Update function tableLioncash1-1/+13
Updated based off information from 3dbrew.
2016-12-08boss_p: Update function tableLioncash1-3/+68
2016-12-08act: Update function tablesLioncash2-0/+10
Updated based off information from 3dbrew.
2016-12-08apt: Update apt function tablesLioncash2-7/+73
Updated based off information from 3dbrew.
2016-12-08Update AM service function tablesLioncash6-113/+246
Updated based off information from 3dbrew.
2016-12-07Config: auto-select region and languagewwylele2-2/+62
2016-12-05Return an error code when connecting to a saturated port.Subv1-2/+6
The error code was taken from the 3DS kernel.
2016-12-05HLE: Use a member variable instead of a virtual function to retrieve the max number of sessions that can be connected to an HLE service at the same time.Subv5-8/+18
2016-12-05Split SessionRequestHandler::HandleSyncRequest into HandleSyncRequest, TranslateRequest and HandleSyncRequestImpl.Subv4-22/+57
HandleSyncRequest now takes care of calling the command buffer translate function before actually invoking the command handler for HLE services.
2016-12-05KServerPorts now have an HLE handler "template", which is inherited by all ServerSessions created from it.Subv3-21/+21
2016-12-04GSP: Downgrade log severity of SetAxiConfigQoSModeYuri Kunde Schlesner1-1/+1
This function doesn't need to do anything for HLE and some games call it quite often, spamming up the logs.
2016-12-01Threads do not wait for the server endpoint to call AcceptSession before returning from a ConnectToPort or GetServiceHandle call.Subv1-1/+2
2016-12-01Fixed the rebase mistakes.Subv3-31/+30
2016-12-01A bit of a redesign.Subv6-46/+233
Sessions and Ports are now detached from each other. HLE services are handled by means of a SessionRequestHandler class, Interface now inherits from this class. The File and Directory classes are no longer kernel objects, but SessionRequestHandlers instead, bound to a ServerSession when requested. File::OpenLinkFile now creates a new session pair and binds the File instance to it.
2016-12-01IPC/HLE: Associate the ClientSessions with their parent port's HLE interface if it exists.Subv2-4/+6
Pass the triggering ServerSession to the HLE command handler to differentiate which session caused the request.
2016-12-01Kernel/HLE: Service::Interface no longer inherits from any Kernel object, and is now its own standalone class.Subv2-16/+8
Interface is now used by aggregation in ClientPort, to forward service commands to their HLE implementation if needed.
2016-12-01fixup! Kernel/IPC: Use Ports and Sessions as the fundamental building block of Inter Process Communication.Subv1-1/+1
2016-12-01 Kernel/IPC: Use Ports and Sessions as the fundamental building block of Inter Process Communication.Subv7-27/+62
All handles obtained via srv::GetServiceHandle or svcConnectToPort are references to ClientSessions. Service modules will wait on the counterpart of those ClientSessions (Called ServerSessions) using svcReplyAndReceive or svcWaitSynchronization[1|N], and will be awoken when a SyncRequest is performed. HLE Interfaces are now ClientPorts which override the HandleSyncRequest virtual member function to perform command handling immediately.
2016-11-30Set client SDK version to Service APIsmailwl7-13/+86
2016-11-29FileSys: Implement OtherSaveDatawwylele2-0/+11
2016-11-29FS: add missing MediaTypewwylele1-1/+1
2016-11-29FileSys: abstract SD save data archive sourcewwylele1-1/+2
2016-11-25Output parameters to logmailwl1-4/+6
2016-11-25MIC_U: Stub service funcionsmailwl2-16/+305
2016-11-24Bravely Default/Second stuck #1822 (#2188)pippo29314-2/+22
* Bravely Default/Second stuck #1822 CancelLibraryApplet stub * Log parameter. * Taking care of comments * Sync with 3DBrew * White space ? * lower case
2016-11-19APT/Applets: Renamed the members of the SignalType enum.Subv2-7/+18
Names now make sense and match 3dbrew.
2016-11-19FileSys: rename SaveDataCheck archive to NCCH archivewwylele2-6/+5
According to the observation from game and 3dbrew "Used for accessing general NCCH data"
2016-11-19PTM & CFG: use the correct path and error code according to the new FileSys policywwylele2-5/+6
2016-11-19FileSys: add SDMCWriteOnlyArchivewwylele1-0/+8
2016-11-17cfg: add config block 0x00090000wwylele1-2/+8
2016-11-02Style fixmailwl1-2/+2
2016-11-02Rename AcConfig, change types u8 to u32mailwl1-21/+25
2016-11-02AC_U: Stub functions, used if EULA agreedmailwl2-14/+190
2016-11-01FileSys: make Archive interfaces return error codewwylele1-32/+9
and make the mode parameter a reference since it is a BitField union
2016-10-28core: some errno values are uncommon on UnixJan Beich1-0/+8
src/core/hle/service/soc_u.cpp:107:6: error: 'ENODATA' was not declared in this scope {ENODATA, 43}, ^ src/core/hle/service/soc_u.cpp:117:6: error: 'ENOSR' was not declared in this scope {ENOSR, 53}, ^ src/core/hle/service/soc_u.cpp:118:6: error: 'ENOSTR' was not declared in this scope {ENOSTR, 54}, ^ src/core/hle/service/soc_u.cpp:139:6: error: 'ETIME' was not declared in this scope {ETIME, 75}, ^
2016-10-25FRD: fix GetMyFriendKeymailwl1-1/+1
2016-10-20Fix typosRicardo de Almeida Gonzaga1-1/+1
2016-10-12NWM: stub Initialize with an errorwwylele1-0/+11
2016-10-06Rework the code of err:f serviceJamePeng1-118/+198
2016-10-02Update the stub code of BOSSJamePeng3-4/+1808
2016-10-02fs: clean up log formatwwylele1-22/+24
2016-10-02fs: implement DeleteDirectoryRecursivelywwylele3-1/+51
2016-09-21Use negative priorities to avoid special-casing the self-includeYuri Kunde Schlesner51-51/+51
2016-09-21Remove empty newlines in #include blocks.Emmanuel Gil Peyrot39-107/+47
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
2016-09-19Manually tweak source formatting and then re-run clang-formatYuri Kunde Schlesner49-282/+339
2016-09-18Sources: Run clang-format on everything.Emmanuel Gil Peyrot85-2639/+2865
2016-08-27LDR: Implement CROwwylele8-97/+3007
2016-08-27Auto-detect original shared_font.bin memory baseYuri Kunde Schlesner3-30/+68
This allows a file dumped from either an o3DS or a n3DS (and potentially even an original unrebased file) to be used.
2016-08-02fix #1942 and adds a few IPC functions for descriptorsLectem4-7/+7
2016-07-28Instead of segfaulting, log an error to remind the user to dump the shared font fileHenrik Rydgard1-0/+7
2016-07-15Correct APT::0x00550040 and APT::0x00560000 functionJamePeng5-22/+31
2016-07-04Fix the errorcode of archive handleJamePeng1-10/+14
2016-07-04HLE/Applets: Implement ErrEula appletmailwl1-0/+8
2016-07-03HLE/FS: Document some command parameters and implemented command 0x08560240 (CreateLegacySystemSaveData)Subv1-11/+42
2016-07-03Service::CFG/FS: add and refactor out utilities for front-endwwylele4-15/+146
2016-07-03Service::CFG: move known block ID to an enumwwylele1-11/+25
2016-07-03Service::CFG: add SetConfigInfoBlk4wwylele4-8/+73
2016-07-02Service::CFG: add missing languagewwylele1-1/+2
2016-07-02Service::CFG: name sound output modeswwylele2-2/+7
2016-06-11hid: add missing headerwwylele1-0/+2
2016-06-05service: Add other DLP servicesLioncash9-21/+142
Specifically, dlp::CLNT and dlp::FKCL Moves them to their own folder like with other services.
2016-06-01gsp::gpu: Reset g_thread_id in UnregisterInterruptRelayQueuemailwl1-15/+21
2016-05-31Fix parameter name in EnableNotificationmailwl1-2/+2
2016-05-31Fix mistakes, add output header codesmailwl1-8/+24
2016-05-31remove ugly functionmailwl1-35/+3
2016-05-31srv: Update according 3dbrewmailwl1-15/+137
2016-05-28Memory: Handle RasterizerCachedMemory and RasterizerCachedSpecial page types in the memory block manipulation functions.Subv1-1/+0
2016-05-28Memory: Make ReadBlock and WriteBlock accept void pointers.Subv2-13/+11
2016-05-28SOC_U: Remove usage of GetPointerSubv1-27/+73
2016-05-28SSL_C: Remove use of Memory::GetPointerMerryMage1-4/+3
2016-05-28GSP_GPU: Remove use of Memory::GetPointerMerryMage1-33/+50
2016-05-28DSP_DSP: Remove use of Memory::GetPointerMerryMage1-7/+10
2016-05-28FS/Archive: Remove use of Memory::GetPointerMerryMage1-7/+14
2016-05-24New3DS: Minor style cleanup to #1520.bunnei1-2/+2
2016-05-21CFG: Remove use of Memory::GetPointerMerryMage1-6/+10
2016-05-21APT: Remove use of Memory::GetPointerMerryMage2-16/+15
2016-05-18Update ACT:U and create ACT:A (#1809)András Domonkos4-0/+54
* Update ACT_U * Create act_a.h * Create act_a.cpp * Add service ACT:A * Add ACT:A source and header * Fix wrong header
2016-05-16DSP_DSP: Remove GetHeadphoneStatus logspam (#1799)Maribel1-2/+2
2016-05-15fixup! fixup! Refactor input systemwwylele1-1/+1
2016-05-15Refactor input subsystemwwylele2-35/+36
2016-05-13APT: Move the shared font loading and relocation functions to their own subdirectory services/apt/bcfnt.Subv3-66/+165
2016-05-13APT: Implement relocating the shared font to its true address.Subv1-9/+74
2016-05-13Kernel/SharedMemory: Properly implemented shared memory support.Subv5-37/+29
Applications can request the kernel to allocate a piece of the linear heap for them when creating a shared memory object. Shared memory areas are now properly mapped into the target processes when calling svcMapMemoryBlock. Removed the APT Shared Font hack as it is no longer needed.
2016-05-07fixup simple type conversions where possibleAlexander Laties1-2/+2
2016-05-07HLE/Applets: Use the correct size for the framebuffer SharedMemory in the swkbd and MiiSelector applets.Subv1-0/+15
2016-05-03clean up config blockwwylele1-29/+13
2016-05-01remove duplicated function declarationwwylele1-13/+0
2016-04-30VideoCore: Run include-what-you-use and fix most includes.Emmanuel Gil Peyrot1-0/+1
2016-04-29add config block 0x00170000wwylele1-0/+4
2016-04-29Common: Remove section measurement from profiler (#1731)Yuri Kunde Schlesner1-1/+0
This has been entirely superseded by MicroProfile. The rest of the code can go when a simpler frametime/FPS meter is added to the GUI.
2016-04-27DSP_DSP: Fix log format strings and argumentsMerryMage1-12/+20
2016-04-27DSP_DSP: Add return IPC headersMerryMage1-4/+26
2016-04-27DSP_DSP: Updated interrupt implementationMerryMage2-42/+106
2016-04-27y2r_u: Cleanup some formatting.bunnei1-52/+89
2016-04-24am: title_id is long long uintSam Spilsbury1-1/+1
2016-04-24DSP_DSP: Remove unused variableMerryMage1-2/+0
2016-04-23return checks if event and memory createdmailwl1-1/+8
2016-04-23fs: Fix what appears to be a typo (filename_size / file_size)Sam Spilsbury1-1/+1
2016-04-22gsp::Gpu: implement AcquireRight, ReleaseRight functionsmailwl1-8/+37
2016-04-21HWRasterizer: Texture forwardingtfarley3-24/+18
2016-04-21ac:u: stub CloseAsync; check memory size aling in svc:GetProcessInfo(type=2)mailwl1-1/+25
2016-04-20Update the stub code of NDM service!JamePeng3-27/+420
2016-04-20Update the code of service y2r!JamePeng2-32/+357
2016-04-20Implement CheckNew3DS and CheckNew3DSAppJamePeng8-10/+135
Append an item[is_new3ds] to config file[System] group Implement APT::SetNSStateField,it will update the unknown NS_state_field
2016-04-08update the code of AM service! (#1623)JamePeng6-51/+289
2016-04-08cecd:u: stub GetCecStateAbbreviated (#1648)mailwl3-0/+28
2016-04-06append SetAppCpuTimeLimit and GetAppCpuTimeLimit to APT:AJamePeng3-13/+16
2016-04-05Common: Remove Common::make_unique, use std::make_uniqueMerryMage1-7/+6
2016-04-04implement APT::GetStartupArgumentJamePeng5-2/+37
2016-04-04Append the missing function name"GetAppletInfo" to APT:AJamePeng1-1/+2
2016-04-02Dummy implementation dlp:SRVR Service.exhalatio3-0/+61
2016-04-02Rework sockopt translation to match the error translation code already in placeRyan Loebs1-22/+30
2016-03-31cecd:u: stub GetCecInfoEventHandle, GetChangeStateEventHandlemailwl3-3/+54
2016-03-31Add gsp functions: SetAxiConfigQoSMode, UnregisterInterruptRelayQueuemailwl1-6/+41
2016-03-31GSP: Return proper error codes for register writespurpasmart962-80/+96
2016-03-30Code styleRyan Loebs1-2/+2
2016-03-30Added GetSockOptNameRyan Loebs1-15/+58
Filter out and translate invalid sockopt names.
2016-03-29Derp: win32: typedef int socklen_t;Ryan Loebs1-4/+0
2016-03-29But of course, Windows uses 'int' while Linux uses 'socklen_t'Ryan Loebs1-0/+4
2016-03-29Compiling on Windows nowRyan Loebs1-3/+3
2016-03-29Formatting...Ryan Loebs1-1/+1
2016-03-29Addressing PR commentsRyan Loebs1-4/+4
2016-03-29SOC UpdatesRyan Loebs1-3/+46
-Implement GetSockOpt / SetSockOpt -Fix bug in RecvFrom where sending from localhost does not fill in src_addr/src_addr_len on Linux
2016-03-29Add common methods to all cfg:* portsRyan Loebs3-0/+21
2016-03-27frd:u: Initial stub some functionsmailwl4-55/+234
2016-03-26use reference instead of pointerwwylele1-9/+9
2016-03-25implement GyroscopeCalibrateParamwwylele2-9/+20
2016-03-22implement accel and gyro backendwwylele4-23/+176
2016-03-21soc_u: Get rid of explicit delete and newLioncash1-8/+5
2016-03-20HLE/FS: Change the error code returned when an ExtSaveData archive is not found.Subv1-4/+8
This allows Fire Emblem to boot again.
2016-03-20HLE/FS: Corrected some style concerns.Subv4-6/+4
2016-03-20HLE/FS: Fixed creating the config savefile when it doesn't exist.Subv1-1/+1
This fixes a regression.
2016-03-20HLE/FS: Implemented GetFormatInfoSubv5-48/+126
Format information is currently only implemented for the ExtSaveData, SharedExtSaveData and SaveData archives, the information is stored in a file alongside the root folder of the archive.
2016-03-20HLE/FS: Don't return an error when deleting the ExtSaveData if it does not exist.Subv1-1/+1
2016-03-20HLE/FS: Return the proper error codes when opening files.Subv1-3/+4
2016-03-20HLE/FS: Fixed the OpenDirectory error codeSubv1-1/+1
2016-03-20HLE/FS: Return the proper error codes on file Read/Write operations.Subv1-2/+15
These operations are limited by the open flags specified while opening the file.
2016-03-20HLE/FS: Corrected the error codes for DeleteFileSubv1-4/+1
2016-03-20HLE/FS: FS::CreateFile takes an u64 for the file size.Subv3-5/+5
2016-03-14Reorganize the ndm service path for dummy implement functionJamePeng5-24/+118
SuspendDaemons , ResumeDaemons , OverrideDefaultDaemons The NDM file move to /core/hle/service/ndm/ now!
2016-03-13hid: fix pad updatewwylele1-1/+1
2016-03-13svc: Move ResetType enum to the kernel event headerLioncash5-6/+6
2016-03-12svc: Make ResetType an enum classLioncash8-17/+17
2016-03-12Fix headerpippo29311-1/+1
2016-03-12GetArchiveResource stubpippo29311-1/+25
2016-03-12HLE/Applets: Implemented a dummy Mii Selector applet.Subv3-2/+36
This prevents some games (like Super Mario 3D Land) from freezing when trying to launch it, however, it's not complete and won't let you go past Mii selection as the parameter structure hasn't been reverse engineered yet.
2016-03-12gsp_gpu: Change 0 literal to nullptrLioncash1-1/+1
2016-03-12hle: Update service function tablesLioncash4-1/+16
2016-03-09renderer_base: Don't directly expose the rasterizer unique_ptrLioncash2-5/+5
There's no reason to allow direct access to the unique_ptr instance. Only its contained pointer.
2016-03-06DSP: Implement Pipe 2MerryMage1-43/+151
Pipe 2 is a DSP pipe that is used to initialize both the DSP hardware (the application signals to the DSP to initialize) and the application (the DSP provides the memory location of structures in the shared memory region).
2016-03-06DSP: Print hash of firmware to consoleMerryMage1-8/+21
2016-03-04ac:u: Stub IsConnectedmailwl1-2/+17
2016-03-01Service/CFG: Fix potential endianess issueYuri Kunde Schlesner1-2/+3
2016-03-01Service/CFG: Add block 0x000A0000 (username) to default config fileYuri Kunde Schlesner1-1/+14
2016-03-01Service/CAM: Add doxycomments to all service functionsYuri Kunde Schlesner1-0/+217
2016-02-26Initial implementation ir:usermailwl3-18/+142
2016-02-21AudioCore: Skeleton ImplementationMerryMage2-57/+90
This commit: * Adds a new subproject, audio_core. * Defines structures that exist in DSP shared memory. * Hooks up various other parts of the emulator into audio core. This sets the foundation for a later HLE DSP implementation.
2016-02-13Service/CAM: Dummy implementation of some functionsYuri Kunde Schlesner3-20/+346
Thanks to @mailwl for the initial version of the stubs.
2016-02-12BitField: Make trivially copyable and remove assignment operatorMerryMage5-15/+15
2016-02-02services: Get rid of unnecessary includesLioncash69-132/+32
2016-02-02services: Update function tablesLioncash2-5/+11
2015-12-30services: Update some function tablesLioncash25-113/+369
2015-12-24HLE/Sockets: Fixed the buffer offset in recvfrom.Subv1-3/+13
Closes #1277
2015-12-08VideoCore: Unify interface to OpenGL and SW rasterizersYuri Kunde Schlesner2-5/+5
This removes explicit checks sprinkled all over the codebase to instead just have the SW rasterizer expose an implementation with no-ops for most operations.
2015-12-07VideoCore: Rename HWRasterizer methods to be less confusingYuri Kunde Schlesner2-5/+5
2015-11-23Services/Cam: Added new log type and camera enums from 3dbrew.Subv1-0/+156
Followup to #1102 Original author @mailwl
2015-11-22Add stub functions for Initialize and GenerateRandomData in ssl:Cpolaris-1-2/+51
2015-11-22Add Initialize and GenerateRandomData stubspolaris-1-0/+2
2015-10-28csnd_snd: Get rid of type punningLioncash1-12/+13
2015-10-28Added CSND stub.Matthias Ernst2-4/+66
2015-10-28Implement FS_User::GetFreeBytesarchshift3-1/+42
2015-10-24Fix copy pasteFiliph Sandström1-1/+1
2015-10-23Fix wrong branchFiliph Sandström1-0/+12
2015-10-23Add GetTotalStepCount StubFiliph Sandström1-1/+1
2015-10-23Update ptm.hFiliph Sandström1-0/+8
2015-09-30Service/CFG: Use a constexpr function for country initializationEmmanuel Gil Peyrot1-4/+3
This fixes a TODO left over from when we supported MSVC 2013.
2015-09-29fix some xcode 7.0 warningsMartin Lindhe1-1/+1
2015-09-16general: Silence some warnings when using clangLioncash4-8/+8
2015-09-14Service/CFG: Add default entry for block 0x000A0001 (birthday)Yuri Kunde Schlesner1-0/+6
2015-09-14Service/CFG: Correct flags in 2 default blocksYuri Kunde Schlesner1-2/+2
Verified against a 9.2.0-20 config save
2015-09-14Service/CFG: Add additional blocks to default save dataYuri Kunde Schlesner1-0/+34
These blocks are required by various games to boot.
2015-09-14Fix narrowing conversion warningYuri Kunde Schlesner1-1/+1
2015-09-14Service/CFG: Move several private types from the header to the cppYuri Kunde Schlesner2-63/+49
2015-09-14Service/CFG: Clean up default block creationYuri Kunde Schlesner2-27/+17
2015-09-14GSP: Implement command 0x05, used for flushing cachesYuri Kunde Schlesner2-13/+34
May fix additional texture caching issues. (Though mostly in homebrew, I haven't seen any commercial software use this to flush anything but command lists.)
2015-09-11General: Replace NULL and '0' usages with nullptr where applicableLioncash1-1/+1
2015-09-10General: Fix up doxygen commentsLioncash1-1/+1
2015-09-03Add cam:u service function names to its function tablearchshift1-3/+60
2015-08-27Core: Improve APT Shared Font hackYuri Kunde Schlesner1-2/+2
Should fix invalid read loops in some games
2015-08-25Integrate the MicroProfile profiling libraryYuri Kunde Schlesner1-0/+5
This brings goodies such as a configurable user interface and multi-threaded timeline view.
2015-08-16GPU: Implement TextureCopy-mode display transfersYuri Kunde Schlesner2-11/+25
Fixes glitchy garbage in Fire Emblem 3D scenes.
2015-08-16APT: Adjust shared font hack so it works with the new linear heap codeYuri Kunde Schlesner1-10/+11
2015-08-16Memory: Move address type conversion routines to memory.cpp/hYuri Kunde Schlesner2-2/+0
These helpers aren't really part of the kernel, and mem_map.cpp/h is going to be moved there next.
2015-07-29core: Eliminate some unused variable warningsLioncash2-3/+5
2015-07-29core: Fix missing prototype warningsLioncash1-0/+1
2015-07-29am_net: Add missing function to the function tableLioncash1-0/+1
2015-07-29am_net: Add correct function name to the function tableLioncash1-1/+1
2015-07-28Move input values into an arrayJames Rowe2-1/+14
2015-07-24Service/APT: Fixed a regression, PreloadLibraryApplet should also start an applet when called.Subv5-4/+35
2015-07-24Service/APT: Return proper parameters in GetLockHandle.Subv2-14/+37
Documented some APT functions This allows applets to boot.
2015-07-24GSP: Don't try to write memory fill registers if start address is 0Yuri Kunde Schlesner1-13/+18
Verified to be what GSP does via REing. Fixes invalid virt->phys translation error spam in some games.
2015-07-23Qt/GPU Breakpoints: Added three more breakpoint types:Subv1-0/+7
* IncomingDisplayTransfer: Triggered just before a display transfer is performed. * GSPCommandProcessed: Triggered right after a GSP command is processed. * BufferSwapped: Triggered when the frames flip
2015-07-21Services/Logging: Log more useful information when some operations fail.Subv1-4/+8
Namely OpenFileDirectly, OpenDirectory and OpenArchive
2015-07-21Services/AM: Stubbed am:app::GetNumContentInfos to return 0 results.Subv3-3/+33
Named the service functions in am:app as per 3dbrew. This fixes an illegal read loop in Steel Diver
2015-07-21Services/CFG: Added some missing functions to cfg:sSubv1-1/+3
2015-07-20SOC:U : Update deprecated function gethostbyname() to getaddrinfo()zawata1-2/+8
2015-07-19Change trace/unimplemented service call logs to use hexarchshift1-1/+1
Changes the log to use hex in the parameter list instead of decimal.
2015-07-19Add more frd:u unknown service commands from 3dbrewarchshift1-1/+12
2015-07-17Ensure all kernel objects are released during shutdownYuri Kunde Schlesner11-1/+31
This commit fixes several kernel object leaks. The most severe of them was threads not being removed from the private handle table used for CoreTiming events. This resulted in Threads never being released, which in turn held references to Process, causing CodeSets to never be freed when loading other applications.
2015-07-14Archive: Correct a few incorrect types in function signaturesYuri Kunde Schlesner1-1/+1
Buffer lengths should be size_t, and file offsets should be u64.
2015-07-13Add CiTrace recording support.Tony Wasserka1-1/+1
This is exposed in the GUI as a new "CiTrace Recording" widget. Playback is implemented by a standalone 3DS homebrew application (which only runs reliably within Citra currently; on an actual 3DS it will often crash still).
2015-07-12Core: Fix applet includes using iwyu.Emmanuel Gil Peyrot1-3/+6
2015-07-12Applets: Reworked how the Applet update event is handled.Subv3-4/+4
Applets are now cleaned up in AppletUpdateEvent after calling their respective Update method.
2015-07-12Applets: Add infrastructure to allow custom drawing and input handling in Applets.Subv3-20/+39
2015-07-12HLE/APT: Initial HLE support for applets.Subv4-50/+173
Currently only the SWKBD is emulated, and there's currently no way to ask the user for input, so it always returns "Subv" as the text.
2015-06-28Core: Cleanup hw includes.Emmanuel Gil Peyrot3-0/+7
2015-06-28Core: Cleanup soc:U includes.Emmanuel Gil Peyrot2-26/+36
2015-06-28Core: Cleanup file_sys includes.Emmanuel Gil Peyrot3-7/+18
2015-06-28CitraQt: Cleanup includes.Emmanuel Gil Peyrot3-1/+5
2015-06-28Common: Cleanup key_map includes.Emmanuel Gil Peyrot2-8/+9
2015-06-27Services: Use the standard _WIN32 define in soc:U instead of our own EMU_PLATFORM.Emmanuel Gil Peyrot1-8/+7
2015-06-25Services/SOC: Added command headers to some of the soc commands.Subv1-5/+13
2015-06-23Add helpers to create IPC command buffer headers and descriptorsYuri Kunde Schlesner2-7/+9
2015-06-22Y2R: Rework conversion process, enabling support for all formatsYuri Kunde Schlesner2-163/+309
2015-06-21Y2R: Re-organize how params are stored. Support SetConversionParamsYuri Kunde Schlesner1-72/+100
2015-06-12Services: Continue separation of services into their own folderspurpasmart9672-607/+1134
2015-06-02ExtSavedata: Save the icon passed to CreateExtSaveData to the correct folder.Subv3-11/+32
Organize the ExtSaveData folders as they are stored in the console.
2015-05-29Remove every trailing whitespace from the project (but externals).Emmanuel Gil Peyrot16-52/+52
2015-05-27hid: Get rid of undefined behaviorLioncash1-2/+2
Modifying a variable twice across a sequence point.
2015-05-26Service/GSP: Implemented ImportDisplayCaptureInfo.Subv1-1/+47
2015-05-23y2r_u: Remove unused variable in StartConversionLioncash1-1/+0
2015-05-23HID: Stub DisableAccelerometer and DisableGyroscopeLowpurpasmart964-9/+47
2015-05-23Flush for y2r (moflex)tfarley1-0/+11
2015-05-23OpenGL renderertfarley1-0/+9
2015-05-22Service::Y2R: Support for grayscale decoding of specific formatsYuri Kunde Schlesner1-35/+265
Implements unrotated planar YUV 4:2:0 -> RGB24 conversions in Y2R. Currently only the Y (luma) channel is used, so the results don't contain color. This will be added in a later PR at some point. This is enough to get all currently know Moflex videos to decode. (Some don't display on-screen due to seemingly unrelated reasons.) Thanks to @archshift for doing the initial implementation which I cleaned up and then fixed the 8x8 block mode.
2015-05-21y2r_u: Stub StartConversion to prevent moflex games from hanging.bunnei1-1/+17
2015-05-16CFG: Update the cfg service to be like other integrated servicespurpasmart965-337/+304
2015-05-16APT/FS: Remove asserts that were causing false positivespurpasmart962-5/+5
2015-05-15Memmap: Re-organize memory function in two filesYuri Kunde Schlesner1-0/+1
memory.cpp/h contains definitions related to acessing memory and configuring the address space mem_map.cpp/h contains higher-level definitions related to configuring the address space accoording to the kernel and allocating memory.
2015-05-12PTM: Changed the way the ptm services are handled to be like thepurpasmart965-125/+112
IR, HID, and APT services.
2015-05-12NWM_UDS: Fix a typo in the nwm service port namepurpasmart961-1/+1
2015-05-11fixup! GSP: Small tweaks to shared memory initializationYuri Kunde Schlesner1-1/+1
2015-05-11GSP: Small tweaks to shared memory initializationYuri Kunde Schlesner1-9/+11
2015-05-11Kernel: Capture SharedMemory attributes at creation, not when mappingYuri Kunde Schlesner4-11/+19
2015-05-09Memory: Re-organize and rename memory area address constantsYuri Kunde Schlesner1-1/+1
2015-05-07Common: Remove common.hYuri Kunde Schlesner21-10/+32
2015-05-07FileSys: De-inline Path membersYuri Kunde Schlesner1-0/+2
2015-05-07FileSys: Clean-up includes, de-inline destructorsYuri Kunde Schlesner4-13/+21
2015-05-02Services: Initialize all state variables at bootup.bunnei8-22/+38
2015-04-28Services/Loader: Use more sensible log formats for certain functionspurpasmart962-8/+22
along with more info being logged.
2015-04-25ptm_sysm: Add static specifier to IsLegacyPowerOffLioncash1-1/+1
2015-04-14De-inline functions from Interface, removing them from service.hYuri Kunde Schlesner2-50/+48
This reduces the time for a full recompile from 65.43s to 59.53s (~9%)
2015-04-10APT: (Subv) Fix bug where start event was being incorrectly signaled.bunnei1-6/+7
2015-04-06Clean-up mem_map constants and fix framebuffer translation errorsYuri Kunde Schlesner1-4/+6
2015-04-04IR: Move The IR services to their own folder and implement "GetHandles"purpasmart9610-55/+180
2015-04-03Services: Stubs and minor changespurpasmart9616-67/+402
2015-03-19Service/FS: Document and log some unknown values.Subv1-1/+26
In CreateExtSaveData, DeleteExtSaveData and CreateSystemSaveData
2015-03-17HID: Proper Signal Interrupts for EnableAccelerometer & EnableGyroscopeLow alongpurpasmart964-12/+72
with a stub for GetSoundVolume
2015-03-16arm_interface: Get rid of GetTicks.Lioncash1-3/+3
Removes a TODO.
2015-03-14Services/FS: Implemented DeleteExtSaveData, CreateSystemSaveData and DeleteSystemSaveDataSubv3-24/+164
Also fixed a bug with CreateExtSaveData that made it unable to create ExtSaveData archives in the SDMC directory.
2015-03-11hid_user: Removed unnecessary includes.bunnei1-2/+0
2015-03-11HID: Removed unnecessary global variables.bunnei2-58/+42
2015-03-11HID: Added additional variable comments and some code cleanups.bunnei2-20/+29
2015-03-11HID: Complete refactor of pad/touch input to fix threading issues.bunnei2-111/+28
2015-03-10HID: Cleanup how `next_touch_index` is calculated for Pad and touch.bunnei1-2/+2
2015-03-10HID: Changed TouchDataEntry `valid` to a BitField and added some doc strings.bunnei2-4/+4
2015-03-10HID: Added static asserts to check register position in shared memory.bunnei1-2/+16
2015-03-10HID: Added functions to emulate the touchpad.bunnei2-0/+61
2015-03-10HID: Moved some docstrings to the header.bunnei2-24/+16
2015-03-10HID: Refactored shared memory decoding for touchpad support.bunnei2-33/+64
2015-03-09Added LCD registers, and implementation for color filling in OGL code.archshift1-17/+15
2015-03-06Implement SetLcdForceBlack, move register enum to hw.harchshift1-5/+39
2015-03-04Services: Moved the PTM and APT services to their own folderSubv38-1089/+1186
This coincidentally fixes an issue about the PTM service failing to create its SharedExtSaveData archive due to the FS service not being initialized by the time the creating code runs. Ideally I'd like to move each process to its own folder, and have a single file per process that registers the service classes, which would be in their own files inside that folder. Then each service class would just call functions from the process to complete the commands.
2015-03-02Services/AM: Stubbed TitleIDListGetTotal and GetTitleIDList.Subv1-8/+45
They will always return 0 titles for every media type for now. This is needed to boot Home Menu further
2015-03-01Services/FS: Stubbed CardSlotIsInserted to always return falseSubv1-1/+25
We won't be emulating this for the foreseeable future and it is needed for Home Menu to boot further
2015-03-01Services/PTM: Stubbed PTM_Sysm::IsLegacyPowerOff.Subv1-1/+13
This allows the Home Menu to boot further
2015-02-26Archives: Properly implemented the SystemSaveData archive.Subv2-26/+42
Ported to the new factory pattern we have for archives.
2015-02-24Services: Implemented Y2R_U::GetTransferEndEventSubv1-1/+18
Aero Porter was throwing an "Invalid Handle" fatal error without this.
2015-02-22Added information reporting from ThrowFatalErrorarchshift1-1/+164
This was RE'd from the errdisp applet.
2015-02-22Frontends, HID: Add New 3DS specific pad buttons, and stub the touch one.Emmanuel Gil Peyrot1-0/+19
2015-02-21Fix error message for bad config block request.Kevin Hartman1-5/+10
2015-02-18GPU: Properly implement memory fills.Tony Wasserka2-17/+21
2015-02-16Services: Fixed "Tried to connect to named port err:f".Subv1-1/+1
err:f is a named port, not a service
2015-02-13core: Apply static to local functionsLioncash3-15/+15
2015-02-12Build: Fixed some warningsSubv3-36/+52
2015-02-11Implemented WriteHWRegsWithMask for GSP.Kevin Hartman1-6/+91
2015-02-11Asserts: break/crash program, fit to style guide; log.h->assert.harchshift42-52/+10
Involves making asserts use printf instead of the log functions (log functions are asynchronous and, as such, the log won't be printed in time) As such, the log type argument was removed (printf obviously can't use it, and it's made obsolete by the file and line printing) Also removed some GEKKO cruft.
2015-02-11GSP: Fixed typo in SignalInterruptbunnei1-1/+1
2015-02-11GSP: Call SetBufferSwap for each screen on corresponding signal interrupt.bunnei1-4/+3
2015-02-10PTM: Fixed a problem with the gamecoin PTM file.Subv1-21/+13
2015-02-10Archives: Made the Format function more generic.Subv3-9/+10
2015-02-10Archives: Expose the File and Directory classes to HLESubv3-58/+62
2015-02-10FS: Allow multiple instances of the same archive type to be open at onceYuri Kunde Schlesner3-29/+35
2015-02-10FS: Get rid of completely useless Archive classYuri Kunde Schlesner1-36/+26
2015-02-08Services: Stub some functionspurpasmart963-8/+188
2015-02-02Kernel: Stop creating useless Handles during object creationYuri Kunde Schlesner5-14/+13
They're finally unnecessary, and will stop cluttering the application's handle table.
2015-02-02HID: Fix crash when pressing a key when the emulator is stoppedYuri Kunde Schlesner1-0/+2
2015-02-02FS: Remove use of GetHandleYuri Kunde Schlesner1-1/+1
2015-02-02Service: Store function names as const char* instead of std::stringYuri Kunde Schlesner1-6/+6
Uses less memory (strings and function table is stored in constant data) and speeds up start up (no need to allocate and copy strings).
2015-02-02Service: Clean-up InterfaceYuri Kunde Schlesner46-67/+54
2015-02-02Make Port/Service registration and querying more HW-accurateYuri Kunde Schlesner3-102/+64
2015-02-02Filesys: Move creation of Handles for File/Directory to service handlersYuri Kunde Schlesner3-32/+33
2015-01-30archive: Fix initializer list order for the File class.Lioncash1-1/+1
2015-01-30apt_u: Fix missing printf specifiersLioncash1-2/+2
2015-01-30Remove result.h InvalidHandleYuri Kunde Schlesner1-9/+14
It was only being used in two places, where it was replaced by a local constant.
2015-01-30Kernel: Convert Event to not use HandlesYuri Kunde Schlesner7-58/+71
2015-01-30Kernel: Convert Mutex to not use HandlesYuri Kunde Schlesner2-8/+9
2015-01-30Kernel: Convert SharedMemory to not use HandlesYuri Kunde Schlesner5-16/+24
2015-01-24Services/HID: Removed some files due to a rebase errorSubv3-267/+0
2015-01-24Services: Stubbed more services.Subv21-1/+660
Implemented FSUser::CreateExtSaveData
2015-01-23APT_U: Stub some functions & misc changespurpasmart961-91/+276
2015-01-22cam_u.h: fix indentationarchshift1-2/+2
Withholding my profanity towards Xcode.
2015-01-22Event: Fixed some bugs and cleanup (Subv)bunnei2-3/+3
2015-01-21Added HID_SPVR service and split HID_U implementation into service/hid/hid.xxxarchshift8-217/+324
2015-01-21Stubbed cam:u servicearchshift3-0/+49
2015-01-21Stubbed ptm:play servicearchshift3-0/+53
2015-01-20core: Fix a few docstringsLioncash2-2/+2
2015-01-19Expose GetSharedFont and NotifyToWait to APT:A and APT:S respectivelyarchshift2-1/+4
2015-01-16APT: Fix typo in setting return code for NotifyToWaitbunnei1-1/+1
2015-01-16DSP: Removed useless spam log for SignalInterruptbunnei1-5/+2
2015-01-14APT: Fixed the comment style in some variablesSebastian Valle1-2/+2
2015-01-14GSP: Fix appending of interrupts to the shared memory bufferYuri Kunde Schlesner2-17/+12
The code was previously appending the interrupt to after the end of the buffer, instead of at the end.
2015-01-14GSP: Update framebuffer info on all interruptsYuri Kunde Schlesner1-12/+13
Hardware testing determined that the GSP processes shared memory framebuffer update info even when no memory transfer or filling GX commands are used. They are now updated on every interrupt, which isn't confirmed correct but matches hardware behaviour more closely. This also reverts the hack introduced in #404. It made a few games behave better, but I believe it's incorrect and also breaks other games.
2015-01-14GPU: Fire GPU interrupts at the correct places.Yuri Kunde Schlesner1-6/+0
PDC0 and PDC1 are both VBlank interrupts. PDC0 was being treated as a HBlank interrupt and fired many more times than it should. They now both fire together at 60 Hz. This puzzlingly *improves* apparent framerate on many applications. A few other interrupts were being fired inside the GSP command processing instead of on the actual GPU register writes, so they were moved there, which should cover direct writes tho those registers not going through the GX command queue.
2015-01-14APTU: Stubbed NotifyToWait, taken from 3dmoo.Subv1-7/+21
Also renamed some handles in the APT:U service to be more descriptive. Fixed a typo in InquireNotification
2015-01-13Services: Added some missing services.Subv8-1/+358
cfg:s, ptm:sysm, apt:s. apt:s is almost exactly the same as apt:u as per 3dbrew
2015-01-12Fix building on MinGWdarkf1-0/+13
2015-01-11Stubbed y2r:u IsBusyConversionarchshift1-1/+16
There is no documentation available on this function, but we set the result to false as a stub. This allows Super Little Acorns to move all the way in game with pp3c.
2015-01-10Added Archive ID to fs:USER debug logs involving opening the archive.archshift1-3/+3
2015-01-10Logging: Log all called service functions (under trace). Compile out all trace logs under release for performance.archshift7-30/+20
2015-01-09Kernel: Start using boost::intrusive_ptr for lifetime managementYuri Kunde Schlesner1-1/+2
2015-01-09Move ThreadContext to core/core.h and deal with the falloutYuri Kunde Schlesner1-0/+1
2015-01-08GSP: Toggle active framebuffer each framebunnei1-1/+4
2015-01-07Fix double-free in Service manager during shutdownYuri Kunde Schlesner2-25/+4
Fixes #423.
2015-01-06Archives: Changed the unimplemented archives comment.Subv1-1/+1
It now refers to me as the PoC
2015-01-06Archives: Addressed some commentsSubv1-2/+2
2015-01-06Services: Clean up a few things and add a few function namespurpasmart967-33/+36
2015-01-05DSP: Signal (faked) interrupt on every frame.bunnei2-4/+21
- Hack to work around games checking that the DSP event has been signaled by a real DSP interrupt.
2015-01-04Archives: Make SYSTEM_ID and SDCARD_ID stringsSubv2-4/+4
2015-01-04Archives: Changed the way paths are built for the archives.Subv4-15/+20
Each archive now takes a mount point of either NAND or SDMC, and builds its own directory structure there, trying to simulate an HLE-friendly hardware layout
2015-01-03Stub the y2r:u servicearchshift3-0/+70
2015-01-03Archives: Change the folder layout of some archives.Subv2-2/+2
This is to better represent the hardware layout, they are still aren't quite accurate, but this better and will help a bit when implementing the other archives like NAND-RO and NAND-RW
2015-01-03Archives: Reduced duplicate code in RomFS and SaveCheck.Subv2-4/+5
Fixed a few warnings and cleaned up the code
2015-01-03SaveDataCheck: Preliminary work in this archive.Subv2-3/+35
This allows Steel Diver to boot further, some files are needed. This is still not ready and needs a big cleanup, this will possibly be delayed until the way we handle archives is fixed (with factory classes instead of ahead-of-time creation of archives)
2015-01-03archive: Fix initializer list orderLioncash1-3/+3
2015-01-03soc_u: Fix a missing formatting argumentLioncash1-1/+1
2015-01-01Silence some -Wsign-compare warnings.Rohit Nirmal1-4/+4
2014-12-31SOC_U: Preliminary implementation of sockets.Subv2-21/+701
Stubbed CreateMemoryBlock Using Berkeley sockets, and Winsock2.2 on Windows. So far ftpony creates the socket and accepts incoming connections SOC_U: Renamed functions to maintain consistency Also prevents possible scope errors / conflicts with the actual Berkeley socket functions SOCU: Close all the opened sockets when cleaning up SOCU
2014-12-30APT:A: Some style changesSubv1-12/+12
2014-12-30Archives: Implemented ExtSaveData and SharedExtSaveDataSubv5-45/+94
They will be stored in /extsavedata/SDMC and /extsavedata/NAND respectively. Also redirect some APT_A functions to their APT_U equivalents. Implemented the gamecoin.dat file in SharedExtSaveData in the PTM module. Implemented formatting the savegame. Retake a previous savegame if it exists instead of reporting them as not formatted every time a game is loaded.
2014-12-28Kernel: New handle managerYuri Kunde Schlesner3-7/+11
This handle manager more closely mirrors the behaviour of the CTR-OS one. In addition object ref-counts and support for DuplicateHandle have been added. Note that support for DuplicateHandle is still experimental, since parts of the kernel still use Handles internally, which will likely cause troubles if two different handles to the same object are used to e.g. wait on a synchronization primitive.
2014-12-28Rename ObjectPool to HandleTableYuri Kunde Schlesner3-8/+8
2014-12-26More services & small clean upspurpasmart9660-305/+355
2014-12-24Stubbed IsSdmcWriteable to always return writeable.archshift1-1/+18
2014-12-22CFG: Fixed some warnings and errors in ClangSubv2-4/+4
2014-12-22CFG: More style changesSubv1-5/+5
2014-12-21CFGU: IndentationSubv1-4/+3
2014-12-21CFG: Some indentationSubv1-11/+13
2014-12-21CFG: Changed the CreateConfigInfoBlk search loopSubv1-7/+4
2014-12-21CFG: Corrected the licenses in cfg_i.cpp and cfg_u.cppSubv2-2/+2
2014-12-21CFG: Create a new subfolder cfg inside service to handle cfgSubv8-485/+607
Moved most of the shared CFG code there, implemented a few CFG:I functions
2014-12-21CFGU: Some changesSubv1-12/+33
2014-12-21CFGU: Addressed some issues.Subv1-43/+55
2014-12-21CFGU: Addressed some comments.Subv1-11/+13
2014-12-21Style: Addressed some commentsSubv1-4/+5
2014-12-21CFG_U: Use Common::make_unique instead of the std versionSubv1-1/+2
2014-12-21CFG:U: Implemented some more blocksSubv1-4/+30
2014-12-21CFG: Implemented block 0x00070001 in the config savefileSubv1-0/+5
2014-12-21CFGU: Use an absolute offset in the config savefile blocksSubv1-1/+3
2014-12-21CFG: Load the Config savedata file if it already exists.Subv1-3/+4
2014-12-21CFGU: Added block 0x000A0002 to the default savegame fileSubv1-0/+18
That's the language id block, we're using LANGUAGE_EN for now. This block allows some games to boot further
2014-12-21CFG: Refactored how the config file works.Subv1-55/+126
It is now kept in memory as per 3dbrew, all updates happen on memory, then they can be saved using UpdateConfigNANDSavegame.
2014-12-21CFG:U: Add some data to the 0x00050005 config block.Subv1-6/+11
Seems to allow some games to boot further, thanks @Normmatt for sharing this information
2014-12-21CFG: Implemented the GetConfigInfoBlk2 function.Subv2-12/+188
Added a "config" file to the CFG process service (CFG:U), and added a few default blocks to it. Implemented GetSystemModel and GetModelNintendo2DS
2014-12-21More warning cleanupsChin1-2/+2
2014-12-21Added CreateFile to the FS_USER servicearchshift3-1/+47
Tested with hwtests.
2014-12-21License changepurpasmart9658-59/+59
2014-12-20Common: Add a clone of std::make_uniqueYuri Kunde Schlesner1-6/+7
2014-12-20FS_U: Added the command to the docs of SaveData functionsSubv1-0/+2
2014-12-19GSP_GPU: Shut up FlushDataCachepurpasmart961-1/+25
2014-12-19SystemSaveData: Fixed a typo that was segfaultingSubv1-1/+1
2014-12-18SaveData: Added some documentation to FormatSaveDataSubv1-2/+29
We still don't know what the other parameters do, but they appear to be very similar to those of FormatThisUserSaveData. Most likely FormatThisUserSaveData is just an alias for FormatSaveData with LowPathType Empty
2014-12-18SaveData: Implemented the SystemSaveData archive.Subv1-0/+9
It will be stored in the /syssavedata folder. This archive is user by various Services and possibly games via the FS:U service.
2014-12-18Filesystem/Archives: Implemented the SaveData archiveSubv3-13/+86
The savedata for each game is stored in /savedata/<ProgramID> for NCCH files. ELF files and 3DSX files use the folder 0 because they have no ID information Got rid of the code duplication in File and Directory Files that deal with the host machine's file system now live in DiskFile, similarly for directories and DiskDirectory and archives with DiskArchive. FS_U: Use the correct error code when a file wasn't found
2014-12-16Comment out empty arrays causing compile errors in MSVCYuri Kunde Schlesner2-6/+8
2014-12-16Work around libstdc++'s lack of support for std::hash on enumsYuri Kunde Schlesner1-0/+15
2014-12-16FS.Archive: Clean up treatment of archives and their handlesYuri Kunde Schlesner3-196/+175
- Refactor FS::Archive internals to make Archive creation and lifetime management clearer. - Remove the "Archive as a File" hack. - Implement 64-bit Archive handles.
2014-12-16Service.FS: Rename FileSys::File to FileBackendYuri Kunde Schlesner1-1/+1
2014-12-16Service.FS: Rename FileSys::Directory to DirectoryBackendYuri Kunde Schlesner1-2/+2
2014-12-16Service.FS: Rename FileSys::Archive to ArchiveBackendYuri Kunde Schlesner2-5/+5
2014-12-16Service.FS: Do archive registration using IdCode instead of nameYuri Kunde Schlesner3-16/+27
2014-12-16HLE: Rename namespaces to match move & fix initialization orderYuri Kunde Schlesner5-31/+33
2014-12-16HLE: Move kernel/archive.* to service/fs/Yuri Kunde Schlesner5-4/+536
2014-12-16Added stub for nim:aoc service...archshift3-0/+60
2014-12-16Added stub for cecd:u service...archshift3-0/+52
I couldn't find any information about this service...
2014-12-16Added stub for ldr:ro service...archshift3-0/+57
2014-12-16Added am:app service stub.archshift3-0/+52
Apparently nothing at all is known about this service...
2014-12-15Remove SyncRequest from K::Object and create a new K::Session typeYuri Kunde Schlesner10-59/+49
This is a first step at fixing the conceptual insanity that is our handling of service and IPC calls. For now, interfaces still directly derived from Session because we don't have the infrastructure to do it properly. (That is, Processes and scheduling them.)
2014-12-13Convert old logging calls to new logging macrosYuri Kunde Schlesner11-84/+60
2014-12-13APT_U: Added GetSharedFont service function.bunnei1-34/+100
2014-12-12DSP: Added stub for ReadPipeIfPossible.bunnei1-1/+45
2014-12-10CFG:U: Store country codes as u16 instead of char pointers, and return the correct error in GetCountryCodeID.Emmanuel Gil Peyrot1-44/+48
2014-12-10GSP: Trigger GPU interrupts at more accurate locations.bunnei1-7/+6
2014-12-10GSP: Updated TriggerCmdReqQueue to return success code.bunnei1-0/+3
2014-12-10GSP: Updated RegisterInterruptRelayQueue to return expected magic number.bunnei1-1/+4
2014-12-10GPU: Fixed bug in command list size decoding.bunnei1-1/+1
2014-12-04Updated archive.cpp functions for proper error handlingarchshift1-5/+5
2014-12-04Add stub for ConvertProcessFromDspDramarchshift1-25/+44
Should theoretically push retail stuff further along
2014-12-04hid_user: Pass by reference with PadButtonPress/PadButtonReleaseLioncash2-4/+4
2014-12-04PTM_U: Added a stub for GetBatteryLevel & GetBatteryChargeState & GetAdapterStatepurpasmart961-3/+72
2014-12-03AC_U: Added a stub for GetWifiStatuspurpasmart961-1/+19
2014-12-01DSP: Added stubs for several commonly used DSP service functions.bunnei1-25/+106
2014-12-01DSP: Fixed typo in port name.bunnei1-1/+1
2014-12-01PTM_U: Implemented the GetShellState function.Subv1-1/+18
2014-11-30CFG:U: Implemented the GetCountryCodeID and GetCountryCodeString.Subv1-2/+86
2014-11-27Fixed formatting and switch statement warningsvaguilar1-3/+3
2014-11-25Log the cmd_buff arguments when citra comes across an unimplemented functionarchshift1-12/+12
2014-11-25Implemented RenameDirectory in FS:USERarchshift1-1/+43
2014-11-25Implemented RenameFile in FS:USERarchshift1-1/+43
2014-11-24Remove duplicated docs/update them for changed parameters.Yuri Kunde Schlesner1-10/+0
2014-11-24HLE: Revamp error handling throrough the HLE codeYuri Kunde Schlesner6-62/+46
All service calls in the CTR OS return result codes indicating the success or failure of the call. Previous to this commit, Citra's HLE emulation of services and the kernel universally either ignored errors or returned dummy -1 error codes. This commit makes an initial effort to provide an infrastructure for error reporting and propagation which can be use going forward to make HLE calls accurately return errors as the original system. A few parts of the code have been updated to use the new system where applicable. One part of this effort is the definition of the `ResultCode` type, which provides facilities for constructing and parsing error codes in the structured format used by the CTR. The `ResultVal` type builds on `ResultCode` by providing a container for values returned by function that can report errors. It enforces that correct error checking will be done on function returns by preventing the use of the return value if the function returned an error code. Currently this change is mostly internal since errors are still suppressed on the ARM<->HLE border, as a temporary compatibility hack. As functionality is implemented and tested this hack can be eventually removed.
2014-11-23Added DeleteFile and DeleteDirectory functions to FS:USER and the archives.archshift1-25/+67
2014-11-21Add more services and some fixes, along with more "override"purpasmart9625-17/+452
in the service's headers
2014-11-19Remove trailing spaces in every file but the ones imported from SkyEye, AOSP or generatedEmmanuel Gil Peyrot11-21/+21
2014-11-19Add static to some variablesLioncash1-1/+1
2014-11-18core: Mark some hle functions as staticLioncash4-20/+20
These functions are not referred to by their linkage name outside of the translation unit, so they can be marked as static.
2014-11-18FS_User: Support FileSye::Path in a more generic way.bunnei1-42/+65
added a todo to kernel archive
2014-11-18FileSys: Updated backend code to use FileSys::Path instead of string for paths.bunnei1-4/+4
2014-11-17Add missing boss:U service, needed according to Nintendo Zone logs.archshift3-0/+57
2014-11-13Use std::u16string for conversion between UTF-8 and UTF-16, FS:USER functionsarchshift2-138/+40
2014-11-12APT_U: Added stub for function AppletUtility.bunnei1-1/+29
2014-11-12APT_U: Set a valid parameter buffer size in GlanceParameter.bunnei1-17/+39
- Also Clarified GlanceParameter/ReceiveParameter documentation.
2014-11-12APT_U: Release service lock on initialization.bunnei1-0/+4
2014-11-12APT_U: Fixes for GetLockHandle to boot system titles.bunnei1-1/+18
- Also added comment to GetLockHandle function.
2014-11-11Add FRD:U service and functionsarchshift3-0/+64
2014-11-10Add support for UTF-16 strings for LowPaths in FS:USERarchshift2-86/+182
2014-11-02Added CreateDirectory function to service/fs.cpp, and in Archive.archshift1-2/+38
2014-11-02Added ReceiveNotification, PublishToSubscriber unimplemented functions to SRVarchshift1-0/+2
2014-11-02Added stub err:f service.archshift3-0/+56
2014-11-01Added a bunch of servicespurpasmart9617-0/+581
2014-10-30FS:USER - Implemented IsSdmcDetectedarchshift1-1/+17
2014-10-29Renamed souce files of services to match port namesGareth Poole11-10/+10
2014-10-26Add `override` keyword through the code.Yuri Kunde Schlesner7-11/+11
This was automated using `clang-modernize`.
2014-10-25Don’t fail on empty filename in OpenFileDirectly, return the archive handle insteadEmmanuel Gil Peyrot1-8/+7
2014-10-14hid.cpp: Fixed crash when updating pad data while nullarchshift1-0/+4
Fixes #137
2014-10-08APT: Added a stub for the "GlanceParameter" function.purpasmart961-1/+31
2014-10-05Added some more names to the function tablepurpasmart961-0/+2
Added "SetApplicationCpuTimeLimit" and "GetApplicationCpuTimeLimit" to apt.cpp
2014-09-30added "StoreDataCache" to the function tablepurpasmart961-0/+1
seems simple enough
2014-09-17FS: Implement OpenArchive, OpenDirectory, OpenFile and OpenFileDirectly calls.Emmanuel Gil Peyrot1-20/+177
2014-09-12Added support for multiple input device types for KeyMap and connected Qt.Kevin Hartman2-113/+127
2014-09-12Initial HID PAD work, with GLFW only.Kevin Hartman2-24/+197
2014-09-12Created structure for PAD.Kevin Hartman2-0/+28
2014-09-09core: Prune redundant includesarchshift5-11/+0
2014-09-06core: Pass string by reference in FetchFromPortName and DeleteServiceLioncash2-4/+4
2014-08-31srv::Initialize: Return "success" status code.bunnei1-0/+4
2014-08-28srv::Initialize: Return "success" status code.bunnei1-0/+4
2014-08-25Pica/citra-qt: Replace command list view and command list debugging code with something more sophisticated.Tony Wasserka1-5/+0
2014-08-25GSP: Update framebuffer information when necessary.Tony Wasserka2-2/+41
2014-08-25GSP: Implement SetBufferSwap.Tony Wasserka2-1/+47
2014-08-25GSP: Add a helper function for convenience.Tony Wasserka1-17/+22
2014-08-18Core: Alter the kernel string functions to use std::string instead of const char*.Lioncash7-11/+11
Most functions already operate on std::strings. This also removes the need to manually null terminate thread names.
2014-08-13HID: Added new function entries from 3dbrew to FunctionTable.bunnei1-0/+5
HID: Fix typo with DisableGyroscopeLow command.
2014-08-12Pica/GPU: Change hardware registers to use physical addresses rather than virtual ones.Tony Wasserka1-9/+9
This cleans up the mess that address reading/writing had become and makes the code a *lot* more sensible. This adds a physical<->virtual address converter to mem_map.h. For further accuracy, we will want to properly extend this to support a wider range of address regions. For now, this makes simply homebrew applications work in a good manner though.
2014-08-12GSP: Fix a major regression introduced in ffda035c, due to which no display transfers were triggered at all anymore.Tony Wasserka1-4/+13
2014-08-12Remove the fancy RegisterSet class introduced in 4c2bff61e.Tony Wasserka1-18/+18
While it was some nice and fancy template usage, it ultimately had many practical issues regarding length of involved expressions under regular usage as well as common code completion tools not being able to handle the structures. Instead, we now use a more conventional approach which is a lot more clean to use.
2014-08-08HID: Implemented HID_User::GetIPCHandles service function.bunnei1-5/+39
2014-08-07GSP: Cleaned up command buffer decoding.bunnei2-61/+69
GSP: Cleaned up code and added additional comments. GSP: Removed unnecessary TODO comment. GSP: Changed u32 iterators in TriggerCmdReqQueue to unsigned.
2014-08-06GSP: Added reinitialization of other state objects.bunnei1-0/+3
2014-08-06GSP: Removed dumb GX prefixes to functions/structs in GSP namespace.bunnei2-77/+78
- Various other cleanups.
2014-08-06GSP: Removed unnecessary GX_FinishCommand function.bunnei1-13/+5
2014-08-06GSP: Implements preliminary command synchronization via GPU interrupts.bunnei2-18/+109
Core: Added a comment to explain the logic for the RunLoop iterations.
2014-08-06SRV: Updated GetProcSemaphore to create an event instead of a mutex.bunnei1-8/+10
2014-08-06FS: Fix port name (old port name was based on an unaligned memory read).bunnei1-1/+1
2014-07-23GSP: Add a few comments.Tony Wasserka2-1/+15
2014-07-23GSP: Clean up GX command processing a lot and treat command id as a u8 rather than a u32.Tony Wasserka2-37/+79
Anonymous structs are not standard C++, hence don't use them.
2014-07-23GPU: Make use of RegisterSet.Tony Wasserka1-21/+28
2014-07-23GPU: Emulate memory fills.Tony Wasserka2-1/+9
2014-07-23GSP: HLE GXCommandId::SET_DISPLAY_TRANSFER and GXCommandId::SET_TEXTURE_COPY.Tony Wasserka1-2/+9
2014-07-23GSP: Implement ReadHWRegs and WriteHWRegs properly.Tony Wasserka1-27/+46
2014-07-05GSP: Fixed to use real shared memory object, various cleanups.bunnei1-25/+34
- Previously, used a hard-coded shared memory handle of 0x10002000 (as used by libctru homebrew) GSP: Added name for shared memory. GSP: Cleaned up assertion message.
2014-07-05FileSys: Added preliminary support for applications reading the RomFS archive.bunnei1-3/+30
Archive: Fixed brace ugliness for neobrain :) FS: Commented out unused local variables to prevent warnings. ...But keeping them here for future use. archive_romfs: Removed unused #include.
2014-07-04APT: Added stubbed ReceiveParameter and various cleanups.bunnei1-71/+93
APT: More cleanups. APT: Changed SignalType to be type u32.
2014-06-27FS: Added stubbed code to intercept and decode file system service functions.bunnei3-0/+154
FS: Added to CMakeLists.txt
2014-06-13HLE: Updated all uses of NULL to nullptr (to be C++11 compliant)bunnei7-118/+118
2014-06-13HLE: Updated various handle debug assertions to be more clear.bunnei1-1/+1
2014-06-13Kernel: Updated several member functions to be constbunnei1-2/+2
2014-06-12GPU debugger: Add functionality to inspect command lists.Tony Wasserka1-0/+4
2014-06-12GPU: Cleanup register definitions.Tony Wasserka1-3/+3
2014-06-12Rename LCD to GPU.Tony Wasserka1-8/+8
2014-06-12Add initial graphics debugger interface.Tony Wasserka1-0/+6
2014-06-12GSP: Define more GX commands.Tony Wasserka2-14/+54
2014-06-05service: added a error log messages for unimplemented WaitSynchronizationbunnei1-0/+1
2014-06-03svc: added optional name field to Event and Mutex (used for debugging)bunnei2-4/+4
2014-06-01gsp: always pass through synchronization barrier for commandsbunnei1-1/+16
2014-05-30hle: added stubbed service for ndm_ubunnei2-0/+65
2014-05-30service: cleaned up log messagesbunnei1-2/+2
2014-05-30service: removed PT_A from, as this was just an alias for APT_Ubunnei1-2/+0
2014-05-30srv: fix to log unimplemented service (instead of crash)bunnei1-6/+2
2014-05-30hle: cleaned up log messagesbunnei4-11/+15
2014-05-30service: added additional hack to return success on unimplemented service callsbunnei1-2/+10
2014-05-30srv: changed a NOTICE_LOG to DEBUG_LOGbunnei1-1/+1
2014-05-29apt: added stubbed function for InquireNotificationbunnei1-78/+86
2014-05-29service: changed interface to return 0 (no error) when a service method is unimplemented - hack to make apps boot furtherbunnei1-2/+2
2014-05-28APT_U: added stubbed function for APT_U::Enable, fixed some log messages to be more consistentbunnei1-3/+10
2014-05-28APT_U: added event creation to Initialize methodbunnei1-1/+11
2014-05-27kernel: added WaitSynchronization method to Kernel::Objectbunnei1-0/+10
2014-05-27kernel: updated SyncRequest to take boolean thread wait result as a parameterbunnei1-3/+4
2014-05-27service: Renamed Sync to SyncRequestbunnei1-1/+1
2014-05-27srv: added a real mutex for GetProcSemaphore (instead of stubbed)bunnei1-3/+10
2014-05-27kernel: add a SyncRequest method to KernelObject for use with svcSendSyncRequestbunnei1-6/+0
2014-05-23service: fixed typo that MSVC did not catch as an errorbunnei1-1/+1
2014-05-23APT_U: added a debug log on calling GetLockHandlebunnei1-0/+1
2014-05-21mutex: refactored the interface to code to return a Mutex* handlebunnei1-1/+2
2014-05-21mutex: initial commit of HLE modulebunnei1-6/+4
2014-05-21service: removed redundant include of common_types.hbunnei1-1/+0
2014-05-21renamed "syscall" module to "svc" (more accurate naming)bunnei1-1/+1
2014-05-21- created a Kernel namespacebunnei2-8/+8
- cleaned up Kernel code a bit (moved stuff into namespace, fixed whitespace issues) - added handle types for all different CTROS handles
2014-05-20apt: changed stubbed handle to be something other than 0xDEADBEEF (used as a magic value in other places) so that I can track how it propagates through the app codebunnei1-1/+1
2014-05-19- renamed NewHandle to CreateHandlebunnei2-8/+8
- updated CreateHandle/DeleteHandle to use KernelObject's
2014-05-19- updated service(s) to be KernelObject'sbunnei6-55/+26
- various cleanups
2014-05-19renamed "UID" to "Handle" where appropriatebunnei3-22/+20
2014-05-19- moved Handle/Result definitions to kernel.hbunnei3-7/+9
- added ResetType enum
2014-05-17added stubbed GetProcSemaphore - does nothing but avoids an exceptionbunnei1-1/+7
2014-05-17updated APT_U::GetLockHandle to return a valid handlebunnei1-1/+5
2014-05-08removed unknown fields from GX_CmdBufferHeaderbunnei1-5/+0
2014-05-08- removed HLE mem "hack" and replaced with kernel mem regionbunnei4-8/+84
- added a helper function for getting command buffer for services - fixed bug where GSP DMA was incorrectly being done in DataSynchronizationBarrier (instead of gsp_TriggerCmdReqQueue)
2014-04-28removed DISALLOW_COPY_AND_ASSIGN in favor of NonCopyable classbunnei3-9/+0
2014-04-28fixed weird spacingbunnei1-1/+1
2014-04-27hackish but working way to set the framebuffer location to VRAM (used in ARM11 demos tested thus far, e.g. yeti3DS)bunnei1-3/+9
2014-04-26added simple GSP GPU ReadHWRegs function to support returning the framebuffer addressbunnei1-1/+37
2014-04-25added GSP::RegisterInterruptRelayQueue functionbunnei1-31/+40
2014-04-25- refactored how service functions are calledbunnei5-19/+39
- added option to create/delete service handles
2014-04-17fixed bug with printing std::string in log messagesbunnei1-2/+2
2014-04-17added class stub for HID:User servicebunnei3-0/+72
2014-04-17updated service commentsbunnei6-5/+17
2014-04-16- added stubbed out GSP::Gpu service interfacebunnei7-7/+103
- various cleanups/refactors to HLE services
2014-04-16removed no longer used function headerbunnei1-2/+0
2014-04-16restructured hle:services completely to use function lookup tablesbunnei5-137/+215
2014-04-16fixed naming for APT_Ubunnei3-9/+9
2014-04-16- extracted srv: calls from service.cpp and put in its own modulebunnei4-106/+105
- added function tables for service calls - lots of refactoring
2014-04-14added a stub for GetLockHandlebunnei3-9/+44
2014-04-13added framework for APT service (application and title launching service)bunnei4-5/+117
2014-04-13renamed class Interface_SRV to SRVbunnei1-6/+6
2014-04-13added some very initial command parsing for SRV Syncbunnei1-5/+31
2014-04-13cleanups to service HLEbunnei2-8/+8
2014-04-13- added HLE to connect to "srv:" servicebunnei2-2/+170
- added a manager for keeping track of services/ports - added a memory mapped region for memory accessed by HLE - added HLE for GetThreadCommandBuffer function
2014-04-12- renamed hle_syscall to just syscallbunnei1-0/+60
- added service.h as an initial service interface