Skip to content

Commit

Permalink
Maybe fix windows string error
Browse files Browse the repository at this point in the history
  • Loading branch information
JustDoom committed Dec 16, 2024
1 parent fb9da19 commit 5e7685d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sdl/MainMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ void MainMenu::update() {
// Add the file path to the romFiles entry
romFiles.find(&romDirectories.back())->second.emplace_back(file.path().string());

TTF_Text* text = TTF_CreateText(textEngine, font, file.path().filename().c_str(), 0);
TTF_Text* text = TTF_CreateText(textEngine, font, file.path().filename().string().c_str(), 0);
if (!text) {
SDL_Log("Failed to create text: %s\n", SDL_GetError());
return;
Expand Down

0 comments on commit 5e7685d

Please sign in to comment.