mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-20 10:56:58 +02:00
46 lines
823 B
C++
46 lines
823 B
C++
#include "common/abi.h"
|
|
#include "common/common.h"
|
|
#include "libs/errno.h"
|
|
#include "libs/libs.h"
|
|
#include "loader/symbolDatabase.h"
|
|
|
|
namespace Libs {
|
|
|
|
LIB_VERSION("FontFt", 1, "FontFt", 1, 1);
|
|
|
|
namespace FontFt {
|
|
|
|
struct SelectionState {
|
|
int value;
|
|
int kind;
|
|
};
|
|
|
|
void* KYTY_SYSV_ABI FontSelectLibraryFt(int value) {
|
|
PRINT_NAME();
|
|
|
|
static SelectionState s_selection {};
|
|
s_selection.value = value;
|
|
s_selection.kind = 0;
|
|
|
|
return &s_selection;
|
|
}
|
|
|
|
void* KYTY_SYSV_ABI FontSelectRendererFt(int value) {
|
|
PRINT_NAME();
|
|
|
|
static SelectionState s_selection {};
|
|
s_selection.value = value;
|
|
s_selection.kind = 1;
|
|
|
|
return &s_selection;
|
|
}
|
|
|
|
} // namespace FontFt
|
|
|
|
LIB_DEFINE(InitFontFt_1) {
|
|
LIB_FUNC("oM+XCzVG3oM", FontFt::FontSelectLibraryFt);
|
|
LIB_FUNC("Xx974EW-QFY", FontFt::FontSelectRendererFt);
|
|
}
|
|
|
|
} // namespace Libs
|