File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7979function P :openExe ()
8080 local dir = require (" levelhead.misc" ).getInstallationPath ()
8181 if not dir then
82+ local other = " If you are using the non-Steam version, please get in touch so support can be added.\n "
83+ .. " If you're doing something weird, specify a custom path using the misc. setting levelheadInstallationPath."
84+ local customDir = Settings .misc .levelheadInstallationPath
85+ if customDir and customDir ~= " " then
86+ other = string.format (
87+ " A custom directory was specified in the settings, but it didn't contain a Levelhead.exe: %q" ,
88+ customDir
89+ )
90+ end
8291 return nil , " Could not find Levelhead installation directory\n "
83- .. " If you are using the non-Steam version, please get in touch so support can be added. "
92+ .. other
8493 end
8594 -- Can't use nativefs because it doesn't let us open the file in a way to edit in it's middle
8695 local file , err = io.open (dir .. " Levelhead.exe" ," r+b" )
You can’t perform that action at this time.
0 commit comments