Files
FEX-Emu--FEX/External/FEXCore/Source/Utils/FileLoading.h
T
Ryan Houdek 4b47e66135 FEXCore/Utils: Adds File loading helper
This will be used in multiple locations now.
2021-11-06 02:56:31 -07:00

19 lines
443 B
C++

#pragma once
#include <string>
#include <vector>
#include <filesystem>
#include <fstream>
namespace FEXCore::FileLoading {
/**
* @brief Loads a filepath in to a vector of data
*
* @param Data The vector to load the file data in to
* @param Filepath The filepath to load
*
* @return true on file loaded, false on failure
*/
bool LoadFile(std::vector<char> &Data, const std::string &Filepath, size_t FixedSize = 0);
}