#141: Gracefully handle wrong initial working directory
-------------------------+----------------------
Reporter: Carsten | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: other | Version: svn-head
Keywords: | Platform:
-------------------------+----------------------
Even though properly documented at
http://www.cafu.de/wiki/cppdev:gettingstarted#running_the_new_programs,
everyone seems to have a tendency to double-click in Windows Explorer or
run the equivalent of
{{{
#!sh
D:\Cafu> cd build\win32\vc9\debug\CaWE
D:\Cafu\build\win32\vc9\debug\CaWE> CaWE.exe
}}}
rather than the proper
{{{
#!sh
D:\Cafu> build\win32\vc9\debug\CaWE\CaWE.exe
}}}
Possible improvements:
- Clarify the error messages of `CaWE.exe` and `Cafu.exe` that occur
when the working directory seems not to be right. Thanks to SoulRider for
a clear report of the current messages at
http://www.cafu.de/forum/viewtopic.php?p=6308#p6308
- During program init, test with increasing chains of `..`, `../..`,
`../../..` etc. if the required resources can be found, and automatically
update the working directory if successful.
This is a frequently reported issue.
--
Ticket URL: <
http://trac.cafu.de/ticket/141>
Cafu 3D Game and Graphics Engine <
http://www.cafu.de>
The open-source game engine and graphics engine for multiplayer, cross-platform, real-time 3D action.