From 20ad0b9f99784822b0d26be6d80c13c61620cfeb Mon Sep 17 00:00:00 2001 From: hyzboy Date: Fri, 1 Aug 2025 13:55:16 +0800 Subject: [PATCH] =?UTF-8?q?VersionData::UpdateNewestData=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E5=80=BC=E8=A1=A8=E7=A4=BA=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E7=9C=9F=E7=9A=84=E6=9C=89=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/hgl/type/VersionData.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/inc/hgl/type/VersionData.h b/inc/hgl/type/VersionData.h index ba3f403..6bbb59b 100644 --- a/inc/hgl/type/VersionData.h +++ b/inc/hgl/type/VersionData.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once namespace hgl { @@ -55,13 +55,14 @@ namespace hgl return cur_data; } - void UpdateNewestData() + bool UpdateNewestData() { if(IsNewestVersion()) - return; + return(false); MakeNewestData(cur_data); cur_version=version; + return(true); } const uint32 GetNewestVersion()const { return version; } ///<取得最新的版本号(注意数据可能不是最新的)