made sha256.lua work with ocemu
This commit is contained in:
parent
ecba456ef6
commit
af2ce42583
@ -8,14 +8,17 @@
|
|||||||
-- Data card support added by https://github.com/SuPeRMiNoR2
|
-- Data card support added by https://github.com/SuPeRMiNoR2
|
||||||
_G.sha = {}
|
_G.sha = {}
|
||||||
if component then
|
if component then
|
||||||
if component.data then
|
if component.data and not component.ocemu then
|
||||||
datac = component.data
|
shamode = "hardware"
|
||||||
function sha.sha256(data)
|
end
|
||||||
local d=component.data.sha256(data)
|
end
|
||||||
return (d:gsub('.',function(c)
|
if shamode == "hardware" then
|
||||||
return string.format("%02x", string.byte(c))
|
datac = component.data
|
||||||
end))
|
function sha.sha256(data)
|
||||||
end
|
local d=component.data.sha256(data)
|
||||||
|
return (d:gsub('.',function(c)
|
||||||
|
return string.format("%02x", string.byte(c))
|
||||||
|
end))
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
local MOD = 2^32
|
local MOD = 2^32
|
||||||
|
Loading…
Reference in New Issue
Block a user