Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: SDK: mistake in pathUtils.cpp (Read 2256 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

SDK: mistake in pathUtils.cpp

string getFileNameWithoutExtension(string path) {
   string fn = getFileName(path);
   t_size split = path.lastIndexOf('.');
   if (split == ~0) return fn;
   else return fn.subString(0,split);
}

should be

string getFileNameWithoutExtension(string path) {
   string fn = getFileName(path);
   t_size split = fn.lastIndexOf('.');
   if (split == ~0) return fn;
   else return fn.subString(0,split);
}