mirror of https://github.com/snes9xgit/snes9x.git
win32: directly return string
This commit is contained in:
parent
2d873e7dd9
commit
fc7668c9f0
|
@ -187,10 +187,7 @@ const TCHAR *S9xGetDirectoryT (enum s9x_getdirtype dirtype)
|
||||||
|
|
||||||
std::string S9xGetDirectory (enum s9x_getdirtype dirtype)
|
std::string S9xGetDirectory (enum s9x_getdirtype dirtype)
|
||||||
{
|
{
|
||||||
static char path[PATH_MAX]={0};
|
return std::string(_tToChar(S9xGetDirectoryT(dirtype)));
|
||||||
strncpy(path,_tToChar(S9xGetDirectoryT(dirtype)),PATH_MAX-1);
|
|
||||||
|
|
||||||
return path;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string S9xGetFilenameInc (std::string e, enum s9x_getdirtype dirtype)
|
std::string S9xGetFilenameInc (std::string e, enum s9x_getdirtype dirtype)
|
||||||
|
|
Loading…
Reference in New Issue