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
+12
View File
@@ -69,7 +69,11 @@ JASBasicBank* JASBNKParser::Ver1::createBasicBank(void const* stream, JKRHeap* h
JUT_ASSERT(145, list_chunk);
u8* envt = JKR_NEW_ARRAY_ARGS(u8, envt_chunk->mSize, heap, 2);
#if ANDROID
JASCalc::_bcopy(envt_chunk->mData, envt, envt_chunk->mSize);
#else
JASCalc::bcopy(envt_chunk->mData, envt, envt_chunk->mSize);
#endif
BE(u32)* ptr = &osc_chunk->mCount;
u32 count = *ptr++;
@@ -215,7 +219,11 @@ JASBasicBank* JASBNKParser::Ver0::createBasicBank(void const* stream, JKRHeap* h
int size = endPtr - points;
JASOscillator::Point* table = JKR_NEW_ARRAY_ARGS(JASOscillator::Point, size, heap, 0);
JUT_ASSERT(396, table != NULL);
#if ANDROID
JASCalc::_bcopy(points, table, size * sizeof(JASOscillator::Point));
#else
JASCalc::bcopy(points, table, size * sizeof(JASOscillator::Point));
#endif
osc->mTable = table;
} else {
osc->mTable = NULL;
@@ -227,7 +235,11 @@ JASBasicBank* JASBNKParser::Ver0::createBasicBank(void const* stream, JKRHeap* h
int size = endPtr - points;
JASOscillator::Point* table = JKR_NEW_ARRAY_ARGS(JASOscillator::Point, size, heap, 0);
JUT_ASSERT(409, table != NULL);
#if ANDROID
JASCalc::_bcopy(points, table, size * sizeof(JASOscillator::Point));
#else
JASCalc::bcopy(points, table, size * sizeof(JASOscillator::Point));
#endif
osc->rel_table = table;
} else {
osc->rel_table = NULL;