Hello there !
I'm here to tell you that I'm currently working on a brand new mod of Sonic Advance on Android. This mod will have the ability to select a soundtrack by pressing either of these 2 buttons in the image down below.
The problem is that I'm stuck with an obstacle and I can't make this feature properly as the result. Here are the codes that take care of the soundtrack select :
First of all, I implemented a private int value called "soundValue". Since it has no default value set, this value equals 0.
Then, there is an algorithm about when we are pressing either "Yes" or "No" during the soundtrack select menu ("Midi" or "GBA Mix" respectively for the mod's context).
As you can see, there is the "soundValue" value that eventually equals 1 when we press "No".
After that, there is a public boolean called "soundMode()" which gets the value of "soundValue".
This boolean will be used in the soundtrack folder condition. So if "soundMode()" equals "false", the program will take the soundtrack from the "/mid/" folder. Otherwise, it will take the soundtrack from the "/mid_gba/" folder.
Now, this whole implementation should normally work. In fact, the result of my codes go like this :
When the "soundValue" value equals 0, we get the soundtrack from "/mid/". And when I change the "soundValue" value to 1, we get the soundtrack from "/mid_gba/".
But what's not working however is the "soundValue" value changement when we press "No" during the mod's soundtrack select menu. The "soundValue" value doesn't change at all, and I wonder how to solve this issue.
Keep in mind that not only I'm just a beginner at Java programming, but most importantly, the whole result has to be written into Smali language. So if you give me the right solution in Java, I have to turn it into Smali, and this could be an difficult task depending of the solution's complexity because I don't know any software about converting Java programming into Smali language.
If you manage to helping me out, I'll credit you to my mod and I can give you a reward if you want.
Thanks for reading my demand.
I'm here to tell you that I'm currently working on a brand new mod of Sonic Advance on Android. This mod will have the ability to select a soundtrack by pressing either of these 2 buttons in the image down below.
The problem is that I'm stuck with an obstacle and I can't make this feature properly as the result. Here are the codes that take care of the soundtrack select :
First of all, I implemented a private int value called "soundValue". Since it has no default value set, this value equals 0.
Then, there is an algorithm about when we are pressing either "Yes" or "No" during the soundtrack select menu ("Midi" or "GBA Mix" respectively for the mod's context).
As you can see, there is the "soundValue" value that eventually equals 1 when we press "No".
After that, there is a public boolean called "soundMode()" which gets the value of "soundValue".
This boolean will be used in the soundtrack folder condition. So if "soundMode()" equals "false", the program will take the soundtrack from the "/mid/" folder. Otherwise, it will take the soundtrack from the "/mid_gba/" folder.
Now, this whole implementation should normally work. In fact, the result of my codes go like this :
When the "soundValue" value equals 0, we get the soundtrack from "/mid/". And when I change the "soundValue" value to 1, we get the soundtrack from "/mid_gba/".
But what's not working however is the "soundValue" value changement when we press "No" during the mod's soundtrack select menu. The "soundValue" value doesn't change at all, and I wonder how to solve this issue.
Keep in mind that not only I'm just a beginner at Java programming, but most importantly, the whole result has to be written into Smali language. So if you give me the right solution in Java, I have to turn it into Smali, and this could be an difficult task depending of the solution's complexity because I don't know any software about converting Java programming into Smali language.
If you manage to helping me out, I'll credit you to my mod and I can give you a reward if you want.
Thanks for reading my demand.