mirror of
https://github.com/ALEZ-DEV/Babylonia-terminal.git
synced 2026-03-21 21:58:52 +00:00
fix: game won't update
This commit is contained in:
parent
820690c05d
commit
88b730f65f
@ -123,7 +123,13 @@ impl GameInfo {
|
|||||||
|
|
||||||
pub async fn need_update(&self) -> anyhow::Result<bool> {
|
pub async fn need_update(&self) -> anyhow::Result<bool> {
|
||||||
let info = GameInfo::fetch_game_info().await?;
|
let info = GameInfo::fetch_game_info().await?;
|
||||||
Ok(self.default.version != info.default.version)
|
// I don't really like this if statement, but I will try to change it in the future, this is just for a quick fix
|
||||||
|
if self.default.version != info.default.version {
|
||||||
|
info.save_in_cache().await?;
|
||||||
|
Ok(true)
|
||||||
|
} else {
|
||||||
|
Ok(false)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_first_cdn(&self) -> String {
|
pub fn get_first_cdn(&self) -> String {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user