MD5 md5;
- unsigned char buffer[1024];
PHYSFS_file* file = PHYSFS_openRead(filename.c_str());
if (!file)
{
{
while (true)
{
+ unsigned char buffer[1024];
PHYSFS_sint64 len = PHYSFS_read(file, buffer, 1, sizeof(buffer));
if (len <= 0) break;
md5.update(buffer, len);
std::vector<Config::Addon>& addon_config) :
m_downloader(),
m_addon_directory(addon_directory),
- m_repository_url("http://addons.supertux.googlecode.com/git/index-0_4_0.nfo"),
+ m_repository_url("https://raw.githubusercontent.com/SuperTuxTeam/addons/master/index-0_4_0.nfo"),
m_addon_config(addon_config),
m_installed_addons(),
m_repository_addons(),
m_downloader.update();
}
-void
-AddonManager::abort_install()
-{
- log_info << "addon install aborted" << std::endl;
-
- m_downloader.abort(m_transfer_status->id);
-
- m_transfer_status = {};
-}
-
/* EOF */