Fixed few \ on code that suppose to work on linux as well.

That most fixed something, probably some crash and some iso properties issue:)


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2536 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee
2009-03-03 10:21:13 +00:00
parent 281e6bc883
commit 87cf3e64bd
3 changed files with 8 additions and 8 deletions

View File

@ -118,7 +118,7 @@ CISOProperties::CISOProperties(const std::string fileName, wxWindow* parent, wxW
// Filesystem browser/dumper
fileIter beginning = Our_Files.begin(), end = Our_Files.end(), pos = Our_Files.begin();
CreateDirectoryTree(RootId, beginning, end, pos, (char *)"\\");
CreateDirectoryTree(RootId, beginning, end, pos, (char *)"/");
m_Treectrl->Expand(RootId);
std::string filename, extension;
@ -160,7 +160,7 @@ void CISOProperties::CreateDirectoryTree(wxTreeItemId& parent,
if((*iterPos)->IsDirectory()) {
char *dirName;
name[strlen(name) - 1] = '\0';
dirName = strrchr(name, '\\');
dirName = strrchr(name, DIR_SEP_CHR);
if(!dirName)
dirName = name;
else
@ -169,7 +169,7 @@ void CISOProperties::CreateDirectoryTree(wxTreeItemId& parent,
wxTreeItemId item = m_Treectrl->AppendItem(parent, wxString::FromAscii(dirName));
CreateDirectoryTree(item, begin, end, ++iterPos, name);
} else {
char *fileName = strrchr(name, '\\');
char *fileName = strrchr(name, DIR_SEP_CHR);
if(!fileName)
fileName = name;
else
@ -475,7 +475,7 @@ void CISOProperties::OnExtractFile(wxCommandEvent& WXUNUSED (event))
{
wxString temp;
temp = m_Treectrl->GetItemText(m_Treectrl->GetItemParent(m_Treectrl->GetSelection()));
File = temp + _T("\\") + File;
File = temp + _T(DIR_SEP_CHR) + File;
m_Treectrl->SelectItem(m_Treectrl->GetItemParent(m_Treectrl->GetSelection()));
}