JASInstEffect

This commit is contained in:
Jcw87
2023-10-29 23:17:20 -07:00
parent 2db83b4c11
commit 8841b74ba1
3 changed files with 24 additions and 6 deletions
+1 -1
View File
@@ -678,7 +678,7 @@ config.libs = [
Object(NonMatching, "JSystem/JAudio/JASDrumSet.cpp"),
Object(NonMatching, "JSystem/JAudio/JASBasicWaveBank.cpp"),
Object(NonMatching, "JSystem/JAudio/JASSimpleWaveBank.cpp"),
Object(NonMatching, "JSystem/JAudio/JASInstEffect.cpp"),
Object(Matching, "JSystem/JAudio/JASInstEffect.cpp"),
Object(NonMatching, "JSystem/JAudio/JASInstSense.cpp"),
Object(NonMatching, "JSystem/JAudio/JASInstRand.cpp"),
Object(NonMatching, "JSystem/JAudio/JASWSParser.cpp"),
+17
View File
@@ -0,0 +1,17 @@
#ifndef JASINSTEFFECT_H
#define JASINSTEFFECT_H
#include "dolphin/types.h"
namespace JASystem {
class TInstEffect {
public:
TInstEffect() { mTarget = 0; }
virtual f32 getY(int, int) const = 0;
void setTarget(int);
/* 0x04 */ u8 mTarget;
};
}
#endif /* JASINSTEFFECT_H */
+6 -5
View File
@@ -3,11 +3,12 @@
// Translation Unit: JASInstEffect.cpp
//
#include "JASInstEffect.h"
#include "dolphin/types.h"
#include "JSystem/JAudio/JASInstEffect.h"
#include "JSystem/JUtility/JUTAssert.h"
/* 8028684C-802868F0 .text setTarget__Q28JASystem11TInstEffectFi */
void JASystem::TInstEffect::setTarget(int) {
/* Nonmatching */
void JASystem::TInstEffect::setTarget(int target) {
JUT_ASSERT(16, target >= 0);
JUT_ASSERT(17, target < 256);
mTarget = target;
}