fix sram not saving on some platforms.
This commit is contained in:
		
							parent
							
								
									0c72336d44
								
							
						
					
					
						commit
						65ff54ff4e
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -2458,7 +2458,9 @@ u32 load_gamepak(const struct retro_game_info* info, const char *name)
 | 
			
		|||
   gamepak_filename[sizeof(gamepak_filename) - 1] = 0;
 | 
			
		||||
 | 
			
		||||
   p = strrchr(gamepak_filename, PATH_SEPARATOR_CHAR);
 | 
			
		||||
   if (!p)
 | 
			
		||||
   if (p)
 | 
			
		||||
      p++;
 | 
			
		||||
   else
 | 
			
		||||
      p = gamepak_filename;
 | 
			
		||||
 | 
			
		||||
   snprintf(backup_filename, sizeof(backup_filename), "%s/%s", save_path, p);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue