-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFile_System.h
59 lines (57 loc) · 1.82 KB
/
File_System.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#pragma once
//-----------------------------------------------------------------
#define MAX_FILEPATH 260
#define MAX_FILEFILTERS 9
#define MAX_PLAYLIST_DIRECTORY 10
#define MAX_VST_FILES 20
//FileFilter[0] = ".mp3";
//FileFilter[1] = ".ogg";
//FileFilter[2] = ".flac";
//FileFilter[3] = ".wav";
//FileFilter[4] = ".wma";
//FileFilter[5] = ".it";
//FileFilter[6] = ".s3m";
//FileFilter[7] = ".xm";
//FileFilter[8] = ".opus";
//-----------------------------------------------------------------
class File_System
{
//-------------------------------------------------------------
public:
//---------------------------------------------------------
///Application folder path
string ProgramLocation;
string Vis_Location_Path;
string Vis_Location_Exe;
string Vst_Path;
///File browser location
char FilePath[MAX_FILEPATH];
//Playlist Directory Data
string Playlist_Directory[MAX_PLAYLIST_DIRECTORY];
int Playlist_Directory_Count;
//VST File Locations
string Vst_FileName[MAX_VST_FILES];
int Vst_FileCount;
//---------------------------------------------------------
//constructors
File_System(void);
~File_System(void);
//---------------------------------------------------------
//functions
void iGetExePath(void);
void Scan_Media(string directory, string fileFilter, bool recursively);
void Scan_Vst(void);
bool changeDir(const char* path);
void Init(void);
streamoff FileExists(string filepath);
//-------------------------------------------------------------
private:
//---------------------------------------------------------
//File Filters
string FileFilter[MAX_FILEFILTERS];
//---------------------------------------------------------
//functions
void Check_MediaType(string Directory, string Filename);
void Check_VstType(string Directory, string Filename);
//---------------------------------------------------------
};