The Omega Refactor(TM) + Input Options

This commit is contained in:
2025-06-30 21:29:59 -04:00
parent 6b5437a2fd
commit 30880c003d
35 changed files with 1490 additions and 1421 deletions

View File

@@ -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);