Skip to content

Commit

Permalink
AURORA: Re-sort Platform enum
Browse files Browse the repository at this point in the history
So that the values are roughly grouped by "type". First desktop
platforms, then consoles, then mobiles devices.
  • Loading branch information
DrMcCoy committed Jul 29, 2018
1 parent 31a97ed commit c0c1614
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions src/aurora/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -420,16 +420,16 @@ enum ArchiveType {
};

enum Platform {
kPlatformWindows = 0, ///< Microsoft Windows.
kPlatformNDS, ///< Nintendo DS.
kPlatformMacOSX, ///< Mac OS X.
kPlatformXbox, ///< Microsoft Xbox.
kPlatformPS3, ///< Sony PlayStation 3.
kPlatformXbox360, ///< Microsoft Xbox 360.
kPlatformLinux, ///< GNU/Linux.
kPlatformAndroid, ///< Android mobile phones and tablets.
kPlatformIOS, ///< iOS, Apple mobile phones and tablets.
kPlatformUnknown ///< Unknown (must be last).
kPlatformWindows = 0, ///< Microsoft Windows.
kPlatformMacOSX, ///< Mac OS X.
kPlatformLinux, ///< GNU/Linux.
kPlatformXbox, ///< Microsoft Xbox.
kPlatformXbox360, ///< Microsoft Xbox 360.
kPlatformPS3, ///< Sony PlayStation 3.
kPlatformNDS, ///< Nintendo DS.
kPlatformAndroid, ///< Android mobile phones and tablets.
kPlatformIOS, ///< iOS, Apple mobile phones and tablets.
kPlatformUnknown ///< Unknown (must be last).
};

static const uint32 kObjectIDInvalid = 0xFFFFFFFF;
Expand Down
2 changes: 1 addition & 1 deletion src/aurora/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ void FileTypeManager::buildHashLookup(Common::HashAlgo algo) {

Common::UString getPlatformDescription(Platform platform) {
static const char * const names[] = {
"Windows", "Nintendo DS", "Mac OS X", "Xbox", "PlayStation 3", "Xbox 360", "GNU/Linux",
"Windows", "Mac OS X", "GNU/Linux", "Xbox", "Xbox 360", "PlayStation 3", "Nintendo DS",
"Android", "iOS", "Unknown"
};

Expand Down

0 comments on commit c0c1614

Please sign in to comment.