diff options
| author | lepelog <lepelog@users.noreply.github.com> | 2021-01-26 23:11:50 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-26 17:11:50 -0500 |
| commit | ce0d0c352155a86381db4f247d128901509ad5a3 (patch) | |
| tree | df8f8f9f0fcea9313b09d5170739edcbcb199d86 /libs/SSystem/SStandard/s_basic.cpp | |
| parent | 3ee8a929a9276d9d0eab0aee0f3ca0dd53ce17ba (diff) | |
decompile s_basic, cleanup mangled names in f_pc (#101)
Co-authored-by: Pheenoh <pheenoh@gmail.com>
Diffstat (limited to 'libs/SSystem/SStandard/s_basic.cpp')
| -rw-r--r-- | libs/SSystem/SStandard/s_basic.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/libs/SSystem/SStandard/s_basic.cpp b/libs/SSystem/SStandard/s_basic.cpp index 4bf93c8658..b1a72c168b 100644 --- a/libs/SSystem/SStandard/s_basic.cpp +++ b/libs/SSystem/SStandard/s_basic.cpp @@ -1 +1,17 @@ -// ok +/* s_basic.cpp autogenerated by split.py v0.4 at 2021-01-26 08:03:35.809652 */ + +#include "SStandard/s_basic.h" + +// sBs_FillArea_s__FPvUls +void sBs_FillArea_s(void* pPtr, u32 pNumBytes, s16 pValue) { + s16* castPtr = (s16*)pPtr; + for (int i = 0; i < pNumBytes / 2; i++) { + *castPtr = pValue; + castPtr++; + } +} + +// sBs_ClearArea__FPvUl +void sBs_ClearArea(void* pPtr, u32 pNumBytes) { + sBs_FillArea_s(pPtr, pNumBytes, 0); +} |
