Project64: Update the code related to changes in stdstr

This commit is contained in:
zilmar 2013-04-17 20:34:20 +10:00
parent 5c8b6fd2e2
commit b805bbb883
4 changed files with 8 additions and 4 deletions

View File

@ -542,7 +542,7 @@ stdstr CCheats::GetCheatName(int CheatNo, bool AddExtension) const
if (!IsValid16BitCode(CodeString))
{
Name.Format("*** %s",Name.c_str());
Name.replace("\\","\\*** ");
Name.Replace("\\","\\*** ");
}
if (AddExtension && CheatUsesCodeExtensions(LineEntry)) {
stdstr CheatValue(g_Settings->LoadStringIndex(Cheat_Extension,CheatNo));

View File

@ -911,6 +911,8 @@ void LoopAnalysis::SPECIAL_SYSCALL ( CCodeSection * Section )
{
g_Notify->BreakPoint(__FILE__,__LINE__);
}
#else
Section = Section;
#endif
m_NextInstruction = END_BLOCK;
m_PC -= 4;
@ -929,6 +931,8 @@ void LoopAnalysis::SPECIAL_BREAK ( CCodeSection * Section )
{
g_Notify->BreakPoint(__FILE__,__LINE__);
}
#else
Section = Section;
#endif
m_NextInstruction = END_BLOCK;
m_PC -= 4;

View File

@ -270,7 +270,7 @@ stdstr CSettingTypeApplication::FixSectionName(LPCSTR Section)
{
SectionName = "default";
}
SectionName.replace("\\","-");
SectionName.Replace("\\","-");
}
return SectionName;
}

View File

@ -104,8 +104,8 @@ void COptionsShortCutsPage::OnCpuStateChanged(UINT /*Code*/, int /*id*/, HWND /*
}
stdstr str = GS(Item->second.Title());
str.replace("&","");
str.replace("...","");
str.Replace("&","");
str.Replace("...","");
HTREEITEM hItem = m_MenuItems.InsertItem(TVIF_TEXT | TVIF_PARAM,str.c_str(),0,0,0,0,
(DWORD_PTR)&Item->second,hParent,TVI_LAST);