| View previous topic :: View next topic |
| Author |
Message |
liquid8d
Joined: 30 Jun 2005 Posts: 66
|
Posted: Sat Jul 30, 2005 5:40 pm Post subject: Current directory without main args? |
|
|
Is there a way to find the current directory at startup without using the main arguments, maybe retrieving the full path of the loaded file?
LiQuiD8d |
|
| Back to top |
|
 |
ector
Joined: 12 May 2005 Posts: 195
|
|
| Back to top |
|
 |
Shine
Joined: 03 Dec 2004 Posts: 728 Location: Germany
|
Posted: Sat Jul 30, 2005 7:59 pm Post subject: |
|
|
| BTW: with the latest PSPSDK from svn the current directory is set to the one where the EBOOT.PBP is in at startup, so you can just write 'fopen("file", "r")' and it works, if "file" is in the same directory where EBOOT.PBP is. |
|
| Back to top |
|
 |
liquid8d
Joined: 30 Jun 2005 Posts: 66
|
Posted: Sat Jul 30, 2005 8:25 pm Post subject: |
|
|
mainly the only reason is i am using the launcher program for testing, and currently it doesn't work when arguments are set... good to know you can open a file with no path in the current directory though.. thanks.
LiQuiD8d |
|
| Back to top |
|
 |
cooleyandy
Joined: 02 Jul 2005 Posts: 41
|
Posted: Mon Aug 01, 2005 9:22 am Post subject: |
|
|
| ahhh, great. sceIoOpen works in current directory now. |
|
| Back to top |
|
 |
|