Main folder Directory

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
link
Posts: 61
Joined: Wed Oct 19, 2005 6:17 am

Main folder Directory

Post by link »

Can you go all the way back into the PSP's MS within your game? I have been snooping around but nothing seems to allow me to go back out of the game folder to enter the area of lets say Pictures. Is there a way to do this?
User avatar
JoshDB
Posts: 87
Joined: Wed Oct 05, 2005 3:54 am

Post by JoshDB »

system.setcurrentdirectory("ms0:/")

??

I don't really know if this is the correct usage, though...
link
Posts: 61
Joined: Wed Oct 19, 2005 6:17 am

Post by link »

I tried that but kept getting errors.
youresam
Posts: 87
Joined: Sun Nov 06, 2005 1:43 am

Post by youresam »

Lowser has the ability to do this by pressing 'X' to go to the parent dir.

If you want to set the directory within your program, I believe its:
System.currentDirectory(directory)

Check in the functions.txt, if its not there, look in the Lowser source code.
BTW, you can access:
ms0:/
fatms:/ (I think thats what its called....)
flash0:/
flash1:/


And Shine, if your reading this, could you answer me a question?
Would it be possible to make a bricking program out of luaplayer?
All you would do is write to a system file in flash0:!
However, I don't know if you protected writing to the flash...and im surely not going to test it.
If you havent protected flash access, then writing should be possible.
I noticed that the UMD drive is not accessable.

In other words, you should protect flash access, and if you havent, flash writing.
Dark Killer
Posts: 32
Joined: Tue Jan 25, 2005 3:10 am

Post by Dark Killer »

LuaPlayer can only read from the flash memory, it can't right to it.
Shine
Posts: 728
Joined: Fri Dec 03, 2004 12:10 pm
Location: Germany

Post by Shine »

Dark Killer wrote:LuaPlayer can only read from the flash memory, it can't right to it.
That's not quite correct, because in theory a Lua script could write to the EBOOT.PBP and then after restarting Lua Player, the program could do everything. For a protection, the physicsfs system should be implemented, because then it is easy to restrict write access.
Zenurb
Posts: 106
Joined: Fri Sep 30, 2005 8:33 am
Location: United Kingdom
Contact:

Post by Zenurb »

Shine wrote:
Dark Killer wrote:LuaPlayer can only read from the flash memory, it can't right to it.
That's not quite correct, because in theory a Lua script could write to the EBOOT.PBP and then after restarting Lua Player, the program could do everything. For a protection, the physicsfs system should be implemented, because then it is easy to restrict write access.
I doubt posting security issues and "how to fuck up your/other people's psp 101" theory in a forum is a really good idea Shine =)
Proud Dvorak User
US 1.5 PSP (Original)
Shine
Posts: 728
Joined: Fri Dec 03, 2004 12:10 pm
Location: Germany

Post by Shine »

Zenurb wrote:I doubt posting security issues and "how to fuck up your/other people's psp 101" theory in a forum is a really good idea Shine =)
I don't like security through obsurity, it is better to state clearly security issues and then solve it. And it might help to prevent bricking a PSP, because now someone can search for, maybe dangerous, write commands in scripts, before starting an unknown script.
Post Reply