From ce23dab0cd356e365b2bcc367cd4e52b5c1e6bb4 Mon Sep 17 00:00:00 2001 From: DubbleClick Date: Fri, 1 May 2026 16:43:38 +0700 Subject: [PATCH] comment for GetFiles return --- source/dll_main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/dll_main.cpp b/source/dll_main.cpp index f3a40bc..aa8f57b 100644 --- a/source/dll_main.cpp +++ b/source/dll_main.cpp @@ -274,6 +274,8 @@ extern "C" __declspec(dllexport) int __cdecl RemoveFile(const wchar_t* path) } } +// nullptr first arg = return required size +// returns paths separated by null terminator, e.g. "C:\foo.tpf\0C:\bar.zip\0\0" extern "C" __declspec(dllexport) int __cdecl GetFiles(wchar_t* buffer, const size_t buffer_size_chars) { try {