mirror of
https://github.com/wiiu-env/WUMSLoader.git
synced 2026-09-07 10:55:10 -05:00
Allow early init of the Module System, check EnvrionmentLoader version
This commit is contained in:
@@ -12,6 +12,11 @@ int main(int argc, char **argv) {
|
||||
if (argc >= 1) {
|
||||
basePath = argv[0];
|
||||
}
|
||||
if (argc < 4 || std::string_view("EnvironmentLoader") != argv[1] || (uint32_t) argv[2] < 2 || (uint32_t) argv[3] == 0) {
|
||||
OSFatal("WUMSLoader: Failed to parse arguments, make sure to use the latest environment loader.\n See https://wiiu.hacks.guide/ for more information.");
|
||||
}
|
||||
|
||||
memcpy(MEMORY_REGION_USABLE_MEM_REGION_END_VALUE_PTR, &argv[3], sizeof(uint32_t));
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Warray-bounds"
|
||||
|
||||
Reference in New Issue
Block a user