Skip to content

Commit

Permalink
Add violin.
Browse files Browse the repository at this point in the history
FIx hotkey loading after new notes added
  • Loading branch information
ideal-fire committed Aug 21, 2018
1 parent f6669bd commit 171328b
Show file tree
Hide file tree
Showing 31 changed files with 9 additions and 5 deletions.
5 changes: 4 additions & 1 deletion bin/assets/Free/Scripts/init.lua
Expand Up @@ -237,4 +237,7 @@ addTripleNotes("assets/Proprietary/Sound/flute_%d.wav",16,"assets/Proprietary/Im
addSingleNote("assets/Proprietary/Sound/festive_%d.wav",19,"assets/Proprietary/Images/festive.png");

-- Add guitar notes
addTripleNotes("assets/Proprietary/Sound/spanish_guitar_%d.wav",20,"assets/Proprietary/Images/guitar.png","assets/Proprietary/Images/guitarSharp.png","assets/Proprietary/Images/guitarFlat.png",'G');
addTripleNotes("assets/Proprietary/Sound/spanish_guitar_%d.wav",20,"assets/Proprietary/Images/guitar.png","assets/Proprietary/Images/guitarSharp.png","assets/Proprietary/Images/guitarFlat.png",'G');

-- Add violin notes
addTripleNotes("assets/Proprietary/Sound/violin_%d.wav",23,"assets/Proprietary/Images/violin.png","assets/Proprietary/Images/violinSharp.png","assets/Proprietary/Images/violinFlat.png",'V');
Binary file added bin/assets/Proprietary/Images/violin.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/assets/Proprietary/Images/violinFlat.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/assets/Proprietary/Images/violinSharp.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/assets/Proprietary/Sound/violin_0.wav
Binary file not shown.
Binary file added bin/assets/Proprietary/Sound/violin_1.wav
Binary file not shown.
Binary file added bin/assets/Proprietary/Sound/violin_10.wav
Binary file not shown.
Binary file added bin/assets/Proprietary/Sound/violin_11.wav
Binary file not shown.
Binary file added bin/assets/Proprietary/Sound/violin_12.wav
Binary file not shown.
Binary file added bin/assets/Proprietary/Sound/violin_13.wav
Binary file not shown.
Binary file added bin/assets/Proprietary/Sound/violin_14.wav
Binary file not shown.
Binary file added bin/assets/Proprietary/Sound/violin_15.wav
Binary file not shown.
Binary file added bin/assets/Proprietary/Sound/violin_16.wav
Binary file not shown.
Binary file added bin/assets/Proprietary/Sound/violin_17.wav
Binary file not shown.
Binary file added bin/assets/Proprietary/Sound/violin_18.wav
Binary file not shown.
Binary file added bin/assets/Proprietary/Sound/violin_19.wav
Binary file not shown.
Binary file added bin/assets/Proprietary/Sound/violin_2.wav
Binary file not shown.
Binary file added bin/assets/Proprietary/Sound/violin_20.wav
Binary file not shown.
Binary file added bin/assets/Proprietary/Sound/violin_21.wav
Binary file not shown.
Binary file added bin/assets/Proprietary/Sound/violin_22.wav
Binary file not shown.
Binary file added bin/assets/Proprietary/Sound/violin_23.wav
Binary file not shown.
Binary file added bin/assets/Proprietary/Sound/violin_24.wav
Binary file not shown.
Binary file added bin/assets/Proprietary/Sound/violin_25.wav
Binary file not shown.
Binary file added bin/assets/Proprietary/Sound/violin_3.wav
Binary file not shown.
Binary file added bin/assets/Proprietary/Sound/violin_4.wav
Binary file not shown.
Binary file added bin/assets/Proprietary/Sound/violin_5.wav
Binary file not shown.
Binary file added bin/assets/Proprietary/Sound/violin_6.wav
Binary file not shown.
Binary file added bin/assets/Proprietary/Sound/violin_7.wav
Binary file not shown.
Binary file added bin/assets/Proprietary/Sound/violin_8.wav
Binary file not shown.
Binary file added bin/assets/Proprietary/Sound/violin_9.wav
Binary file not shown.
9 changes: 5 additions & 4 deletions src/main.c
Expand Up @@ -35,8 +35,8 @@ todo - script button
#include "nathanList.h"

///////////////////////////////////////
#define VERSIONNUMBER 1
#define VERSIONSTRING "v1.0"
#define VERSIONNUMBER 2
#define VERSIONSTRING "v1.1"
//////////////////
#define SETTINGSVERSION 1
#define HOTKEYVERSION 1
Expand Down Expand Up @@ -407,8 +407,9 @@ void loadHotkeys(){
fread(&_tempReadVersion,sizeof(u8),1,fp);
if (_tempReadVersion>=1){
int i;
fread(&totalNotes,sizeof(u16),1,fp);
for (i=0;i<totalNotes;++i){
u16 _readTotalNotes;
fread(&_readTotalNotes,sizeof(u16),1,fp);
for (i=0;i<_readTotalNotes;++i){
fread(&(noteHotkeys[i]),sizeof(SDL_Keycode),1,fp);
}
u16 _readTotalUI;
Expand Down

0 comments on commit 171328b

Please sign in to comment.