We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd9446b commit a6f215fCopy full SHA for a6f215f
loader/include/Geode/loader/Mod.hpp
@@ -503,6 +503,8 @@ namespace geode {
503
};
504
}
505
506
+#ifdef GEODE_MOD_ID
507
+
508
namespace geode::geode_internal {
509
// this impl relies on the GEODE_MOD_ID macro set by cmake
510
template <size_t N>
@@ -527,6 +529,14 @@ constexpr auto operator""_spr() {
527
529
return Str.buffer;
528
530
531
532
+#else
533
534
+GEODE_HIDDEN inline char const* operator"" _spr(char const* str, size_t len) {
535
+ return geode::Mod::get()->expandSpriteName({ str, len }).data();
536
+}
537
538
+#endif
539
540
/**
541
* Leaves a marker in the binary that can be used to patch
542
* the game at a specific offset with a specific byte sequence.
0 commit comments