mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-21 05:34:10 -04:00
eed14acdc6
The hope of auto-importing data via lld MinGW + pseudo_reloc is now dead thanks to ARM64, so I just wrote a script to go annotate every exported data symbol in the game instead.
25 lines
618 B
C++
25 lines
618 B
C++
#include "JSystem/JSystem.h" // IWYU pragma: keep
|
|
|
|
#include <cstdarg>
|
|
#include <cstdio>
|
|
#include "JSystem/JAHostIO/JAHUpdate.h"
|
|
#include "JSystem/JAHostIO/JAHioUtil.h"
|
|
#include "JSystem/JHostIO/JORFile.h"
|
|
|
|
DUSK_GAME_DATA char JAHioUtil::mStringBuffer[256];
|
|
|
|
DUSK_GAME_DATA JAHioNode* JAHUpdate::spNode;
|
|
DUSK_GAME_DATA JORMContext* JAHUpdate::spMc;
|
|
|
|
static char* dummy(JORDir* dir) {
|
|
return std::strrchr(dir->getFilename(), '\n');
|
|
}
|
|
|
|
char* JAHioUtil::getString(const char* msg, ...) {
|
|
va_list args;
|
|
va_start(args, msg);
|
|
vsprintf(mStringBuffer, msg, args);
|
|
va_end(args);
|
|
return mStringBuffer;
|
|
}
|