mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-12-04 08:31:31 +00:00
32 lines
576 B
C++
32 lines
576 B
C++
#include "prx/libSceFrontPanelDisplay/include/Api.hpp"
|
|
#include <atomic>
|
|
#include <cstdint>
|
|
#include <cstddef>
|
|
#include "SceTypes.hpp"
|
|
#include "prx/libc/include/General.hpp"
|
|
|
|
namespace {
|
|
|
|
std::atomic<bool> g_initialized{false};
|
|
std::atomic<int> g_outputMode{0};
|
|
|
|
}
|
|
|
|
extern "C" {
|
|
|
|
int APS5_VABI sceFrontPanelDisplayInitialize(void) {
|
|
g_initialized.store(true);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceFrontPanelDisplaySetOutputMode(void) {
|
|
g_outputMode.store(0);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceFrontPanelDisplayStickReadState(void) {
|
|
return g_outputMode.load();
|
|
}
|
|
|
|
}
|