Skip to content

Commit

Permalink
Fix special characters on image names.
Browse files Browse the repository at this point in the history
Merge pull request #37 from haroldo-ok/fix-accents-on-image-names
This fixes #28
  • Loading branch information
haroldo-ok authored Oct 16, 2022
2 parents a5548bf + 6552b81 commit 8f659b7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions blockly/generators/arduino/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ function getImage(component, imgType) {

Blockly.Arduino.images_[imgName] = {
imgType, imgName, imgAbbrev,
viDecl: `const char *vi_${imgName} = "${imgAbbrev}.${imgExt}";`
viDecl: `const char *vi_${imgAbbrev} = "${imgAbbrev}.${imgExt}";`
}

return 'vi_' + imgName;
return 'vi_' + imgAbbrev;
}

Blockly.Arduino.background_image = function() {
Expand Down
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"projects": "./projects"
},
"project": {
"name": "keyboard-buffer-test"
"name": "test"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "BlocklyVN8bit",
"version": "0.2.6",
"version": "0.2.7",
"description": "Uses blockly to generate visual novels for 8bit-Unity",
"main": "main.js",
"scripts": {
Expand Down

0 comments on commit 8f659b7

Please sign in to comment.