forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Main folder Directory

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
link



Joined: 19 Oct 2005
Posts: 61

PostPosted: Sat Dec 03, 2005 12:18 pm    Post subject: Main folder Directory Reply with quote

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?
Back to top
View user's profile Send private message
JoshDB



Joined: 05 Oct 2005
Posts: 87

PostPosted: Sun Dec 04, 2005 1:32 am    Post subject: Reply with quote

system.setcurrentdirectory("ms0:/")

??

I don't really know if this is the correct usage, though...
Back to top
View user's profile Send private message Send e-mail AIM Address
link



Joined: 19 Oct 2005
Posts: 61

PostPosted: Sun Dec 04, 2005 5:16 am    Post subject: Reply with quote

I tried that but kept getting errors.
Back to top
View user's profile Send private message
youresam



Joined: 06 Nov 2005
Posts: 87

PostPosted: Tue Dec 06, 2005 10:27 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message AIM Address
Dark Killer



Joined: 25 Jan 2005
Posts: 32

PostPosted: Tue Dec 06, 2005 10:47 am    Post subject: Reply with quote

LuaPlayer can only read from the flash memory, it can't right to it.
Back to top
View user's profile Send private message AIM Address
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Tue Dec 06, 2005 9:19 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Zenurb



Joined: 30 Sep 2005
Posts: 106
Location: United Kingdom

PostPosted: Wed Dec 07, 2005 2:52 am    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Wed Dec 07, 2005 3:13 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group