Skip to content

Commit

Permalink
Fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsStolas committed Sep 6, 2024
1 parent 070b4a8 commit c74d653
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/core/libraries/kernel/libkernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -399,21 +399,20 @@ int PS4_SYSV_ABI posix_getpagesize() {
return 4096;
}

int PS4_SYSV_ABI sceKernelGetModuleList(Core::Module** pArray, size_t numArray, size_t* pActualNum) {
int PS4_SYSV_ABI sceKernelGetModuleList(Core::Module** pArray, size_t numArray,
size_t* pActualNum) {
auto* linker = Common::Singleton<Core::Linker>::Instance();
int numModules = linker->GetNumberModules();
for (int i = 0; i < std::min(static_cast<int>(numArray), numModules); ++i)
{
for (int i = 0; i < std::min(static_cast<int>(numArray), numModules); ++i) {
auto m = linker->GetModule(i);
if (!m)
{
if (!m) {
*pActualNum = i;
break;
}

pArray[i] = m;
}

return ORBIS_OK;
}

Expand Down

0 comments on commit c74d653

Please sign in to comment.