Skip to content

Commit

Permalink
Merge pull request #162 from mxve/changelog
Browse files Browse the repository at this point in the history
Use master node for changelog and motd
  • Loading branch information
Rackover authored Dec 3, 2024
2 parents 05fb0d8 + 81553a6 commit 1ec8b27
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Components/Modules/Changelog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Components
std::lock_guard _(Mutex);
Lines.clear();

const auto data = Utils::Cache::GetFile("/develop/CHANGELOG.md");
const auto data = Utils::Cache::GetFile("/info/changelog/plain");

if (data.empty())
{
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Modules/News.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ namespace Components
Changelog::LoadChangelog();
if (Terminate) return;

const auto data = Utils::Cache::GetFile("/iw4/motd.txt");
const auto data = Utils::Cache::GetFile("/info/motd/plain");
if (!data.empty())
{
Localization::Set("MPUI_MOTD_TEXT", data);
Expand Down
4 changes: 2 additions & 2 deletions src/Utils/Cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ namespace Utils
{
const char* Cache::Urls[] =
{
"https://raw.githubusercontent.com/diamante0018/iw4x-client",
"https://alterware.dev",
"https://raw.githubusercontent.com/iw4x/iw4x-cache",
"https://iw4x.getserve.rs/v1",
};

std::string Cache::ValidUrl;
Expand Down

0 comments on commit 1ec8b27

Please sign in to comment.