1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-15 15:57:40 +00:00

bug fixes storage mgr

This commit is contained in:
kepler155c@gmail.com
2017-04-22 00:51:27 -04:00
parent c57ff1541b
commit 8774d98009
5 changed files with 82 additions and 29 deletions

View File

@@ -91,13 +91,16 @@ function os.isPocket()
end
function os.getVersion()
local version
if _CC_VERSION then
return tonumber(_CC_VERSION)
version = tonumber(_CC_VERSION)
end
if _HOST then
return tonumber(_HOST:gmatch('[%d]+%.?[%d][%d]', '%1')())
version = tonumber(_HOST:gmatch('[%d]+%.?[%d][%d]', '%1')())
end
return 1.7
return version or 1.7
end
function os.registerApp(entry)