add last backwards-compatible version
This commit is contained in:
@@ -55,8 +55,7 @@ void titleformat_compiler::remove_forbidden_chars(titleformat_text_out * p_out,c
|
||||
|
||||
void titleformat_compiler::remove_forbidden_chars_string_append(pfc::string_receiver & p_out,const char * p_source,t_size p_source_len,const char * p_reserved_chars)
|
||||
{
|
||||
titleformat_text_out_impl_string tfout(p_out);
|
||||
remove_forbidden_chars(&tfout,pfc::guid_null,p_source,p_source_len,p_reserved_chars);
|
||||
remove_forbidden_chars(&titleformat_text_out_impl_string(p_out),pfc::guid_null,p_source,p_source_len,p_reserved_chars);
|
||||
}
|
||||
|
||||
void titleformat_compiler::remove_forbidden_chars_string(pfc::string_base & p_out,const char * p_source,t_size p_source_len,const char * p_reserved_chars)
|
||||
@@ -76,21 +75,24 @@ void titleformat_object::run_hook(const playable_location & p_location,const fil
|
||||
{
|
||||
if (p_hook)
|
||||
{
|
||||
titleformat_hook_impl_file_info hook1(p_location, p_source);
|
||||
titleformat_hook_impl_splitter hook2(p_hook, &hook1);
|
||||
run(&hook2,p_out,p_filter);
|
||||
run(
|
||||
&titleformat_hook_impl_splitter(
|
||||
p_hook,
|
||||
&titleformat_hook_impl_file_info(p_location,p_source)
|
||||
),
|
||||
p_out,p_filter);
|
||||
}
|
||||
else
|
||||
{
|
||||
titleformat_hook_impl_file_info hook(p_location, p_source);
|
||||
run(&hook,p_out,p_filter);
|
||||
run(
|
||||
&titleformat_hook_impl_file_info(p_location,p_source),
|
||||
p_out,p_filter);
|
||||
}
|
||||
}
|
||||
|
||||
void titleformat_object::run_simple(const playable_location & p_location,const file_info * p_source,pfc::string_base & p_out)
|
||||
{
|
||||
titleformat_hook_impl_file_info hook(p_location, p_source);
|
||||
run(&hook,p_out,NULL);
|
||||
run(&titleformat_hook_impl_file_info(p_location,p_source),p_out,NULL);
|
||||
}
|
||||
|
||||
t_size titleformat_hook_function_params::get_param_uint(t_size index)
|
||||
|
||||
Reference in New Issue
Block a user