pomdog icon indicating copy to clipboard operation
pomdog copied to clipboard

Resource directory is hard-coded

Open barsoosayque opened this issue 6 years ago • 0 comments

Basically the issue is that I prefer to store assets in data or content (lowercase) directory, but it is not possible since the path of assets is hard-coded.

As for details, every platform specific GameHost class implementation creates AssetManager with hard-coded path (something + "/Content"). For example, GameHostX11.cpp#L258.

Yet I think that it is user's task to decide where are assets will be stored at. My guess is that the root directory for assets should be either working directory or somehow specified path via constructor parameters, which defaults to working directory (I am not sure how to do that).

barsoosayque avatar Aug 09 '18 14:08 barsoosayque