[ create a new paste ] login | about

Link: http://codepad.org/q78RJlRk    [ raw code | fork ]

Lua, pasted on Oct 31:
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/gui_IceUI.lua b/gui_IceUI.lua
index d554e66..5bbf03c 100644
--- a/gui_IceUI.lua
+++ b/gui_IceUI.lua
@@ -744,7 +746,7 @@ end
 function profileManager:GetProfileList()
   local profiles = {}
   for _,v in ipairs(VFS.DirList(PROFILES_DIRNAME, "*.lua", VFS.RAW_FIRST)) do
-    local _,_,name = string.find(v, ".*\\(.*).lua")
+    local _,_,name = string.find(v, ".*[/\\](.*).lua")
     if name ~= 'current' and name:sub(1,1):upper() == name:sub(1,1) then
       table.insert(profiles, name)
     end


Create a new paste based on this one


Comments: