Update documentation and do some basic housekeeping

This commit is contained in:
2024-09-25 17:16:20 +02:00
parent c8854931e8
commit aa0cd89d4e
20 changed files with 167 additions and 57 deletions

View File

@@ -62,19 +62,19 @@ void MEM_Write(mem_block_t *in)
WriteBlock(head, in);
}
int MEM_Read(mem_block_t *out)
bool MEM_Read(mem_block_t *out)
{
int head;
head = GetUsedBlock();
if (head < 0) { // Empty?
return -1;
return false;
}
ReadBlock(head, out);
return 0;
return true;
}
void MEM_Free(void)