|
hos: change initialization API
This was needed to make stratosphere buildable with debugging on. os:: assertions rely on GetCurrentThread() working, and this requires the global os resource manager to be constructed. However, __appInit executes before global constructors. We now require that hos::InitializeForStratosphere() be called before anything else is done. This initializes the os resource manager, sets the hos version for libnx, and may do more things in the future. TODO: Consider replacing __appInit/__appExit with ams:: namespace functions in general, and wrap them so that we guarantee hos::InitializeForStratosphere is called first, and generally ensure a consistent stratosphere environment. |
|---|
|
|
| libraries/libstratosphere/include/stratosphere/hos.hpp |
|---|
| libraries/libstratosphere/include/stratosphere/hos/hos_stratosphere_api.hpp 0 → 100644 |
|---|
| libraries/libstratosphere/include/stratosphere/hos/hos_version_api.hpp |
|---|
| libraries/libstratosphere/source/hos/hos_stratosphere_api.cpp 0 → 100644 |
|---|
| libraries/libstratosphere/source/hos/hos_version_api.cpp |
|---|
| libraries/libstratosphere/source/hos/hos_version_api_private.hpp 0 → 100644 |
|---|
| libraries/libstratosphere/source/os/impl/os_resource_manager.cpp |
|---|
| libraries/libstratosphere/source/os/impl/os_resource_manager.hpp |
|---|
| libraries/libstratosphere/source/os/os_stratosphere_api.cpp 0 → 100644 |
|---|
| stratosphere/ams_mitm/source/amsmitm_main.cpp |
|---|
| stratosphere/boot/source/boot_main.cpp |
|---|
| stratosphere/boot2/source/boot2_main.cpp |
|---|
| stratosphere/creport/source/creport_main.cpp |
|---|
| stratosphere/dmnt/source/dmnt_main.cpp |
|---|
| stratosphere/erpt/source/erpt_main.cpp |
|---|
| stratosphere/fatal/source/fatal_main.cpp |
|---|
| stratosphere/loader/source/ldr_main.cpp |
|---|
| stratosphere/ncm/source/ncm_main.cpp |
|---|
| stratosphere/pgl/source/pgl_main.cpp |
|---|
| stratosphere/pm/source/pm_main.cpp |
|---|
| stratosphere/ro/source/ro_main.cpp |
|---|
| stratosphere/sm/source/sm_main.cpp |
|---|
| stratosphere/spl/source/spl_main.cpp |
|---|