// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#include "common/logging/log.h"
#include "core/hle/error_codes.h"
#include "core/hle/libraries/libs.h"
#include "core/hle/libraries/libsystemservice/system_service.h"

namespace Core::Libraries::LibSystemService {

s32 PS4_SYSV_ABI sceSystemServiceHideSplashScreen() {
    LOG_WARNING(Lib_SystemService, "(STUBBED) called");
    return SCE_OK;
}

s32 PS4_SYSV_ABI sceSystemServiceGetStatus(SceSystemServiceStatus* status) {
    SceSystemServiceStatus st = {};
    st.eventNum = 0;
    st.isSystemUiOverlaid = false;
    st.isInBackgroundExecution = false;
    st.isCpuMode7CpuNormal = true;
    st.isGameLiveStreamingOnAir = false;
    st.isOutOfVrPlayArea = false;
    *status = st;
    return SCE_OK;
}

void systemServiceSymbolsRegister(Loader::SymbolsResolver* sym) {
    LIB_FUNCTION("Vo5V8KAwCmk", "libSceSystemService", 1, "libSceSystemService", 1, 1,
                 sceSystemServiceHideSplashScreen);
    LIB_FUNCTION("rPo6tV8D9bM", "libSceSystemService", 1, "libSceSystemService", 1, 1,
                 sceSystemServiceGetStatus);
}

}; // namespace Core::Libraries::LibSystemService
