Skip to content

Commit

Permalink
Ignore bios and devices for MAME / NeoGeo in rom directory
Browse files Browse the repository at this point in the history
  • Loading branch information
gillg committed Feb 7, 2017
1 parent a86d773 commit a8273e7
Show file tree
Hide file tree
Showing 3 changed files with 492 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]
- Ignore all known bios and devices for arcade/neogeo platform
- Fix Bug with small SHARE partition
- Add new Traditional Chinese Language
- Added Catalan translation
Expand Down
9 changes: 9 additions & 0 deletions es-app/src/FileData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#include "SystemData.h"
#include "Log.h"

extern std::vector<std::string> mameBioses;
extern std::vector<std::string> mameDevices;

namespace fs = boost::filesystem;

std::string removeParenthesis(const std::string& str)
Expand Down Expand Up @@ -320,6 +323,12 @@ void FileData::populateRecursiveFolder(FileData* folder, const std::vector<std::
if((searchExtensions.empty() && !fs::is_directory(filePath)) || (std::find(searchExtensions.begin(), searchExtensions.end(), extension) != searchExtensions.end()
&& filePath.filename().string().compare(0, 1, ".") != 0)){
FileData* newGame = new FileData(GAME, filePath.generic_string(), systemData);
if (systemData->hasPlatformId(PlatformIds::ARCADE) || systemData->hasPlatformId(PlatformIds::NEOGEO)) {
if (std::find(mameBioses.begin(), mameBioses.end(), filePath.stem().generic_string()) != mameBioses.end()
|| std::find(mameDevices.begin(), mameDevices.end(), filePath.stem().generic_string()) != mameDevices.end()) {
continue;
}
}
folder->addChild(newGame);
isGame = true;
}
Expand Down
Loading

0 comments on commit a8273e7

Please sign in to comment.