Skip to content

Commit

Permalink
Imp sceKernelFindModuleByName
Browse files Browse the repository at this point in the history
  • Loading branch information
sum2012 committed Sep 5, 2020
1 parent 5f1e3b2 commit d0f18cb
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 d0f18cb

Please sign in to comment.