all repos — mgba @ b99b680ca2dbab6fa3063d98d3e3a3ab8ce98cf0

mGBA Game Boy Advance Emulator

3DS: Fix filename decoding with UTF-16 names
Jeffrey Pfau jeffrey@endrift.com
Sun, 01 Nov 2015 09:14:45 -0800
commit

b99b680ca2dbab6fa3063d98d3e3a3ab8ce98cf0

parent

f00380abb973ed3b9df7f7ebe8bb12161200a69c

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/platform/3ds/3ds-vfs.csrc/platform/3ds/3ds-vfs.c

@@ -257,7 +257,7 @@

static const char* _vd3deName(struct VDirEntry* vde) { struct VDirEntry3DS* vd3de = (struct VDirEntry3DS*) vde; if (!vd3de->utf8Name[0]) { - utf16_to_utf8(vd3de->utf8Name, vd3de->ent.name, sizeof(vd3de->ent.name)); + utf16_to_utf8(vd3de->utf8Name, vd3de->ent.name, sizeof(vd3de->utf8Name)); } return vd3de->utf8Name; }