Lioncash
2665457f4a
renderer_base: Make Rasterizer() return the rasterizer by reference
All calling code assumes that the rasterizer will be in a valid state,
which is a totally fine assumption. The only way the rasterizer wouldn't
be is if initialization is done incorrectly or fails, which is checked
against in System::Init().
8 years ago
Lioncash
6030c5ce41
video_core: Eliminate the g_renderer global variable
We move the initialization of the renderer to the core class, while
keeping the creation of it and any other specifics in video_core. This
way we can ensure that the renderer is initialized and doesn't give
unfettered access to the renderer. This also makes dependencies on types
more explicit.
For example, the GPU class doesn't need to depend on the
existence of a renderer, it only needs to care about whether or not it
has a rasterizer, but since it was accessing the global variable, it was
also making the renderer a part of its dependency chain. By adjusting
the interface, we can get rid of this dependency.
8 years ago
David
c1d54f4aea
Added ability to change username & language code in the settings ui. Added IProfile::Get and SET::GetLanguageCode for libnx tests ( #851 )
8 years ago
Lioncash
7469e26e5e
service: Add migration services
Adds the basic skeleton for the mig:usr service based off information
provided by Switch Brew.
8 years ago
Lioncash
bf45092c61
kernel: Move object class to its own source files
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.
8 years ago
Lioncash
5233040ab4
service: Add psc services
Adds the basic skeleton for the psc services based off the information
provided by Switch Brew.
8 years ago
Lioncash
48acb764a4
service/ns: Add missing ns services
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.
8 years ago
Lioncash
f77cfab516
lm: Amend name of ILogger
Previously this was being registered with the name "Logger". While we're
at it, also change the name of the class to match it.
8 years ago
Lioncash
208a457909
service/filesystem: Add fsp:ldr and fsp:pr services
Adds the basic skeleton for the remaining fsp services based off
information provided by Switch Brew.
8 years ago
Lioncash
e39294c267
service: Add capture services
Adds the basic skeleton for the capture services based off information
provided by Switch Brew.
8 years ago
Lioncash
d109279543
service: Add bpc and pcv services
Adds the basic skeleton for the remaining pcv-related services based off
information on Switch Brew.
8 years ago
Lioncash
bba63b33a1
service/audio: Add missing services
Adds the missing audctl service, as well as the :a and :d services for
audin, audout, audrec, and audren.
8 years ago
Lioncash
1ced7bbea5
audout_u: Remove std::move in OpenAudioOutImpl()
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.
8 years ago
Lioncash
7da8f15461
service/am: Add missing am services
Adds the basic skeleton for missing am services idle:sys, omm, and spsm
based off the information provided by Switch Brew.
8 years ago
Lioncash
268eeeb406
service: Add fgm services
Adds the basic skeleton for the fgm services based off the information
provided by Switch Brew.
8 years ago
Lioncash
e373027a73
service: Add the pcie service
Adds the basic skeleton of the pcie service based off information on
Switch Brew.
8 years ago
Subv
e119e17d18
nvhost_gpu: Added checks to ensure we don't read past the end of the entries when handling a GPU command list.
8 years ago
Subv
2482aca7c3
nvhost_ctrl_gpu: Only read the input parameters if they are actually there.
Passing nullptr to memcpy is undefined behavior.
8 years ago
bunnei
eaf66b4c9f
audio_core: Move to audout_u impl.
- This is necessary so streams are created on the same thread.
8 years ago
David
a483e5e28d
Implemented various hwopus functions ( #853 )
8 years ago
Hexagon12
fd797e2424
Add some HID commands ( #843 )
* Added some HID commands
* Addressed comments
8 years ago
Lioncash
6ea416091e
service: Add wlan services
Adds the basic skeleton for the wlan services based off the information
on Switch Brew.
8 years ago
Lioncash
7ce6858086
service/btm: Add basic implementation of GetCoreImpl()
Based off information on SwIPC and Switch Brew.
8 years ago
Lioncash
ca7655be3a
service: Add btm services
Adds the skeleton for the btm services based off the information on
Switch Brew.
8 years ago
bunnei
f1c519f2cb
audout: Implement IAudioOut interface with AudioCore.
8 years ago
Lioncash
7931cc0ceb
service: Add ncm services
Adds the basic skeleton for the ncm services based off information on
Switch Brew.
8 years ago
Lioncash
f46bfdd77d
service: Add mii services
Adds the skeleton for the mii services based off information provided by
Switch Brew
8 years ago
Lioncash
50dadc33e3
service/nfc: Implement Create[x]Interface functions
These simply return the respective interface.
8 years ago
Lioncash
04d144aa40
service: Add nfc services
Adds the skeleton of the nfc service based off the information provided
on Switch Brew.
8 years ago
Lioncash
ea8dd8b650
service/lbl: Implement EnableVrMode, DisableVrMode and GetVrMode
Implements these functions according to the information available on
Switch Brew.
8 years ago
Lioncash
c2c543e8f7
service: Add the lbl service
Adds the skeleton of the lbl service based off the information provided
by Switch Brew.
8 years ago
Lioncash
f49248437e
service: Add the btdrv service
Adds the skeleton for the btdrv service based off the information provided by Switch Brew
8 years ago
Lioncash
1121622dc1
service/hid: Add the hidbus, hid:dbg, hid:sys, and hid:tmp services
8 years ago
Lioncash
7550c2c866
service/hid: Add the xcd:sys service
8 years ago
Lioncash
82cb5f030d
service/hid: Add irs services
8 years ago
Lioncash
b28af1f6c9
service: Add the grc:c service
Adds the basic skeleton for the grc:c service based off the information
provided by Switch Brew.
8 years ago
Lioncash
f916611e32
service: Add the nim services
Adds the skeleton for the nim services based off information from Switch
Brew.
8 years ago
Lioncash
8781beaf0d
service: Add ldn services
Adds ldn services based off information provided by Switch Brew.
8 years ago
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