Compare commits

...

3 Commits

Author SHA1 Message Date
lizzie b9fe916bc0 fix sv construct 2026-09-01 02:10:14 +00:00
lizzie 12da7181ff fix tomo again 2026-09-01 00:22:40 +00:00
lizzie 834e578f9b [ips_layer] fix TLTD 60 FPS mod specifically
Signed-off-by: lizzie <lizzie@eden-emu.dev>
2026-08-31 20:28:03 +00:00
+5 -1
View File
@@ -257,6 +257,7 @@ void IPSwitchCompiler::Parse(std::span<u8 const> bytes) {
// we dont check for "//", IPS checks for '/' only...
if ((!quote && p[0] == '/')
|| (!quote && p[0] == '#')) {
--p; //eat up the comment char
break;
} else if (p[0] == '\"' || p[0] == '\'') {
quote = (p[0] == quote) ? '\0' : p[0];
@@ -267,8 +268,11 @@ void IPSwitchCompiler::Parse(std::span<u8 const> bytes) {
++p;
}
}
// remove trailing
for (; p > sline.cbegin() && std::isspace(*p); --p)
;
// now we have the preprocessed string ;)
std::string_view pp_str(sline_start, p);
std::string_view pp_str(sline_start, (size_t)(p - sline_start));
if (pp_str.size() > 0 && !parse_line(pp_str)) {
break;
}