We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61c814b commit 231ce43Copy full SHA for 231ce43
main/doom_cart.hpp
@@ -9,12 +9,18 @@ class DoomCart : public Cart {
9
public:
10
explicit DoomCart(const Cart::Config& config)
11
: Cart(config) {
12
+ // Need to free the romdata used by most carts since doom uses a lot of
13
+ // memory for its own data.
14
+ BoxEmu::get().deinitialize_memory();
15
handle_video_setting();
16
init();
17
}
18
19
virtual ~DoomCart() override {
20
deinit();
21
+ // Now that doom is deinitialized, we can reallocate the memory used by most
22
+ // carts
23
+ BoxEmu::get().initialize_memory();
24
25
26
// cppcheck-suppress uselessOverride
0 commit comments