mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Make finish quicktune and leave it unused (as intended)
This commit is contained in:
parent
18c4a90101
commit
2c9bb06516
6 changed files with 214 additions and 114 deletions
17
src/main.cpp
17
src/main.cpp
|
@ -70,6 +70,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "mods.h"
|
||||
#include "utility_string.h"
|
||||
#include "subgame.h"
|
||||
#include "quicktune.h"
|
||||
|
||||
/*
|
||||
Settings.
|
||||
|
@ -1505,6 +1506,22 @@ int main(int argc, char *argv[])
|
|||
// Update configuration file
|
||||
if(configpath != "")
|
||||
g_settings->updateConfigFile(configpath.c_str());
|
||||
|
||||
// Print modified quicktune values
|
||||
{
|
||||
bool header_printed = false;
|
||||
std::vector<std::string> names = getQuicktuneNames();
|
||||
for(u32 i=0; i<names.size(); i++){
|
||||
QuicktuneValue val = getQuicktuneValue(names[i]);
|
||||
if(!val.modified)
|
||||
continue;
|
||||
if(!header_printed){
|
||||
dstream<<"Modified quicktune values:"<<std::endl;
|
||||
header_printed = true;
|
||||
}
|
||||
dstream<<names[i]<<" = "<<val.getString()<<std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
END_DEBUG_EXCEPTION_HANDLER(errorstream)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue