mirror of
https://github.com/hedge-dev/XenonRecomp.git
synced 2025-07-23 05:23:59 +00:00
Downgrade projects to C++17.
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
#pragma once
|
||||
#include <expected>
|
||||
|
||||
#include <vector>
|
||||
|
||||
inline static std::expected<std::vector<uint8_t>, int> LoadFile(const char* path)
|
||||
inline std::vector<uint8_t> LoadFile(const char* path)
|
||||
{
|
||||
std::vector<uint8_t> data{};
|
||||
auto* stream = fopen(path, "rb");
|
||||
if (stream == nullptr)
|
||||
{
|
||||
return std::unexpected(1);
|
||||
return {};
|
||||
}
|
||||
|
||||
fseek(stream, 0, SEEK_END);
|
||||
|
Reference in New Issue
Block a user