mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-26 19:14:15 +01:00
added FreeBSD support
This commit is contained in:
parent
99d8e12207
commit
7a7b352793
@ -150,9 +150,11 @@ CdStreamInit(int32 numChannels)
|
|||||||
ASSERT(0);
|
ASSERT(0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#ifdef __linux__
|
||||||
_gdwCdStreamFlags = O_RDONLY | O_NOATIME;
|
_gdwCdStreamFlags = O_RDONLY | O_NOATIME;
|
||||||
|
#elif __FreeBSD__
|
||||||
|
_gdwCdStreamFlags = O_RDONLY;
|
||||||
|
#endif
|
||||||
// People say it's slower
|
// People say it's slower
|
||||||
/*
|
/*
|
||||||
if ( fsInfo.f_bsize <= CDSTREAM_SECTOR_SIZE )
|
if ( fsInfo.f_bsize <= CDSTREAM_SECTOR_SIZE )
|
||||||
@ -400,8 +402,11 @@ void *CdStreamThread(void *param)
|
|||||||
if (gCdStreamThreadStatus == 0){
|
if (gCdStreamThreadStatus == 0){
|
||||||
gCdStreamThreadStatus = 1;
|
gCdStreamThreadStatus = 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __linux__
|
||||||
pid_t tid = syscall(SYS_gettid);
|
pid_t tid = syscall(SYS_gettid);
|
||||||
int ret = setpriority(PRIO_PROCESS, tid, getpriority(PRIO_PROCESS, getpid()) + 1);
|
int ret = setpriority(PRIO_PROCESS, tid, getpriority(PRIO_PROCESS, getpid()) + 1);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// spurious wakeup or we sent interrupt signal for flushing
|
// spurious wakeup or we sent interrupt signal for flushing
|
||||||
|
Loading…
Reference in New Issue
Block a user