mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Reduce nesting depth some more
This commit is contained in:
@@ -263,8 +263,8 @@ static MbcType parseMBC(char const *name) {
|
|||||||
return MBC_BAD_RANGE;
|
return MBC_BAD_RANGE;
|
||||||
}
|
}
|
||||||
return static_cast<MbcType>(mbc);
|
return static_cast<MbcType>(mbc);
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
|
||||||
// Begin by reading the MBC type:
|
// Begin by reading the MBC type:
|
||||||
uint16_t mbc;
|
uint16_t mbc;
|
||||||
char const *ptr = name;
|
char const *ptr = name;
|
||||||
@@ -612,7 +612,6 @@ static MbcType parseMBC(char const *name) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return static_cast<MbcType>(mbc);
|
return static_cast<MbcType>(mbc);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static char const *mbcName(MbcType type) {
|
static char const *mbcName(MbcType type) {
|
||||||
|
|||||||
Reference in New Issue
Block a user