Page 1 of 1

PCinit causes black screen

Posted: March 2nd, 2020, 5:45 am
by Mills
Some time ago I made a little demo using psyq, now I wanted to test loading things from CD.

Cd functions (init, search etc) worked well, but I have to create an ISO every time I want to test. So I tried PCinit:

Code: Select all

int file,size;
char *filebuffer;
PCinit();
file = PCopen("\\model\\PTEX.TIM;1", 0, 0);
size = PClseek(file, 0, 2);
filebuffer = (char*) malloc (size);
PCread(file, filebuffer, size);
PCclose(file);
This is supposed to load a tim image from the model folder, relative to main.exe.

PCinit() alone just hangs the game, and I can only see a black screen. Do I have to include some library for it to work?

I forgot to say, I'm using windows 10 64, and ePSXe205

Thanks.

Re: PCinit causes black screen

Posted: March 2nd, 2020, 10:01 am
by Shadow
It won't work with ePSXe. You need to use real development hardware (DTL-H2000, CAETLA, CATFLAP, etc).

Re: PCinit causes black screen

Posted: March 2nd, 2020, 10:06 am
by Mills
Shadow wrote: March 2nd, 2020, 10:01 am It won't work with ePSXe. You need to use real development hardware (DTL-H2000, CAETLA, CATFLAP, etc).
Thanks, I guess creating an ISO every time I compile won't be too hard because it is a very small game.

Re: PCinit causes black screen

Posted: March 2nd, 2020, 10:15 am
by Shadow
For emulators, compiling an ISO every time is fine because it's extremely quick. If you're on a real PlayStation it's a nightmare because you need to waste and burn disc after disc so that's when PCinit(); comes in handy for quick data transfers to the PSX memory :)