building for android impl

currently builds a "Metaforce" apk, will need to change name of course. Running the apk using Android Studio's emulator can get in game, however running on a samsung phone does not seem to work.
This commit is contained in:
CraftyBoss
2026-04-10 03:53:57 -07:00
parent 7ed05711a7
commit 417360b1ce
41 changed files with 6417 additions and 4 deletions
@@ -434,8 +434,14 @@ void JASDsp::initBuffer() {
JUT_ASSERT(354, CH_BUF);
FX_BUF = JKR_NEW_ARRAY_ARGS(FxBuf, 4, JASDram, 0x20);
JUT_ASSERT(356, FX_BUF);
#if ANDROID
JASCalc::_bzero(CH_BUF, sizeof(TChannel) * DSP_CHANNELS);
JASCalc::_bzero(FX_BUF, sizeof(FxBuf) * 4);
#else
JASCalc::bzero(CH_BUF, sizeof(TChannel) * DSP_CHANNELS);
JASCalc::bzero(FX_BUF, sizeof(FxBuf) * 4);
#endif
for (u8 i = 0; i < 4; i++) {
setFXLine(i, NULL, NULL);
}
@@ -459,7 +465,11 @@ int JASDsp::setFXLine(u8 param_0, s16* buffer, JASDsp::FxlineConfig_* param_2) {
if (buffer != NULL && param_2 != NULL) {
u32 bufsize = param_2->field_0xc * 0xa0;
puVar3->field_0x4 = buffer;
#if ANDROID
JASCalc::_bzero(buffer, bufsize);
#else
JASCalc::bzero(buffer, bufsize);
#endif
JUT_ASSERT(420, ((u32)((uintptr_t)buffer) & 0x1f) == 0);
JUT_ASSERT(421, (bufsize & 0x1f) == 0);
DCFlushRange(buffer, bufsize);