We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35bc3e2 commit a2de439Copy full SHA for a2de439
builtin/mainmenu/common.lua
@@ -172,14 +172,9 @@ os.tempfolder = function()
172
os.remove(filetocheck)
173
174
local randname = "MTTempModFolder_" .. math.random(0,10000)
175
- if DIR_DELIM == "\\" then
176
- local tempfolder = os.getenv("TEMP")
177
- return tempfolder .. filetocheck
178
- else
179
- local backstring = filetocheck:reverse()
180
- return filetocheck:sub(0,filetocheck:len()-backstring:find(DIR_DELIM)+1) ..randname
181
- end
182
-
+ local backstring = filetocheck:reverse()
+ return filetocheck:sub(0, filetocheck:len() - backstring:find(DIR_DELIM) + 1) ..
+ randname
183
end
184
185
--------------------------------------------------------------------------------
0 commit comments