Skip to content

Commit

Permalink
Remove ChangeModuleName (thanks AKuHAK)
Browse files Browse the repository at this point in the history
  • Loading branch information
rickgaiser committed Sep 10, 2023
1 parent 2202631 commit 7ff45f1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
1 change: 0 additions & 1 deletion ee/ee_core/include/modmgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ void LoadFileExit();
int LoadModule(const char *path, int mode, int arg_len, const char *args);
int LoadMemModule(int mode, const void *modptr, unsigned int modsize, int arg_len, const char *args);
int LoadElf(const char *path, t_ExecData *data);
void ChangeModuleName(const char *name, const char *newname);
#ifdef __EESIO_DEBUG
void ListModules(void);
#endif
Expand Down
28 changes: 0 additions & 28 deletions ee/ee_core/src/modmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,34 +158,6 @@ int LoadElf(const char *path, t_ExecData *data)
return -SCE_ELOADMISS;
}

/*----------------------------------------------------------------------------------------*/
/* Find and change a module's name. */
/*----------------------------------------------------------------------------------------*/
void ChangeModuleName(const char *name, const char *newname)
{
char search_name[60];
smod_mod_info_t info;
int len;

if (!smod_get_next_mod(NULL, &info))
return;

len = strlen(name);

do {
smem_read(info.name, search_name, sizeof(search_name));

if (!_memcmp(search_name, name, len)) {
strncpy(search_name, newname, sizeof(search_name));
search_name[sizeof(search_name) - 1] = '\0';
len = strlen(search_name);
SyncDCache(search_name, search_name + len);
smem_write(info.name, search_name, len);
break;
}
} while (smod_get_next_mod(&info, &info));
}

/*----------------------------------------------------------------------------------------*/
/* List modules currently loaded in the system. */
/*----------------------------------------------------------------------------------------*/
Expand Down

0 comments on commit 7ff45f1

Please sign in to comment.