mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 17:12:25 -05:00
maybe disable lowmem build for Wii
This commit is contained in:
parent
1587dd7f65
commit
accb1d4af4
2 changed files with 26 additions and 24 deletions
|
@ -306,7 +306,9 @@ typedef cc_uint8 cc_bool;
|
|||
#elif defined GEKKO
|
||||
#define CC_BUILD_GCWII
|
||||
#define CC_BUILD_CONSOLE
|
||||
#define CC_BUILD_LOWMEM
|
||||
#ifndef HW_RVL
|
||||
#define CC_BUILD_LOWMEM
|
||||
#endif
|
||||
#define CC_BUILD_COOPTHREADED
|
||||
#define CC_BUILD_HTTPCLIENT
|
||||
#define CC_BUILD_BEARSSL
|
||||
|
|
|
@ -33,45 +33,45 @@ cc_result GZipHeader_Read(struct Stream* s, struct GZipHeader* header) {
|
|||
Header_ReadU8(tmp);
|
||||
if (tmp != 0x1F) return GZIP_ERR_HEADER1;
|
||||
header->state++;
|
||||
/* FALLTHRU */
|
||||
|
||||
|
||||
/* FALLTHRU */
|
||||
case GZIP_STATE_HEADER2:
|
||||
Header_ReadU8(tmp);
|
||||
if (tmp != 0x8B) return GZIP_ERR_HEADER2;
|
||||
header->state++;
|
||||
/* FALLTHRU */
|
||||
|
||||
|
||||
/* FALLTHRU */
|
||||
case GZIP_STATE_COMPRESSIONMETHOD:
|
||||
Header_ReadU8(tmp);
|
||||
if (tmp != 0x08) return GZIP_ERR_METHOD;
|
||||
header->state++;
|
||||
/* FALLTHRU */
|
||||
|
||||
|
||||
/* FALLTHRU */
|
||||
case GZIP_STATE_FLAGS:
|
||||
Header_ReadU8(tmp);
|
||||
header->flags = tmp;
|
||||
if (header->flags & 0x04) return GZIP_ERR_FLAGS;
|
||||
header->state++;
|
||||
/* FALLTHRU */
|
||||
|
||||
|
||||
/* FALLTHRU */
|
||||
case GZIP_STATE_LASTMODIFIED:
|
||||
for (; header->partsRead < 4; header->partsRead++) {
|
||||
Header_ReadU8(tmp);
|
||||
}
|
||||
header->state++;
|
||||
header->partsRead = 0;
|
||||
/* FALLTHRU */
|
||||
|
||||
/* FALLTHRU */
|
||||
case GZIP_STATE_COMPRESSIONFLAGS:
|
||||
Header_ReadU8(tmp);
|
||||
header->state++;
|
||||
/* FALLTHRU */
|
||||
|
||||
/* FALLTHRU */
|
||||
case GZIP_STATE_OPERATINGSYSTEM:
|
||||
Header_ReadU8(tmp);
|
||||
header->state++;
|
||||
/* FALLTHRU */
|
||||
|
||||
|
||||
/* FALLTHRU */
|
||||
case GZIP_STATE_FILENAME:
|
||||
if (header->flags & 0x08) {
|
||||
for (; ;) {
|
||||
|
@ -80,8 +80,8 @@ cc_result GZipHeader_Read(struct Stream* s, struct GZipHeader* header) {
|
|||
}
|
||||
}
|
||||
header->state++;
|
||||
/* FALLTHRU */
|
||||
|
||||
|
||||
/* FALLTHRU */
|
||||
case GZIP_STATE_COMMENT:
|
||||
if (header->flags & 0x10) {
|
||||
for (; ;) {
|
||||
|
@ -90,8 +90,8 @@ cc_result GZipHeader_Read(struct Stream* s, struct GZipHeader* header) {
|
|||
}
|
||||
}
|
||||
header->state++;
|
||||
/* FALLTHRU */
|
||||
|
||||
|
||||
/* FALLTHRU */
|
||||
case GZIP_STATE_HEADERCHECKSUM:
|
||||
if (header->flags & 0x02) {
|
||||
for (; header->partsRead < 2; header->partsRead++) {
|
||||
|
@ -126,8 +126,8 @@ cc_result ZLibHeader_Read(struct Stream* s, struct ZLibHeader* header) {
|
|||
if ((tmp & 0x0F) != 0x08) return ZLIB_ERR_METHOD;
|
||||
/* Upper 4 bits are window size (ignored) */
|
||||
header->state++;
|
||||
/* FALLTHRU */
|
||||
|
||||
|
||||
/* FALLTHRU */
|
||||
case ZLIB_STATE_FLAGS:
|
||||
Header_ReadU8(tmp);
|
||||
if (tmp & 0x20) return ZLIB_ERR_FLAGS;
|
||||
|
@ -533,8 +533,8 @@ void Inflate_Process(struct InflateState* s) {
|
|||
s->Index = len; /* Reuse for 'uncompressed length' */
|
||||
s->State = INFLATE_STATE_UNCOMPRESSED_DATA;
|
||||
}
|
||||
|
||||
/* FALLTHRU */
|
||||
|
||||
case INFLATE_STATE_UNCOMPRESSED_DATA: {
|
||||
/* read bits left in bit buffer (slow way) */
|
||||
while (s->NumBits && s->AvailOut && s->Index) {
|
||||
|
@ -594,8 +594,8 @@ void Inflate_Process(struct InflateState* s) {
|
|||
res = Huffman_Build(&s->Table.CodeLens, s->Buffer, INFLATE_MAX_CODELENS);
|
||||
if (res) { Inflate_Fail(s, res); return; }
|
||||
}
|
||||
|
||||
/* FALLTHRU */
|
||||
|
||||
case INFLATE_STATE_DYNAMIC_LITSDISTS: {
|
||||
count = s->NumLits + s->NumDists;
|
||||
while (s->Index < count) {
|
||||
|
@ -683,15 +683,15 @@ void Inflate_Process(struct InflateState* s) {
|
|||
s->TmpLit = len_base[lenIdx] + Inflate_ReadBits(s, bits);
|
||||
s->State = INFLATE_STATE_COMPRESSED_DIST;
|
||||
}
|
||||
/* FALLTHRU */
|
||||
|
||||
/* FALLTHRU */
|
||||
case INFLATE_STATE_COMPRESSED_DIST: {
|
||||
s->TmpDist = Huffman_Decode(s, &s->TableDists);
|
||||
if (s->TmpDist == -1) return;
|
||||
s->State = INFLATE_STATE_COMPRESSED_DISTEXTRA;
|
||||
}
|
||||
/* FALLTHRU */
|
||||
|
||||
/* FALLTHRU */
|
||||
case INFLATE_STATE_COMPRESSED_DISTEXTRA: {
|
||||
distIdx = s->TmpDist;
|
||||
bits = dist_bits[distIdx];
|
||||
|
@ -699,8 +699,8 @@ void Inflate_Process(struct InflateState* s) {
|
|||
s->TmpDist = dist_base[distIdx] + Inflate_ReadBits(s, bits);
|
||||
s->State = INFLATE_STATE_COMPRESSED_DATA;
|
||||
}
|
||||
/* FALLTHRU */
|
||||
|
||||
/* FALLTHRU */
|
||||
case INFLATE_STATE_COMPRESSED_DATA: {
|
||||
if (!s->AvailOut) return;
|
||||
len = s->TmpLit; dist = s->TmpDist;
|
||||
|
|
Loading…
Reference in a new issue