File diff 00e7282094a8 → bff3a59bf8b4
startup.lua
Show inline comments
 
@@ -220,13 +220,13 @@ end
 

	
 
function fix_save(filename)
 
    local f=stead.io.open(filename,"rb");
 
    if f~=nil then
 
        local content = f:read("*all");
 
        stead.io.close(f);
 
        print(string.find(content, '0.10.0'));
 
        
 
        if string.find(content, '0.10.0') == nil then
 
            print("Fixing save file");
 
            content = stead.string.gsub(content, '([^A-Za-z])rm([^A-Za-z])', '%1warehouse_32%2') .. '\nversion="0.10.0"\n';
 
            print(content)
 
            local f=stead.io.open(filename,"wb")
 
            if f ~= nil then