mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-18 02:37:58 +00:00
Address review comments
This commit is contained in:
parent
8a5fed2c9d
commit
f24b74d4c1
11 changed files with 26 additions and 27 deletions
|
@ -76,12 +76,7 @@ static constexpr char BanListMagic[] = "YuzuRoom-BanList-1";
|
|||
static constexpr char token_delimiter{':'};
|
||||
|
||||
static void PadToken(std::string& token) {
|
||||
const auto remainder = token.size() % 3;
|
||||
if (remainder == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (size_t i = 0; i < (3 - remainder); i++) {
|
||||
while (token.size() % 4 != 0) {
|
||||
token.push_back('=');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue