| Age | Commit message (Collapse) | Author |
|
linker: Remove unused parameter from WriteRelocations()
|
|
loader/nro: Minor changes
|
|
vi: Minor changes
|
|
hle: Remove unused config_mem and shared_page source files
|
|
is_jump_relocation is never used within the function, so we can just
remove it.
|
|
It's sufficient to use a forward declaration instead of a direct
inclusion here.
|
|
Makes the code more uniform, and also braces cases where the body of an
unbraced conditional travels more than one line.
|
|
Makes it consistent with the other Apploader constructors, and prevents
implicit conversions.
|
|
This isn't used anywhere in the header.
|
|
NRO Assets and NACP File Format
|
|
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.
|
|
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
|
|
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.
|
|
This is a holdover from citra that's essentially unused.
|
|
Forgot to include this in 22f448b6327044076959e338811ee576f3dcf093
|
|
Cleanup
Review fixes
|
|
set: Amend return value of GetAvailableLanguageCodes()
|
|
This just returns the size of the language code buffer.
|
|
The return code should be 32-bit in size.
|
|
Kernel/SVC: Perform atomic accesses in SignalProcessWideKey as per the real kernel.
|
|
file_util, vfs: Use std::string_view where applicable
|
|
kernel.
|
|
|
|
ReplaceFileWithSubdirectory() takes a VirtualFile and a VirtualDir, but
it was being passed a string as one of its arguments. The only reason
this never caused issues is because this template isn't instantiated
anywhere yet.
This corrects an issue before it occurs.
|
|
Avoids unnecessary construction of std::string instances where
applicable.
|
|
This avoids a truncating cast on size. I doubt we'd ever traverse a
directory this large, however we also shouldn't truncate sizes away.
|
|
file_util: Use an enum class for GetUserPath()
|
|
This behaves quite similarly to the SubmitGPFIFO command. Referenced from Ryujinx.
Many thanks to @gdkchan for investigating this!
|
|
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.
|
|
partition_filesystem, vfs_real: Minor changes
|
|
arm_interface: Remove unused tls_address member of ThreadContext
|
|
file_sys/errors: Remove redundant object constructor calls
|
|
CPU: Save and restore the TPIDR_EL0 system register on every context switch
|
|
vfs: Minor changes
|
|
Loader: Only print the module names and addresses if they actually exist.
|
|
Given we're already constructing the error code, we don't need to call
the constructor inside of it.
|
|
and GetSubdirectories()
We already return by value, so we don't explicitly need to make the
copy.
|
|
|
|
ReplaceFileWithSubdirectory() where applicable
Avoids unnecessary atomic increment and decrement operations.
|
|
This is a little bit more self-documenting on what is being done here.
|
|
We can simply use std::clamp() here, instead of using an equivalent
with std::max() and std::min().
|
|
const reference
Given the data is intended to be directly written, there's no need to
take the std::vector by value and copy the data.
|
|
Provides the same behavior, but with less writing
|
|
functions to be const qualified
These functions don't modify the data being pointed to, so these can be
pointers to const data
|
|
|
|
Note that there's currently a dynarmic bug preventing this register from being written.
|
|
Currently, the TLS address is set within the scheduler, making this
member unused.
|
|
apm: Improve stub for GetPerformanceConfiguration.
|
|
|
|
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.
|