dhewm3/neo/idlib
Daniel Gibson aa77e49de7 Fix handling of paths with dots in dir names, fix #299, #301
idStr::StripFileExtension() (and SetFileExtension() which uses it) and
others didn't work correctly if there was a dot in a directory name,
because they just searched from last to first char for '.', so if the
current filename didn't have an extension to cut off, they'd just cut off
at any other '.' they found.
So D:\dev\doom3.data\base\maps\bla could turn into D:\dev\doom3
(or, for SetFileExtension(), D:\dev\doom3.map)

While at it, I made most of the idStr code that explicitly checked for '\\'
and '/' (and maybe ':' for AROS) use a little "bool isDirSeparator(int c)"
function so we don't have the #ifdefs for different platforms all over
the place.
2020-07-21 05:58:44 +02:00
..
bv Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
containers List.h needs sys/platform.h for ID_INLINE 2012-11-13 23:28:21 +01:00
geometry Fix pot. Crash in idWinding2D::ExpandForAxialBox() 2018-12-09 04:16:43 +01:00
hashing s/LittleLong/LittleInt/ to match the return type 2012-06-28 13:02:47 +02:00
math ID_MAYBE_INLINE for not-forced inlining 2020-01-11 16:15:34 +01:00
Base64.cpp Remove usage of long type from idlib/ 2012-06-28 13:02:45 +02:00
Base64.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
BitMsg.cpp s/ReadDeltaLongCounter/ReadDeltaIntCounter/ 2012-06-28 13:52:24 +02:00
BitMsg.h s/ReadDeltaLong/ReadDeltaInt/ 2012-06-28 13:52:25 +02:00
CmdArgs.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
CmdArgs.h Fix all whitespace errors 2011-12-10 15:35:54 +01:00
Dict.cpp s/LittleLong/LittleInt/ to match the return type 2012-06-28 13:02:47 +02:00
Dict.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Heap.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Heap.h Fix alignment issue with idBlockAlloc::Free() 2011-12-22 18:51:17 +01:00
LangDict.cpp idLangDict: Workaround for Doom3: Lost Mission stringtables #265 2020-01-05 02:34:53 +01:00
LangDict.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Lexer.cpp Fixing some spelling errors: s/unkown/unknown, s/seperate/separate. (#107) 2015-02-25 22:01:00 +01:00
Lexer.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Lib.cpp Unix: On failed assertion, break gracefully into debugger 2015-12-13 03:30:03 +01:00
Lib.h s/BigLong/BigInt/ to match the return type 2012-06-28 13:52:22 +02:00
MapFile.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
MapFile.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Parser.cpp Fix some compiler warnings (wrong types, superfluous checks, printf-fuckup) 2015-09-27 18:12:16 +02:00
Parser.h Remove usage of long type from idlib/ 2012-06-28 13:02:45 +02:00
Str.cpp Fix handling of paths with dots in dir names, fix #299, #301 2020-07-21 05:58:44 +02:00
Str.h import AROS changes 2017-04-02 00:42:28 +01:00
Timer.cpp Use idSys::GetMilliseconds() for idTimer 2011-12-22 10:38:39 +01:00
Timer.h Use idSys::GetMilliseconds() for idTimer 2011-12-22 10:38:39 +01:00
Token.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Token.h Remove usage of long type from idlib/ 2012-06-28 13:02:45 +02:00