project cleanup (#2895)

* some wii OS fixes

* remove old dol2asm comments

* remove dol2asm.h

* remove function address comments

* normalize ATTRIBUTE_ALIGN usage

* DECL_WEAK macro

* fix gcc attribute weak macro

* wrap more mwcc specific things in ifdefs

* fixes

* fix revo sdk version flags

* fixes
This commit is contained in:
TakaRikka
2025-11-30 14:23:42 -08:00
committed by GitHub
parent 434415337d
commit a6e76c0841
2375 changed files with 24683 additions and 71069 deletions
-13
View File
@@ -1,22 +1,15 @@
//
// Generated By: dol2asm
// Translation Unit: JSUInputStream
//
#include "JSystem/JSystem.h" // IWYU pragma: keep
#include "JSystem/JSupport/JSUInputStream.h"
#include "JSystem/JSupport/JSURandomInputStream.h"
#include <dolphin.h>
/* 802DC23C-802DC298 2D6B7C 005C+00 1/0 6/6 0/0 .text __dt__14JSUInputStreamFv */
JSUInputStream::~JSUInputStream() {
if (!isGood()) {
OS_REPORT("JSUInputStream: occur error.\n");
}
}
/* 802DC298-802DC2F0 2D6BD8 0058+00 1/1 20/20 0/0 .text read__14JSUInputStreamFPvl */
s32 JSUInputStream::read(void* buffer, s32 numBytes) {
s32 bytesRead = readData(buffer, numBytes);
if (bytesRead != numBytes) {
@@ -41,7 +34,6 @@ char* JSUInputStream::read(char* str) {
return str;
}
/* 802DC2F0-802DC370 2D6C30 0080+00 1/0 0/0 0/0 .text skip__14JSUInputStreamFl */
s32 JSUInputStream::skip(s32 count) {
u8 buffer;
s32 skipCount = 0;
@@ -55,7 +47,6 @@ s32 JSUInputStream::skip(s32 count) {
return skipCount;
}
/* 802DC370-802DC3FC 2D6CB0 008C+00 0/0 1/1 0/0 .text align__20JSURandomInputStreamFl */
s32 JSURandomInputStream::align(s32 alignment) {
s32 seekLen = 0;
s32 currentPos = getPosition();
@@ -72,7 +63,6 @@ s32 JSURandomInputStream::align(s32 alignment) {
return alignmentOffset;
}
/* 802DC3FC-802DC458 2D6D3C 005C+00 1/0 2/0 0/0 .text skip__20JSURandomInputStreamFl */
s32 JSURandomInputStream::skip(s32 param_0) {
s32 val = seekPos(param_0, JSUStreamSeekFrom_CUR);
if (val != param_0) {
@@ -81,7 +71,6 @@ s32 JSURandomInputStream::skip(s32 param_0) {
return val;
}
/* 802DC458-802DC4DC 2D6D98 0084+00 0/0 8/8 0/0 .text peek__20JSURandomInputStreamFPvl */
s32 JSURandomInputStream::peek(void* buffer, s32 numBytes) {
s32 oldPos = getPosition();
s32 bytesRead = read(buffer, numBytes);
@@ -91,8 +80,6 @@ s32 JSURandomInputStream::peek(void* buffer, s32 numBytes) {
return bytesRead;
}
/* 802DC4DC-802DC520 2D6E1C 0044+00 0/0 16/16 0/0 .text
* seek__20JSURandomInputStreamFl17JSUStreamSeekFrom */
s32 JSURandomInputStream::seek(s32 param_0, JSUStreamSeekFrom param_1) {
s32 seekResult = seekPos(param_0, param_1);
clrState(IOS_STATE_1);