Read ddnet-info.json from correct location

This commit is contained in:
Dennis Felsing 2018-08-23 09:36:20 +02:00
parent 58927375fc
commit 29dd3e29f7

View file

@ -1105,7 +1105,7 @@ int CServerBrowser::HasRank(const char *pMap)
void CServerBrowser::LoadDDNetInfoJson()
{
IStorage *pStorage = Kernel()->RequestInterface<IStorage>();
IOHANDLE File = pStorage->OpenFile("ddnet-info.json", IOFLAG_READ, IStorage::TYPE_ALL);
IOHANDLE File = pStorage->OpenFile("ddnet-info.json", IOFLAG_READ, IStorage::TYPE_SAVE);
if(!File)
return;