forked from rosebudai/OpenRCT2-Web
Add flag to mark an object as a compatibility object
This commit is contained in:
9 files changed
+51
-2
No files matched your search
@@ -126,6 +126,8 @@ public:
|
||||
item.Name = object->GetName();
|
||||
item.Authors = object->GetAuthors();
|
||||
item.Sources = object->GetSourceGames();
|
||||
if (object->IsCompatibilityObject())
|
||||
item.Flags |= ObjectItemFlags::IsCompatibilityObject;
|
||||
object->SetRepositoryItem(&item);
|
||||
return item;
|
||||
}
|
||||
@@ -144,6 +146,7 @@ protected:
|
||||
|
||||
ds << item.Sources;
|
||||
ds << item.Authors;
|
||||
ds << item.Flags;
|
||||
|
||||
switch (item.Type)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user