Skip to content

Commit

Permalink
modules/SceError: Implement GetExternalString.
Browse files Browse the repository at this point in the history
  • Loading branch information
Macdu authored and Zangetsu38 committed Nov 7, 2024
1 parent 33978d4 commit a0d7fd9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions vita3k/modules/SceDriverUser/SceErrorUser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@

#include <module/module.h>

EXPORT(int, sceErrorGetExternalString) {
return UNIMPLEMENTED();
#include <util/tracy.h>
TRACY_MODULE_NAME(SceErrorUser);

EXPORT(SceInt32, sceErrorGetExternalString, char *result, int err) {
TRACY_FUNC(sceErrorGetExternalString, result, err);
sprintf(result, "0x%08X", err);
return 0;
}

EXPORT(int, sceErrorHistoryClearError) {
Expand Down
9 changes: 7 additions & 2 deletions vita3k/modules/SceError/SceError.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@

#include <module/module.h>

EXPORT(int, _sceErrorGetExternalString) {
return UNIMPLEMENTED();
#include <util/tracy.h>
TRACY_MODULE_NAME(SceError);

EXPORT(SceInt32, _sceErrorGetExternalString, char *result, int err) {
TRACY_FUNC(_sceErrorGetExternalString, result, err);
sprintf(result, "0x%08X", err);
return 0;
}

EXPORT(int, _sceErrorHistoryClearError) {
Expand Down

0 comments on commit a0d7fd9

Please sign in to comment.