Exemplo n.º 1
0
static char* get_ini_path()
{
   static char *path = NULL;
   if (path == NULL)
     {
	path = malloc(strlen(get_currentpath())+1+strlen("mupen64.ini"));
	strcpy(path, get_currentpath());
	strcat(path, "mupen64.ini");
     }
   return path;
}
Exemplo n.º 2
0
Arquivo: main.c Projeto: GPDP2/mupen64
char *get_savespath()
{
   static char path[1024];
   strcpy(path, get_currentpath());
   strcat(path, "save/");
   return path;
}