- Jul 24, 2018
-
-
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
This should be returning void, not a std::string
-
Lioncash authored
These aren't used externally at all, so they can be made private.
-
bunnei authored
-
bunnei authored
-
bunnei authored
-
bunnei authored
-
bunnei authored
-
bunnei authored
-
bunnei authored
-
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
-
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
-
-
Lioncash authored
string_util: Get rid of separate resize() in CPToUTF16(), UTF16ToUTF8(), CodeToUTF8() and UTF8ToUTF16() There's no need to perform the resize separately here, since the constructor allows presizing the buffer. Also move the empty string check before the construction of the string to make the early out more straightforward.
-
Lioncash authored
This is equivalent to doing: push_back(std::string("")); which is likely not to cause issues, assuming a decent std::string implementation with small-string optimizations implemented in its design, however it's still a little unnecessary to copy that buffer regardless. Instead, we can use emplace_back() to directly construct the empty string within the std::vector instance, eliminating any possible overhead from the copy.
-
Lioncash authored
We can just use the variant of std::string's replace() function that can replace an occurrence with N copies of the same character, eliminating the need to allocate a std::string containing a buffer of spaces.
-
Subv authored
-
Subv authored
-
MerryMage authored
-
Lioncash authored
We don't need to toss away the Subroutine instance after the find() call and reconstruct another instance with the same data right after it. Particularly give Subroutine contains a std::set.
-
bunnei 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.
-
bunnei authored
-
bunnei authored
-