forked from len0rd/rockbox
Of course the moment you release, you spot that one bug.
Portable rbutil no longer tries to delete itself from the player if you decide to uninstall. Version bumped to 0.2.1.1 to avoid confusion. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11759 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f938d8cc34
commit
177bd8ecf4
3 changed files with 14 additions and 5 deletions
|
@ -432,6 +432,15 @@ int Uninstall(const wxString dir, bool isFullUninstall) {
|
|||
|
||||
for (i = 0; i < totalfiles; i++)
|
||||
{
|
||||
// If we're running on the device, let's not delete our own
|
||||
// installation, eh?
|
||||
if (gv->portable &&
|
||||
FilesToRemove->Item(i).StartsWith(wxT(PATH_SEP
|
||||
"RockboxUtility")) )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
wxString* buf2 = new wxString;
|
||||
buf.Printf("%s%s", dir.c_str() , FilesToRemove->Item(i).c_str() );
|
||||
buf2->Format(_("Deleting %s"), buf.c_str());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue