Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Decompilation] [th01] .BOS: Unused and broken plane pointer reset fu…
…nction Because that's not how you free dynamically allocated memory? Part of P0106, funded by Yanga.
- Loading branch information
Showing
4 changed files
with
38 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#include <stddef.h> | ||
#include "platform.h" | ||
#include "pc98.h" | ||
#include "planar.h" | ||
#include "th01/formats/bos.hpp" | ||
|
||
void bos_reset_all_broken(void) | ||
{ | ||
for(int slot = 0; slot < 10; slot++) { // should be BOS_SLOT_COUNT | ||
for(int image = 0; image < BOS_IMAGES_PER_SLOT; image++) { | ||
bos_images[slot].image[image].alpha = NULL; | ||
bos_images[slot].image[image].planes.B = NULL; | ||
bos_images[slot].image[image].planes.R = NULL; | ||
bos_images[slot].image[image].planes.G = NULL; | ||
bos_images[slot].image[image].planes.E = NULL; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* ReC98 | ||
* ----- | ||
* Code segment #21 of TH01's REIIDEN.EXE | ||
*/ | ||
|
||
#pragma option -Z | ||
|
||
extern "C" { | ||
#include "th01/main/boss/entity.cpp" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters