- Jul 24, 2018
-
-
Lioncash authored
Avoids unwanted implicit conversions. Thankfully, given the large amount of cleanup in past PRs, only this tiny amount is left over to cover.
-
Lioncash authored
This is already declared in apm/apm.h
-
Lioncash authored
The pointed to thread's members are simply observed in this case, so we don't need to copy it here.
-
Zach Hilman authored
* 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&
-
Lioncash authored
-
Lioncash authored
These aren't used externally at all, so they can be made private.
-
Lioncash authored
Uses the same type aliases we use for virtual addresses, and converts one lingering usage of std::array<uint64_t, 2> to u128 for consistency.
-
Lioncash authored
Avoids copying a std::string instance and avoids unnecessary atomic reference count incrementing and decrementing.
-
- Jul 23, 2018
-
-
Lioncash authored
RealVfsFile inherits from VfsFile, the instance from std::make_shared is already compatible with the function argument type, making the copy constructor call unnecessary.
-
Lioncash authored
is_jump_relocation is never used within the function, so we can just remove it.
-
Lioncash authored
It's sufficient to use a forward declaration instead of a direct inclusion here.
-
Lioncash authored
Makes the code more uniform, and also braces cases where the body of an unbraced conditional travels more than one line.
-
Lioncash authored
Makes it consistent with the other Apploader constructors, and prevents implicit conversions.
-
Lioncash authored
This isn't used anywhere in the header.
-
Lioncash authored
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.
-
Lioncash authored
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
-
Lioncash authored
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.
-
Lioncash authored
This is a holdover from citra that's essentially unused.
-
Zach Hilman authored
Cleanup Review fixes
-
Lioncash authored
This just returns the size of the language code buffer.
-
Lioncash authored
The return code should be 32-bit in size.
-
- Jul 22, 2018
-
-
Subv authored
-
MerryMage authored
-
Lioncash authored
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.
-
Lioncash authored
Avoids unnecessary construction of std::string instances where applicable.
-
Lioncash authored
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.
-
- Jul 21, 2018
-
-
Subv authored
This behaves quite similarly to the SubmitGPFIFO command. Referenced from Ryujinx. Many thanks to @gdkchan for investigating this!
-
Lioncash authored
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.
-
Lioncash authored
Given we're already constructing the error code, we don't need to call the constructor inside of it.
-
Lioncash authored
We already return by value, so we don't explicitly need to make the copy.
-
Lioncash authored
-
Lioncash authored
Avoids unnecessary atomic increment and decrement operations.
-
Lioncash authored
This is a little bit more self-documenting on what is being done here.
-
Lioncash authored
We can simply use std::clamp() here, instead of using an equivalent with std::max() and std::min().
-
Lioncash authored
Given the data is intended to be directly written, there's no need to take the std::vector by value and copy the data.
-
Lioncash authored
Provides the same behavior, but with less writing
-
Lioncash authored
vfs: Amend constness on pointers in WriteBytes() and WriteArrays() member functions to be const qualified These functions don't modify the data being pointed to, so these can be pointers to const data
-
Subv authored
-
Subv authored
Note that there's currently a dynarmic bug preventing this register from being written.
-