omf2097 / openomf

One Must Fall 2097 Remake
http://www.openomf.org
MIT License
362 stars 35 forks source link

Change unix default resource path, add environment variable overides #287

Closed Vagabond closed 9 years ago

Vagabond commented 9 years ago

The default resource path on linux, in release mode, is now ../share/games/openomf/, relative to the binary. This can be overridden by the environment variable OPENOMF_RESOURCE_DIR, which should be an absolute path with a trailing slash.

A similar environment variable override is provided for the plugin path: OPENOMF_PLUGIN_DIR.

cc @katajakasa @animehunter

katajakasa commented 9 years ago

This looks good to me.

Rondom commented 9 years ago

I think it would make sense to separate the original OMF2097-data from the OpenOMF data. What do you think?

Vagabond commented 9 years ago

We only have 2 openomf specific files, isn't that a little overkill?

katajakasa commented 9 years ago

This seems to work and I think the critical features are now covered. We can talk more about the separation of new and old resources in the bug ticket #285. Merging to master.