Anonymous Maarten
6ab7f642ac
rwgame: group command line arguments thematically
...
New output:
$ ./rwgame --help
I [Game] Build: 815c63cf
Generic options:
-c [ --config ] PATH Path of configuration file
--help Show this help message
Window options:
-w [ --width ] WIDTH Game resolution width in pixel
-h [ --height ] HEIGHT Game resolution height in pixel
-f [ --fullscreen ] Enable fullscreen mode
Game options:
-n [ --newgame ] Directly start a new game
-l [ --load ] PATH Load save file
Developer options:
-t [ --test ] Starts a new game in a test location
-b [ --benchmark ] PATH Run benchmark from file
2017-11-17 00:50:50 +00:00
Anonymous Maarten
c5523d6728
rwengine: Remove usused SCMTypeInfoTable
2017-11-17 00:50:50 +00:00
Anonymous Maarten
6142e0bf80
rwengine: remove unused ScriptDisassembly
2017-11-17 00:50:50 +00:00
Anonymous Maarten
deb7db5faf
rwengine: remove ScriptFunctionMeta->conditional + extended definition
...
Not used anywhere
2017-11-17 00:50:50 +00:00
Anonymous Maarten
4bf95cd903
rwengine: SCMMicrocode is not used anywhere
2017-11-17 00:50:50 +00:00
Anonymous Maarten
5299f4df08
spelling: yeild -> yield
2017-11-17 00:50:50 +00:00
Anonymous Maarten
85ac15078a
rwengine: Removed unused functions and defines
2017-11-17 00:50:50 +00:00
Anonymous Maarten
1378931eba
rwengine: throw runtime_error on shader error instead of straight exit
2017-11-17 00:50:50 +00:00
Anonymous Maarten
853c1a01b2
rwgame: remove unused unimplemented function definitions
2017-11-17 00:50:50 +00:00
Anonymous Maarten
07a5729cef
rwgame: create matrix from vectors (instead of elements)
2017-11-17 00:50:50 +00:00
Anonymous Maarten
a9f009f97f
rwgame: do not copy cheat names
2017-11-17 00:50:50 +00:00
Anonymous Maarten
5edead61d0
rwgame: create texture filename in buffer in one go
2017-11-17 00:50:50 +00:00
Anonymous Maarten
32fb5eb409
rwlib: LoaderIMG accepts rwfs::path
2017-11-17 00:50:50 +00:00
Anonymous Maarten
820c4bd25c
rwengine: GameData accepts rwfs::path as path of game data
2017-11-17 00:50:50 +00:00
Anonymous Maarten
55dd0beea0
rwgame: allow configuration files from all places (not only config path)
...
- add it as an argument to the rwgame executable
- update the tests
2017-11-17 00:50:50 +00:00
Anonymous Maarten
6dffed543a
rwlib: add error_code to rwfs namespace
...
Some rwfs functions need an error_code argument.
2017-11-17 00:50:50 +00:00
Anonymous Maarten
0078a5c9b5
ci: let travis build tests with both TEST_NODATA=0 and 1
2017-10-31 08:17:34 +00:00
Anonymous Maarten
adc8255d4b
tests: test_FileIndex needs include of rw/filesystem.hpp
2017-10-31 08:17:34 +00:00
Daniel Evans
9c48b4424a
Add build time option for CXX17 or boost filesystem
2017-10-31 00:55:19 +00:00
Anonymous Maarten
f06d9f5eb2
rwgame+rwviewer: fix -Wunused-variable warnings
2017-10-29 20:40:57 +00:00
Anonymous Maarten
a40a2706a9
cmake: add support for include-what-you-use to check #include's
...
The output is currently very verbose and includes many false positives.
Adding a mapping file should solve this.
See
https://github.com/include-what-you-use/include-what-you-use/blob/master/docs/IWYUMappings.md
2017-10-29 20:40:57 +00:00
Anonymous Maarten
1af5d74faa
tests: Include main test function from boost/test/unit_test.hpp
...
See https://bugzilla.redhat.com/show_bug.cgi?id=1446852
2017-10-29 20:40:57 +00:00
Anonymous Maarten
7e1da8dc0a
tests: increase test timeout
...
The GameData tests take relatively long and might time out.
2017-10-29 20:40:57 +00:00
Anonymous Maarten
aa1bbb0b57
ci: use ctest scripts to run the tests
2017-10-29 20:40:57 +00:00
Anonymous Maarten
a0895d0b2c
ctest: the get_git_head_revision expects CMAKE_CURRENT_BINARY_DIR to be set
2017-10-29 20:40:57 +00:00
Anonymous Maarten
55f910cfa2
tests: add CTest/CDash support
2017-10-29 20:40:57 +00:00
Anonymous Maarten
8f4c770a26
cmake/tests: Fix naming and timing of ItemTests test suite
2017-10-29 20:40:57 +00:00
Anonymous Maarten
e663d061b7
tests: capitalize test name (test_name.cpp -> test_Name.cpp)
2017-10-29 20:40:57 +00:00
Anonymous Maarten
9e8a96ab7e
tests: execute each test separately by CTest
...
Disabled by default because empty test suites fail and would cause
Travis to fail.
There can be empty test suites when testing with no data.
2017-10-29 20:40:57 +00:00
Anonymous Maarten
6f45bda04e
cmake: enable testing using ctest
2017-10-29 20:40:57 +00:00
Anonymous Maarten
a9f8f27b21
cmake: add coverage support
2017-10-29 20:40:57 +00:00
Anonymous Maarten
63d7898aa1
tests: tests have no PNG dependency
2017-10-29 20:40:57 +00:00
Anonymous Maarten
ed4509fffa
ctest: add experimental ctest script + rename ctest extensions to .ctest
2017-10-29 20:40:57 +00:00
Anonymous Maarten
ca9cc4f703
cmake: rwviewer not links to qt5's imported targets
2017-10-29 20:40:57 +00:00
Anonymous Maarten
728ac58768
cmake: move options and compiler configuration to separate files
2017-10-29 20:40:57 +00:00
Anonymous Maarten
06c4bf09f7
cmake: make OpenGL an imported target
2017-10-29 20:40:57 +00:00
Anonymous Maarten
5dc707aaed
cmake: make OpenAL an imported target
2017-10-29 20:40:57 +00:00
Anonymous Maarten
6ccf85b770
cmake: make bullet an imported target
2017-10-29 20:40:57 +00:00
Anonymous Maarten
e555331748
cmake: be more specific about Boost library to link with
...
CMake 3.2's FindBoost.cmake does not support boost:: namespaces
2017-10-29 20:40:57 +00:00
Anonymous Maarten
66a28acaa4
cmake: make SDL2 an imported target
2017-10-29 20:40:57 +00:00
Anonymous Maarten
9f1ba0fe76
cmake: make ffmpeg an imported target
2017-10-29 20:40:57 +00:00
Anonymous Maarten
47dbea1bb4
cmake: make glm an imported target
2017-10-29 20:40:57 +00:00
Anonymous Maarten
5b9658c03a
cmake: reformat rwviewer/CMakeLists.txt
2017-10-29 20:40:57 +00:00
Anonymous Maarten
579a36cec7
cmake: reformat tests/CMakeLists.txt
2017-10-29 20:40:57 +00:00
Anonymous Maarten
282a6e2714
cmake: reformat rwgame/CMakeLists.txt
2017-10-29 20:40:57 +00:00
Anonymous Maarten
f5a237bf7b
cmake: reformat rwengine/CMakeLists.txt
2017-10-29 20:40:57 +00:00
Anonymous Maarten
73879954d9
cmake: reformat CMakeLists.txt
2017-10-29 20:40:57 +00:00
Anonymous Maarten
99951b9e05
cmake: reformat rwlib/CMakeLists.txt
2017-10-29 20:40:57 +00:00
Anonymous Maarten
fbbc3ed76b
cmake: if (${XXX}) ==> if(XXX)
2017-10-29 20:40:57 +00:00
Anonymous Maarten
1926795d63
cmake: use rwengine::interface + no more add_definitions & include_directories
2017-10-29 20:40:57 +00:00