Remove implicit conversion operator from RString to const char*
This is required for the RString to std::string migration. Mostly automated from https://github.com/aeubanks/rewriter/blob/main/c_str.cc, with some manual intervention required for fixing up `a + b.c_str()` to `(a + b).c_str()`. Added some overloads for some common global functions like sm_crash to reduce the number of changes required here.
This commit is contained in:
+1
-1
@@ -46,7 +46,7 @@ bool GameInput::FromString( const InputScheme* pInputs, const RString &s )
|
||||
char szController[32] = "";
|
||||
char szButton[32] = "";
|
||||
|
||||
if( 2 != sscanf( s, "%31[^_]_%31[^_]", szController, szButton ) )
|
||||
if( 2 != sscanf( s.c_str(), "%31[^_]_%31[^_]", szController, szButton ) )
|
||||
{
|
||||
controller = GameController_Invalid;
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user