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

Simplify ShowSound() in FileMonitor.cpp. #131

Merged
merged 2 commits into from Mar 4, 2014

Conversation

lioncash
Copy link
Member

@lioncash lioncash commented Mar 3, 2014

Now if more sound types are found, they just need to simply be added to the set.

@delroth
Copy link
Member

delroth commented Mar 4, 2014

Better: IsSoundFile(const std::string&).

@lioncash
Copy link
Member Author

lioncash commented Mar 4, 2014

@delroth Will do, also @Tilka thanks for recommending an unordered set, I forgot about that structure type.

Now if more sound types are found, they just need to simply be added to
the unordered set.

- Also changed ShowSound() to IsSoundFile()
- Fixed IsSoundFile’s definition in FileMonitor.h. This whole time it
has been defined as a void method, when in reality it was a bool
function.

- Changed the FileMonitor’s string parameters to be constant references.
.adx is used in various games, so this should definitely be here.
@lioncash
Copy link
Member Author

lioncash commented Mar 4, 2014

Should be all good now.

@Tilka
Copy link
Member

Tilka commented Mar 4, 2014

lgtm

delroth added a commit that referenced this pull request Mar 4, 2014
Simplify ShowSound() in FileMonitor.cpp.
@delroth delroth merged commit d1ccd96 into dolphin-emu:master Mar 4, 2014
@lioncash lioncash deleted the file-monitor-simplifications branch March 4, 2014 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants