sergios1234 / monoxna

Automatically exported from code.google.com/p/monoxna
Other
0 stars 0 forks source link

Unable to load Windows-authored content on Linux due to path separator mix #54

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Suppose a game is located at /path/to/game, and the Content directory has a
resource at Images/MyImage.xnb

When the game code tries to load the asset "Images\\MyImage", this path
will be constructed:

"/path/to/game/Content/Images\MyImage", and it will fail to load.

The attached patch tries to correct this by replacing any '\' characters
with the OS's path separator char.

This "blind" replace will break with Unix paths such as "path\ with\
spaces/foo/bar", but I'm not sure if it's a real issue.

Original issue reported on code.google.com by saltyho...@gmail.com on 6 Mar 2010 at 6:14

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by timpam...@gmail.com on 6 Mar 2010 at 6:27

GoogleCodeExporter commented 8 years ago
The issue is not present when Mono IOMap is enabled with the environment 
variable
MONO_IOMAP=all

Original comment by saltyho...@gmail.com on 6 Mar 2010 at 6:32