mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-21 12:49:10 +00:00
Deprecate plFileUtils and parts of pnUtPath
This commit is contained in:
@ -112,14 +112,14 @@ class plRIFFHeader
|
||||
|
||||
//// Constructor/Destructor //////////////////////////////////////////////////
|
||||
|
||||
plFastWAV::plFastWAV( const char *path, plAudioCore::ChannelSelect whichChan ) : fFileHandle( nil )
|
||||
plFastWAV::plFastWAV( const plFileName &path, plAudioCore::ChannelSelect whichChan ) : fFileHandle( nil )
|
||||
{
|
||||
hsAssert( path != nil, "Invalid path specified in plFastWAV reader" );
|
||||
hsAssert(path.IsValid(), "Invalid path specified in plFastWAV reader");
|
||||
|
||||
strncpy( fFilename, path, sizeof( fFilename ) );
|
||||
fFilename = path;
|
||||
fWhichChannel = whichChan;
|
||||
|
||||
fFileHandle = fopen( path, "rb" );
|
||||
fFileHandle = plFileSystem::Open(path, "rb");
|
||||
if( fFileHandle != nil )
|
||||
{
|
||||
/// Read in our header and calc our start position
|
||||
@ -226,8 +226,8 @@ void plFastWAV::Open()
|
||||
{
|
||||
if(fFileHandle)
|
||||
return;
|
||||
|
||||
fFileHandle = fopen( fFilename, "rb" );
|
||||
|
||||
fFileHandle = plFileSystem::Open(fFilename, "rb");
|
||||
if(!fFileHandle)
|
||||
return;
|
||||
|
||||
|
Reference in New Issue
Block a user