Skip to content
This repository has been archived by the owner on Oct 29, 2022. It is now read-only.

System.listCIA() causes a crash #24

Open
PabloMK7 opened this issue May 4, 2016 · 5 comments
Open

System.listCIA() causes a crash #24

PabloMK7 opened this issue May 4, 2016 · 5 comments
Labels

Comments

@PabloMK7
Copy link

PabloMK7 commented May 4, 2016

System.listCIA() causes a crash, the app exits and the 3DS restarts.

function checkntr()
local cias = System.listCIA()
local v
local installed = false
local updated = true
local count = 0
if (System.doesFileExist(System.currentDirectory().."ntr/ntr.cia")) then
updated = false
end
for _ in pairs(cias) do count = count + 1 end
for v = 1, count, 1 do
if (cias[v].unique_id == 0x00b00000) then
installed = true
break
else
installed = false
end
end
return installed, updated
end

This script was working correctly before, not on lastest release.

@Rinnegatamante
Copy link
Owner

Are you using a CIA version of the interpreter?

@PabloMK7
Copy link
Author

PabloMK7 commented May 4, 2016

Yep

@Rinnegatamante
Copy link
Owner

Rinnegatamante commented May 4, 2016

Tried right now with latest nightly build and it works fine. Something is wrong in the rest of your code. (Also you should properly ident code since it's really hard to read atm).

`y = System.listCIA()

while true do

Screen.refresh()

Screen.debugPrint(0,0,#y,Color.new(255,255,255),TOP_SCREEN)

Screen.waitVblankStart()

Screen.flip()

end`

@PabloMK7
Copy link
Author

PabloMK7 commented May 8, 2016

Created a blank lua with:
cias = System.listCIA() while true do if Controls.check(Controls.read(),KEY_HOME) or Controls.check(Controls.read(),KEY_POWER) then System.exit() end end
Still crashes.

@Rinnegatamante
Copy link
Owner

Looks like a problem in A9LH? Gonna do more tests and see what happens.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants