Small fixes in sceNpTrophy and cellSaveData

* Added cellSaveData.cpp to the project.
* Fixed wrong cellSaveData structs.
* Fixed compilation problem caused by the switch/case statements
introduced in sceNpTrophy and TROPUSR.cpp in the last commit
This commit is contained in:
Alexandro Sánchez Bach 2014-03-21 00:46:27 +01:00
parent f86ac251a8
commit ad7ac17647
5 changed files with 138 additions and 112 deletions

View file

@ -132,7 +132,7 @@ bool TROPUSRLoader::Generate(std::string& filepath, std::string& configpath)
{
u32 trophy_id = atoi(n->GetAttribute("id").mb_str());
u32 trophy_grade;
switch (n->GetAttribute("ttype").mb_str()[0])
switch (((const char *)n->GetAttribute("ttype").mb_str())[0])
{
case 'B': trophy_grade = 4; break;
case 'S': trophy_grade = 3; break;