Use last_index_of instead of index_of

This commit is contained in:
LAGonauta 2020-12-04 18:41:50 -03:00
parent 4a3306b479
commit 3dd19fad71

View file

@ -60,7 +60,7 @@ public class Util {
#if _WIN32
string fileName = fileInfo.get_name();
int fileNameLength = fileName.length;
int extIndex = fileName.index_of(".");
int extIndex = fileName.last_index_of(".");
if (extIndex < fileNameLength)
{
string extension = fileName.substring(extIndex, fileNameLength - extIndex);