summaryrefslogtreecommitdiff
path: root/scripts/context/stubs/mswin/mtxrun.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2011-04-20 00:00:12 +0300
committerMarius <mariausol@gmail.com>2011-04-20 00:00:12 +0300
commit9a911f4fe29fcd7b02102d54ba0e938b40635e59 (patch)
tree9012560bcba898cb1188afdbefbf1f8ce6ad7a5e /scripts/context/stubs/mswin/mtxrun.lua
parent865b5da32dfab508db87744c7542a59c192dd459 (diff)
downloadcontext-9a911f4fe29fcd7b02102d54ba0e938b40635e59.tar.gz
beta 2011.04.19 22:49
Diffstat (limited to 'scripts/context/stubs/mswin/mtxrun.lua')
-rw-r--r--scripts/context/stubs/mswin/mtxrun.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/context/stubs/mswin/mtxrun.lua b/scripts/context/stubs/mswin/mtxrun.lua
index 72f105d07..a72c56251 100644
--- a/scripts/context/stubs/mswin/mtxrun.lua
+++ b/scripts/context/stubs/mswin/mtxrun.lua
@@ -1792,6 +1792,12 @@ local function readnumber(f,n,m)
elseif n == 12 then
local a, b, c = readnumber(f,4), readnumber(f,4), readnumber(f,4)
return 256*256 * a + 256 * b + c
+ elseif n == -2 then
+ local b, a = byte(f:read(2),1,2)
+ return 256*a + b
+ elseif n == -4 then
+ local d, c, b, a = byte(f:read(4),1,4)
+ return 256*256*256 * a + 256*256 * b + 256*c + d
else
return 0
end