1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-14 03:44:34 +00:00

Decompile 2 small files (code_8006BA00.c and code_8006C3A0.c) (#101)

* Decompile code_8006C3A0.c (handling "env" flags)

* Decompile code_8006BA00.c (handling sound sources)
This commit is contained in:
Roman971 2020-05-01 04:00:39 +02:00 committed by GitHub
parent d0ba37b148
commit 4932e93ba2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 143 additions and 296 deletions

View file

@ -2,16 +2,11 @@
#include <global.h>
void Lib_MemSet(u8* dest, size_t size, u8 val) {
u32 i = 0;
u32 i;
// TODO: Convert this to while/for if possible
if (i == size) {
return;
}
do {
*dest++ = val;
i++;
} while (i != size);
// clang-format off
for (i = 0; i < size; i++) { *dest++ = val; }
// clang-format on
}
f32 Math_Coss(s16 angle) {