dexyfex/CodeWalker

Can't start when working directory is not as expected

Sainan opened this issue · 0 comments

CodeWalker expects the working directory to be the same directory where the EXE is located. This causes an issue when launching it via the start menu in Windows, e.g. just typing "CodeWalker" and pressing [Enter] as one might do. In specific, the issue is that CodeWalker can't load the 3 icons due to a "File not found" error, which is followed by an out of bounds error:

System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at CodeWalker.WorldForm.Init()