Skip to content

Commit 0a5bdb5

Browse files
author
Niko
committed
PCDRV HOWL works on DuckStation
1 parent 3b6482e commit 0a5bdb5

File tree

3 files changed

+6
-34
lines changed

3 files changed

+6
-34
lines changed

decompile/General/HOWL/h23_Bank_AssignSpuAddrs.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,7 @@ int DECOMP_Bank_AssignSpuAddrs()
44
{
55
int i;
66
int ret;
7-
8-
// Make PS1 PCDRV boot,
9-
// will mean that sound does NOT load
10-
#ifdef USE_PCDRV
11-
#ifndef REBUILD_PC
12-
return 1;
13-
#endif
14-
#endif
15-
7+
168
// if Stage 4: Complete
179
if(sdata->bankLoadStage == 4)
1810
{

decompile/General/LOAD/LOAD_26_HowlSectorChainStart.c

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,6 @@ int DECOMP_LOAD_HowlSectorChainStart(CdlFILE* cdlFileHWL, void* ptrDestination,
44
{
55
CdlLOC loc;
66

7-
// Make PS1 PCDRV boot,
8-
// will mean that sound does NOT load
9-
#ifdef USE_PCDRV
10-
#ifndef REBUILD_PC
11-
return 1;
12-
#endif
13-
#endif
14-
157
if(numSector == 0)
168
return 1;
179

@@ -38,17 +30,13 @@ int DECOMP_LOAD_HowlSectorChainStart(CdlFILE* cdlFileHWL, void* ptrDestination,
3830

3931
sdata->howlChainState = 1;
4032

41-
#ifndef REBUILD_PC
42-
43-
CdReadCallback(DECOMP_LOAD_HowlCallback);
44-
return (CdRead(numSector, ptrDestination, 0x80) != 0);
45-
46-
#else
47-
33+
#ifdef USE_PCDRV
4834
CdRead(numSector, ptrDestination, 0x80);
4935
CdReadSync(0, 0);
5036
DECOMP_LOAD_HowlCallback(CdlComplete, NULL);
51-
52-
#endif
5337
return 1;
38+
#endif
39+
40+
CdReadCallback(DECOMP_LOAD_HowlCallback);
41+
return (CdRead(numSector, ptrDestination, 0x80) != 0);
5442
}

decompile/General/LOAD/LOAD_27_HowlSectorChainEnd.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@ int DECOMP_LOAD_HowlSectorChainEnd()
66
int howlChainState = sdata->howlChainState;
77
howlChainParams = sdata->howlChainParams;
88

9-
// Make PS1 PCDRV boot,
10-
// will mean that sound does NOT load
11-
#ifdef USE_PCDRV
12-
#ifndef REBUILD_PC
13-
return 1;
14-
#endif
15-
#endif
16-
179
if(howlChainState == -1)
1810
{
1911
DECOMP_LOAD_HowlSectorChainStart(

0 commit comments

Comments
 (0)