diff options
author | Christi Scarborough <christi@coraline.org> | 2006-12-14 06:49:37 +0000 |
---|---|---|
committer | Christi Scarborough <christi@coraline.org> | 2006-12-14 06:49:37 +0000 |
commit | 177bd8ecf4a597ed565b56f675c17a258ff5834b (patch) | |
tree | ed48108bb75bde0190adf4384a10a79e9e5fbe3d /rbutil | |
parent | f938d8cc34cb6b430cc9cbafdddcd23c4e2e3fc3 (diff) | |
download | rockbox-177bd8ecf4a597ed565b56f675c17a258ff5834b.tar.gz rockbox-177bd8ecf4a597ed565b56f675c17a258ff5834b.zip |
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
Diffstat (limited to 'rbutil')
-rw-r--r-- | rbutil/credits.h | 2 | ||||
-rw-r--r-- | rbutil/rbutil-rc.rc | 8 | ||||
-rw-r--r-- | rbutil/rbutil.cpp | 9 |
3 files changed, 14 insertions, 5 deletions
diff --git a/rbutil/credits.h b/rbutil/credits.h index b783d29b64..867661b067 100644 --- a/rbutil/credits.h +++ b/rbutil/credits.h @@ -22,7 +22,7 @@ #define CREDITS_H_INCLUDED #define RBUTIL_FULLNAME "The Rockbox Utility" -#define RBUTIL_VERSION "Version 0.2.1.0" +#define RBUTIL_VERSION "Version 0.2.1.1" static const char* rbutil_developers[] = { "Christi Alice Scarborough", diff --git a/rbutil/rbutil-rc.rc b/rbutil/rbutil-rc.rc index 986bd583b4..756b65fb49 100644 --- a/rbutil/rbutil-rc.rc +++ b/rbutil/rbutil-rc.rc @@ -1,8 +1,8 @@ #define RBUTIL 1 #include <wx/msw/wx.rc> RBUTIL VERSIONINFO -FILEVERSION 0,2,1,0 -PRODUCTVERSION 0,2,1,0 +FILEVERSION 0,2,1,1 +PRODUCTVERSION 0,2,1,1 FILEOS 0x00000004 FILETYPE 0x00000001 BEGIN @@ -10,8 +10,8 @@ BEGIN BEGIN BLOCK "FFFF0000" BEGIN - VALUE "FileVersion", "0.2.1.0\0" - VALUE "ProductVersion", "0.2.1.0\0" + VALUE "FileVersion", "0.2.1.1\0" + VALUE "ProductVersion", "0.2.1.1\0" VALUE "CompanyName", "Rockbox Team\0" VALUE "FileDescription", "Rockbox Utility\0" VALUE "InternalName", "rbutil\0" diff --git a/rbutil/rbutil.cpp b/rbutil/rbutil.cpp index 0adee683ec..b7a1fa6a73 100644 --- a/rbutil/rbutil.cpp +++ b/rbutil/rbutil.cpp @@ -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()); |