-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'classic/dev' into classic/master
- Loading branch information
Showing
34 changed files
with
1,182 additions
and
89 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
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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
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
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,7 +1,7 @@ | ||
--@curseforge-project-slug: libsharedmedia-3-0@ | ||
--[[ | ||
Name: LibSharedMedia-3.0 | ||
Revision: $Revision: 128 $ | ||
Revision: $Revision: 151 $ | ||
Author: Elkano ([email protected]) | ||
Inspired By: SurfaceLib by Haste/Otravi ([email protected]) | ||
Website: http://www.wowace.com/projects/libsharedmedia-3-0/ | ||
|
@@ -23,11 +23,9 @@ local type = _G.type | |
local band = _G.bit.band | ||
local table_sort = _G.table.sort | ||
|
||
local RESTRICTED_FILE_ACCESS = WOW_PROJECT_ID == WOW_PROJECT_MAINLINE -- starting with 8.2, some rules for file access have changed; classic still uses the old way | ||
|
||
local locale = GetLocale() | ||
local locale_is_western | ||
local LOCALE_MASK = 0 | ||
local LOCALE_MASK | ||
lib.LOCALE_BIT_koKR = 1 | ||
lib.LOCALE_BIT_ruRU = 2 | ||
lib.LOCALE_BIT_zhCN = 4 | ||
|
@@ -199,7 +197,7 @@ lib.DefaultMedia.statusbar = "Blizzard" | |
|
||
-- SOUND | ||
if not lib.MediaTable.sound then lib.MediaTable.sound = {} end | ||
lib.MediaTable.sound["None"] = RESTRICTED_FILE_ACCESS and 1 or [[Interface\Quiet.ogg]] -- Relies on the fact that PlaySound[File] doesn't error on these values. | ||
lib.MediaTable.sound["None"] = 1 -- Relies on the fact that PlaySoundFile doesn't error on this value | ||
lib.DefaultMedia.sound = "None" | ||
|
||
local function rebuildMediaList(mediatype) | ||
|
@@ -230,7 +228,7 @@ function lib:Register(mediatype, key, data, langmask) | |
end | ||
if type(data) == "string" and (mediatype == lib.MediaType.BACKGROUND or mediatype == lib.MediaType.BORDER or mediatype == lib.MediaType.STATUSBAR or mediatype == lib.MediaType.SOUND) then | ||
local path = data:lower() | ||
if RESTRICTED_FILE_ACCESS and not path:find("^interface") then | ||
if not path:find("^interface") then | ||
-- files accessed via path only allowed from interface folder | ||
return false | ||
end | ||
|
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
Oops, something went wrong.