mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-21 03:16:54 +02:00
Initial commit
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user