Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Get the right path for "content" folder for XMLs on Mac OS X

$
0
0

@6thVenom wrote:

Hi there, i got a problem on my multiplatforms project.
I need to load XML files that define my spritesheets, so i load the actual sheets like:

_content.Load(@"Sprites/sheet01");

but i load XML as XDocument like this:

XDocument XMLinput = XDocument.Load(_content.RootDirectory + "/" + _sheetName + ".xml");

on win & linux it's ok. but on mac osx the game searches for content folder in the "resources" folder, except for xmls, it searches the content folder in the "macOS" folder... ?!?

If Content.RootDirectory doesn't return the right path, how can i get the right one ON EVERY PLATFORMS?

Thanks :slight_smile:

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles