Files
tp/libs/JSystem/JAudio2/JASReport.cpp
T

61 lines
1.5 KiB
C++
Raw Normal View History

2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
// Generated By: dol2asm
// Translation Unit: JASReport
2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
2021-04-01 02:07:58 +02:00
#include "JSystem/JAudio2/JASReport.h"
2023-08-02 11:30:52 +03:00
#include "JSystem/JAudio2/JASMutex.h"
#include "stdio.h"
2021-03-28 22:49:05 +02:00
2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
// Forward References:
2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
// External References:
2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
// Declarations:
2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
/* ############################################################################################## */
2021-04-06 18:00:35 +02:00
/* 80431660-80431678 05E380 0018+00 1/1 0/0 0/0 .bss sMutex */
2023-08-02 11:30:52 +03:00
static OSMutex sMutex;
2021-03-28 22:49:05 +02:00
2021-04-06 18:00:35 +02:00
/* 80451220-80451224 000720 0004+00 1/1 0/0 0/0 .sbss sBuffer */
2023-08-02 11:30:52 +03:00
static char* sBuffer;
2021-03-28 22:49:05 +02:00
2021-04-06 18:00:35 +02:00
/* 80451224-80451228 000724 0004+00 1/1 0/0 0/0 .sbss sLineMax */
2023-08-02 11:30:52 +03:00
static int sLineMax;
2021-03-28 22:49:05 +02:00
2021-04-06 18:00:35 +02:00
/* 80451228-8045122C 000728 0004+00 1/1 0/0 0/0 .sbss sLineCount */
2023-08-02 11:30:52 +03:00
static int sLineCount;
2021-03-28 22:49:05 +02:00
2021-04-06 18:00:35 +02:00
/* 8045122C-80451230 00072C 0004+00 1/1 0/0 0/0 .sbss sTop */
2023-08-02 11:30:52 +03:00
static int sTop;
2021-03-28 22:49:05 +02:00
2021-04-06 18:00:35 +02:00
/* 80290F64-80291060 28B8A4 00FC+00 0/0 5/5 0/0 .text JASReport__FPCce */
2023-08-02 11:30:52 +03:00
void JASReport(const char * str, ...) {
if(sBuffer) {
va_list vl;
va_start(vl, str);
JASMutexLock mutexLock(&sMutex);
vsnprintf(sBuffer + (sTop * 64), 64, str, vl);
va_end(vl);
sTop++;
if (sTop >= sLineMax)
sTop = 0;
if (sLineCount < sLineMax)
sLineCount++;
}
2021-03-28 22:49:05 +02:00
}
/* ############################################################################################## */
2021-04-06 18:00:35 +02:00
/* 80451230-80451238 -00001 0008+00 0/0 6/6 0/0 .sbss None */
/* 80451230 0001+00 data_80451230 None */
/* 80451231 0007+00 data_80451231 None */
2021-03-28 22:49:05 +02:00
u8 struct_80451230[8];