From 4fd905f894ec324a89a39a6f00e3ee3be805c582 Mon Sep 17 00:00:00 2001 From: Pk11 Date: Sun, 15 Aug 2021 17:26:12 -0500 Subject: [PATCH] Fix file name being able to wrap --- arm9/source/file_browse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arm9/source/file_browse.cpp b/arm9/source/file_browse.cpp index 4d66546..d3a2f8f 100644 --- a/arm9/source/file_browse.cpp +++ b/arm9/source/file_browse.cpp @@ -160,7 +160,7 @@ void showDirectoryContents (const std::vector& dirContents, int fileOf pal = Palette::gray; } - font->print(0, i + 1, true, entry->name, Alignment::left, pal); + font->print(0, i + 1, true, entry->name.substr(0, SCREEN_COLS), Alignment::left, pal); if (entry->name == "..") { font->print(-1, i + 1, true, "(..)", Alignment::right, pal); } else if (entry->isDirectory) {