mirror of
https://github.com/open-goal/jak-project
synced 2026-06-28 03:03:29 -04:00
[decomp] cleanup drawable and ocean stuff (#414)
* use `kmalloc-flags` for goal `kmalloc` * cleanup some drawable stuff, add offline tests * cleanup generic-h a bit * make decompiler work on 16-bit static data * cleanup ocean stuff * fix `ocean-spheres` * oops forgot this * I forgot to actually make `ocean-tables`
This commit is contained in:
@@ -167,7 +167,7 @@ Ptr<u8> kmalloc(Ptr<kheapinfo> heap, s32 size, u32 flags, char const* name) {
|
||||
|
||||
heap->top.offset = memstart;
|
||||
|
||||
if (flags & 0x1000)
|
||||
if (flags & KMALLOC_MEMSET)
|
||||
std::memset(Ptr<u8>(memstart).c(), 0, (size_t)size);
|
||||
return Ptr<u8>(memstart);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user