libretro: Fix alignment and indents

This commit is contained in:
retro-wertz 2018-05-26 10:32:19 +08:00
parent 50d02364b2
commit d31d8781fb

View File

@ -1153,7 +1153,7 @@ void CPUSoftwareInterrupt()
void CPUSoftwareInterrupt(int comment)
{
static bool disableMessage = false;
static bool disableMessage = true;
if(armState) comment >>= 16;
if(comment == 0xfa) {
return;
@ -2551,7 +2551,7 @@ static bool CPUInit(const std::string bios_fn)
useBios = true;
}
else
log_cb(RETRO_LOG_WARN, "Invalid BIOS file size");
log_cb(RETRO_LOG_WARN, "Invalid BIOS file size.\n");
bios_fp.Close();
}
else
@ -2934,7 +2934,6 @@ static void CPULoop(EmulateSpecStruct* espec, int ticks)
soundTS += clockTicks;
lcdTicks -= clockTicks;
if(lcdTicks <= 0) {
if(DISPSTAT & 1) { // V-BLANK
// if in V-Blank mode, keep computing...
@ -2970,8 +2969,7 @@ static void CPULoop(EmulateSpecStruct* espec, int ticks)
lcdTicks += 1008;
DISPSTAT &= 0xFFFD;
if(VCOUNT == 160)
{
if(VCOUNT == 160) {
//ticks = 0;
//puts("VBlank");
uint32 joy = padbufblah;
@ -2998,7 +2996,6 @@ static void CPULoop(EmulateSpecStruct* espec, int ticks)
}
}
DISPSTAT |= 1;
DISPSTAT &= 0xFFFD;
UPDATE_REG(0x04, DISPSTAT);
@ -3013,15 +3010,13 @@ static void CPULoop(EmulateSpecStruct* espec, int ticks)
CPUCompareVCOUNT();
} else {
if(!HelloSkipper)
{
if(!HelloSkipper) {
//printf("RL: %d\n", VCOUNT);
const uint32 *src = lineMix;
(*renderLine)();
if(surface->format.bpp == 32)
{
if(surface->format.bpp == 32) {
const uint32* cm = systemColorMap->v32;
uint32 *dest = surface->pixels + VCOUNT * surface->pitch32;
@ -3034,9 +3029,7 @@ static void CPULoop(EmulateSpecStruct* espec, int ticks)
dest++;
src++;
}
}
else
{
} else {
const uint16* cm = systemColorMap->v16;
uint16* dest = surface->pixels16 + VCOUNT * surface->pitchinpix;
@ -3057,8 +3050,7 @@ static void CPULoop(EmulateSpecStruct* espec, int ticks)
IF |= 2;
UPDATE_REG(0x202, IF);
}
if(VCOUNT == 159)
{
if(VCOUNT == 159) {
frameready = 1;
cpuBreakLoop = 1;
}