-
Notifications
You must be signed in to change notification settings - Fork 603
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TitleList: Use narrower filter for identifying data titles
Previous code accidentally caught some game updates and dlc titles
- Loading branch information
Showing
2 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#pragma once | ||
|
||
enum class APP_TYPE : uint32 | ||
{ | ||
GAME = 0x80000000, | ||
GAME_UPDATE = 0x0800001B, | ||
GAME_DLC = 0x0800000E, | ||
// data titles | ||
VERSION_DATA_TITLE = 0x10000015, | ||
DRC_FIRMWARE = 0x10000013, | ||
DRC_TEXTURE_ATLAS = 0x1000001A, | ||
}; | ||
|
||
// allow direct comparison with uint32 | ||
inline bool operator==(APP_TYPE lhs, uint32 rhs) | ||
{ | ||
return static_cast<uint32>(lhs) == rhs; | ||
} | ||
|
||
inline bool operator==(uint32 lhs, APP_TYPE rhs) | ||
{ | ||
return lhs == static_cast<uint32>(rhs); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters