[Commits] [wesnoth/wesnoth] ec6172: add support for relative dirs in wesnoth.dofile/re...
GitHub
noreply at github.com
Fri Jan 29 21:48:50 UTC 2016
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: ec61728aa612da51fe69695db3503134841a1593
https://github.com/wesnoth/wesnoth/commit/ec61728aa612da51fe69695db3503134841a1593
Author: gfgtdf <f492343 at rmqkr.net>
Date: 2016-01-29 (Fri, 29 Jan 2016)
Changed paths:
M src/scripting/lua_fileops.cpp
Log Message:
-----------
add support for relative dirs in wesnoth.dofile/require
Commit: c39569c69300ea2da9dc539214b05202fdf60d04
https://github.com/wesnoth/wesnoth/commit/c39569c69300ea2da9dc539214b05202fdf60d04
Author: gfgtdf <f492343 at rmqkr.net>
Date: 2016-01-29 (Fri, 29 Jan 2016)
Changed paths:
M src/filesystem_boost.cpp
Log Message:
-----------
remove file_exists check in get_user_data_path()
this check really did more harm than good because:
1) It possible that the directory is removed just after the function was
called but before the returned string was used.
2) It's slow.
Instead of checking the existence here the game now tries to create
directories in ofstream when they don't exist yet. (commit will follow)
Commit: 3448e35c2bf5646b80eff2f9f1006d60c3f4c8c9
https://github.com/wesnoth/wesnoth/commit/3448e35c2bf5646b80eff2f9f1006d60c3f4c8c9
Author: gfgtdf <f492343 at rmqkr.net>
Date: 2016-01-29 (Fri, 29 Jan 2016)
Changed paths:
M src/filesystem_boost.cpp
Log Message:
-----------
fixup a boost version check
Commit: f1a42c87cfe392104f254df9e1d58cbcef5b8d38
https://github.com/wesnoth/wesnoth/commit/f1a42c87cfe392104f254df9e1d58cbcef5b8d38
Author: gfgtdf <f492343 at rmqkr.net>
Date: 2016-01-29 (Fri, 29 Jan 2016)
Changed paths:
M src/filesystem.hpp
M src/filesystem_boost.cpp
Log Message:
-----------
automatically create parent directories when writing to a file.
Commit: 8ebbc8c66be73ff85003d88c39a1b1dd8a9d9a99
https://github.com/wesnoth/wesnoth/commit/8ebbc8c66be73ff85003d88c39a1b1dd8a9d9a99
Author: gfgtdf <f492343 at rmqkr.net>
Date: 2016-01-29 (Fri, 29 Jan 2016)
Changed paths:
M src/serialization/preprocessor.cpp
Log Message:
-----------
add {CURRENT_FILE} and {CURRENT_DIRECTORY} macros.
Commit: d3615be71482a315fa263eb110571d6624794451
https://github.com/wesnoth/wesnoth/commit/d3615be71482a315fa263eb110571d6624794451
Author: gfgtdf <f492343 at rmqkr.net>
Date: 2016-01-29 (Fri, 29 Jan 2016)
Changed paths:
M src/config.cpp
M src/config.hpp
M src/scripting/game_lua_kernel.cpp
M src/scripting/push_check.hpp
M src/unit.cpp
M src/unit.hpp
M src/unit_abilities.cpp
M src/unit_types.cpp
M src/unit_types.hpp
Log Message:
-----------
cleanup cfg_ member of unit class.
the cfg_ field of the unit class now doesn’t store the advancements and
the abilities anymore. Instead they are stored in separate fields.
I used boost::ptr_vector<config> because that’s similar to how config
objects store their child values internally. Unfortunately
boost::ptr_vector defines ptr_vector::value_type in a bad way so that it
cannot be used for BOOST_FOREACH loops value types, so i had to
change lua's push_check file to use T::reference to be compatible
with ptr_vector
This commit removes all child tags of the unit cfg_ because the only
tags that are now left in cfg_ are [variation] and [advancefrom] from
[unit_type], which werent used in [unit] and only caused the savefiles
to bloat.
Commit: f880c6036e2a90555540a525fc558aec919824c8
https://github.com/wesnoth/wesnoth/commit/f880c6036e2a90555540a525fc558aec919824c8
Author: gfgtdf <f492343 at rmqkr.net>
Date: 2016-01-29 (Fri, 29 Jan 2016)
Changed paths:
M src/serialization/preprocessor.cpp
Log Message:
-----------
make {CURRENT_FILE} return the file that used the macro.
if {CURRENT_FILE} or {CURRENT_DIRECTORY} are used inside a macro they now
return the name of the file that use that macro (instead of the name
of the file that defines the macro)
Commit: e9f0fe726d5f6c01c3ca89e9b36f5e5b99068fc2
https://github.com/wesnoth/wesnoth/commit/e9f0fe726d5f6c01c3ca89e9b36f5e5b99068fc2
Author: gfgtdf <f492343 at rmqkr.net>
Date: 2016-01-29 (Fri, 29 Jan 2016)
Changed paths:
M src/play_controller.cpp
M src/play_controller.hpp
M src/playsingle_controller.cpp
M src/playsingle_controller.hpp
Log Message:
-----------
run initial lua directly after creating gamestate.
this should fix http://gna.org/bugs/?24304
Compare: https://github.com/wesnoth/wesnoth/compare/e73c9c61f331...e9f0fe726d5f
More information about the Commits
mailing list