-
-
Notifications
You must be signed in to change notification settings - Fork 469
Add meta.xml loading files pattern #3203
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
Merged
Lpsd
merged 10 commits into
multitheftauto:master
from
W3lac3:feature/pattern-files-loading
May 23, 2024
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
31ee2d4
Add glob vendor
W3lac3 35cba67
Add loading files pattern
W3lac3 3dc7814
Merge remote-tracking branch 'upstream/master' into feature/pattern-f…
W3lac3 558e54c
Update due to code revision.
W3lac3 033eec0
Merge remote-tracking branch 'upstream/master' into feature/pattern-f…
W3lac3 2ac73bf
Update due to code revision
W3lac3 59344a7
Merge remote-tracking branch 'upstream/master' into feature/pattern-f…
W3lac3 94d17a8
Add to ignore empty folder with wildcard directory
W3lac3 39a0a25
Merge remote-tracking branch 'upstream/master' into feature/pattern-f…
W3lac3 e7d628b
Merge branch 'master' into feature/pattern-files-loading
Lpsd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -196,3 +196,4 @@ workspace "MTASA" | |
include "vendor/unrar" | ||
include "vendor/zip" | ||
include "vendor/zlib" | ||
include "vendor/glob" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2019 Pranav | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
|
||
#pragma once | ||
#include <string> | ||
#include <vector> | ||
|
||
#ifdef GLOB_USE_GHC_FILESYSTEM | ||
#include <ghc/filesystem.hpp> | ||
#else | ||
#include <filesystem> | ||
#endif | ||
|
||
namespace glob { | ||
|
||
#ifdef GLOB_USE_GHC_FILESYSTEM | ||
namespace fs = ghc::filesystem; | ||
#else | ||
namespace fs = std::filesystem; | ||
#endif | ||
|
||
/// \param pathname string containing a path specification | ||
/// \return vector of paths that match the pathname | ||
/// | ||
/// Pathnames can be absolute (/usr/src/Foo/Makefile) or relative (../../Tools/*/*.gif) | ||
/// Pathnames can contain shell-style wildcards | ||
/// Broken symlinks are included in the results (as in the shell) | ||
std::vector<fs::path> glob(const std::string &pathname); | ||
|
||
/// \param pathnames string containing a path specification | ||
/// \return vector of paths that match the pathname | ||
/// | ||
/// Globs recursively. | ||
/// The pattern “**” will match any files and zero or more directories, subdirectories and | ||
/// symbolic links to directories. | ||
std::vector<fs::path> rglob(const std::string &pathname); | ||
|
||
/// Runs `glob` against each pathname in `pathnames` and accumulates the results | ||
std::vector<fs::path> glob(const std::vector<std::string> &pathnames); | ||
|
||
/// Runs `rglob` against each pathname in `pathnames` and accumulates the results | ||
std::vector<fs::path> rglob(const std::vector<std::string> &pathnames); | ||
|
||
/// Initializer list overload for convenience | ||
std::vector<fs::path> glob(const std::initializer_list<std::string> &pathnames); | ||
|
||
/// Initializer list overload for convenience | ||
std::vector<fs::path> rglob(const std::initializer_list<std::string> &pathnames); | ||
|
||
/// Returns true if the input path matche the glob pattern | ||
bool fnmatch(const fs::path &name, const std::string &pattern); | ||
|
||
/// Returns true if the input path contains any magic characters | ||
bool has_magic(const fs::path& pathname); | ||
|
||
} // namespace glob |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
project "glob" | ||
language "C++" | ||
cppdialect "C++17" | ||
kind "StaticLib" | ||
targetname "glob" | ||
|
||
vpaths { | ||
["Headers/*"] = "include/**.h", | ||
["Sources"] = "source/**.cpp", | ||
["*"] = "premake5.lua" | ||
} | ||
|
||
files { | ||
"premake5.lua", | ||
"**.cpp", | ||
"**.h", | ||
} | ||
|
||
includedirs { | ||
"source", | ||
"include" | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.