VersionData::UpdateNewestData增加返回值表示是否真的有更新
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
namespace hgl
|
namespace hgl
|
||||||
{
|
{
|
||||||
@@ -55,13 +55,14 @@ namespace hgl
|
|||||||
return cur_data;
|
return cur_data;
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateNewestData()
|
bool UpdateNewestData()
|
||||||
{
|
{
|
||||||
if(IsNewestVersion())
|
if(IsNewestVersion())
|
||||||
return;
|
return(false);
|
||||||
|
|
||||||
MakeNewestData(cur_data);
|
MakeNewestData(cur_data);
|
||||||
cur_version=version;
|
cur_version=version;
|
||||||
|
return(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
const uint32 GetNewestVersion()const { return version; } ///<取得最新的版本号(注意数据可能不是最新的)
|
const uint32 GetNewestVersion()const { return version; } ///<取得最新的版本号(注意数据可能不是最新的)
|
||||||
|
Reference in New Issue
Block a user