Shipwright/libultraship/libultraship/File.h
Kenix3 51e4485966
LUS Cleanup: Merge Window and GlobalCtx2 classes. (#1259)
* Merges GlobalCtx2 and Window classes.

* Includes condition variable in File.

* add mac specific include

* sstream to get past "implicit instantiation of undefined template" error

* switch/wiiu includes

* that file doesn't exist

* more wii u globalctx2 stuff

Co-authored-by: briaguya <briaguya@alice>
2022-08-21 21:08:01 -04:00

24 lines
404 B
C++

#pragma once
#include <string>
#include <memory>
#include <mutex>
#include <condition_variable>
namespace Ship {
class Archive;
class File
{
public:
std::shared_ptr<Archive> parent;
std::string path;
std::shared_ptr<char[]> buffer;
uint32_t dwBufferSize;
bool bIsLoaded = false;
bool bHasLoadError = false;
std::condition_variable FileLoadNotifier;
std::mutex FileLoadMutex;
};
}