Commit Graph

85 Commits

Author SHA1 Message Date
MeltyPlayer 0475d7facf Removed dependencies on other files so that libsm64.h can be used on its own. 2022-11-22 00:29:09 -06:00
MeltyPlayer ff41ecfceb Exposed libsm64's raycasting/collision logic via its API. 2022-11-07 19:40:46 -06:00
jaburns 1380e17066 Fix test prog 2022-10-23 14:14:54 -06:00
Jeremy Burns d3119c50aa Merge pull request #19 from MeltyPlayer/master
Merged in some minor bug fixes, enhancements, and API changes.
2022-10-23 14:13:24 -06:00
MeltyPlayer 2e2b6de15d Switched needless "DL_INT_SIZE" define to intptr_t. 2022-10-20 12:53:32 -05:00
MeltyPlayer fda9452421 Fixed how DLs are rendered past the bounds of short values. 2022-10-20 00:54:05 -05:00
MeltyPlayer c035455ff7 Copied a fix that extends the region Mario can explore beyond shorts from @ckosmic's fork. 2022-10-20 00:18:43 -05:00
MeltyPlayer 478d28ed7d Carried over a NPE fix from @ckosmic's fork. 2022-10-20 00:01:51 -05:00
MeltyPlayer a179746889 Exposed registering a handler for playing sounds. 2022-10-19 23:46:13 -05:00
MeltyPlayer babdc896b5 Pulled out debug print function registering into a separate method from init. 2022-10-19 21:10:25 -05:00
MeltyPlayer ede1c4db2c Seem to have fixed 32-bit mode! 2022-10-18 19:18:35 -05:00
MeltyPlayer c4b7dce9f7 Stopped deleting the Mario files and test level in clean, since it was taking forever to rebuild as a result. 2022-10-17 20:13:26 -05:00
Jeremy Burns 25744dda72 Explain public API (#14) 2022-05-20 10:40:00 -06:00
jaburns 1dfcce07bb Fix musl build not actually statically linking musl 2022-04-15 13:41:32 -06:00
jaburns 15986c636f Fix #11 - s_mario_geo_pool free when null 2022-04-15 13:34:25 -06:00
jaburns fad2570b98 Add flag to link musl instead of glibc 2022-04-15 13:28:23 -06:00
jaburns 82e53bef23 #3 - Fix null ptr deref when deleting platform while Mario pool is sparse 2021-10-15 23:54:27 -06:00
jaburns c818f9cf51 #6 : Fixed empty interaction handlers 2021-10-11 21:46:51 -06:00
jaburns e108c03608 Filter out surfaces with bad tris, use 32 bit ints for collision surfaces 2021-08-16 15:01:57 -06:00
jaburns 54f979df93 Print to stdout if no debug print fn provided 2021-08-16 14:55:25 -06:00
jaburns a167b38ba2 Properly clean up Marios on global terminate 2021-07-28 16:11:21 -06:00
jaburns 0fde7c26d3 Update README, add rust bindings and plugin links 2021-07-26 17:23:44 -06:00
jaburns be84cd333a Return -1 instead of crashing if no floor under mario on create 2021-07-22 21:25:02 -06:00
jaburns 8144865975 More fix 2021-07-22 21:15:51 -06:00
jaburns 6503fb6e91 Fix mario id type mismatch 2021-07-22 21:13:51 -06:00
jaburns ae34481fb9 Consistent types for mario ids 2021-07-19 17:52:49 -06:00
jaburns 04cabfe13b Dont leak memory when calling load surfaces multiple times 2021-07-19 17:49:14 -06:00
jaburns ab71363d75 Add message when about to segfault because no floor 2021-07-18 20:24:42 -06:00
jaburns fa3d9e77db Fix all warnings 2020-10-30 12:11:26 -06:00
jaburns 144df0df98 Clean up moving platform allocation 2020-10-29 17:47:47 -06:00
jaburns 5dfa2678c4 Refactor to make surface iteration easier to make safer 2020-10-29 16:25:10 -06:00
jaburns 3d7bac44df Fix dynamic surface update order 2020-10-28 23:07:43 -06:00
jaburns 0843c23fe9 Only update platforms on change 2020-10-28 23:00:11 -06:00
jaburns 07c6b80df9 Note 2020-10-28 14:09:21 -06:00
jaburns 4d16267416 Prevent double free on mario state 2020-10-28 14:08:22 -06:00
jaburns 9daf010774 Finished memory management of multiple marios 2020-10-28 13:51:03 -06:00
jaburns 59ba053a70 Update api to support multiple marios 2020-10-27 22:01:58 -06:00
jaburns c3c004ce94 All global state coming from g_state now 2020-10-27 21:35:18 -06:00
jaburns d12a3e2568 Using floor-based terrain instead of area-based 2020-10-27 21:01:44 -06:00
jaburns 6563afc16d Free remaining global allocs 2020-10-27 15:51:04 -06:00
jaburns b921cb04bb Moved mario global state vars in to struct 2020-10-27 15:11:12 -06:00
jaburns 0c67335112 Fix typo 2020-10-27 13:54:16 -06:00
jaburns 0496684610 Fix animation memory leak 2020-10-27 13:30:35 -06:00
jaburns c74ab070e6 Freeing display list allocations 2020-10-27 13:26:58 -06:00
jaburns 71e918a01e Move matrix utils in to decomp dir 2020-10-27 11:47:49 -06:00
jaburns e4edfb5be4 Fix bodystate action not updated 2020-10-27 11:27:37 -06:00
jaburns fcb6b5b431 Massive refactor 2020-10-27 11:07:42 -06:00
jaburns 48ab192e17 Add stub surfaces_unload_object 2020-10-25 17:24:41 -06:00
jaburns fac3ef5f8b Fix segfault with static surfaces 2020-10-25 16:43:38 -06:00
jaburns 5f59e1a178 Added support for building on Windows 2020-10-25 01:36:47 -06:00