mirror of
https://github.com/libretro/beetle-pce-fast-libretro.git
synced 2024-11-23 07:50:03 +00:00
Take out asserts
This commit is contained in:
parent
7a00a0fe20
commit
05b5591b67
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
#ifndef __MDFN_TYPES
|
||||
#define __MDFN_TYPES
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdint.h>
|
||||
#include <retro_inline.h>
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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"))
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user