Compare commits
4 Commits
780d8c8935
...
32b154e99c
Author | SHA1 | Date | |
---|---|---|---|
32b154e99c | |||
e03be694c2 | |||
490c0368bc | |||
a24fc407c5 |
2
deps/ox/src/ox/std/stringliteral.hpp
vendored
2
deps/ox/src/ox/std/stringliteral.hpp
vendored
@@ -19,7 +19,7 @@ namespace ox {
|
||||
*/
|
||||
class StringLiteral: public detail::BaseStringView {
|
||||
public:
|
||||
consteval StringLiteral() noexcept = default;
|
||||
constexpr StringLiteral() noexcept = default;
|
||||
|
||||
constexpr StringLiteral(StringLiteral const &sv) noexcept = default;
|
||||
|
||||
|
@@ -21,9 +21,28 @@ constexpr ox::Array<ox::StringLiteral, 2> FileExts_TileSheet{
|
||||
FileExt_ng,
|
||||
};
|
||||
|
||||
constexpr ox::Array<ox::StringLiteral, 2> FileExts_Palette{
|
||||
FileExt_npal,
|
||||
};
|
||||
|
||||
[[nodiscard]]
|
||||
constexpr bool isTileSheet(ox::StringViewCR path) noexcept {
|
||||
return endsWith(path, FileExt_nts) || endsWith(path, FileExt_ng);
|
||||
return ox::any_of(
|
||||
FileExts_TileSheet.begin(),
|
||||
FileExts_TileSheet.end(),
|
||||
[path](ox::StringLiteral const &ext) {
|
||||
return endsWith(path, ext);
|
||||
});
|
||||
}
|
||||
|
||||
[[nodiscard]]
|
||||
constexpr bool isPalette(ox::StringViewCR path) noexcept {
|
||||
return ox::any_of(
|
||||
FileExts_Palette.begin(),
|
||||
FileExts_Palette.end(),
|
||||
[path](ox::StringLiteral const &ext) {
|
||||
return endsWith(path, ext);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -15,7 +15,7 @@ target_link_libraries(
|
||||
|
||||
target_compile_definitions(
|
||||
NostalgiaStudio PUBLIC
|
||||
OLYMPIC_APP_VERSION="dev build"
|
||||
OLYMPIC_APP_VERSION="d2025.07.0"
|
||||
)
|
||||
|
||||
install(
|
||||
|
@@ -18,7 +18,7 @@
|
||||
<string>APPL</string>
|
||||
|
||||
<key>CFBundleVersion</key>
|
||||
<string>dev build</string>
|
||||
<string>d2025.07.0</string>
|
||||
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>12.0.0</string>
|
||||
|
Reference in New Issue
Block a user