diff --git a/Applications.txt b/Applications.txt index bc61a547..07c94461 100644 --- a/Applications.txt +++ b/Applications.txt @@ -1032,13 +1032,13 @@ type="Application", icon="IgorTimofeev/OpenComputers/master/Applications/Chat/Icon.pic", createShortcut="desktop", - version=1.0, - }, - { - name="MineOS/System/Chat/Avatars/MyAvatar.pic", - url="IgorTimofeev/OpenComputers/master/Applications/Chat/MyAvatar.pic", - type="Script", - version=1.0, + version=1.01, + resources = { + { + name="Avatars/MyAvatar.pic", + url="IgorTimofeev/OpenComputers/master/Applications/Chat/MyAvatar.pic", + } + }, }, { name="MineOS/Applications/TurretControl", diff --git a/Applications/Chat/Chat.lua b/Applications/Chat/Chat.lua index 7b172a5f..29a8b1da 100644 --- a/Applications/Chat/Chat.lua +++ b/Applications/Chat/Chat.lua @@ -56,8 +56,9 @@ modem.open(port) ------------------------------------------------------------------------------------------------------------------------------- -local pathToSaveSendedFiles = "MineOS/Downloads/" -local contactsAvatarsPath = "MineOS/System/Chat/Avatars/" +local pathToApplication = "/MineOS/Applications/Chat.app/" +local pathToSaveSendedFiles = "/MineOS/Downloads/" +local contactsAvatarsPath = pathToApplication .. "Resources/Avatars/" local personalAvatarPath = contactsAvatarsPath .. "MyAvatar.pic" local chatHistoryPath = "MineOS/System/Chat/History.cfg" local avatarWidthLimit = 6