mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-01 02:07:57 +00:00
memory settings saved; adjusted for the lack of get_new_handler on steam
This commit is contained in:
@@ -207,7 +207,12 @@ void apply_memory_reserve() {
|
||||
}
|
||||
}
|
||||
catch(std::bad_alloc&) {}
|
||||
#if ((ISLINUX && ISSTEAM) || ISWINDOWS)
|
||||
// no get_new_handler on this compiler...
|
||||
default_handler = [] { throw std::bad_alloc(); };
|
||||
#else
|
||||
default_handler = std::get_new_handler();
|
||||
#endif
|
||||
if(reserve_count > 0) std::set_new_handler(reserve_handler);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user