Exemplo n.º 1
0
 /// <summary>Generates the file path for a mod galley image.</summary>
 public static string GenerateModGalleryImageFilePath(int modId,
                                                      string imageFileName,
                                                      ModGalleryImageSize size)
 {
     return(IOUtilities.CombinePath(GenerateModMediaDirectoryPath(modId),
                                    "images_" + size.ToString(),
                                    Path.GetFileNameWithoutExtension(imageFileName) + ".png"));
 }
Exemplo n.º 2
0
 public static string GenerateModGalleryImageFilePath(int modId,
                                                      string imageFileName,
                                                      ModGalleryImageSize size)
 {
     return(GenerateModGalleryImageDirectoryPath(modId)
            + size.ToString() + "/"
            + Path.GetFileNameWithoutExtension(imageFileName) +
            ".png");
 }