The Omega Refactor(TM) + Input Options
This commit is contained in:
@@ -2,13 +2,13 @@
|
||||
|
||||
/* Sets the window title from the given anm2 */
|
||||
void
|
||||
window_title_from_path_set(SDL_Window* self, const char* path)
|
||||
window_title_from_path_set(SDL_Window* self, const std::string& path)
|
||||
{
|
||||
if (!strcmp(path, STRING_EMPTY) == 0)
|
||||
if (path.empty())
|
||||
{
|
||||
char windowTitle[WINDOW_TITLE_MAX];
|
||||
snprintf(windowTitle, WINDOW_TITLE_MAX, STRING_WINDOW_TITLE_EDITING, path);
|
||||
SDL_SetWindowTitle(self, windowTitle);
|
||||
std::string windowTitle = path;
|
||||
windowTitle = windowTitle + " (" + path + ")";
|
||||
SDL_SetWindowTitle(self, windowTitle.c_str());
|
||||
}
|
||||
else
|
||||
SDL_SetWindowTitle(self, STRING_WINDOW_TITLE);
|
||||
|
Reference in New Issue
Block a user