dhewm3-sdk/idlib
Daniel Gibson 5e299aa5d4 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-09-06 04:42:33 +02:00
..
bv Untangle the epic precompiled.h mess 2018-08-20 01:46:28 +02:00
containers List.h needs sys/platform.h for ID_INLINE 2018-08-20 01:46:37 +02:00
geometry Fix pot. Crash in idWinding2D::ExpandForAxialBox() 2018-12-09 04:23:41 +01:00
hashing s/LittleLong/LittleInt/ to match the return type 2018-08-20 01:46:33 +02:00
math ID_MAYBE_INLINE for not-forced inlining 2020-09-06 04:36:40 +02:00
Base64.cpp Remove usage of long type from idlib/ 2018-08-20 01:46:33 +02:00
Base64.h Untangle the epic precompiled.h mess 2018-08-20 01:46:28 +02:00
BitMsg.cpp s/ReadDeltaLongCounter/ReadDeltaIntCounter/ 2018-08-20 01:46:33 +02:00
BitMsg.h s/ReadDeltaLong/ReadDeltaInt/ 2018-08-20 01:46:33 +02:00
CmdArgs.cpp Untangle the epic precompiled.h mess 2018-08-20 01:46:28 +02:00
CmdArgs.h Fix all whitespace errors 2018-08-20 01:46:22 +02:00
Dict.cpp s/LittleLong/LittleInt/ to match the return type 2018-08-20 01:46:33 +02:00
Dict.h Untangle the epic precompiled.h mess 2018-08-20 01:46:28 +02:00
Heap.cpp Untangle the epic precompiled.h mess 2018-08-20 01:46:28 +02:00
Heap.h Fix alignment issue with idBlockAlloc::Free() 2018-08-20 01:46:29 +02:00
LangDict.cpp Untangle the epic precompiled.h mess 2018-08-20 01:46:28 +02:00
LangDict.h Untangle the epic precompiled.h mess 2018-08-20 01:46:28 +02:00
Lexer.cpp Fixing some spelling errors: s/unkown/unknown, s/seperate/separate. (#107) 2018-08-20 01:46:38 +02:00
Lexer.h Untangle the epic precompiled.h mess 2018-08-20 01:46:28 +02:00
Lib.cpp Make it build as SDK 2018-08-26 01:43:10 +02:00
Lib.h s/BigLong/BigInt/ to match the return type 2018-08-20 01:46:33 +02:00
MapFile.cpp Untangle the epic precompiled.h mess 2018-08-20 01:46:28 +02:00
MapFile.h Untangle the epic precompiled.h mess 2018-08-20 01:46:28 +02:00
Parser.cpp Fix some compiler warnings (wrong types, superfluous checks, printf-fuckup) 2018-08-20 01:46:38 +02:00
Parser.h Remove usage of long type from idlib/ 2018-08-20 01:46:33 +02:00
Str.cpp Fix handling of paths with dots in dir names, fix #299, #301 2020-09-06 04:42:33 +02:00
Str.h import AROS changes 2018-08-20 01:46:39 +02:00
Timer.cpp Use idSys::GetMilliseconds() for idTimer 2018-08-20 01:46:29 +02:00
Timer.h Use idSys::GetMilliseconds() for idTimer 2018-08-20 01:46:29 +02:00
Token.cpp Untangle the epic precompiled.h mess 2018-08-20 01:46:28 +02:00
Token.h Remove usage of long type from idlib/ 2018-08-20 01:46:33 +02:00