ams: support building unit test programs on windows/linux/macos

This commit is contained in:
Michael Scire authored and SciresM committed 2022-03-21 17:21:44 -07:00
1 parent 9a38be201a
commit 64a97576d0
756 files changed
+33359 -9372

No files matched your search

@@ -24,7 +24,7 @@ namespace ams::fatal::srv {
/* Helpers. */
void TryEnsureReportDirectories() {
fs::EnsureDirectoryRecursively("sdmc:/atmosphere/fatal_reports/dumps");
fs::EnsureDirectory("sdmc:/atmosphere/fatal_reports/dumps");
}
bool TryGetCurrentTimestamp(u64 *out) {
+6 -6
View File
@@ -2931,17 +2931,17 @@ static void stbtt__handle_clipped_edge(float *scanline, int x, stbtt__active_edg
y1 = e->ey;
}
if (x0 == x)
if (x0 == x) {
STBTT_assert(x1 <= x+1);
else if (x0 == x+1)
} else if (x0 == x+1) {
STBTT_assert(x1 >= x);
else if (x0 <= x)
} else if (x0 <= x) {
STBTT_assert(x1 <= x);
else if (x0 >= x+1)
} else if (x0 >= x+1) {
STBTT_assert(x1 >= x+1);
else
} else {
STBTT_assert(x1 >= x && x1 <= x+1);
}
if (x0 <= x && x1 <= x)
scanline[x] += e->direction * (y1-y0);
else if (x0 >= x+1 && x1 >= x+1)