Skip to content

Commit

Permalink
Merge pull request #13387 from sum2012/kernel_minor
Browse files Browse the repository at this point in the history
Imp sceKernelFindModuleByName
  • Loading branch information
hrydgard authored Sep 8, 2020
2 parents b3d7864 + d0f18cb commit 1052047
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Core/HLE/sceKernelModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2335,14 +2335,10 @@ u32 sceKernelFindModuleByUID(u32 uid)

u32 sceKernelFindModuleByName(const char *name)
{
ERROR_LOG_REPORT(SCEMODULE, "UNIMPL sceKernelFindModuleByName(%s)", name);

int index = GetModuleIndex(name);

if (index == -1)
return 0;

return 1;
u32 temp = index + 1;
INFO_LOG(SCEMODULE, "%d = sceKernelFindModuleByName(%s)", temp, name);
return temp;
}

static u32 sceKernelLoadModuleByID(u32 id, u32 flags, u32 lmoptionPtr)
Expand Down

0 comments on commit 1052047

Please sign in to comment.