mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-27 09:24:53 +00:00
added addsaver to be exported without CAP_CONFIG
This commit is contained in:
parent
b5343d5696
commit
31cce8aa2c
@ -631,6 +631,7 @@ saverlist savers;
|
||||
#endif
|
||||
|
||||
#if !CAP_CONFIG
|
||||
#if HDR
|
||||
template<class T, class U, class V> void addsaver(T& i, U name, V dft) {
|
||||
i = dft;
|
||||
}
|
||||
@ -639,6 +640,7 @@ template<class T, class U> void addsaver(T& i, U name) {}
|
||||
template<class T, class U> void addsaverenum(T& i, U name) {}
|
||||
template<class T, class U> void addsaverenum(T& i, U name, T dft) { i = dft; }
|
||||
#endif
|
||||
#endif
|
||||
|
||||
EX void addsaver(charstyle& cs, string s) {
|
||||
addsaver(cs.charid, s + ".charid");
|
||||
|
Loading…
Reference in New Issue
Block a user