[RAPPS] Update rapps DB location to the new database

This commit is contained in:
Mark Jansen 2020-09-20 22:12:19 +02:00
parent 26da451ba5
commit d564b4afc3
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B
3 changed files with 4 additions and 3 deletions

View file

@ -308,7 +308,7 @@ AvailableStrings::AvailableStrings()
PathAppendW(szAppsPath.GetBuffer(MAX_PATH), L"rapps");
szAppsPath.ReleaseBuffer();
szCabName = L"rappmgr.cab";
szCabName = APPLICATION_DATABASE_NAME;
szCabDir = szPath;
szCabPath = szCabDir;
PathAppendW(szCabPath.GetBuffer(MAX_PATH), szCabName);

View file

@ -30,7 +30,8 @@
#include "resource.h"
#include "winmain.h"
#define APPLICATION_DATABASE_URL L"https://rapps.reactos.org/rappmgr.cab"
#define APPLICATION_DATABASE_URL L"https://rapps.reactos.org/rappmgr2.cab"
#define APPLICATION_DATABASE_NAME L"rappmgr2.cab"
#define MAX_STR_LEN 256
enum AppsCategories

View file

@ -658,7 +658,7 @@ unsigned int WINAPI CDownloadManager::ThreadFunc(LPVOID param)
{
case DLTYPE_DBUPDATE:
case DLTYPE_DBUPDATE_UNOFFICIAL:
PathAppendW(Path.GetBuffer(), L"rappmgr.cab"); // whatever the URL is, use the file name L"rappmgr.cab"
PathAppendW(Path.GetBuffer(), APPLICATION_DATABASE_NAME);
break;
case DLTYPE_APPLICATION:
PathAppendW(Path.GetBuffer(), (LPWSTR)(p + 1)); // use the filename retrieved from URL