Skip to content

Commit

Permalink
Merge branch 'build_32'
Browse files Browse the repository at this point in the history
  • Loading branch information
blind-coder committed May 27, 2015
2 parents cc88fda + 8e34e5e commit 9723999
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 38 deletions.
6 changes: 3 additions & 3 deletions latest_version.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
version:0.4.7
minVersion:30.16
url:http://theindiestone.com/forums/index.php/topic/13014-tiny-automated-version-checker-tiny-avc-047
version:0.5.0
minVersion:32.02
url:http://theindiestone.com/forums/index.php/topic/13014-tiny-automated-version-checker-tiny-avc-050
44 changes: 10 additions & 34 deletions media/lua/client/tiny_avc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,17 @@ end
--]]

TinyAVC.getUrl = function(url) -- {{{
local url = URL.new(url);
local conn = url:openStream();
local isr = DataInputStream.new(conn);
local isr = getUrlInputStream(url);
if not isr then return "" end;

local content = "";
local line = isr:readLine();
while line ~= nil do
content = content.."\n"..line;
line = isr:readLine();
end
isr:close();

return content;
end
-- }}}
Expand Down Expand Up @@ -172,33 +173,13 @@ TinyAVC.versionHistory = { -- {{{
order = 26,
backwardsCompatible = true
},
["31.14"] = {
["32.1"] = {
order = 27,
backwardsCompatible = true
backwardsCompatible = false
},
["31.15"] = {
["32.2"] = {
order = 28,
backwardsCompatible = true
},
["31.16"] = {
order = 29,
backwardsCompatible = true
},
["31.17"] = {
order = 30,
backwardsCompatible = true
},
["31.18"] = {
order = 31,
backwardsCompatible = true
},
["31.19"] = {
order = 32,
backwardsCompatible = true
},
["31.20"] = {
order = 33,
backwardsCompatible = true
}
};
-- }}}
Expand Down Expand Up @@ -231,13 +212,8 @@ TinyAVC.sanitizeTISVersion = { -- {{{
["Early Access v. 31.11"] = "31.11",
["Early Access v. 31.12"] = "31.12",
["Early Access v. 31.13"] = "31.13",
["Early Access v. 31.14"] = "31.14",
["Early Access v. 31.15"] = "31.15",
["Early Access v. 31.16"] = "31.16",
["Early Access v. 31.17"] = "31.17",
["Early Access v. 31.18"] = "31.18",
["Early Access v. 31.19"] = "31.19",
["Early Access v. 31.20"] = "31.20"
["Early Access v. 32.1"] = "32.1",
["Early Access v. 32.2"] = "32.2"
};
-- }}}
TinyAVC.sanitizeVersion = function(ver) -- {{{
Expand Down Expand Up @@ -413,7 +389,7 @@ function TinyAVCWindow:downloadUpdates() -- {{{
local list = getModDirectoryTable();
for _,mod in pairs(list) do
TinyAVC.mods[mod] = {};
local f = getFileInput(".."..File.separator.."mods"..File.separator..mod..File.separator.."tiny_avc.txt");
local f = getFileInput("..".."/".."mods".."/"..mod.."/".."tiny_avc.txt");
if f ~= nil then
local line = f:readLine();
while line ~= nil do
Expand Down
2 changes: 1 addition & 1 deletion tiny_avc.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version:0.4.7
version:0.5.0
url:https://raw.githubusercontent.com/blind-coder/pz-tiny_avc/master/latest_version.txt

0 comments on commit 9723999

Please sign in to comment.