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

File tree building cleanup #171

Merged
merged 2 commits into from Mar 23, 2014
Merged

Conversation

lioncash
Copy link
Member

Does a light cleanup to the functions involved in building the file tree for the file viewer.

- Removed parentheses from the returns.
- Put the function declaration headers back on a single line.
- Make FindFileInfo's parameter a const string reference.
@@ -201,20 +201,13 @@ u32 CWII_IPC_HLE_Device_di::ExecuteCommand(u32 _BufferIn, u32 _BufferInSize, u32
// Don't do anything if the log is unselected
if (LogManager::GetInstance()->IsEnabled(LogTypes::FILEMON))
{
const char *pFilename = nullptr;
std::string filename;

This comment was marked as off-topic.

@delroth
Copy link
Member

delroth commented Mar 15, 2014

@lioncash build fails, please fix.

@lioncash
Copy link
Member Author

@delroth All good now.

}

const SFileInfo* pFileInfo = FindFileInfo(_rFullPath);

if (pFileInfo != nullptr)
{
return((size_t) pFileInfo->m_FileSize);
return (size_t) pFileInfo->m_FileSize;

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.

@delroth
Copy link
Member

delroth commented Mar 15, 2014

Haven't tested, but other than that one comment, LGTM.

Technically this also simplifies on disc filename building in general.
Sonicadvance1 added a commit that referenced this pull request Mar 23, 2014
@Sonicadvance1 Sonicadvance1 merged commit a3e18cd into dolphin-emu:master Mar 23, 2014
@lioncash lioncash deleted the rarc-cleanup branch March 24, 2014 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants