File tree 2 files changed +8
-2
lines changed 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,10 @@ void PopulateReplayFileListbox(GameWindow *listbox)
181
181
const MapMetaData *md = TheMapCache->findMap (info.getMap ());
182
182
if (!md)
183
183
{
184
- mapStr.translate (info.getMap ());
184
+ // TheSuperHackers @bugfix helmutbuhler 08/03/2025 Just use the filename.
185
+ // Displaying a long map path string would break the map list gui.
186
+ const char * filename = info.getMap ().reverseFind (' \\ ' );
187
+ mapStr.translate (filename ? filename + 1 : info.getMap ());
185
188
}
186
189
else
187
190
{
Original file line number Diff line number Diff line change @@ -181,7 +181,10 @@ void PopulateReplayFileListbox(GameWindow *listbox)
181
181
const MapMetaData *md = TheMapCache->findMap (info.getMap ());
182
182
if (!md)
183
183
{
184
- mapStr.translate (info.getMap ());
184
+ // TheSuperHackers @bugfix helmutbuhler 08/03/2025 Just use the filename.
185
+ // Displaying a long map path string would break the map list gui.
186
+ const char * filename = info.getMap ().reverseFind (' \\ ' );
187
+ mapStr.translate (filename ? filename + 1 : info.getMap ());
185
188
}
186
189
else
187
190
{
You can’t perform that action at this time.
0 commit comments