Skip to content

Commit

Permalink
add shortened variants of output types
Browse files Browse the repository at this point in the history
  • Loading branch information
bluepilledgreat committed Jul 26, 2023
1 parent 8c1e836 commit b61da8a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
12 changes: 9 additions & 3 deletions RobloxUltimateScraper/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,23 @@ internal enum OutputType
/// <summary>
/// Asset files
/// </summary>
FilesOnly,
Files = 0,

[Obsolete]
FilesOnly = 0,

/// <summary>
/// Asset index
/// </summary>
IndexOnly,
Index = 1,

[Obsolete]
IndexOnly = 1,

/// <summary>
/// Asset files and index
/// </summary>
Both
Both = 2
}

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions RobloxUltimateScraper/Scraper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ internal static class Scraper
/// <summary>
/// Is index enabled
/// </summary>
public static bool IndexEnabled { get { return Config.Default.OutputType == OutputType.IndexOnly || Config.Default.OutputType == OutputType.Both; } }
public static bool IndexEnabled { get { return Config.Default.OutputType == OutputType.Index || Config.Default.OutputType == OutputType.Both; } }

/// <summary>
/// Are files enabled
/// </summary>
public static bool FilesEnabled { get { return Config.Default.OutputType == OutputType.FilesOnly || Config.Default.OutputType == OutputType.Both; } }
public static bool FilesEnabled { get { return Config.Default.OutputType == OutputType.Files || Config.Default.OutputType == OutputType.Both; } }

/// <summary>
/// Versions that successfully downloaded
Expand Down

0 comments on commit b61da8a

Please sign in to comment.