Compare commits

...

6 Commits

Author SHA1 Message Date
lizzie a5855f981f fumbling sv ctor again 2026-09-02 08:20:47 +00:00
lizzie 567dc84292 me when messup 2026-09-02 08:20:47 +00:00
lizzie f4019bf83d fuck windows 2026-09-02 08:20:47 +00:00
lizzie ca3de4a41c fix sv construct 2026-09-02 08:20:47 +00:00
lizzie 996f1902c5 fix tomo again 2026-09-02 08:20:47 +00:00
lizzie 546574e71c [ips_layer] fix TLTD 60 FPS mod specifically
Signed-off-by: lizzie <lizzie@eden-emu.dev>
2026-09-02 08:20:47 +00:00
+9
View File
@@ -257,6 +257,7 @@ void IPSwitchCompiler::Parse(std::span<u8 const> bytes) {
// we dont check for "//", IPS checks for '/' only... // we dont check for "//", IPS checks for '/' only...
if ((!quote && p[0] == '/') if ((!quote && p[0] == '/')
|| (!quote && p[0] == '#')) { || (!quote && p[0] == '#')) {
--p; //eat up the comment char
break; break;
} else if (p[0] == '\"' || p[0] == '\'') { } else if (p[0] == '\"' || p[0] == '\'') {
quote = (p[0] == quote) ? '\0' : p[0]; quote = (p[0] == quote) ? '\0' : p[0];
@@ -267,6 +268,14 @@ void IPSwitchCompiler::Parse(std::span<u8 const> bytes) {
++p; ++p;
} }
} }
// remove trailing; look at the char before, i.e
// <aa >
// <aa -.>
// <aa-.>
// <a-.>
// <aa>
for (; p + 1 > sline.cbegin() && std::isspace(p[-1]); --p)
;
// now we have the preprocessed string ;) // now we have the preprocessed string ;)
std::string_view pp_str(sline_start, p); std::string_view pp_str(sline_start, p);
if (pp_str.size() > 0 && !parse_line(pp_str)) { if (pp_str.size() > 0 && !parse_line(pp_str)) {