From f22bca1403853353fc5f36d9840ec1bf33fe06ee Mon Sep 17 00:00:00 2001 From: hyzboy Date: Wed, 14 Oct 2020 15:52:51 +0800 Subject: [PATCH] filesystem::ClipMainFilename use String::FindRightChars --- inc/hgl/filesystem/FileSystem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/hgl/filesystem/FileSystem.h b/inc/hgl/filesystem/FileSystem.h index acb0d52..d025124 100644 --- a/inc/hgl/filesystem/FileSystem.h +++ b/inc/hgl/filesystem/FileSystem.h @@ -54,7 +54,7 @@ namespace hgl const T spear_char[] = { '/','\\',0 }; - const int pos=fullname.FindRightChar(spear_char); + const int pos=fullname.FindRightChars(spear_char); if(pos==-1) return String(fullname);