mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
Merge pull request #822 from csnover/apple-network-browser
CREATE_PROJECT: Fix networking backend file targets in Xcode
This commit is contained in:
commit
27c0ddd807
@ -111,7 +111,13 @@ bool shouldSkipFileForTarget(const std::string &fileID, const std::string &targe
|
||||
// - if the file is an macOS icon file (icns), it belongs to the macOS target.
|
||||
std::string name, ext;
|
||||
splitFilename(fileName, name, ext);
|
||||
|
||||
if (targetIsIOS(targetName)) {
|
||||
// networking backend for iOS is openurl-default
|
||||
if (name == "openurl-posix" || name == "openurl-osx") {
|
||||
return true;
|
||||
}
|
||||
|
||||
// iOS target: we skip all files with the "_osx" suffix
|
||||
if (name.length() > 4 && name.substr(name.length() - 4) == "_osx") {
|
||||
return true;
|
||||
@ -150,6 +156,11 @@ bool shouldSkipFileForTarget(const std::string &fileID, const std::string &targe
|
||||
if (directory.length() > iphone_directory.length() && directory.substr(directory.length() - iphone_directory.length()) == iphone_directory) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// networking backend for macOS is openurl-osx
|
||||
if (name == "openurl-default" || name == "openurl-posix") {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user