romfs/ams.mitm/pm: refactor to dynamically steal heap for certain games. (#2122)
* fs.mitm: skeleton the use of special allocation in romfs build

* pm: add api for ams.mitm to steal application memory

* pm/mitm: okay, that api won't work, try a different one

* romfs: revert memory usage increases; we'll handle torture games case-by-case.

* pm/romfs: first (broken?) pass at dynamic heap.

I cannot wait to figure out all the ways this is wrong.

* Release the dynamic heap a little more eagerly

* romfs: animal crossing is also not a nice game

* romfs: fix issues in close-during-build

* romfs: zelda is a blight upon this earth
1 parent 85c23b5 commit f2ee44da7471d1efc9a38e9fd1ce2bd3116393bb
@SciresM SciresM authored on 14 May 2023
GitHub committed on 14 May 2023
Showing 31 changed files
View
libraries/libstratosphere/include/stratosphere.hpp
View
libraries/libstratosphere/include/stratosphere/mitm.hpp 0 → 100644
View
libraries/libstratosphere/include/stratosphere/mitm/impl/mitm_pm_interface.hpp 0 → 100644
View
libraries/libstratosphere/include/stratosphere/mitm/mitm_pm_api.hpp 0 → 100644
View
libraries/libstratosphere/include/stratosphere/pm/impl/pm_shell_interface.hpp
View
libraries/libstratosphere/source/mitm/mitm_pm.os.horizon.c 0 → 100644
View
libraries/libstratosphere/source/mitm/mitm_pm.os.horizon.h 0 → 100644
View
libraries/libstratosphere/source/mitm/mitm_pm_api.cpp 0 → 100644
View
libraries/libstratosphere/source/pm/pm_shell_api.cpp
View
libraries/libvapours/include/vapours/results/fs_results.hpp
View
stratosphere/ams_mitm/ams_mitm.json
View
stratosphere/ams_mitm/source/amsmitm_module_management.cpp
View
stratosphere/ams_mitm/source/fs_mitm/fs_mitm_service.cpp
View
stratosphere/ams_mitm/source/fs_mitm/fsmitm_layered_romfs_storage.cpp
View
stratosphere/ams_mitm/source/fs_mitm/fsmitm_layered_romfs_storage.hpp
View
stratosphere/ams_mitm/source/fs_mitm/fsmitm_romfs.cpp
View
stratosphere/ams_mitm/source/fs_mitm/fsmitm_romfs.hpp
View
stratosphere/ams_mitm/source/mitm_pm/mitm_pm_module.cpp 0 → 100644
View
stratosphere/ams_mitm/source/mitm_pm/mitm_pm_module.hpp 0 → 100644
View
stratosphere/ams_mitm/source/mitm_pm/mitm_pm_service.cpp 0 → 100644
View
stratosphere/ams_mitm/source/mitm_pm/mitm_pm_service.hpp 0 → 100644
View
stratosphere/ams_mitm/source/ns_mitm/ns_am_mitm_service.cpp
View
stratosphere/ams_mitm/source/ns_mitm/ns_web_mitm_service.cpp
View
stratosphere/ams_mitm/source/set_mitm/set_mitm_service.cpp
View
stratosphere/ams_mitm/source/set_mitm/setmitm_module.cpp
View
stratosphere/fatal/fatal.json
View
stratosphere/fatal/source/fatal_task_screen.cpp
View
stratosphere/pm/source/impl/pm_process_manager.cpp
View
stratosphere/pm/source/impl/pm_process_manager.hpp
View
stratosphere/pm/source/impl/pm_resource_manager.cpp
View
stratosphere/pm/source/impl/pm_resource_manager.hpp