mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-30 07:05:38 +00:00
refactor: nuke all widestrings and widechars everywhere
This commit is contained in:
@@ -66,12 +66,12 @@ void CompleteAllRuleDefinition::updateStatus(GameRule* rule) {
|
||||
goal);
|
||||
}
|
||||
|
||||
std::wstring CompleteAllRuleDefinition::generateDescriptionString(
|
||||
const std::wstring& description, void* data, int dataLength) {
|
||||
std::string CompleteAllRuleDefinition::generateDescriptionString(
|
||||
const std::string& description, void* data, int dataLength) {
|
||||
PacketData* values = (PacketData*)data;
|
||||
std::wstring newDesc = description;
|
||||
std::string newDesc = description;
|
||||
newDesc =
|
||||
replaceAll(newDesc, L"{*progress*}", toWString<int>(values->progress));
|
||||
newDesc = replaceAll(newDesc, L"{*goal*}", toWString<int>(values->goal));
|
||||
replaceAll(newDesc, "{*progress*}", toWString<int>(values->progress));
|
||||
newDesc = replaceAll(newDesc, "{*goal*}", toWString<int>(values->goal));
|
||||
return newDesc;
|
||||
}
|
||||
Reference in New Issue
Block a user