Lioncash
20c2928c2b
video_core; Get rid of global g_toggle_framelimit_enabled variable
Instead, we make a struct for renderer settings and allow the renderer
to update all of these settings, getting rid of the need for
global-scoped variables.
This also uncovered a few indirect inclusions for certain headers, which
this commit also fixes.
7 years ago
Zach Hilman
ec3bef7b4c
loader: Add more descriptive errors
Full list of new errors and descriptions in core/loader/loader.h
7 years ago
Lioncash
b46a5c42ff
buffer_queue: Make reference parameter of SetPreallocatedBuffer const
This is simply copied by value, so there's no need to make it a
modifiable reference.
While we're at it, make the names of the parameters match its
definition.
7 years ago
Lioncash
ff5024ee2a
hle_ipc: Make WriteToOutgoingCommandBuffer()'s reference parameter const
This function doesn't modify anything within the reference Thread
instance.
7 years ago
Zach Hilman
668458525e
vfs: Fix documentation
7 years ago
Zach Hilman
94cf327e77
vfs: Fix typo in VfsFilesystem docs
7 years ago
Zach Hilman
2b6128fe0b
file_util: Use enum instead of bool for specifing path behavior
8 years ago
Zach Hilman
dad2ae1ee0
loader: Remove unused IdentifyFile overload
8 years ago
Zach Hilman
656e97df16
vfs: Use RealVfsFilesystem for fs-operations in RealVfsDirectory
8 years ago
Zach Hilman
52a2e42cb9
file_sys: Add missing include in savedata_factory
8 years ago
Zach Hilman
4b471f0554
core: Port core to VfsFilesystem for file access
8 years ago
Zach Hilman
aaa8fdea52
vfs: Add unreachable assert to file permissions converter
8 years ago
Zach Hilman
2de2ec25d6
vfs: Add RealVfsFilesystem implementation
8 years ago
Zach Hilman
3bf488ce52
vfs: Add VfsFilesystem interface and default implementation
8 years ago
Zach Hilman
b36dee364e
filesystem: Remove unnecessary if conditions
8 years ago
Lioncash
7353cfc781
fsp_srv: Use std::string_view's copy() function instead of strncpy()
Given elements inserted into a vector are zeroed out, we can just copy
MAX_LEN - 1 elements and the data will already be properly null
terminated.
7 years ago
Lioncash
4afb05d0cc
fsp_srv: Emplace entries first when building index instead of emplacing last
The current way were doing it would require copying a 768 character
buffer (part of the Entry struct) to the new element in the vector.
Given it's a plain array, std::move won't eliminate that.
Instead, we can emplace an instance directly into the destination buffer
and then fill it out, avoiding the need to perform any unnecessary
copies.
Given this is done in a loop, we can request the destination to allocate
all of the necessary memory ahead of time, avoiding the need to
potentially keep reallocating over and over on every few insertions into
the vector.
7 years ago
mailwl
c0d44d3b2a
Service/Account: stub LoadImage function
7 years ago
mailwl
3c498189b6
hid: fix IsSixAxisSensorAtRest() response
7 years ago
bunnei
0f834e2284
nvhost_gpu: Don't over copy IoctlSubmitGpfifo.
7 years ago
bunnei
b7fb9f2071
am: Stub SetScreenShotImageOrientation.
- Used by Super Mario Odyssey.
7 years ago
Lioncash
934a2b9604
acc: Add missing function table entries for GetUserCount
Given this is stubbed within the common module in
5ac7b84, it should be added to the other relevant tables as well.
7 years ago
bunnei
2bc296801a
acc: Stub GetUserCount. ( #973 )
- Used by Pokken Tournament DX.
7 years ago
Lioncash
d378d98e26
nvdrv: Get rid of global std::weak_ptr
Rather than use global state, we can simply pass the instance into the
NVFlinger instance directly.
7 years ago
Lioncash
cd1a96f389
hle: Remove unused romfs.cpp/.h
These files are no longer used, so we can get rid of them.
7 years ago
Zach Hilman
3e81c09094
loader: Fix scope error in DeconstructedRomDirectory
7 years ago
Lioncash
12ab5a0547
service/apm: Add the apm:sys service
Adds the basic skeleton of the apm:sys service based off the information
on Switch Brew.
7 years ago
Lioncash
d3f64785d1
nvflinger: Correct typo in name of composition event
7 years ago
Lioncash
300ab211e8
nvdrv: Make Ioctl()'s definition match its prototype
The only reason this wasn't a compilation error is because we use
little-endian systems.
7 years ago
Lioncash
fa8017295b
nvdrv: Get rid of indirect inclusions
7 years ago
Lioncash
e40b0cf437
nvflinger: Get rid of indirect inclusions
7 years ago
Lioncash
7e49881b7f
nvflinger: Use std::string_view in OpenDisplay()
We don't need to use a std::string here, given all that's done is
comparing the character sequence against another. This allows passing
regular const char* without needing to heap allocate.
7 years ago
Lioncash
890e543304
services/hid: Add ActivateNpadWithRevision() to the hid function info array
Updated based off the information on Switch Brew.
7 years ago
Lioncash
20c976ff2a
service/time: Amend command IDs of ToPosixTime() and ToPosixTimeWithMyRule()
Updates the ID of these based off the information on Switch Brew.
7 years ago
Lioncash
45bc449ff9
service: Add usb services
Adds basic skeleton for the usb services based off the information provided by Switch Brew.
8 years ago
Zach Hilman
91cfe70301
loader: Add icon and title support to XCI
8 years ago
Zach Hilman
5927cf0e17
Use const where applicable
8 years ago
Zach Hilman
9e88f03e75
Avoid parsing RomFS to directory in NCA
8 years ago
Lioncash
da2f00ab7d
client_port: Make all data members private
These members don't need to be entirely exposed, we can instead expose
an API to operate on them without directly needing to mutate them
We can also guard against overflow/API misuse this way as well, given
active_sessions is an unsigned value.
8 years ago
Hedges
e2b74f6354
GDBStub works with both Unicorn and Dynarmic now ( #941 )
* GDBStub works with both Unicorn and Dynarmic now
* Tidy up
8 years ago
Lioncash
2feb1a8ba6
kernel/event: Make data members private
Instead we can simply provide accessors to the required data instead of
giving external read/write access to the variables directly.
8 years ago
mailwl
2ea0f0fd16
Service/Audio: audout_a.cpp: remove pragma once
8 years ago
Lioncash
6c56754322
perf_stats: Correct literal used for MAX_LAG_TIME_US
ms is shorthand for milliseconds, not microseconds, and given there's no
comment indicating that this was intentional, it probably wasn't.
8 years ago
Lioncash
a0c3a46aa9
core_timing: Make GetGlobalTimeUs() return std::chrono::microseconds
Enforces the time unit being returned and also allows using the standard
time utilities to manipulate it.
8 years ago
Lioncash
2a7a2b739b
memory: Make prototype parameter names match their definitions
Keeps the code consistent.
8 years ago
Lioncash
4aa31b0618
memory: Correct prototype of ZeroBlock
Previously, the prototype wasn't matching the definition, which has a
Processor parameter before the destination address.
8 years ago
Lioncash
2fc5c783ed
memory: Remove unnecessary const qualifiers in prototypes
These aren't necessary, as value-wise const only matters in the
definition.
8 years ago
Lioncash
6edd828101
core_timing: Convert typedef into a type alias
Makes the alias a little more readable from left-to-right.
8 years ago
Lioncash
d9815b523b
core_timing: Use transparent functors where applicable
Gets rid of the need to hardcode the type in multiple places. This will
now be deduced automatically, based off the elements in the container
being provided to the algorithm.
8 years ago
Zach Hilman
7f9430f7ae
loader: Make AppLoader_NCA rely on directory loading code
Eliminates duplicate code shared between their Load methods, after all the only difference is how the romfs is handled.
8 years ago