MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / getFloatArg

Function getFloatArg

TheForceEngine/TFE_FrontEndUI/console.h:118–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116 const CVar* getCVarByIndex(u32 index);
117
118 inline f32 getFloatArg(const std::string& arg)
119 {
120 char* endPtr = nullptr;
121 return (f32)strtod(arg.c_str(), &endPtr);
122 }
123
124 inline bool getBoolArg(const std::string& arg)
125 {

Callers 3

player_warpFunction · 0.85
setSoundVolumeConsoleFunction · 0.85
setMusicVolumeConsoleFunction · 0.85

Calls 1

c_strMethod · 0.80

Tested by

no test coverage detected