mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-12 18:30:34 +00:00
more specific 'cannot load parameter'
This commit is contained in:
parent
3b341bb34b
commit
49ca18aef3
@ -67,8 +67,8 @@ struct setting {
|
|||||||
virtual ~setting() = default;
|
virtual ~setting() = default;
|
||||||
virtual void load_from(const string& s) {
|
virtual void load_from(const string& s) {
|
||||||
if(saver) { saver->load(s); return; }
|
if(saver) { saver->load(s); return; }
|
||||||
println(hlog, "cannot load this parameter");
|
println(hlog, "cannot load parameter: ", parameter_name, " from: ", s);
|
||||||
exit(1);
|
throw hr_exception("parameter cannot be loaded");
|
||||||
}
|
}
|
||||||
virtual bool load_from_animation(const string& s) {
|
virtual bool load_from_animation(const string& s) {
|
||||||
load_from(s); return false;
|
load_from(s); return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user