Skip to content

PhysFS you swapped the parameters #19

@otse

Description

@otse

You switched out two parameters the wrong way.

https://github.com/xarray/osgRecipes/blob/master/integrations/osgdb_physfs/ReaderWriterPhysFS.cpp#L90

PHYSFS_read( handle, &(buffer[0]), filesize, 1 ); should be 1, filesize (no joke)

Other than that, the code was outstanding, small and effective. This vfs tutorial that also uses physfs is too long and complicated. Yours is succinct and near perfect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions