pokeemerald-expansion/tools/compresSmol/fileDispatcher.h
hedara90 6e64f6f5ef
New sprite compressor (#5627)
Co-authored-by: Hedara <hedara90@gmail.com>
Co-authored-by: DizzyEggg
Co-authored-by: Raymond Dodge <git@rayrobdod.name>
2025-05-30 23:10:54 +02:00

23 lines
518 B
C

#ifndef FILE_DISPATCHER
#define FILE_DISPATCHER
#include <stdio.h>
#include <filesystem>
#include <iostream>
#include <string>
#include <vector>
#include <mutex>
class FileDispatcher {
std::vector<std::string> fileList;
int currentIndex = 0;
std::mutex requestMutex;
std::filesystem::path filePath;
public:
FileDispatcher();
FileDispatcher(std::filesystem::path inPath);
void setFilePath(std::filesystem::path inPath);
bool initFileList();
std::string requestFileName();
};
#endif