mirror of
https://github.com/zeldaret/tp
synced 2026-09-03 10:09:35 -04:00
4bd825e76c
* work on d_file_sel_warning * various cleanup * attempt to fix d_gameover * event cleanup * trk work * most of TRK done * remove asm
32 lines
941 B
C
32 lines
941 B
C
#include "TRK_MINNOW_DOLPHIN/MetroTRK/Portable/notify.h"
|
|
#include "TRK_MINNOW_DOLPHIN/MetroTRK/Portable/msgbuf.h"
|
|
#include "TRK_MINNOW_DOLPHIN/MetroTRK/Portable/support.h"
|
|
#include "trk.h"
|
|
|
|
/* 8036F4B0-8036F548 369DF0 0098+00 0/0 1/1 0/0 .text TRKDoNotifyStopped */
|
|
DSError TRKDoNotifyStopped(MessageCommandID cmd) {
|
|
int reqIdx;
|
|
int bufIdx;
|
|
TRKBuffer* msg;
|
|
DSError err;
|
|
DSError bufError;
|
|
|
|
bufError = TRKGetFreeBuffer(&bufIdx, &msg);
|
|
if ((err = bufError) == FALSE) {
|
|
if (err == DS_NoError) {
|
|
if (cmd == DSMSG_NotifyStopped) {
|
|
TRKTargetAddStopInfo(msg);
|
|
} else {
|
|
TRKTargetAddExceptionInfo(msg);
|
|
}
|
|
}
|
|
bufError = TRKRequestSend(msg, &reqIdx, 2, 3, 1);
|
|
err = bufError;
|
|
if (err == DS_NoError) {
|
|
TRKReleaseBuffer(reqIdx);
|
|
}
|
|
TRKReleaseBuffer(bufIdx);
|
|
}
|
|
return err;
|
|
}
|