mirror of
https://github.com/luau/UniversalSynSaveInstance.git
synced 2026-02-04 14:43:14 +02:00
Small Speed Improvement
This commit is contained in:
@@ -2116,7 +2116,7 @@ local function synsaveinstance(CustomOptions, CustomOptions2)
|
||||
local function ReturnValueAndTag(raw, valueType, descriptor)
|
||||
local value, tag = (descriptor or XML_Descriptors[valueType])(raw)
|
||||
|
||||
return value, tag == nil and valueType or tag
|
||||
return value, tag or valueType
|
||||
end
|
||||
|
||||
local function InheritsFix(fixes, className, instance)
|
||||
@@ -2533,7 +2533,7 @@ local function synsaveinstance(CustomOptions, CustomOptions2)
|
||||
end
|
||||
end
|
||||
|
||||
value = "-- Saved by UniversalSynSaveInstance https://discord.gg/wx4ThpAsmw\n\n"
|
||||
value = "-- Saved by UniversalSynSaveInstance (Join to Copy Games) https://discord.gg/wx4ThpAsmw\n\n"
|
||||
.. (hasLinkedSource and "-- Original Source: https://assetdelivery.roblox.com/v1/asset/?" .. (LinkedSource_type or "id") .. "=" .. (LinkedSource or LinkedSource_Url) .. "\n\n" or "")
|
||||
.. value
|
||||
end
|
||||
@@ -2697,7 +2697,7 @@ local function synsaveinstance(CustomOptions, CustomOptions2)
|
||||
RecoveredScripts
|
||||
) .. "\n" or "")
|
||||
.. [[
|
||||
Thank you for using UniversalSynSaveInstance https://discord.gg/wx4ThpAsmw.
|
||||
Thank you for using UniversalSynSaveInstance (Join to Copy Games) https://discord.gg/wx4ThpAsmw.
|
||||
|
||||
If you didn't save in Binary (rbxl) - it's recommended to save the game right away to take advantage of the binary format & to preserve values of certain properties if you used IgnoreDefaultProperties setting (as they might change in the future).
|
||||
You can do that by going to FILE -> Save to File As -> Make sure File Name ends with .rbxl -> Save
|
||||
|
||||
Reference in New Issue
Block a user