mirror of
https://github.com/rh-hideout/pokeemerald-expansion.git
synced 2026-03-21 18:04:50 -05:00
Co-authored-by: Hedara <hedara90@gmail.com> Co-authored-by: DizzyEggg Co-authored-by: Raymond Dodge <git@rayrobdod.name>
23 lines
518 B
C
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
|