mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
GBI: Replace _isDigit with isdigit
This commit is contained in:
parent
b5213567f4
commit
b3d0fc9113
11
src/GBI.cpp
11
src/GBI.cpp
|
@ -1,5 +1,6 @@
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#include <cctype>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -206,12 +207,6 @@ void GBIInfo::_makeCurrent(MicrocodeInfo * _pCurrent)
|
||||||
m_pCurrent = _pCurrent;
|
m_pCurrent = _pCurrent;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline
|
|
||||||
bool _isDigit(char _c)
|
|
||||||
{
|
|
||||||
return _c >= '0' && _c <= '9';
|
|
||||||
}
|
|
||||||
|
|
||||||
bool GBIInfo::_makeExistingMicrocodeCurrent(u32 uc_start, u32 uc_dstart, u32 uc_dsize)
|
bool GBIInfo::_makeExistingMicrocodeCurrent(u32 uc_start, u32 uc_dstart, u32 uc_dsize)
|
||||||
{
|
{
|
||||||
auto iter = std::find_if(m_list.begin(), m_list.end(), [=](const MicrocodeInfo& info) {
|
auto iter = std::find_if(m_list.begin(), m_list.end(), [=](const MicrocodeInfo& info) {
|
||||||
|
@ -287,7 +282,7 @@ void GBIInfo::loadMicrocode(u32 uc_start, u32 uc_dstart, u16 uc_dsize)
|
||||||
}
|
}
|
||||||
else if (strncmp( &uc_str[14], "L3D", 3 ) == 0) {
|
else if (strncmp( &uc_str[14], "L3D", 3 ) == 0) {
|
||||||
u32 t = 22;
|
u32 t = 22;
|
||||||
while (!_isDigit(uc_str[t]) && t++ < j);
|
while (!std::isdigit(uc_str[t]) && t++ < j);
|
||||||
if (uc_str[t] == '1')
|
if (uc_str[t] == '1')
|
||||||
type = L3DEX;
|
type = L3DEX;
|
||||||
else if (uc_str[t] == '2')
|
else if (uc_str[t] == '2')
|
||||||
|
@ -295,7 +290,7 @@ void GBIInfo::loadMicrocode(u32 uc_start, u32 uc_dstart, u16 uc_dsize)
|
||||||
}
|
}
|
||||||
else if (strncmp( &uc_str[14], "S2D", 3 ) == 0) {
|
else if (strncmp( &uc_str[14], "S2D", 3 ) == 0) {
|
||||||
u32 t = 20;
|
u32 t = 20;
|
||||||
while (!_isDigit(uc_str[t]) && t++ < j);
|
while (!std::isdigit(uc_str[t]) && t++ < j);
|
||||||
if (uc_str[t] == '1')
|
if (uc_str[t] == '1')
|
||||||
type = S2DEX;
|
type = S2DEX;
|
||||||
else if (uc_str[t] == '2')
|
else if (uc_str[t] == '2')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user