MC madness

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

Moderators: cheriff, Herben

Post Reply
tjd
Posts: 23
Joined: Thu May 27, 2004 1:54 am
Location: Austin, TX
Contact:

MC madness

Post by tjd »

Is it just me, or do others get wierd results sometimes when reading (::read, ::fioRead etc.) from files on a MC. The opens always seem to work, but some files just return 0 bytes on a read (although the directory has the correct length).

I'm using MCMAN if that makes any difference...
pixel
Posts: 791
Joined: Fri Jan 30, 2004 11:43 pm

Post by pixel »

Maybe you should try XMCMAN. I noticed a few differences between the two, which are quite significant. For example, one can open files using MCMAN which filename contains "\", whereas you can't using XMCMAN.
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.
User avatar
Drakonite
Site Admin
Posts: 990
Joined: Sat Jan 17, 2004 1:30 am
Contact:

Post by Drakonite »

I haven't really noticed it so much, but supposedly fio is a bit flakey. Have you tried using MCOpen, etc. ?
Shoot Pixels Not People!
Makeshift Development
tjd
Posts: 23
Joined: Thu May 27, 2004 1:54 am
Location: Austin, TX
Contact:

Post by tjd »

Haven't used mcopen in this instance-- can't easily because of the nature of the code (higher layers don't know where the file may reside so they just issue an open...).

As for XMCMAN, where does one get one (the IRXs I mean).
KaylaKaze
Posts: 75
Joined: Wed May 05, 2004 3:25 pm
Location: NC, USA
Contact:

Post by KaylaKaze »

personally, I like fio better because for some reason, when I have to write a few files consecutively, when I had a routine that used libmc the first file in the group was never closed, even though all necessary mcclose and mc sync calls were made. At least I think that was the problem. It was undeleteable until after reboot and had 0 filesize.
User avatar
Drakonite
Site Admin
Posts: 990
Joined: Sat Jan 17, 2004 1:30 am
Contact:

Post by Drakonite »

tjd wrote: As for XMCMAN, where does one get one (the IRXs I mean).
SifLoadModule("rom0:XMCMAN", 0, NULL);
Shoot Pixels Not People!
Makeshift Development
Post Reply