fioRemove

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
radad
Posts: 246
Joined: Wed May 19, 2004 4:54 pm
Location: Melbourne, Australia

fioRemove

Post by radad »

When I call fioRemove to remove a file it outputs :

remove file mc0:/BEDATA-SYSTEM/KL.DAT
mkdir name mc0:/BEDATA-SYSTEM/KL.DAT

I am not sure where these are being output from.

Anyway why is it creating a directory after it has deleted the file?
pixel
Posts: 791
Joined: Fri Jan 30, 2004 11:43 pm

Post by pixel »

It's a well known bug in sony's RPC server for fio* functions... They forgot a break in the switch between fioRemove and fioMkdir... So, you have to fioRemove then fioRmdir.
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
radad
Posts: 246
Joined: Wed May 19, 2004 4:54 pm
Location: Melbourne, Australia

Post by radad »

I suspected that would have been the cause. I guess it can't be fixed then.
Thanks for the info.
MrHTFord
Posts: 35
Joined: Tue Feb 10, 2004 2:04 am
Location: England

Post by MrHTFord »

Pixel gave you an effective work-around.
User avatar
Drakonite
Site Admin
Posts: 990
Joined: Sat Jan 17, 2004 1:30 am
Contact:

Post by Drakonite »

Is there any reason we haven't made ps2sdk work around this automatically?
Shoot Pixels Not People!
Makeshift Development
pixel
Posts: 791
Joined: Fri Jan 30, 2004 11:43 pm

Post by pixel »

Several answers to that:

-) fioRemove is only a rpc call, which would work with different versions of the same irx, bugged, and non bugged. That's not up to that layer to have that fix

-) the correct layer that should have that workaround would be libc, with a rmdir() function (which would make up the path with the current directory, etc)

-) fileXio removes that bug.
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
Post Reply