early-access version 3878
This commit is contained in:
parent
02c5619085
commit
d5bf485708
@ -1,7 +1,7 @@
|
|||||||
yuzu emulator early access
|
yuzu emulator early access
|
||||||
=============
|
=============
|
||||||
|
|
||||||
This is the source code for early-access 3877.
|
This is the source code for early-access 3878.
|
||||||
|
|
||||||
## Legal Notice
|
## Legal Notice
|
||||||
|
|
||||||
|
@ -606,15 +606,12 @@ struct Nickname {
|
|||||||
static constexpr std::size_t MaxNameSize = 10;
|
static constexpr std::size_t MaxNameSize = 10;
|
||||||
std::array<char16_t, MaxNameSize> data;
|
std::array<char16_t, MaxNameSize> data;
|
||||||
|
|
||||||
// Checks for null, non-zero terminated or dirty strings
|
// Checks for null or dirty strings
|
||||||
bool IsValid() const {
|
bool IsValid() const {
|
||||||
if (data[0] == 0) {
|
if (data[0] == 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data[MaxNameSize] != 0) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
std::size_t index = 1;
|
std::size_t index = 1;
|
||||||
while (data[index] != 0) {
|
while (data[index] != 0) {
|
||||||
index++;
|
index++;
|
||||||
|
Loading…
Reference in New Issue
Block a user