Fix for image logging + file deletion routines

This commit is contained in:
Slider0007
2022-10-19 09:32:52 +02:00
parent 1c66f8c6ca
commit cd2350140d
3 changed files with 10 additions and 7 deletions

View File

@@ -319,7 +319,7 @@ string getDirectory(string filename)
string getFileType(string filename)
{
size_t lastpos = filename.find(".", 0);
size_t lastpos = filename.rfind(".", filename.length());
size_t neu_pos;
while ((neu_pos = filename.find(".", lastpos + 1)) > -1)
{