-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExternalParticleTextures.cpp
More file actions
49 lines (37 loc) · 1 KB
/
ExternalParticleTextures.cpp
File metadata and controls
49 lines (37 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#include "SM64DS_PI.h"
#include "MOM_Interface.h"
using namespace Particle;
// Enable loading particle textures outside of the SPA file
asm(R"(
nsub_0204a408:
ldrb r2, [r10, #0x26]
b 0x0204a40c
nsub_0204a420:
ldrb r0, [r10, #0x27]
b 0x0204a424
nsub_0204a490:
ldrb r2, [r10, #0x27]
b 0x0204a494
nsub_0204a0f0:
ldrb r0, [r10, #0x27]
b 0x0204a0f4
nsub_0204a154:
ldrb r0, [r10, #0x27]
b 0x0204a158
nsub_0204a03c:
ldrb r0, [r10, #0x27]
b 0x0204a040
nsub_0204a0b4:
ldrb r0, [r10, #0x27]
b 0x0204a0b8
)");
// This used to be called Particle::Manager::UnloadNewTexs
int nsub_0202cbb8() // at the end of Stage::CleanupResources
{
TexDef* texDefArr = PARTICLE_SYS_TRACKER->manager->texDefArr;
int numTexDefs = PARTICLE_SYS_TRACKER->manager->numTextures;
for(int i = PARTICLE_SYS_TRACKER->manager->numBuiltInTexs; i < numTexDefs; ++i) if (texDefArr[i].texture)
delete texDefArr[i].texture;
MOM_Interface::instance.camRotationDisabled = false;
return 1;
}