mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-15 08:49:20 +01:00
Don't null-terminate some random std::string.
This commit is contained in:
parent
fcf87f6c53
commit
0041ec618c
@ -432,7 +432,6 @@ std::string GCMemcard::DEntry_BIFlags(u8 index) const
|
|||||||
flags.push_back((x & 0x80) ? '1' : '0');
|
flags.push_back((x & 0x80) ? '1' : '0');
|
||||||
x = x << 1;
|
x = x << 1;
|
||||||
}
|
}
|
||||||
flags.push_back(0);
|
|
||||||
return flags;
|
return flags;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -469,7 +468,6 @@ std::string GCMemcard::DEntry_IconFmt(u8 index) const
|
|||||||
format.push_back((x & 0x80) ? '1' : '0');
|
format.push_back((x & 0x80) ? '1' : '0');
|
||||||
x = x << 1;
|
x = x << 1;
|
||||||
}
|
}
|
||||||
format.push_back(0);
|
|
||||||
return format;
|
return format;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -485,7 +483,6 @@ std::string GCMemcard::DEntry_AnimSpeed(u8 index) const
|
|||||||
speed.push_back((x & 0x80) ? '1' : '0');
|
speed.push_back((x & 0x80) ? '1' : '0');
|
||||||
x = x << 1;
|
x = x << 1;
|
||||||
}
|
}
|
||||||
speed.push_back(0);
|
|
||||||
return speed;
|
return speed;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -498,7 +495,6 @@ std::string GCMemcard::DEntry_Permissions(u8 index) const
|
|||||||
permissionsString.push_back((Permissions & 16) ? 'x' : 'M');
|
permissionsString.push_back((Permissions & 16) ? 'x' : 'M');
|
||||||
permissionsString.push_back((Permissions & 8) ? 'x' : 'C');
|
permissionsString.push_back((Permissions & 8) ? 'x' : 'C');
|
||||||
permissionsString.push_back((Permissions & 4) ? 'P' : 'x');
|
permissionsString.push_back((Permissions & 4) ? 'P' : 'x');
|
||||||
permissionsString.push_back(0);
|
|
||||||
return permissionsString;
|
return permissionsString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user