mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 09:01:57 -05:00
Saturn/32x: Avoid TINYSTACK, fixes normal world generation not working on Saturn
This commit is contained in:
parent
8a9c38f05c
commit
76f98d30f0
4 changed files with 7 additions and 8 deletions
|
@ -20,7 +20,8 @@ IP_RELEASE_DATE:= 20230101
|
|||
IP_AREAS:= JTUBKAEL
|
||||
IP_PERIPHERALS:= JAMKST
|
||||
IP_TITLE:= ClassiCube
|
||||
IP_MASTER_STACK_ADDR:= 0x06004000
|
||||
#IP_MASTER_STACK_ADDR:= 0x06004000
|
||||
IP_MASTER_STACK_ADDR:= 0x06100000
|
||||
IP_SLAVE_STACK_ADDR:= 0x06001E00
|
||||
IP_1ST_READ_ADDR:= 0x06004000
|
||||
IP_1ST_READ_SIZE:= 0
|
||||
|
|
|
@ -358,11 +358,7 @@ cc_result Png_Decode(struct Bitmap* bmp, struct Stream* stream) {
|
|||
int curY;
|
||||
|
||||
/* idat decompressor */
|
||||
#ifdef CC_BUILD_TINYSTACK
|
||||
static struct InflateState inflate;
|
||||
#else
|
||||
struct InflateState inflate;
|
||||
#endif
|
||||
struct Stream compStream, datStream;
|
||||
struct ZLibHeader zlibHeader;
|
||||
cc_uint8* data = NULL;
|
||||
|
|
|
@ -364,11 +364,15 @@ void Builder_MakeChunk(struct ChunkInfo* info) {
|
|||
/* The Saturn build only has 16 kb stack, not large enough */
|
||||
static BlockID chunk[EXTCHUNK_SIZE_3];
|
||||
static cc_uint8 counts[CHUNK_SIZE_3 * FACE_COUNT];
|
||||
static int bitFlags[1];
|
||||
#else
|
||||
BlockID chunk[EXTCHUNK_SIZE_3];
|
||||
cc_uint8 counts[CHUNK_SIZE_3 * FACE_COUNT];
|
||||
#endif
|
||||
|
||||
#ifdef CC_BUILD_ADVLIGHTING
|
||||
int bitFlags[EXTCHUNK_SIZE_3];
|
||||
#else
|
||||
int bitFlags[1];
|
||||
#endif
|
||||
|
||||
cc_bool allAir, allSolid, onBorder;
|
||||
|
|
|
@ -490,7 +490,6 @@ typedef cc_uint8 cc_bool;
|
|||
#define CC_BUILD_NOMUSIC
|
||||
#define CC_BUILD_NOSOUNDS
|
||||
#define CC_BUILD_SMALLSTACK
|
||||
#define CC_BUILD_TINYSTACK
|
||||
#define CC_BUILD_NOFPU
|
||||
#undef CC_BUILD_RESOURCES
|
||||
#undef CC_BUILD_NETWORKING
|
||||
|
@ -507,7 +506,6 @@ typedef cc_uint8 cc_bool;
|
|||
#define CC_BUILD_NOMUSIC
|
||||
#define CC_BUILD_NOSOUNDS
|
||||
#define CC_BUILD_SMALLSTACK
|
||||
#define CC_BUILD_TINYSTACK
|
||||
#define CC_BUILD_NOFPU
|
||||
#undef CC_BUILD_RESOURCES
|
||||
#undef CC_BUILD_NETWORKING
|
||||
|
|
Loading…
Reference in a new issue