Skip to content

Add code to infer resource types by their magick numbers rather than having to explicitly provide types at load time #7

Open

Description

@Kwizatz

There is some code to infer image types when loading Image resources that use the magick number to know which decompression method to use on the image. This code can be generalized to resources, this way we could do without having to explicitly say how we want to load resources, and instead just load them. This may mean replacing the ResourceId and UniqueAnyPtr classes with StringId and std::any respectively.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions