Whitespace cleanup.

This commit is contained in:
Brandon Wright 2018-04-27 15:56:26 -05:00
parent 21a4fe3163
commit 5b2a754fb4

View File

@ -196,9 +196,9 @@
static inline uint8 S9xGetByteFree (uint32 Address) static inline uint8 S9xGetByteFree (uint32 Address)
{ {
int block = (Address & 0xffffff) >> MEMMAP_SHIFT; int block = (Address & 0xffffff) >> MEMMAP_SHIFT;
uint8 *GetAddress = Memory.Map[block]; uint8 *GetAddress = Memory.Map[block];
uint8 byte; uint8 byte;
if (GetAddress >= (uint8 *) CMemory::MAP_LAST) if (GetAddress >= (uint8 *) CMemory::MAP_LAST)
{ {
@ -282,8 +282,8 @@ static inline uint8 S9xGetByteFree (uint32 Address)
static inline void S9xSetByteFree (uint8 Byte, uint32 Address) static inline void S9xSetByteFree (uint8 Byte, uint32 Address)
{ {
int block = (Address & 0xffffff) >> MEMMAP_SHIFT; int block = (Address & 0xffffff) >> MEMMAP_SHIFT;
uint8 *SetAddress = Memory.Map[block]; uint8 *SetAddress = Memory.Map[block];
if (SetAddress >= (uint8 *) CMemory::MAP_LAST) if (SetAddress >= (uint8 *) CMemory::MAP_LAST)
{ {
@ -642,46 +642,46 @@ char *S9xCheatToText (SCheat *c)
return text; return text;
} }
char *S9xCheatGroupToText(SCheatGroup *g) char *S9xCheatGroupToText (SCheatGroup *g)
{ {
std::string text = ""; std::string text = "";
unsigned int i; unsigned int i;
if (g->c.size() == 0) if (g->c.size () == 0)
return NULL; return NULL;
for (i = 0; i < g->c.size(); i++) for (i = 0; i < g->c.size (); i++)
{ {
char *tmp = S9xCheatToText(&g->c[i]); char *tmp = S9xCheatToText (&g->c[i]);
if (i != 0) if (i != 0)
text += '+'; text += '+';
text += tmp; text += tmp;
delete[] tmp; delete[] tmp;
} }
return strdup(text.c_str()); return strdup (text.c_str ());
} }
char *S9xCheatValidate(char *code_string) char *S9xCheatValidate (char *code_string)
{ {
SCheatGroup g = S9xCreateCheatGroup ("temp", code_string); SCheatGroup g = S9xCreateCheatGroup ("temp", code_string);
delete[] g.name; delete[] g.name;
if (g.c.size() > 0) if (g.c.size() > 0)
{ {
return S9xCheatGroupToText(&g); return S9xCheatGroupToText (&g);
} }
return NULL; return NULL;
} }
char *S9xCheatGroupToText (uint32 num) char *S9xCheatGroupToText (uint32 num)
{ {
if (num >= Cheat.g.size()) if (num >= Cheat.g.size ())
return NULL; return NULL;
return S9xCheatGroupToText(&Cheat.g[num]); return S9xCheatGroupToText (&Cheat.g[num]);
} }
void S9xUpdateCheatsInMemory (void) void S9xUpdateCheatsInMemory (void)