mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-21 08:12:09 -05:00
Strip inline explanatory comments (comments are restricted to technical-debt markers, #endif, and namespace-close trailers) from HitLog.hpp, libSceConvertKeycode, libSceVoiceChat, libScePngEnc, and the new hunk in libScePlayGo; add the missing #endif trailer comment to HitLog.hpp's include guard. Rename the local helpers/params that didn't match the naming convention: log_soft -> logSoft and Readable -> readable (private free functions, camelCase), and snake_case arguments (user_id, request_id, memory_address, memory_size, output_info) to camelCase. NID export functions and pre-existing upstream code (libScePlayGo's existing snake_case parameters, PngEnc's vendored stb_image_write.h) are left untouched. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
25 lines
923 B
C++
25 lines
923 B
C++
#include <cstdint>
|
|
#include "SceTypes.hpp"
|
|
#include "HitLog.hpp"
|
|
#include "prx/libc/include/General.hpp"
|
|
|
|
namespace {
|
|
constexpr int kErrInvalidAddress = static_cast<int>(0x80BC0031u);
|
|
constexpr int kErrInvalidUserId = static_cast<int>(0x80BC0010u);
|
|
} // namespace
|
|
|
|
extern "C" {
|
|
|
|
int APS5_VABI sceConvertKeycodeGetImeKeyboardType(int32_t userId, uint32_t* type) {
|
|
if (type == nullptr) return kErrInvalidAddress;
|
|
if (userId < 0) return kErrInvalidUserId;
|
|
*type = 0;
|
|
return 0;
|
|
}
|
|
int APS5_VABI sceConvertKeycodeGetVirtualKeycode(std::uint64_t a0, std::uint64_t a1, std::uint64_t a2, std::uint64_t a3) {
|
|
APS5_HIT("CONVERTKEYCODE", "sceConvertKeycodeGetVirtualKeycode args 0x%llx 0x%llx 0x%llx 0x%llx -> error (signature unknown)",
|
|
static_cast<unsigned long long>(a0), static_cast<unsigned long long>(a1), static_cast<unsigned long long>(a2), static_cast<unsigned long long>(a3));
|
|
return kErrInvalidAddress;
|
|
}
|
|
}
|