Skip to content

Commit

Permalink
Alias ref-ID 0xC to 0x27 for now (#2026)
Browse files Browse the repository at this point in the history
  • Loading branch information
wixoaGit authored Oct 9, 2024
1 parent 59159d6 commit 571bcc2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions OpenDreamRuntime/DreamManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ public DreamValue LocateRef(string refString) {
return _objectTree.Types.Length > refId
? new DreamValue(_objectTree.Types[refId])
: DreamValue.Null;
case RefType.DreamResourceIcon: // Alias of DreamResource for now. TODO: Does this *only* contain icon resources?
case RefType.DreamResource:
if (!_dreamResourceManager.TryLoadResource(refId, out var resource))
return DreamValue.Null;
Expand Down Expand Up @@ -390,6 +391,7 @@ public enum RefType : uint {
DreamObjectArea = 0x4000000,
DreamObjectClient = 0x5000000,
DreamObjectFilter = 0x5300000,
DreamResourceIcon = 0xC000000,
DreamObjectImage = 0xD000000,
DreamObjectList = 0xF000000,
DreamObjectDatum = 0x21000000,
Expand Down

0 comments on commit 571bcc2

Please sign in to comment.