added compatibility with linux

This commit is contained in:
2025-02-03 22:30:13 +05:00
parent 2faff91981
commit 5d275c8dd1
4 changed files with 13 additions and 5 deletions

View File

@@ -77,7 +77,9 @@ i32 VM_boot(VM* vm){
bool VM_dataRead(VM* vm, void* dst, size_t pos, size_t size){
if(pos + size >= vm->data_size){
VM_setError(vm, "can't read %lli bytes from 0x%x, because only %lli are avaliable",
VM_setError(vm,
"can't read " IFWIN("%lli", "%li") " bytes from 0x%x, because only "
IFWIN("%lli", "%li") " are avaliable",
size, (u32)pos, vm->data_size - size);
return false;
}