aboutsummaryrefslogtreecommitdiff
path: root/lfn.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2026-11-29 18:53:52 +0100
committerJavier <dev.git@javispedro.com>2026-11-29 18:53:52 +0100
commit5898f13480921e1c1ab362852f88794ea955ffce (patch)
treefec95835799d78708c49ea144e1955a7d22f9ede /lfn.h
parent8e9df5624d56a91eaa71a1ceac4932b7c5c5ee48 (diff)
downloadvbados-5898f13480921e1c1ab362852f88794ea955ffce.tar.gz
vbados-5898f13480921e1c1ab362852f88794ea955ffce.zip
vbsf: add ability to build without hashing of long filenames
Diffstat (limited to 'lfn.h')
-rw-r--r--lfn.h10
1 files changed, 10 insertions, 0 deletions
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)
{