Puppylights
This commit is contained in:
1 parent
2d58bddd06
commit
2a78404ef5
16 files changed
+505
-36
No files matched your search
+23
-5
@@ -30,6 +30,7 @@
|
||||
#include "rumble_init.h"
|
||||
#include "puppycam2.h"
|
||||
#include "puppyprint.h"
|
||||
#include "puppylights.h"
|
||||
|
||||
#include "config.h"
|
||||
|
||||
@@ -642,9 +643,11 @@ void initiate_warp(s16 destLevel, s16 destArea, s16 destWarpNode, s32 arg3) {
|
||||
sWarpDest.areaIdx = destArea;
|
||||
sWarpDest.nodeId = destWarpNode;
|
||||
sWarpDest.arg = arg3;
|
||||
|
||||
#ifdef PUPPYCAM
|
||||
//lol
|
||||
#if defined(PUPPYCAM) || defined(PUPPYLIGHTS)
|
||||
s32 i = 0;
|
||||
#endif
|
||||
#ifdef PUPPYCAM
|
||||
if (sWarpDest.type != WARP_TYPE_SAME_AREA)
|
||||
{
|
||||
for (i = 0; i < gPuppyVolumeCount; i++)
|
||||
@@ -653,7 +656,18 @@ void initiate_warp(s16 destLevel, s16 destArea, s16 destWarpNode, s32 arg3) {
|
||||
}
|
||||
gPuppyVolumeCount = 0;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
#ifdef PUPPYLIGHTS
|
||||
if (sWarpDest.type != WARP_TYPE_SAME_AREA)
|
||||
{
|
||||
for (i = 0; i < gNumLights; i++)
|
||||
{
|
||||
mem_pool_free(gLightsPool, gPuppyLights[i]);
|
||||
}
|
||||
gNumLights = 0;
|
||||
levelAmbient = FALSE;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
// From Surface 0xD3 to 0xFC
|
||||
@@ -1265,10 +1279,14 @@ s32 init_level(void) {
|
||||
sound_banks_disable(SEQ_PLAYER_SFX, SOUND_BANKS_DISABLED_DURING_INTRO_CUTSCENE);
|
||||
}
|
||||
|
||||
#if PUPPYPRINT_DEBUG
|
||||
#ifdef PUPPYLIGHTS
|
||||
puppylights_allocate();
|
||||
#endif
|
||||
|
||||
#if PUPPYPRINT_DEBUG
|
||||
sprintf(textBytes, "Level loaded in %dus", (s32)(OS_CYCLES_TO_USEC(osGetTime() - first)));
|
||||
append_puppyprint_log(textBytes);
|
||||
#endif
|
||||
#endif
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user