System: Improve screenshot naming

This commit is contained in:
Stenzek committed 2024-03-16 14:14:15 +10:00
1 parent 6aa491f863
commit 43eb6e20fa
5 files changed
+50 -10

No files matched your search

+10
View File
@@ -243,6 +243,16 @@ TEST(Path, SanitizeFileName)
ASSERT_EQ(Path::SanitizeFileName("foo/bar", false), "foo/bar");
}
TEST(Path, RemoveLengthLimits)
{
#ifdef _WIN32
ASSERT_EQ(Path::RemoveLengthLimits("C:\\foo"), "\\\\?\\C:\\foo");
ASSERT_EQ(Path::RemoveLengthLimits("\\\\foo\\bar\\baz"), "\\\\?\\\\\\foo\\bar\\baz");
#else
ASSERT_EQ(Path::RemoveLengthLimits("/foo/bar/baz"), "/foo/bar/baz");
#endif
}
#if 0
// Relies on presence of files.