tjhancocks / kestrel-development-kit

A Development Kit for the Kestrel Game Engine
MIT License
13 stars 1 forks source link

Output is written to the input file, with -o ignored #26

Closed Thunderforge closed 4 years ago

Thunderforge commented 4 years ago

Describe the bug/issue

When running kas, the output location (specified by -o) is ignored and output instead goes to the input file (specified by -f).

To Reproduce

  1. In the command line at the project root, run make to generate the build directory
  2. Run cd build
  3. Run ./kas -o plugin.kdat -f "../examples/kdl/test.kdl" (per the Readme)

Note that the output is as follows:

Hello, World Saving data to ../examples/kdl/test.kdl

As you can see, the output was sent to the input file, overwriting it.

Expected behavior In the above example, I expect to see:

Hello, World Saving data to plugin.kdat

In other words, the output should go to what was passed in with -o.

Desktop (please complete the following information):