refactor mod (#22)

This commit is contained in:
wsor4035
2024-05-26 11:07:43 -04:00
committed by GitHub
parent eb7d9fd4f6
commit 5b4b19a184
18 changed files with 683 additions and 549 deletions

12
doc/gameid.md Normal file
View File

@@ -0,0 +1,12 @@
# GameId API
## minetest versions >= 5.7
simply returns `minetest.get_game_info().id`
## minetest versions < 5.7
approximates the gameid value via a hardcoded table of gameid=>modname
and then checks via `minetest.get_modpath()`. If it fails, it falls
back to using `xcompat_unknown_gameid` as the id. See the chart in the
readme for which games are supported