doubt with /pc/
-
- Insane DCEmu
- Posts: 147
- https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
- Joined: Thu Dec 30, 2004 7:12 pm
- Has thanked: 0
- Been thanked: 0
- Contact:
doubt with /pc/
When you try to open a file with /pc/, what pc dir are you really using? C:? the elf dir, dc-tool-ip dir, or what?
Check the BioGB emulator any help me get it much better!!
http://www.geocities.com/instructivus
http://www.geocities.com/instructivus
-
- DCEmu Fast Newbie
- Posts: 21
- Joined: Fri Mar 10, 2006 7:57 am
- Has thanked: 0
- Been thanked: 0
-
- Insane DCEmu
- Posts: 147
- Joined: Thu Dec 30, 2004 7:12 pm
- Has thanked: 0
- Been thanked: 0
- Contact:
Problems with the /pc/ thing.
I am using kubuntu linux. I compiled all the dc toolchain and tools(sh, arm, kos, dc-tool-ip).
the problem is that i dont know where does /pc/ directs the program to.
supposdly it is to /(root).
but it is not working like that.
How can i know where is /pc/ taking me?
PD. Using dc-tool-ip 1.0.3 in linux and 1.0.4 on DC.
I am using kubuntu linux. I compiled all the dc toolchain and tools(sh, arm, kos, dc-tool-ip).
the problem is that i dont know where does /pc/ directs the program to.
supposdly it is to /(root).
but it is not working like that.
How can i know where is /pc/ taking me?
PD. Using dc-tool-ip 1.0.3 in linux and 1.0.4 on DC.
Check the BioGB emulator any help me get it much better!!
http://www.geocities.com/instructivus
http://www.geocities.com/instructivus
-
- Insane DCEmu
- Posts: 147
- Joined: Thu Dec 30, 2004 7:12 pm
- Has thanked: 0
- Been thanked: 0
- Contact:
Ok, i figured something weird.
/pc/ redirects me to the root (/).
What doesn't work is fopen.
Why isn't printf neither fopen working??
This is a KOS problem, isnt it? Supposdly KOs controls the standar lib.
Whats wrong?
Was my compilation that bad?
/pc/ redirects me to the root (/).
What doesn't work is fopen.
Why isn't printf neither fopen working??
This is a KOS problem, isnt it? Supposdly KOs controls the standar lib.
Whats wrong?
Was my compilation that bad?
Check the BioGB emulator any help me get it much better!!
http://www.geocities.com/instructivus
http://www.geocities.com/instructivus
-
- Insane DCEmu
- Posts: 147
- Joined: Thu Dec 30, 2004 7:12 pm
- Has thanked: 0
- Been thanked: 0
- Contact:
The file i tried to open is in the home directory, so it is suppose it is not protected.
i tried somethin likes this:
file=fopen("/pc/home/dospro/file", "rb");
And this doesnt open the file, even though the file is there.
What else can ia do?
i tried somethin likes this:
file=fopen("/pc/home/dospro/file", "rb");
And this doesnt open the file, even though the file is there.
What else can ia do?
Check the BioGB emulator any help me get it much better!!
http://www.geocities.com/instructivus
http://www.geocities.com/instructivus
-
- DCEmu User with No Life
- Posts: 3641
- Joined: Sat Feb 16, 2002 1:55 pm
- Has thanked: 0
- Been thanked: 0
You can use strace to spy on system calls made by a Linux program, which includes file operations.
Are you sure you've declared the file descriptor correctly?
Are you sure you've declared the file descriptor correctly?
"You know, I have a great, wonderful, really original method of teaching antitrust law, and it kept 80 percent of the students awake. They learned things. It was fabulous." -- Justice Stephen Breyer
-
- Insane DCEmu
- Posts: 147
- Joined: Thu Dec 30, 2004 7:12 pm
- Has thanked: 0
- Been thanked: 0
- Contact:
Well, still a stranger thing.
/cd/file doesnt work either.
It doesnt even read the cd inserted.
hell..
why is this??
/cd/file doesnt work either.
It doesnt even read the cd inserted.
hell..
why is this??
Check the BioGB emulator any help me get it much better!!
http://www.geocities.com/instructivus
http://www.geocities.com/instructivus
-
- Insane DCEmu
- Posts: 147
- Joined: Thu Dec 30, 2004 7:12 pm
- Has thanked: 0
- Been thanked: 0
- Contact:
Well. is there an alternative to fopen?
Check the BioGB emulator any help me get it much better!!
http://www.geocities.com/instructivus
http://www.geocities.com/instructivus