Commit Graph

50 Commits

Author SHA1 Message Date
Maschell 488fbc0c1f Only check heap in debug mode 2024-04-28 18:32:52 +02:00
Maschell 506cad85a9 Bump version 2024-04-25 20:29:37 +02:00
Maschell 705c6104fb Check if the MEM2 heap is corrupted after calling a hook 2024-04-25 20:29:37 +02:00
Maschell 27dbc97eca Move iteration into own scope 2024-04-25 20:29:37 +02:00
Maschell e237ba6e8c Move the wumsrelocator to 0x00800000 2024-04-25 20:29:37 +02:00
Maschell 40420432e2 Allow early init of the Module System, check EnvrionmentLoader version 2024-04-25 20:29:37 +02:00
Maschell 51571b23d9 Bump version 2023-07-19 20:44:46 +02:00
Maschell 7997cfc071 Use custom wut_get_thread_specific/wut_set_thread_specific implementation. 2023-07-19 14:08:06 +02:00
Maschell 86efd7c61c Add support for latest wut version 2023-07-06 09:42:17 +02:00
Maschell 7ba8bcc1a4 Update entry.cpp 2023-03-28 20:35:28 +02:00
Maschell d444cfedb7 Call OSCheckActiveThreads(); 2023-03-27 23:42:06 +02:00
Maschell b5a4f7ca37 Remove the skipAllocFunction parameter 2023-03-26 17:01:14 +02:00
Maschell 1f7d853d65 Memset every buffer allocated on the default heap before freeing 2023-03-26 16:53:33 +02:00
Maschell f7f8b007fa Make sure the sdaBase and sda2Base are set properly 2023-03-26 15:31:06 +02:00
Maschell 141e77cd80 Update the Dockerfile 2023-03-26 15:31:06 +02:00
Maschell f03794e6a3 Bump version to 0.2.1 2023-01-10 19:19:32 +01:00
Maschell 350c4cc39f Check the meta information first when loading a module 2023-01-06 18:24:35 +01:00
Maschell f694372910 Add WUMS 0.3.2 support 2023-01-06 18:24:35 +01:00
Maschell f4332bdadf Avoid streams in ELFIO to redcude the binary size 2023-01-04 17:53:34 +01:00
Maschell 241b5ba661 Use OSDynLoad_IsModuleLoaded instead of OSDynLoad_Acquire and add missing call 2023-01-04 03:10:03 +01:00
Maschell 49ca0b803f Check the module order again before using it. 2023-01-04 03:10:03 +01:00
Maschell 0031dbebbe Make sure the basemodule is one of the first modules 2023-01-04 03:10:03 +01:00
Maschell 5cca830592 Actually order the modules by dependencies instead of throwing the result straight away. 2023-01-04 03:10:03 +01:00
Maschell 60f86d6147 Improve the error message when a imported module is missing an export 2023-01-04 03:10:03 +01:00
Maschell d6ec92c767 Make sure the version of a module is checked. 2023-01-04 03:10:03 +01:00
Maschell 14392b4dc9 Check the wums version in meta field "wum" (old released store it there) 2023-01-04 03:10:03 +01:00
Maschell 1d0b7c60d6 Update WUMS version check to check for the latest version 2023-01-04 03:10:03 +01:00
Maschell f6330a99a7 Update the version string 2022-10-09 16:28:39 +02:00
Maschell 861fea59a6 Log the WUMSLoader version on each application start 2022-10-09 16:28:39 +02:00
Maschell 33faeb03a5 Return an error if OSDynLoad_Acquire fails 2022-10-05 20:24:28 +02:00
Maschell d943bd4c67 Acquire all RPLs modules are using (once) to prevent them from getting unloaded while using them 2022-10-05 19:53:14 +02:00
Maschell 7919e7184d Keep track of acquired RPLs and memory, release/free them if needed 2022-10-05 15:43:37 +02:00
Maschell 6555a8138f Set a custom OSDynLoad Allocator when processing relocations 2022-10-03 22:12:36 +02:00
Maschell 28cefca560 Skip .wms files that start with "." or "_" 2022-10-03 22:12:36 +02:00
Maschell 9979eddc60 Adjust Makefile to support CLion 2022-10-03 22:12:36 +02:00
Maschell dcde23a882 Update the import.h to include fsa functions 2022-08-25 13:28:08 +02:00
Maschell 7282ee878d Support the AromaBaseModule 2022-08-25 13:28:08 +02:00
Maschell 47fc482931 Use wut 1.1.1 2022-08-08 11:33:38 +02:00
Maschell 90d4ccfe2a Add additional check to make sure to not overflow buffer 2022-05-13 15:50:47 +02:00
Maschell 482121907a Return an error when trying to load a section from 0xC0000000 2022-05-13 15:50:47 +02:00
Maschell e615c2597f Fix loading modules with a ".wut_load_bounds" section 2022-05-13 15:50:47 +02:00
Maschell d367d27313 Fix logging in serveral spots 2022-05-13 15:50:47 +02:00
Maschell 5c281ec661 Increase maximum size of wumsloader 2022-05-08 18:47:09 +02:00
Maschell ef91f1ef11 Improve error handling by using std::nothrow everywhere 2022-05-08 18:47:09 +02:00
Maschell 99791f5edf Format OnLeavingScope 2022-05-08 18:47:09 +02:00
Maschell 846725f881 Make deleting the module buffer a bit more rebust 2022-05-08 18:47:09 +02:00
Maschell e5ac7dc723 Only execute the WUMSLoader for the Game and Menu process 2022-05-08 13:33:38 +02:00
Maschell d7a4c8abda Fix compiler warnings 2022-05-08 13:33:38 +02:00
Maschell 7571b3d12b Compile with -O2 flag 2022-05-08 13:33:38 +02:00
Maschell b1b99343d6 Rewrite of the WUMSLoader to simplify the code and have more memory for modules 2022-05-07 23:15:17 +02:00