Skip to content

Instantly share code, notes, and snippets.

@jyrkive
jyrkive / strings.js
Created October 19, 2012 11:13
Updated Finnish translation for HotkeyBB
// Local strings, refer to localize.js for manual
var locStrings =
{
VERSION: "1.6",
// Common pages
sHelpTranslating: "Auta kääntämisessä",
sFeedback: "Palaute",
sAnn: "Ilmoitukset (blogi)",
sChangelog: "Muutosloki",
Battle for Wesnoth v1.13.4+dev
Started on Sun Jun 26 18:02:04 2016
Automatically found a possible data directory at I:\Battle for Wesnoth\wesnoth
Data directory: I:\Battle for Wesnoth\wesnoth
User configuration directory: C:\Users\Jyrki\Documents\My Games\Wesnoth1.13
User data directory: C:\Users\Jyrki\Documents\My Games\Wesnoth1.13
Cache directory: C:\Users\Jyrki\Documents\My Games\Wesnoth1.13\cache
const char* TABLE_NAME = "functions";
const char* FUNCTION_NAME = "my_lua_function";
int my_lua_function(lua_State* L);
lua_State* L;
/* Assuming that the table exists already */
/* Get the table */
msvcp120d.dll!std::_Debug_message(0x0331fd38, 0x0331efb8, 230) Line 15 C++
wesnoth.exe!std::_List_const_iterator<std::_List_val<std::_List_simple_types<events::sdl_handler *> > >::operator++() Line 230 C++
wesnoth.exe!std::_List_iterator<std::_List_val<std::_List_simple_types<events::sdl_handler *> > >::operator++() Line 374 C++
> wesnoth.exe!events::context::~context() Line 136 C++
wesnoth.exe!events::context::`scalar deleting destructor'() C++
wesnoth.exe!std::allocator<events::context>::destroy<events::context>(0x069a96b8) Line 608 C++
wesnoth.exe!std::allocator_traits<std::allocator<events::context> >::destroy<events::context>({...}, 0x069a96b8) Line 731 C++
wesnoth.exe!std::_Wrap_alloc<std::allocator<events::context> >::destroy<events::context>(0x069a96b8) Line 879 C++
wesnoth.exe!std::deque<events::context,std::allocator<events::context> >::pop_back() Line 1482 C++
wesnoth.exe!events::event_context::~event_context() Line 178 C++
2>i:\battle for wesnoth\external\include\boost\iterator\transform_iterator.hpp(51): error C2039: 'type' : is not a member of 'boost::iterators::detail::ia_dflt_help<Reference,boost::result_of<const UnaryFunc (const std::basic_string<char,std::char_traits<char>,std::allocator<char>> &)>>'
2> with
2> [
2> Reference=boost::iterators::use_default
2> , UnaryFunc=std::_Bind<true,int,int (__cdecl *const )(std::string,int),const boost::arg<1> &,int>
2> ] (..\..\src\tod_manager.cpp)
2> i:\battle for wesnoth\external\include\boost\iterator\transform_iterator.hpp(76) : see reference to class template instantiation 'boost::iterators::detail::transform_iterator_base<UnaryFunc,Iterator,Reference,Value>' being compiled
2> with
2> [
2> UnaryFunc=std::_Bind<true,int,int (__cdecl *const )(std::string,int),const boost::arg<1> &,int>
From a470ae39a62c58568d64ac87035ed87acd165d53 Mon Sep 17 00:00:00 2001
From: Jyrki Vesterinen <[email protected]>
Date: Sun, 24 Jul 2016 08:03:22 +0300
Subject: [PATCH] Remove two uses of boost::bind()
---
src/gui/dialogs/multiplayer/mp_create_game.cpp | 4 ++--
src/hotkey/command_executor.cpp | 6 +++++-
2 files changed, 7 insertions(+), 3 deletions(-)
template<typename T>
void tmp_create_game::update_options_data_map(T* widget, const std::string game_id)
{
options_data_[game_id][widget->id()] = widget->get_value();
}
template<>
void tmp_create_game::update_options_data_map(ttoggle_button* widget, const std::string game_id)
{
options_data_[game_id][widget->id()] = widget->get_value_bool();
@jyrkive
jyrkive / gist:92c08d22178d12b6df2b3f7423f52440
Created September 2, 2016 19:24
Debug log between scenarios
20160902 22:21:42 debug engine: scenario ended, result victory
20160902 22:21:42 debug engine: mp_info_ == 03B6B14C
20160902 22:21:42 debug engine: mp_info_->is_host == 0
20160902 22:21:42 debug mp/main: download_level_data()
20160902 22:21:42 debug mp/main: download_level_data() success.
20160902 22:21:42 debug mp/main: *** side 0***
allow_changes = yes
allow_player = yes
chose_random = yes
color = 1
bool leave_game, update_ui;
std::tie(leave_game, update_ui) = connect_engine_.process_network_data(data);
if (leave_game) {
// ...
@jyrkive
jyrkive / gist:ffb667b56c6706728a3f7296d364ab43
Created October 1, 2016 07:19
Lobby listbox scroll call stack
wesnoth.exe!gui2::tscrollbar_container::scrollbar_moved() Line 1123 C++
wesnoth.exe!gui2::tscrollbar_container::show_content_rect({...}) Line 923 C++
wesnoth.exe!gui2::tlistbox::place({...}, {...}) Line 335 C++
wesnoth.exe!gui2::tscrollbar_container::content_resize_request(false) Line 612 C++
wesnoth.exe!gui2::tlistbox::set_row_shown({...}) Line 202 C++
> wesnoth.exe!gui2::tlobby_main::update_gamelist_diff() Line 422 C++
wesnoth.exe!gui2::tlobby_main::network_handler() Line 876 C++
wesnoth.exe!std::_Pmf_wrap<void (__thiscall gui2::tlobby_main::*)(void),void,gui2::tlobby_main>::operator()(0x004fe728) Line 1231 C++
wesnoth.exe!std::_Bind<1,void,std::_Pmf_wrap<void (__thiscall gui2::tlobby_main::*)(void),void,gui2::tlobby_main>,gui2::tlobby_main * const>::_Do_call<unsigned int,0>({...}, {...}) Line 1150 C++
wesnoth.exe!std::_Bind<1,void,std::_Pmf_wrap<void (__thiscall gui2::tlobby_main::*)(void),void,gui2::tlobby_main>,gui2::tlobby_main * const>::operator()<unsigned int>(40) Line 1138 C++