mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 06:43:51 +02:00
feat: Rewrite png metadata handling, new VRC metadata (#1311)
* refactor: Move ScreenshotHelper png parsing to PNGHelper, simplify interface * refactor: Fix references to screenshotmanager * fix: Read resolution, not description * refactor: Rewrite/move all png reading logic into new class * refactor: Integrate new metadata helper functions * refactor: Add docs, re-add legacy mods support, change error handling There are no longer specific errors for each metadata type as it was just super unnecessary; A verbose log including the exception/string is now logged to file instead and a generic error is given in the UI. * fix: Show old vrc beta format images They were being treated as a non-image
This commit is contained in:
@@ -33,7 +33,8 @@ namespace VRCX
|
||||
path = newPath;
|
||||
}
|
||||
|
||||
ScreenshotHelper.WritePNGDescription(path, metadataString);
|
||||
ScreenshotHelper.WriteVRCXMetadata(metadataString, path);
|
||||
|
||||
return path;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user