HostInterface: Add a helper function for generating timestamp-based filenames
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
#pragma once
|
||||
#include "common/string.h"
|
||||
#include "common/timer.h"
|
||||
#include "settings.h"
|
||||
#include "types.h"
|
||||
@ -86,6 +87,9 @@ public:
|
||||
/// Returns a path relative to the user directory.
|
||||
std::string GetUserDirectoryRelativePath(const char* format, ...) const;
|
||||
|
||||
/// Returns a string which can be used as part of a filename, based on the current date/time.
|
||||
static TinyString GetTimestampStringForFileName();
|
||||
|
||||
/// Displays a loading screen with the logo, rendered with ImGui. Use when executing possibly-time-consuming tasks
|
||||
/// such as compiling shaders when starting up.
|
||||
void DisplayLoadingScreen(const char* message, int progress_min = -1, int progress_max = -1, int progress_value = -1);
|
||||
|
||||
Reference in New Issue
Block a user