Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eliminate the magic constants in the switch statement in WII_IPC_HLE_Device_FileIO.cpp's Seek function. #109

Merged
merged 2 commits into from Mar 2, 2014

Conversation

lioncash
Copy link
Member

No description provided.

@@ -162,7 +163,7 @@ bool CWII_IPC_HLE_Device_FileIO::Seek(u32 _CommandAddress)

switch (Mode)
{
case 0:
case SEEK_SET:

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

@Tilka
Copy link
Member

Tilka commented Feb 26, 2014

lgtm

@@ -181,7 +182,8 @@ bool CWII_IPC_HLE_Device_FileIO::Seek(u32 _CommandAddress)
}
break;
}
case 2:

case WII_SEEK_END:
{
s32 wantedPos = fileSize+m_SeekPos;

This comment was marked as off-topic.

Parlane added a commit that referenced this pull request Mar 2, 2014
Eliminate the magic constants in the switch statement in WII_IPC_HLE_Device_FileIO.cpp's Seek function.
@Parlane Parlane merged commit 70b3749 into dolphin-emu:master Mar 2, 2014
@lioncash lioncash deleted the file-io-clarifications branch March 2, 2014 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants