Downgrade projects to C++17.

This commit is contained in:
Skyth
2024-12-13 18:31:55 +03:00
parent 02d23b3463
commit 847842cd28
20 changed files with 250 additions and 189 deletions

View File

@@ -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);