Skip to content

Commit

Permalink
PCDRV draws copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
Niko committed Feb 19, 2025
1 parent 4a4090b commit 764904e
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 16 deletions.
3 changes: 0 additions & 3 deletions decompile/General/LOAD/LOAD_15_ReadDirectory.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ void* DECOMP_LOAD_ReadDirectory(char* filename)
#endif

v1 = PCopen("BIGFILE.BIG", PCDRV_MODE_READ);
sdata->fd_bigfile = v1;

v1 = PCread(v1, bh, 0x4000);
printf("PCread: %d\n", v1);

#endif

Expand Down
5 changes: 1 addition & 4 deletions decompile/General/LOAD/LOAD_18_VramFileCallback.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
void DECOMP_LOAD_VramFileCallback(struct LoadQueueSlot* lqs)
{
int* vramBuf = lqs->ptrDestination;
printf("%s\n", __FUNCTION__);

if(vramBuf != 0)
{
Expand All @@ -16,8 +15,7 @@ void DECOMP_LOAD_VramFileCallback(struct LoadQueueSlot* lqs)
vh = (struct VramHeader*)&vramBuf[2];

while(size != 0)
{
printf("LoadImage\n");
{
LoadImage(&vh->rect, VRAMHEADER_GETPIXLES(vh));

vramBuf = (int*)vh;
Expand All @@ -30,7 +28,6 @@ void DECOMP_LOAD_VramFileCallback(struct LoadQueueSlot* lqs)
// if just one TIM
else
{
printf("LoadImage\n");
LoadImage(&vh->rect, VRAMHEADER_GETPIXLES(vh));
}
}
Expand Down
2 changes: 0 additions & 2 deletions decompile/General/LOAD/LOAD_20_ReadFileASyncCallback.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

void DECOMP_LOAD_ReadFileASyncCallback(CdlIntrResult result, uint8_t* unk)
{
printf("%s\n", __FUNCTION__);

CdReadCallback(0);

struct LoadQueueSlot* lqs = &data.currSlot;
Expand Down
5 changes: 1 addition & 4 deletions decompile/General/LOAD/LOAD_21_ReadFile.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,8 @@ void* DECOMP_LOAD_ReadFile(struct BigHeader* bigfile, u_int loadType, int subfil
#ifdef USE_PCDRV

register int v1 asm("v1");
printf("Read Index: %d, %d, %d\n", loadType, subfileIndex, eOffs);
v1 = PClseek(sdata->fd_bigfile, eOffs, PCDRV_SEEK_SET);
printf("PClseek: %d\n", v1);
v1 = PClseek(sdata->fd_bigfile, eOffs*0x800, PCDRV_SEEK_SET);
v1 = PCread(sdata->fd_bigfile, ptrDst, eSize);
printf("PCread: %d, %08x, %d\n", v1, ptrDst, eSize);

#else

Expand Down
1 change: 0 additions & 1 deletion decompile/General/LOAD/LOAD_44_TenStages.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ int DECOMP_LOAD_TenStages(struct GameTracker* gGT, int loadingStage, struct BigH
sdata->boolFirstBoot = 0;

#ifndef REBUILD_PC
printf("Copyright page\n");
// Load Intro TIM for Copyright Page from VRAM file
DECOMP_LOAD_VramFile(bigfile, 0x1fe, 0, &vramSize, 0xffffffff);
DECOMP_MainInit_VRAMDisplay();
Expand Down
2 changes: 0 additions & 2 deletions decompile/General/MAIN/MainMain.c
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,6 @@ void StateZero()

#ifndef FastBoot
#ifndef REBUILD_PC
printf("SCEA Presents\n");
// Load Intro TIM for "SCEA Presents" from VRAM file
DECOMP_LOAD_VramFile(sdata->ptrBigfile1, 0x1fd, 0, &vramSize, 0xffffffff);
DECOMP_MainInit_VRAMDisplay();
Expand Down Expand Up @@ -872,7 +871,6 @@ void StateZero()

DECOMP_DecalGlobal_Clear(gGT);

printf("Shared.vram\n");
// This loads UI textures (shared.vrm)
// This includes traffic lights, font, and more
// In nopsx VRAM debug viewer:
Expand Down

0 comments on commit 764904e

Please sign in to comment.