mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-01 00:15:14 +01:00
Snes9x - Make S9xSetInfoString own its string. (#1054)
This commit is contained in:
parent
ce1a40b012
commit
b68b198070
@ -1760,9 +1760,12 @@ void S9xReRefresh (void)
|
|||||||
|
|
||||||
void S9xSetInfoString (const char *string)
|
void S9xSetInfoString (const char *string)
|
||||||
{
|
{
|
||||||
|
static std::string info_string;
|
||||||
|
|
||||||
if (Settings.InitialInfoStringTimeout > 0)
|
if (Settings.InitialInfoStringTimeout > 0)
|
||||||
{
|
{
|
||||||
GFX.InfoString = string;
|
info_string = string;
|
||||||
|
GFX.InfoString = info_string.c_str();
|
||||||
GFX.InfoStringTimeout = Settings.InitialInfoStringTimeout;
|
GFX.InfoStringTimeout = Settings.InitialInfoStringTimeout;
|
||||||
S9xReRefresh();
|
S9xReRefresh();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user