Skip to content

Commit

Permalink
Merge pull request #1648 from grumpycoders/chores-code-format
Browse files Browse the repository at this point in the history
[Chores] Format code
  • Loading branch information
nicolasnoble committed May 12, 2024
2 parents ba75605 + 5d8ad94 commit 62ee5c9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/core/pad.cc
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ void PadsImpl::reset() {
}

void PadsImpl::Pad::reset() {
//m_analogMode = false;
// m_analogMode = false;
m_configMode = false;
m_cmd = magic_enum::enum_integer(PadCommands::Idle);
m_bufferLen = 0;
Expand Down
6 changes: 4 additions & 2 deletions src/mips/openbios/cdrom/cdrom.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ void initializeCDRomHandlersAndEvents() {

static void initializeSoftwareAndHardware() {
initializeCDRomHandlersAndEvents();
while (!syscall_cdromInnerInit());
while (!syscall_cdromInnerInit())
;
}

void initCDRom() {
Expand All @@ -77,7 +78,8 @@ int cdromBlockGetStatus() {
uint8_t status;

int cyclesToWait = 9;
while (!syscall_cdromGetStatus(&status) && (--cyclesToWait > 0));
while (!syscall_cdromGetStatus(&status) && (--cyclesToWait > 0))
;
if (cyclesToWait < 1) {
syscall_exception(0x44, 0x1f);
return -1;
Expand Down
2 changes: 1 addition & 1 deletion src/mips/openbios/tty/tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static const struct Device s_dummyDevice = {
.flags = 1,
.blockSize = 1,
.desc = "CONSOLE",
.init = (void (*)()) psxdummy,
.init = (void (*)())psxdummy,
.open = psxdummy,
.action = psxdummy,
.close = psxdummy,
Expand Down

0 comments on commit 62ee5c9

Please sign in to comment.