A legal way to specify a custom path for the "ogre.cfg" configuration file Topic is solved

Problems building or running the engine, queries about how to use features etc.
BDOTimer
Gnoblar
Posts: 1
Joined: Thu Dec 11, 2025 2:09 pm

A legal way to specify a custom path for the "ogre.cfg" configuration file

Post by BDOTimer »

If you need Help with Ogre, rather use the Help forums:
viewforum.php?f=2

Hi!

Is there a legal way in Ogre to change the path to "ogre.cfg"?

For this example https://github.com/OGRECave/ogre/blob/m ... orial1.cpp

Without editing the code of the Ogre3d engine itself.

I was looking for an answer on the site:https://forums.ogre3d.org ogre.cfg path
I couldn't find the solution I was looking for in Google.

for example,
I found that you can set the OGRE_CONFIG_DIR environment variable
to specify a custom location.
However, this didn't work for me, or I might be missing something...

[SOLVED]: virtual void createRoot() ---> void createRoot() override