[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:
ManDude
2021-05-03 13:54:49 +01:00
committed by GitHub
parent 928cb48dd4
commit 2beaa7a340
13 changed files with 11325 additions and 1094 deletions
+1 -1
View File
@@ -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);
}