-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added compatibility-check and new log design
- Loading branch information
Showing
5 changed files
with
61 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
{ | ||
"author" : "^#00ffff;L^#25dbff;o^#49b7ff;n^#6e92ff;a^#926eff;a^#b749ff;s^#db25ff;a^#ff00ff;n^reset;", | ||
"description" : "Prisma Core Multiplayer compatible", | ||
"friendlyName" : "Prisma Core", | ||
"name" : "prisma core", | ||
"description" : "^#ffa3a3;P^#ffffa3;r^#a3ffa3;i^#a3ffff;s^#a3a3ff;m^#ffa3ff;a^reset; Modding API\n\nMultiplayer compatible\n\nSupport for Vanilla, Neon, OpenStarbound and OpenSB-derivatives\n\nGithub: https://github.com/Lonaasan/Prisma", | ||
"friendlyName" : "^#ffa3a3;P^#ffffa3;r^#a3ffa3;i^#a3ffff;s^#a3a3ff;m^#ffa3ff;a^reset;", | ||
"name" : "prisma", | ||
"priority" : 100, | ||
"version" : "0.0.0.1" | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
---Prisma Debug Logger | https://github.com/Lonaasan/Prisma/blob/main/Prisma/prisma/debug/log.lua | ||
---Author: Lonaasan | ||
|
||
string.prisma = string.prisma or {}; | ||
string.prisma.compatibility = string.prisma.compatibility or {}; | ||
string.prisma.compatibility.check = {}; | ||
|
||
prismaCompatibilityCheck = {} | ||
|
||
|
||
---Check we are running with Neon++ | ||
---@return boolean | ||
function prismaCompatibilityCheck.IsNeon() | ||
if neon then | ||
return true; | ||
else | ||
return false; | ||
end | ||
end | ||
|
||
---Check we are running in OpenStarbound | ||
---@return boolean | ||
function prismaCompatibilityCheck.IsOpenStarbound() | ||
error("Not implemented yet", 2); | ||
return false; | ||
end | ||
|
||
|
||
--- Export the functions for 3rd parties to use without the possibility of changing the original code | ||
string.prisma.compatibility.check = prismaCompatibilityCheck; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters