Closed XertroV closed 6 months ago
Was this on Maniaplanet/Turbo or on TM? On TM, string
and wstring
are identical internally, they just have a slightly different API. But they should have the exact same behavior on substr.
tm2020
I think it makes sense given these API differences.
I was doing
string(folder.FullDirName.SubStr(7))
as a way to get the extract directory of a FidsFolder with a path like:<fake>\MemoryTemp\CurrentMap_EmbeddedFiles\ContentLoaded\Items\z983-waypoint_stickers_2022\waypoint_stickers_2022_1XL\waypoint_stickers_6_1XL\
.Unexpectedly, I'd get an empty string (probably because of the length argument)
However,
string(folder.FullDirName).SubStr(7)
works fine.Not sure if this is a Nadeo thing or an Openplanet thing, but it'd be better if they both worked the same IMO.