Fix a rare crash in DIAL server
This commit is contained in:
1 parent
b33136360d
commit
6683392a78
2 files changed
+30
-5
No files matched your search
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- Few optimizations with texture loading to improve memory usage
|
- Few optimizations with texture loading to improve memory usage
|
||||||
|
- A rare crash in DIAL server
|
||||||
|
|
||||||
## [0.25.1] - 2024-08-03
|
## [0.25.1] - 2024-08-03
|
||||||
|
|
||||||
|
|||||||
@@ -87,18 +87,42 @@ class ApplicationInfo
|
|||||||
|
|
||||||
function GetLibVersion() as string
|
function GetLibVersion() as string
|
||||||
values = m.GetLibManifestValues()
|
values = m.GetLibManifestValues()
|
||||||
|
if values = invalid
|
||||||
|
return "0.0.0"
|
||||||
|
end if
|
||||||
|
|
||||||
Major = values["major_version"].toInt()
|
major = 0
|
||||||
Minor = values["minor_version"].toInt()
|
minor = 0
|
||||||
Build = values["build_version"].toInt()
|
build = 0
|
||||||
|
|
||||||
return `${Major}.${Minor}.${Build}`
|
if values.DoesExist("major_version")
|
||||||
|
value = values["major_version"]
|
||||||
|
if IsString(value)
|
||||||
|
major = value.toInt()
|
||||||
|
end if
|
||||||
|
end if
|
||||||
|
|
||||||
|
if values.DoesExist("minor_version")
|
||||||
|
value = values["minor_version"]
|
||||||
|
if IsString(value)
|
||||||
|
minor = value.toInt()
|
||||||
|
end if
|
||||||
|
end if
|
||||||
|
|
||||||
|
if values.DoesExist("build_version")
|
||||||
|
value = values["build_version"]
|
||||||
|
if IsString(value)
|
||||||
|
build = value.toInt()
|
||||||
|
end if
|
||||||
|
end if
|
||||||
|
|
||||||
|
return `${major}.${minor}.${build}`
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function GetLibGitCommitHash() as string
|
function GetLibGitCommitHash() as string
|
||||||
values = m.GetLibManifestValues()
|
values = m.GetLibManifestValues()
|
||||||
|
|
||||||
if values.doesexist("git_commit_sha")
|
if values.DoesExist("git_commit_sha")
|
||||||
return values["git_commit_sha"]
|
return values["git_commit_sha"]
|
||||||
end if
|
end if
|
||||||
return ""
|
return ""
|
||||||
|
|||||||
Reference in new issue
Block a user