From: Matthias Braun Date: Fri, 2 Feb 2007 18:49:55 +0000 (+0000) Subject: use PHYSFS for all filesystem operations. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=e808d976e177f51113971f8d0026a38a08fe88d8;p=supertux.git use PHYSFS for all filesystem operations. SVN-Revision: 4777 --- diff --git a/src/addon_manager.cpp b/src/addon_manager.cpp index ef82ab0f0..145998331 100644 --- a/src/addon_manager.cpp +++ b/src/addon_manager.cpp @@ -192,11 +192,7 @@ AddonManager::get_addons() const void -AddonManager::install(const Addon& - #ifdef HAVE_LIBCURL - addon - #endif - ) +AddonManager::install(const Addon& addon) { #ifdef HAVE_LIBCURL @@ -226,6 +222,8 @@ AddonManager::install(const Addon& std::string fullFilename = writeDir + dirSep + addon.fname; log_debug << "Finished downloading \"" << fullFilename << "\"" << std::endl; PHYSFS_addToSearchPath(fullFilename.c_str(), 1); +#else + (void) addon; #endif } @@ -234,5 +232,5 @@ void AddonManager::remove(const Addon& addon) { PHYSFS_removeFromSearchPath(addon.fname.c_str()); - ::remove(addon.fname.c_str()); + PHYSFS_delete(addon.fname.c_str()); }