Changeset 810

Show
Ignore:
Timestamp:
01/16/10 22:38:42 (8 weeks ago)
Author:
sience
Message:

-bugfix (get %appdata% dir for all languages)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lugre/lua/lib.util.lua

    r809 r810  
    8585function GetHomePath () -- returns /home/username  without trailing slash 
    8686        if (WIN32) then 
    87                 local file = io.popen("echo %USERPROFILE%") 
     87                local file = io.popen("echo %appdata%") 
    8888                if (not file) then return end 
    8989                for line in file:lines() do file:close() return string.sub(line,1,-1) end