Skip to content

Commit

Permalink
Make translations work for unknown Cic Type and Region info.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinnegatamante committed Jul 3, 2020
1 parent 187182e commit af3ec21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Source/Core/ROM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ struct CountryIDInfo
static const CountryIDInfo g_CountryCodeInfo[] =
{
#ifdef DAEDALUS_VITA
{ 0, "0", OS_TV_NTSC },
{ 0, lang_strings[STR_UNKNOWN], OS_TV_NTSC },
{ '7', "Beta", OS_TV_NTSC },
{ 'A', "NTSC", OS_TV_NTSC },
{ 'D', lang_strings[STR_REGION_GER], OS_TV_PAL },
Expand Down Expand Up @@ -672,7 +672,7 @@ const char * ROM_GetCountryNameFromID( u8 country_id )
}
}

return "?";
return lang_strings[STR_UNKNOWN];
}

u32 ROM_GetTvTypeFromID( u8 country_id )
Expand Down
3 changes: 2 additions & 1 deletion Source/Core/ROMImage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

#include "stdafx.h"
#include "ROMImage.h"
#include "SysVita/UI/Menu.h"

// Find out the CIC type
ECicType ROM_GenerateCICType( const u8 * p_rom_base )
Expand Down Expand Up @@ -61,6 +62,6 @@ const char * ROM_GetCicName( ECicType cic_type )
case CIC_8303: return "CIC-8303";
case CIC_DDUS: return "CIC-DDUS";
case CIC_DDTL: return "CIC-DDTL";
default: return "Unknown";
default: return lang_strings[STR_UNKNOWN];
}
}

0 comments on commit af3ec21

Please sign in to comment.