Lioncash
3f5dfc4d96
service/sockets: Add ethc:c and ethc:i services
8 years ago
Lioncash
165e7645e1
service/sockets: Add missing bsdcfg socket service
8 years ago
Lioncash
3fb124961e
service: Add ldr services
Adds the skeleton for the ldr-related services based off the information
provided on Switch Brew.
8 years ago
Lioncash
91d86df920
lm: Move LM's class declaration into the cpp file
This isn't used directly outside of this translation unit, so we can
hide it from external use.
8 years ago
Lioncash
6f4d3d8163
lm: Amend names of Initialize() in Logger and Initialize() in LM
Amends these to match the information on Switch Brew.
8 years ago
Lioncash
8650be1020
lm: Add missing function entry to Logger's function table
8 years ago
Lioncash
7458e71f24
service: Add eupld services
Adds the skeleton for the eupld services based off information on Switch
Brew.
8 years ago
Lioncash
821f2c03cb
service: Add the erpt services
Adds the basic skeleton of the erpt service based off information on
Switch Brew.
8 years ago
Lioncash
f9951352f6
service/nvdrv: Take std::string in Open() by const reference
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.
8 years ago
Lioncash
a2cd07d094
service/nvdrv: Use std::move where applicable
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.
8 years ago
Lioncash
85ed42a1d2
service/nifm: Deduplicate interface code
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.
8 years ago
Lioncash
c664f8a257
service: Add pm services
Adds the skeleton for the process management services based off
information on Switch Brew.
8 years ago
Lioncash
4175712976
service: Add the es service
Adds the skeleton for the ETicket service based off the information on
Switch Brew
8 years ago
Lioncash
3c1cb3b11e
time: Add the time:a service
Given we already have time:s and time:u, we should also have time:a
8 years ago
Lioncash
07c2d057bd
friend: Add friend:m, friend:s, and friend:v services
Given we already have friend:a and friend:u, we should add the remaining
services as well.
8 years ago
Lioncash
9539a1eadd
friend/interface: Add missing CreateDaemonSuspendSessionService() to the function handler table
8 years ago
Lioncash
77daef44b0
friend: Deduplicate interfaces
8 years ago
Lioncash
c73410bf2c
svc: Resolve sign comparison warnings in WaitSynchronization()
The loop's induction variable was signed, but we were comparing against
an unsigned variable.
8 years ago
Lioncash
8e8e906432
svc: Log parameters in SetMemoryAttribute()
Provides slightly more context than only logging out the address value.
8 years ago
Lioncash
a61124a9e7
time: Simplify interface creation
We can use one instance of the interface instead of duplicating code.
8 years ago
MerryMage
44646e2ea0
core_timing: Split off utility functions into core_timing_util
8 years ago
Lioncash
63c605c04a
set_sys: Implement SetColorSetId()
8 years ago
Lioncash
76f191ce36
ipc_helper: Add helper member function for popping enum values to RequestParser
8 years ago
Lioncash
1d755abce4
core: Make converting constructors explicit where applicable
Avoids unwanted implicit conversions. Thankfully, given the large amount
of cleanup in past PRs, only this tiny amount is left over to cover.
8 years ago
Lioncash
8b83adfed6
apm/interface: Remove redundant declaration of InstallInterfaces()
This is already declared in apm/apm.h
8 years ago
Lioncash
42b5158c96
mutex: Pass SharedPtr to GetHighestPriorityMutexWaitingThread() by reference
The pointed to thread's members are simply observed in this case, so we
don't need to copy it here.
8 years ago
Zach Hilman
59cb258409
VFS Regression and Accuracy Fixes ( #776 )
* 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&
8 years ago
Lioncash
22fd3f0026
hle_ipc: Make constructors explicit where applicable
8 years ago
Lioncash
2a1daf8f83
ipc_helpers: Make member variables of ResponseBuilder private
These aren't used externally at all, so they can be made private.
8 years ago
Lioncash
1432912ae8
vi: Add std::is_trivially_copyable checks to Read and Write functions
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.
8 years ago
Lioncash
344a0c91f2
vi: std::move std::vector in constructors where applicable
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
8 years ago
Lioncash
cbe841c9c9
hle: Remove config_mem.h/.cpp
This is just an unused hold-over from citra, so we can get rid of this
to trim off an exposed global, among other things.
8 years ago
Lioncash
1f3889a290
hle: Remove shared_page.h/.cpp
This is a holdover from citra that's essentially unused.
8 years ago
Lioncash
e85308cd90
set: Add missing log call in GetAvailableLanguageCodeCount()
Forgot to include this in 22f448b632
8 years ago
Lioncash
22f448b632
set: Implement GetAvailableLanguageCodeCount()
This just returns the size of the language code buffer.
8 years ago
Lioncash
37aeecd29f
set: Correct return code size of value in GetAvailableLanguageCodes()
The return code should be 32-bit in size.
8 years ago
Subv
7841447cf0
Kernel/SVC: Perform atomic accesses in SignalProcessWideKey as per the real kernel.
8 years ago
Lioncash
398444e676
file_util, vfs: Use std::string_view where applicable
Avoids unnecessary construction of std::string instances where
applicable.
8 years ago
Subv
5c49e56d41
GPU: Implement the NVGPU_IOCTL_CHANNEL_KICKOFF_PB ioctl2 command.
This behaves quite similarly to the SubmitGPFIFO command. Referenced from Ryujinx.
Many thanks to @gdkchan for investigating this!
8 years ago
Lioncash
d66b43dadf
file_util: Use an enum class for GetUserPath()
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.
8 years ago
Subv
d84eb9dac6
CPU: Save and restore the TPIDR_EL0 system register on every context switch.
Note that there's currently a dynarmic bug preventing this register from being written.
8 years ago
bunnei
dffd154d6d
apm: Improve stub for GetPerformanceConfiguration.
8 years ago
Lioncash
0a0b3c4b9f
ipc_helpers: Add PushEnum() member function to ResponseBuilder
Allows pushing strongly-typed enum members without the need to always
cast them at the call sites.
Note that we *only* allow strongly-typed enums in this case. The reason
for this is that strongly typed enums have a guaranteed defined size, so
the size of the data being pushed is always deterministic. With regular
enums this can be a little more error-prone, so we disallow them.
This function simply uses the underlying type of the enum to determine
the size of the data. For example, if an enum is defined as:
enum class SomeEnum : u16 {
SomeEntry
};
if PushEnum(SomeEnum::SomeEntry); is called, then it will push a
u16-size amount of data.
8 years ago
Subv
9c7321fe6d
HLE/ACC: Stub IManagerForApplication::GetAccountId to return an error.
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.
8 years ago
Lioncash
40c9c5a55c
audren_u: Use a std::array instead of std::string for holding the audio interface/device name
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
8 years ago
Lioncash
c20cea118b
audout_u: Use a std::array instead of std::string for holding the audio interface name
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.
8 years ago
Lioncash
dbfe82773d
thread: Convert ThreadStatus into an enum class
Makes the thread status strongly typed, so implicit conversions can't
happen. It also makes it easier to catch mistakes at compile time.
8 years ago
Lioncash
1bdb67440b
pl_u: Simplify WriteBuffer() calls in GetSharedFontInOrderOfPriority()
With the new overload, we can simply pass the container directly.
8 years ago
Subv
05549e45c5
HLE/ACC: Return an IProfile that is consistent with what was requested.
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.
8 years ago
Subv
50e2777724
HLE/ACC: Change the default user id to be consistent with what we tell games on startup.
In IApplicationFunctions::PopLaunchParameter we tell the games that they were launched as user id 1.
8 years ago