mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Make finish quicktune and leave it unused (as intended)
This commit is contained in:
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)
|
||||
|
||||
|
Reference in New Issue
Block a user