small fixes to gentrans

This commit is contained in:
Zeno Rogue 2023-12-27 16:27:05 +01:00
parent 2f1bb092b8
commit 517f4af193
2 changed files with 5 additions and 5 deletions

View File

@ -191,7 +191,7 @@ void gentrans() {
DIR *d; DIR *d;
struct dirent *dir; struct dirent *dir;
println(hlog, "// checking all the files"); println(hlog, "\n\n// checking all the files");
d = opendir("."); d = opendir(".");
@ -204,11 +204,11 @@ void gentrans() {
closedir(d); closedir(d);
} }
println(hlog, "// checking configurables"); println(hlog, "\n\n// checking configurables");
for(auto& fs: params) { for(auto& fs: params) {
auto& sett = fs.second; auto& sett = fs.second;
if(sett->menu_item_name != sett->config_name) if(sett->menu_item_name_modified)
check_ex(sett->menu_item_name, "menu_item_name for " + sett->parameter_name); check_ex(sett->menu_item_name, "menu_item_name for " + sett->parameter_name);
check_ex(sett->help_text, "help_text for " + sett->parameter_name); check_ex(sett->help_text, "help_text for " + sett->parameter_name);
auto ls = dynamic_cast<list_setting*> ( (setting*) &*sett); auto ls = dynamic_cast<list_setting*> ( (setting*) &*sett);
@ -222,6 +222,6 @@ void gentrans() {
exit(0); exit(0);
} }
auto ar = arg::add3("-gentrans", gentrans); auto gtar = arg::add3("-gentrans", gentrans);
} }

View File

@ -135,7 +135,7 @@
#if CAP_DAILY #if CAP_DAILY
#include "private/daily.cpp" #include "private/daily.cpp"
#else #else
namespace hr { namespace daily { bool on; } } namespace hr { namespace daily { bool on; int historical; } }
#endif #endif
#include "mobile.cpp" #include "mobile.cpp"