Skip to content

Commit

Permalink
Add new plg::string
Browse files Browse the repository at this point in the history
  • Loading branch information
qubka committed Oct 12, 2024
1 parent 6a7d043 commit 54a7b11
Show file tree
Hide file tree
Showing 3 changed files with 200 additions and 204 deletions.
2 changes: 1 addition & 1 deletion src/core/con_var_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class CConVarManager
}
else
{
conVarInfo.hook.Notify(ref, std::to_string(*pNewValue), std::to_string(*pOldValue));
conVarInfo.hook.Notify(ref, plg::to_string(*pNewValue), plg::to_string(*pOldValue));
}
}

Expand Down
16 changes: 8 additions & 8 deletions src/export/cvars.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -645,28 +645,28 @@ extern "C" PLUGIN_API void GetConVarValue(plg::string& output, CConVarBaseData*
std::construct_at(&output, conVar->Cast<bool>()->GetValue() ? "1" : "0");
break;
case EConVarType_Int16:
std::construct_at(&output, std::to_string(conVar->Cast<int16_t>()->GetValue()));
std::construct_at(&output, plg::to_string(conVar->Cast<int16_t>()->GetValue()));
break;
case EConVarType_UInt16:
std::construct_at(&output, std::to_string(conVar->Cast<uint16_t>()->GetValue()));
std::construct_at(&output, plg::to_string(conVar->Cast<uint16_t>()->GetValue()));
break;
case EConVarType_Int32:
std::construct_at(&output, std::to_string(conVar->Cast<int32_t>()->GetValue()));
std::construct_at(&output, plg::to_string(conVar->Cast<int32_t>()->GetValue()));
break;
case EConVarType_UInt32:
std::construct_at(&output, std::to_string(conVar->Cast<uint16_t>()->GetValue()));
std::construct_at(&output, plg::to_string(conVar->Cast<uint16_t>()->GetValue()));
break;
case EConVarType_Int64:
std::construct_at(&output, std::to_string(conVar->Cast<int64_t>()->GetValue()));
std::construct_at(&output, plg::to_string(conVar->Cast<int64_t>()->GetValue()));
break;
case EConVarType_UInt64:
std::construct_at(&output, std::to_string(conVar->Cast<uint64_t>()->GetValue()));
std::construct_at(&output, plg::to_string(conVar->Cast<uint64_t>()->GetValue()));
break;
case EConVarType_Float32:
std::construct_at(&output, std::to_string(conVar->Cast<float>()->GetValue()));
std::construct_at(&output, plg::to_string(conVar->Cast<float>()->GetValue()));
break;
case EConVarType_Float64:
std::construct_at(&output, std::to_string(conVar->Cast<double>()->GetValue()));
std::construct_at(&output, plg::to_string(conVar->Cast<double>()->GetValue()));
break;
case EConVarType_String:
std::construct_at(&output, conVar->Cast<const char*>()->GetValue());
Expand Down
Loading

0 comments on commit 54a7b11

Please sign in to comment.