HostInterface: Share settings between SDL and Qt frontends
This commit is contained in:
parent
2c3a0a6af9
commit
b3db3a1cc0
5 changed files with 14 additions and 8 deletions
|
|
@ -462,7 +462,7 @@ void HostInterface::SetUserDirectory()
|
|||
}
|
||||
}
|
||||
|
||||
std::string HostInterface::GetUserDirectoryRelativePath(const char* format, ...)
|
||||
std::string HostInterface::GetUserDirectoryRelativePath(const char* format, ...) const
|
||||
{
|
||||
std::va_list ap;
|
||||
va_start(ap, format);
|
||||
|
|
@ -480,6 +480,11 @@ std::string HostInterface::GetUserDirectoryRelativePath(const char* format, ...)
|
|||
}
|
||||
}
|
||||
|
||||
std::string HostInterface::GetSettingsFileName() const
|
||||
{
|
||||
return GetUserDirectoryRelativePath("settings.ini");
|
||||
}
|
||||
|
||||
void HostInterface::RunFrame()
|
||||
{
|
||||
m_frame_timer.Reset();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue