Skip to content

Commit 16373fe

Browse files
committed
Added getScreensFolder().
1 parent 5eeec0b commit 16373fe

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Mods/Collection/BaseCategory.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ abstract class BaseCategory implements ModCategoryInterface
2222
public const ERROR_MOD_ID_NOT_FOUND = 164701;
2323
public const ERROR_NO_MODS_IN_COLLECTION = 164702;
2424

25+
public const SCREENSHOTS_FOLDER_NAME = 'screens';
26+
2527
private ModCollection $collection;
2628
private string $id;
2729

@@ -55,7 +57,12 @@ public function getDataURL() : string
5557

5658
public function getScreensURL() : string
5759
{
58-
return $this->getDataURL().'/screens';
60+
return $this->getDataURL().'/'.self::SCREENSHOTS_FOLDER_NAME;
61+
}
62+
63+
public function getScreensFolder() : FolderInfo
64+
{
65+
return FolderInfo::factory($this->getDataFolder().'/'.self::SCREENSHOTS_FOLDER_NAME);
5966
}
6067

6168
public function getDataFiles() : array

0 commit comments

Comments
 (0)