No more segfault in JIT. Keeps executing the same blocks over and over though...
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#include <fstream>
|
||||
#include <log.hpp>
|
||||
|
||||
namespace util {
|
||||
namespace Util {
|
||||
inline auto ReadFileBinary(const std::string& path, u32** buf) {
|
||||
std::ifstream file(path, std::ios::binary);
|
||||
file.unsetf(std::ios::skipws);
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#include <portable_endian_bswap.h>
|
||||
#include <log.hpp>
|
||||
|
||||
namespace util {
|
||||
namespace Util {
|
||||
template<typename T>
|
||||
inline T ReadAccess(u8 *data, u32 index) {
|
||||
if constexpr (sizeof(T) == 1) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/color.h>
|
||||
|
||||
namespace util {
|
||||
namespace Util {
|
||||
enum MessageType : u8 {
|
||||
Info, Debug, Warn, Error
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user