diff foosdk/sdk/foobar2000/shared/shared-nix.h @ 1:20d02a178406 default tip

*: check in everything else yay
author Paper <paper@tflc.us>
date Mon, 05 Jan 2026 02:15:46 -0500
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/foosdk/sdk/foobar2000/shared/shared-nix.h	Mon Jan 05 02:15:46 2026 -0500
@@ -0,0 +1,28 @@
+#pragma once
+
+class uFindFile
+{
+protected:
+    uFindFile() {}
+public:
+    virtual ~uFindFile() {};
+    virtual bool FindNext() = 0;
+    virtual const char * GetFileName() = 0;
+    virtual bool IsDirectory() = 0;
+};
+
+typedef uFindFile * puFindFile;
+
+puFindFile uFindFirstFile(const char * path);
+
+pfc::string8 uStringPrintf(const char * format, ...);
+void uPrintfV(pfc::string_base & out,const char * fmt,va_list arglist);
+void uPrintf(pfc::string_base & out,const char * fmt,...);
+
+bool uGetTempPath(pfc::string_base & out);
+bool uGetTempFileName(const char * path_name,const char * prefix,unsigned unique,pfc::string_base & out);
+pfc::string8 uGetTempFileName();
+
+
+bool uSetCurrentDirectory(const char * path);
+bool uGetCurrentDirectory(pfc::string_base & out);