Take out asserts

This commit is contained in:
twinaphex 2019-07-30 03:07:53 +02:00
parent 7a00a0fe20
commit 05b5591b67
6 changed files with 0 additions and 13 deletions

View File

@ -192,8 +192,6 @@ bool CDAccess_CHD::Load(const std::string &path, bool image_memcache)
Tracks[x].index[i] = INT32_MAX;
else
Tracks[x].index[i] = Tracks[x].LBA + (Tracks[x].index[i] - base);
assert(Tracks[x].index[i] >= 0);
}
}

View File

@ -968,8 +968,6 @@ bool CDAccess_Image::ImageOpen(const std::string& path, bool image_memcache)
Tracks[x].index[i] = INT32_MAX;
else
Tracks[x].index[i] = Tracks[x].LBA + (Tracks[x].index[i] - base);
assert(Tracks[x].index[i] >= 0);
}
}

View File

@ -1,7 +1,6 @@
#ifndef __MDFN_TYPES
#define __MDFN_TYPES
#include <assert.h>
#include <stdint.h>
#include <retro_inline.h>

View File

@ -38,8 +38,6 @@ class OKIADPCM_Decoder
OKIADPCM_Decoder()
{
assert(CHIP_TYPE < OKIADPCM_COUNT);
CurSample = 0x0800;
StepSizeIndex = 0;
@ -56,7 +54,6 @@ class OKIADPCM_Decoder
INLINE void SetSample(uint16 new_sample)
{
assert(new_sample <= 0xFFF);
CurSample = new_sample;
}
@ -67,7 +64,6 @@ class OKIADPCM_Decoder
INLINE void SetSSI(uint8 new_ssi)
{
assert(new_ssi <= 48);
StepSizeIndex = new_ssi;
}

View File

@ -53,8 +53,6 @@ void PCEINPUT_Init(void)
void PCEINPUT_SetInput(int port, const char *type, void *ptr)
{
assert(port < 5);
if(!strcasecmp(type, "gamepad"))
InputTypes[port] = 1;
else if(!strcasecmp(type, "mouse"))

View File

@ -250,7 +250,6 @@ static SFORMAT *FindSF(const char *name, SFORMAT *sf)
}
else
{
assert(sf->name);
if (!strcmp(sf->name, name))
return sf;
}
@ -368,7 +367,6 @@ static int ReadStateChunk(StateMem *st, SFORMAT *sf, int size)
}
} // while(...)
assert(st->loc == (temp + size));
return 1;
}