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
Conversation
- 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.
This comment was marked as off-topic.
Sorry, something went wrong.
|
@lioncash build fails, please fix. |
|
@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.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
|
Haven't tested, but other than that one comment, LGTM. |
Technically this also simplifies on disc filename building in general.
File tree building cleanup
Does a light cleanup to the functions involved in building the file tree for the file viewer.