Well, anyhow I need to add it into the game. I dont think it is possible to add it to dsgm 5.2. I have looked into the source code, main.c, and tried to add it there. Sadly, no luck.
If someone could explain to me a few things, I can get it working.
<code>
Taken from the nifi code in devkitpro:
void hello_loop(helloObjectInstance *me) {
// Buffer must be aligned to 2 bytes, so use unsigned short
unsigned short buffer[(2 * sizeof(int)) / sizeof(unsigned short)];
//First off, I do not understand the unsigned short buffer.
if(DSGM_held.Right) {
me->x =[X]+2;
me->y =[Y];
memcpy(buffer, &me->x, 2 * sizeof(int));
DSGM_SendWirelessData(buffer, 2 * sizeof(int));
//I dont understand what this is, But I understand It is sending the x to the other game, though
//I dont understand where the other DSGM_held.Left, DSGM_held.Up and DSGM_held.Down is.
//Also the memcpy I dont understand. I think it is preparing the x var to be sent?
}
if(DSGM_newWirelessData) {
if(DSGM_wirelessDataLength == 2 * sizeof(int)) memcpy(&me->x, DSGM_wirelessData, 2 * sizeof(int));
//I dont understand the size or the memcpy, though I know it is recieving new data from the other ds.
}
}
</code>