summarylogtreecommitdiffstats
path: root/PathOfBuilding-force-disable-devmode.patch
blob: 56851f6a89bea9d6cafa9b9b7dc2d4041220a606 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
diff --git a/Launch.lua b/Launch.lua
index 0673314..39800ae 100644
--- a/Launch.lua
+++ b/Launch.lua
@@ -51,7 +51,7 @@ function launch:OnInit()
 	if localManXML and not self.versionBranch and not self.versionPlatform then
 		-- Looks like a remote manifest, so we're probably running from a repository
 		-- Enable dev mode to disable updates and set user path to be the script path
-		self.devMode = true
+		self.devMode = false
 	end
 	RenderInit()
 	ConPrintf("Loading main script...")
@@ -286,6 +286,8 @@ function launch:ApplyUpdate(mode)
 end
 
 function launch:CheckForUpdate(inBackground)
+	return
+	--[[
 	if self.updateCheckRunning then
 		return
 	end
@@ -302,6 +304,7 @@ function launch:CheckForUpdate(inBackground)
 		self.updateCheckRunning = true
 	end
 	update:close()
+	--]]
 end
 
 function launch:ShowPrompt(r, g, b, str, func)
diff --git a/Modules/Main.lua b/Modules/Main.lua
index 1af88e0..683fc33 100644
--- a/Modules/Main.lua
+++ b/Modules/Main.lua
@@ -42,7 +42,7 @@ function main:Init()
 	self.modes["LIST"] = LoadModule("Modules/BuildList")
 	self.modes["BUILD"] = LoadModule("Modules/Build")
 
-	if launch.devMode or GetScriptPath() == GetRuntimePath() then
+	if launch.devMode and GetScriptPath() == GetRuntimePath() then
 		-- If running in dev mode or standalone mode, put user data in the script path
 		self.userPath = GetScriptPath().."/"
 	else
@@ -917,4 +917,4 @@ do
 	end
 end
 
-return main
\ No newline at end of file
+return main