mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-11-22 05:22:32 +01:00
Removed stdext from code
This commit is contained in:
parent
7787d92dc7
commit
f521cba4dd
@ -1,7 +1,6 @@
|
|||||||
#include "StdAfxSA.h"
|
#include "StdAfxSA.h"
|
||||||
#include "FLACDecoderSA.h"
|
#include "FLACDecoderSA.h"
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <iterator>
|
|
||||||
|
|
||||||
FLAC__StreamDecoderReadStatus CAEFLACDecoder::read_cb(const FLAC__StreamDecoder* decoder, FLAC__byte buffer[], size_t* bytes, void* client_data)
|
FLAC__StreamDecoderReadStatus CAEFLACDecoder::read_cb(const FLAC__StreamDecoder* decoder, FLAC__byte buffer[], size_t* bytes, void* client_data)
|
||||||
{
|
{
|
||||||
@ -44,7 +43,7 @@ FLAC__StreamDecoderWriteStatus CAEFLACDecoder::write_cb(const FLAC__StreamDecode
|
|||||||
pClientData->m_maxBlockSize = pClientData->m_curBlockSize;
|
pClientData->m_maxBlockSize = pClientData->m_curBlockSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto it = std::copy_n( buffer[0], pClientData->m_curBlockSize, stdext::make_checked_array_iterator(pClientData->m_buffer, pClientData->m_curBlockSize * processedChannels) );
|
auto it = std::copy_n( buffer[0], pClientData->m_curBlockSize, pClientData->m_buffer );
|
||||||
if ( processedChannels > 1 )
|
if ( processedChannels > 1 )
|
||||||
{
|
{
|
||||||
std::copy_n( buffer[1], pClientData->m_curBlockSize, it );
|
std::copy_n( buffer[1], pClientData->m_curBlockSize, it );
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
#include "StdAfxSA.h"
|
#include "StdAfxSA.h"
|
||||||
#include "ModelInfoSA.h"
|
#include "ModelInfoSA.h"
|
||||||
|
|
||||||
#include <iterator>
|
|
||||||
|
|
||||||
static void* BaseModelInfoShutdown = AddressByVersion<void*>(0x4C4D50, 0x4C4DD0, 0x4CF590);
|
static void* BaseModelInfoShutdown = AddressByVersion<void*>(0x4C4D50, 0x4C4DD0, 0x4CF590);
|
||||||
WRAPPER void CBaseModelInfo::Shutdown() { VARJMP(BaseModelInfoShutdown); }
|
WRAPPER void CBaseModelInfo::Shutdown() { VARJMP(BaseModelInfoShutdown); }
|
||||||
|
|
||||||
@ -80,7 +78,7 @@ void CVehicleModelInfo::FindEditableMaterialList()
|
|||||||
if ( m_numDirtMaterials > IN_PLACE_BUFFER_DIRT_SIZE )
|
if ( m_numDirtMaterials > IN_PLACE_BUFFER_DIRT_SIZE )
|
||||||
{
|
{
|
||||||
m_dirtMaterials = new RpMaterial* [m_numDirtMaterials];
|
m_dirtMaterials = new RpMaterial* [m_numDirtMaterials];
|
||||||
std::copy( editableMaterials.begin(), editableMaterials.end(), stdext::make_checked_array_iterator(m_dirtMaterials, m_numDirtMaterials) );
|
std::copy( editableMaterials.begin(), editableMaterials.end(), m_dirtMaterials );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
#define __POOLS
|
#define __POOLS
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <iterator>
|
|
||||||
|
|
||||||
template <class T, class U = T>
|
template <class T, class U = T>
|
||||||
class CPool
|
class CPool
|
||||||
|
Loading…
Reference in New Issue
Block a user