Skip to content

Commit 08086b2

Browse files
committed
update launch.lua to read the hash from the manifest
1 parent f3b5635 commit 08086b2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Note that automatic updates are disabled in Dev Mode.
8686

8787
Sometimes you may need to force Dev mode OFF when running from the dev branch to debug a specific part of Path of Building (e.g. the update system).
8888

89-
To do so [comment out Line 54 to line 58](./src/Launch.lua#L54-L58) of the [Launch.lua](./src/Launch.lua) file:
89+
To do so [comment out Line 65 to line 69](./src/Launch.lua#L65-L69) of the [Launch.lua](./src/Launch.lua) file:
9090
```
9191
--if localManXML and not self.versionBranch and not self.versionPlatform then
9292
-- -- Looks like a remote manifest, so we're probably running from a repository

src/Launch.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ function launch:OnInit()
2121
self.versionNumber = "?"
2222
self.versionBranch = "?"
2323
self.versionPlatform = "?"
24+
self.versionCommitHashShort = "?"
2425
self.lastUpdateCheck = GetTime()
2526
self.subScripts = { }
2627
self.startTime = startTime
@@ -47,6 +48,7 @@ function launch:OnInit()
4748
if type(node) == "table" then
4849
if node.elem == "Version" then
4950
self.versionNumber = node.attrib.number
51+
self.versionCommitHashShort = node.attrib.hash
5052
self.versionBranch = node.attrib.branch
5153
self.versionPlatform = node.attrib.platform
5254
end

0 commit comments

Comments
 (0)