comparison 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
comparison
equal deleted inserted replaced
0:e9bb126753e7 1:20d02a178406
1 #pragma once
2
3 class uFindFile
4 {
5 protected:
6 uFindFile() {}
7 public:
8 virtual ~uFindFile() {};
9 virtual bool FindNext() = 0;
10 virtual const char * GetFileName() = 0;
11 virtual bool IsDirectory() = 0;
12 };
13
14 typedef uFindFile * puFindFile;
15
16 puFindFile uFindFirstFile(const char * path);
17
18 pfc::string8 uStringPrintf(const char * format, ...);
19 void uPrintfV(pfc::string_base & out,const char * fmt,va_list arglist);
20 void uPrintf(pfc::string_base & out,const char * fmt,...);
21
22 bool uGetTempPath(pfc::string_base & out);
23 bool uGetTempFileName(const char * path_name,const char * prefix,unsigned unique,pfc::string_base & out);
24 pfc::string8 uGetTempFileName();
25
26
27 bool uSetCurrentDirectory(const char * path);
28 bool uGetCurrentDirectory(pfc::string_base & out);