mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Ensure we are serializing file extensions for costumes and sounds as lower case.
This commit is contained in:
parent
585a46f334
commit
6f3c84bf77
1 changed files with 2 additions and 2 deletions
|
@ -306,7 +306,7 @@ const serializeCostume = function (costume) {
|
|||
// but that change should be made carefully since it is very
|
||||
// pervasive
|
||||
obj.md5ext = costume.md5;
|
||||
obj.dataFormat = costume.dataFormat;
|
||||
obj.dataFormat = costume.dataFormat.toLowerCase();
|
||||
obj.rotationCenterX = costume.rotationCenterX;
|
||||
obj.rotationCenterY = costume.rotationCenterY;
|
||||
return obj;
|
||||
|
@ -321,7 +321,7 @@ const serializeSound = function (sound) {
|
|||
const obj = Object.create(null);
|
||||
obj.assetId = sound.assetId;
|
||||
obj.name = sound.name;
|
||||
obj.dataFormat = sound.dataFormat;
|
||||
obj.dataFormat = sound.dataFormat.toLowerCase();
|
||||
obj.format = sound.format;
|
||||
obj.rate = sound.rate;
|
||||
obj.sampleCount = sound.sampleCount;
|
||||
|
|
Loading…
Reference in a new issue