mirror of
https://github.com/AxioDL/nod.git
synced 2025-12-08 13:14:59 +00:00
lots of Wii disc parsing in place
This commit is contained in:
21
lib/FileIOFILE.cpp
Normal file
21
lib/FileIOFILE.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#include <sys/stat.h>
|
||||
#include <stdexcept>
|
||||
#include "IFileIO.hpp"
|
||||
|
||||
namespace NOD
|
||||
{
|
||||
|
||||
class FileIOFILE : public IFileIO
|
||||
{
|
||||
const char* filepath;
|
||||
public:
|
||||
FileIOFILE(const char* path)
|
||||
: filepath(path)
|
||||
{
|
||||
struct stat theStat;
|
||||
if (stat(path, &theStat))
|
||||
throw std::runtime_error("unable to ");
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user