From 343a08e44a681de20d5aad94c7d21f24c7c439f9 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Wed, 23 Jul 2014 19:06:46 +0200 Subject: [PATCH] Update - fix some errors --- .../MT_skins_updater.exe => MT_skins_updater.exe | Bin .../Newtonsoft.Json.dll => Newtonsoft.Json.dll | Bin u_skins/init.lua | 10 ++++++++++ 3 files changed, 10 insertions(+) rename win32.NET/MT_skins_updater.exe => MT_skins_updater.exe (100%) rename win32.NET/Newtonsoft.Json.dll => Newtonsoft.Json.dll (100%) diff --git a/win32.NET/MT_skins_updater.exe b/MT_skins_updater.exe similarity index 100% rename from win32.NET/MT_skins_updater.exe rename to MT_skins_updater.exe diff --git a/win32.NET/Newtonsoft.Json.dll b/Newtonsoft.Json.dll similarity index 100% rename from win32.NET/Newtonsoft.Json.dll rename to Newtonsoft.Json.dll diff --git a/u_skins/init.lua b/u_skins/init.lua index 88fb301..7634de7 100644 --- a/u_skins/init.lua +++ b/u_skins/init.lua @@ -9,6 +9,16 @@ u_skins.pages = {} u_skins.u_skins = {} u_skins.file_save = false +-- ( Deprecated +u_skins.type = { SPRITE=0, MODEL=1, ERROR=99 } +u_skins.get_type = function(texture) + if not u_skins.is_skin(texture) then + return u_skins.ERROR + end + return u_skins.MODEL +end +-- ) + u_skins.is_skin = function(texture) if not texture then return false