Skip to content

Commit a2f24d2

Browse files
committed
Some minimal changes
Added more corruption functions. Translated all to english. Remove non needed comments.
1 parent a3e8ba1 commit a2f24d2

File tree

2 files changed

+22
-11
lines changed

2 files changed

+22
-11
lines changed

plugins/corruptella/corruptella.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
"KEYCODE_E": "fuckROM(0)",
77
"KEYCODE_R": "fuckSound(0)",
88
"KEYCODE_T": "fuckMusic(0)",
9-
"KEYCODE_Y": "fuckVideo(0)"
9+
"KEYCODE_Y": "fuckVideo(0)",
10+
"KEYCODE_Z": "autofuck(8,8)",
11+
"KEYCODE_X": "autofuckdevices(8,8)",
12+
"KEYCODE_C": "autofuckregions(8,8)",
13+
"KEYCODE_V": "autofuckshares(8,8)",
14+
"KEYCODE_A": "minifuck(8,64)"
1015
}
1116
}

plugins/corruptella/init.lua

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-- license:BSD-3-Clause
2-
-- copyright-holders:Carl
2+
-- copyright-holders:ViTi95
33
local exports = {}
44
exports.name = "corruptella"
55
exports.version = "0.0.1"
@@ -154,12 +154,12 @@ return ln.linenoise('\x1b[1;36m[Corruptella]\x1b[0m> ')
154154
function getInfo()
155155
print("\nDriver: " .. manager:machine():system().name .. "(" .. manager:machine():system().parent .. ")")
156156

157-
print ("\nPantallas:\n")
157+
print ("\nScreens:\n")
158158
for k,v in pairs(manager:machine().screens) do
159159
print (k .. " (" .. v:width() .. "x" .. v:height() .. "@" .. v:refresh() .. ")")
160160
end
161161

162-
print("\nDispositivos:\n")
162+
print("\nDevices:\n")
163163
for k,v in pairs(manager:machine().devices) do
164164
print(v:name() .. " (" .. k .. ") ")
165165

@@ -187,13 +187,13 @@ return ln.linenoise('\x1b[1;36m[Corruptella]\x1b[0m> ')
187187
end
188188
end
189189

190-
print("\nRegiones de memoria:\n")
190+
print("\nMemory regions:\n")
191191

192192
for k,v in pairs(manager:machine():memory().regions) do
193193
print(k .. ", " .. v.size)
194194
end
195195

196-
print("\nMemoria compartida:\n")
196+
print("\nShared memory:\n")
197197

198198
for k,v in pairs(manager:machine():memory().shares) do
199199
print(k .. ", " .. v.size)
@@ -266,12 +266,8 @@ return ln.linenoise('\x1b[1;36m[Corruptella]\x1b[0m> ')
266266
count = count + 1
267267
end
268268

269-
--print(count)
270-
271269
local rndFuck = math.floor(math.random(1, count))
272270

273-
--print(rndFuck)
274-
275271
count = 0
276272

277273
for k,v in pairs(manager:machine().devices) do
@@ -306,6 +302,12 @@ return ln.linenoise('\x1b[1;36m[Corruptella]\x1b[0m> ')
306302
end
307303

308304
function autofuck(bits, repetitions)
305+
autofuckdevices(bits, repetitions)
306+
autofuckregions(bits, repetitions)
307+
autofuckshares(bits, repetitions)
308+
end
309+
310+
function autofuckdevices(bits, repetitions)
309311
for k,v in pairs(manager:machine().devices) do
310312
if tablelength(v.spaces) > 0 then
311313
for i,j in pairs (v.spaces) do
@@ -316,12 +318,16 @@ return ln.linenoise('\x1b[1;36m[Corruptella]\x1b[0m> ')
316318
end
317319
end
318320
end
319-
321+
end
322+
323+
function autofuckregions(bits, repetitions)
320324
for k,v in pairs(manager:machine():memory().regions) do
321325
fuckMEM(k, bits, repetitions)
322326
print(k .. ", " .. v.size)
323327
end
328+
end
324329

330+
function autofuckshares(bits, repetitions)
325331
for k,v in pairs(manager:machine():memory().shares) do
326332
fuckSHA(k, bits, repetitions)
327333
print(k .. ", " .. v.size)

0 commit comments

Comments
 (0)