cleaned up bloodmoon_fix_ini

actorid
Tom Mason 11 years ago
parent fd169c2399
commit dd0a416249

@ -77,6 +77,8 @@ namespace
ini.insert(loc, setting + "=" + val + "\r\n"); ini.insert(loc, setting + "=" + val + "\r\n");
} }
#define FIX(setting) add_setting(category, setting, get_setting(category, setting, inx), ini)
void bloodmoon_fix_ini(std::string& ini, const bfs::path inxPath) void bloodmoon_fix_ini(std::string& ini, const bfs::path inxPath)
{ {
std::string inx = read_to_string(inxPath); std::string inx = read_to_string(inxPath);
@ -88,95 +90,94 @@ namespace
ini.erase(start, end-start); ini.erase(start, end-start);
std::string category; std::string category;
std::string setting;
category = "General"; category = "General";
{ {
setting = "Werewolf FOV"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Werewolf FOV");
} }
category = "Moons"; category = "Moons";
{ {
setting = "Script Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Script Color");
} }
category = "Weather"; category = "Weather";
{ {
setting = "Snow Ripples"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Snow Ripples");
setting = "Snow Ripple Radius"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Snow Ripple Radius");
setting = "Snow Ripples Per Flake"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Snow Ripples Per Flake");
setting = "Snow Ripple Scale"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Snow Ripple Scale");
setting = "Snow Ripple Speed"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Snow Ripple Speed");
setting = "Snow Gravity Scale"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Snow Gravity Scale");
setting = "Snow High Kill"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Snow High Kill");
setting = "Snow Low Kill"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Snow Low Kill");
} }
category = "Weather Blight"; category = "Weather Blight";
{ {
setting = "Ambient Loop Sound ID"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Ambient Loop Sound ID");
} }
category = "Weather Snow"; category = "Weather Snow";
{ {
setting = "Sky Sunrise Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Sky Sunrise Color");
setting = "Sky Day Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Sky Day Color");
setting = "Sky Sunset Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Sky Sunset Color");
setting = "Sky Night Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Sky Night Color");
setting = "Fog Sunrise Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Fog Sunrise Color");
setting = "Fog Day Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Fog Day Color");
setting = "Fog Sunset Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Fog Sunset Color");
setting = "Fog Night Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Fog Night Color");
setting = "Ambient Sunrise Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Ambient Sunrise Color");
setting = "Ambient Day Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Ambient Day Color");
setting = "Ambient Sunset Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Ambient Sunset Color");
setting = "Ambient Night Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Ambient Night Color");
setting = "Sun Sunrise Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Sun Sunrise Color");
setting = "Sun Day Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Sun Day Color");
setting = "Sun Sunset Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Sun Sunset Color");
setting = "Sun Night Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Sun Night Color");
setting = "Sun Disc Sunset Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Sun Disc Sunset Color");
setting = "Transition Delta"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Transition Delta");
setting = "Land Fog Day Depth"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Land Fog Day Depth");
setting = "Land Fog Night Depth"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Land Fog Night Depth");
setting = "Clouds Maximum Percent"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Clouds Maximum Percent");
setting = "Wind Speed"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Wind Speed");
setting = "Cloud Speed"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Cloud Speed");
setting = "Glare View"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Glare View");
setting = "Cloud Texture"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Cloud Texture");
setting = "Ambient Loop Sound ID"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Ambient Loop Sound ID");
setting = "Snow Threshold"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Snow Threshold");
setting = "Snow Diameter"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Snow Diameter");
setting = "Snow Height Min"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Snow Height Min");
setting = "Snow Height Max"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Snow Height Max");
setting = "Snow Entrance Speed"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Snow Entrance Speed");
setting = "Max Snowflakes"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Max Snowflakes");
} }
category = "Weather Blizzard"; category = "Weather Blizzard";
{ {
setting = "Sky Sunrise Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Sky Sunrise Color");
setting = "Sky Day Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Sky Day Color");
setting = "Sky Sunset Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Sky Sunset Color");
setting = "Sky Night Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Sky Night Color");
setting = "Fog Sunrise Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Fog Sunrise Color");
setting = "Fog Day Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Fog Day Color");
setting = "Fog Sunset Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Fog Sunset Color");
setting = "Fog Night Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Fog Night Color");
setting = "Ambient Sunrise Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Ambient Sunrise Color");
setting = "Ambient Day Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Ambient Day Color");
setting = "Ambient Sunset Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Ambient Sunset Color");
setting = "Ambient Night Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Ambient Night Color");
setting = "Sun Sunrise Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Sun Sunrise Color");
setting = "Sun Day Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Sun Day Color");
setting = "Sun Sunset Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Sun Sunset Color");
setting = "Sun Night Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Sun Night Color");
setting = "Sun Disc Sunset Color"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Sun Disc Sunset Color");
setting = "Transition Delta"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Transition Delta");
setting = "Land Fog Day Depth"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Land Fog Day Depth");
setting = "Land Fog Night Depth"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Land Fog Night Depth");
setting = "Clouds Maximum Percent"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Clouds Maximum Percent");
setting = "Wind Speed"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Wind Speed");
setting = "Cloud Speed"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Cloud Speed");
setting = "Glare View"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Glare View");
setting = "Cloud Texture"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Cloud Texture");
setting = "Ambient Loop Sound ID"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Ambient Loop Sound ID");
setting = "Storm Threshold"; add_setting(category, setting, get_setting(category, setting, inx), ini); FIX("Storm Threshold");
} }
} }

Loading…
Cancel
Save