From 5898f13480921e1c1ab362852f88794ea955ffce Mon Sep 17 00:00:00 2001 From: Javier Date: Sun, 29 Nov 2026 18:53:52 +0100 Subject: vbsf: add ability to build without hashing of long filenames --- lfn.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lfn.h') diff --git a/lfn.h b/lfn.h index 3f25330..ec50e75 100644 --- a/lfn.h +++ b/lfn.h @@ -25,6 +25,8 @@ #include "vboxshfl.h" #include "sftsr.h" +#if USE_LFN_TO_SHORT + #define REVERSE_HASH 1 static inline bool translate_filename_from_host(SHFLSTRING *, bool, bool); @@ -426,6 +428,14 @@ return_name: return len; } +#else +static uint16_t get_true_host_name_n(TSRDATAPTR data, int drive, uint8_t *dst, char __far *src, uint16_t buflen, uint16_t count) +{ + // Do unicode conversion but not LFN + return local_to_utf8_n(data, dst, src, buflen, count); +} + +#endif // USE_LFN_TO_SHORT static inline uint16_t get_true_host_name(TSRDATAPTR data, int drive, uint8_t *dst, char __far *src, uint16_t buflen) { -- cgit v1.2.3