[Commits] [wesnoth/wesnoth] e06540: add support for relative dirs in wesnoth.dofile/re...
GitHub
noreply at github.com
Fri Jan 29 21:50:22 UTC 2016
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: e06540218df8088633b41e2b7bdedfe5477023d8
https://github.com/wesnoth/wesnoth/commit/e06540218df8088633b41e2b7bdedfe5477023d8
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: c12c88077d2bd2348333b4ef6d3f45028bab2fd7
https://github.com/wesnoth/wesnoth/commit/c12c88077d2bd2348333b4ef6d3f45028bab2fd7
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: 66f81fa47129d771e6fc82bb70e4206149352c83
https://github.com/wesnoth/wesnoth/commit/66f81fa47129d771e6fc82bb70e4206149352c83
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: e4f549b3fbc15d7d345216ebe6930c7ba5f5e8fb
https://github.com/wesnoth/wesnoth/commit/e4f549b3fbc15d7d345216ebe6930c7ba5f5e8fb
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: dd2fd3926321079718ab0d890fbd2f6bea719773
https://github.com/wesnoth/wesnoth/commit/dd2fd3926321079718ab0d890fbd2f6bea719773
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: 7fa6b967d5c18715fbb08458dccea5f4b39ea8ed
https://github.com/wesnoth/wesnoth/commit/7fa6b967d5c18715fbb08458dccea5f4b39ea8ed
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: 43224e1fb8f004ad42fe06018b16e6dde94d2860
https://github.com/wesnoth/wesnoth/commit/43224e1fb8f004ad42fe06018b16e6dde94d2860
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: 60f02a605fe951024937b4c47389591571a11f56
https://github.com/wesnoth/wesnoth/commit/60f02a605fe951024937b4c47389591571a11f56
Author: gfgtdf <tischpapier at gmail.com>
Date: 2016-01-29 (Fri, 29 Jan 2016)
Log Message:
-----------
Merge pull request #584 from gfgtdf/filesystem_changes
Add CURRENT_FILE proprocessor macro
Compare: https://github.com/wesnoth/wesnoth/compare/e9f0fe726d5f...60f02a605fe9
More information about the Commits
mailing list