Describe the bug


code uses size + 1 (+1 for the ending slash) and thus expects that phys path doesn't have endling slash.
but add_mapping doesn't verify/fix that if you do
add_mapping("T:/", "/")
it keeps the ending slash, which makes this code in screenshot trim one character too many.
so tree->physical now has "T:/" entry, but should just be "T:"
To Reproduce
Steps to reproduce the behavior:
- Make pdrive
2, add_mapping("P:/", "/")
- try to compile
P:/a3/functions_f_enoch/em_core/fn_showspectrumanalyzer.sqf
- include not found error for
#include "define.inc"
Expected behavior
add_mapping should verify/remove trailing slash on physical path.
or get_info_physical should assume that folder path always ends with trailing slash, and add_mapping should also be adjusted for that,
Describe the bug


code uses size + 1 (+1 for the ending slash) and thus expects that phys path doesn't have endling slash.
but
add_mappingdoesn't verify/fix that if you doadd_mapping("T:/", "/")it keeps the ending slash, which makes this code in screenshot trim one character too many.
so tree->physical now has "T:/" entry, but should just be "T:"
To Reproduce
Steps to reproduce the behavior:
2, add_mapping("P:/", "/")
P:/a3/functions_f_enoch/em_core/fn_showspectrumanalyzer.sqf#include "define.inc"Expected behavior
add_mappingshould verify/remove trailing slash on physical path.or
get_info_physicalshould assume that folder path always ends with trailing slash, andadd_mappingshould also be adjusted for that,