Skip to content

Commit

Permalink
dol2gci: Strip entire path from GCI name
Browse files Browse the repository at this point in the history
  • Loading branch information
smurf3tte authored and Extrems committed Dec 30, 2020
1 parent cb8ca47 commit 1358363
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buildtools/dol2gci.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,11 @@ int main (int argc, char * const argv[])
// strip path from filename, looking for forward and backslash
string name = argv[1];
unsigned int i;
i = name.find('/');
i = name.rfind('/');
if (i!=string::npos) {
name = name.substr(i+1);
}
i = name.find('\\');
i = name.rfind('\\');
if (i!=string::npos) {
name = name.substr(i+1);
}
Expand Down

0 comments on commit 1358363

Please sign in to comment.