Tune street: Fix profile name not displayed

This commit is contained in:
cracrayol 2021-04-10 13:47:18 +02:00
parent ad677b4c2b
commit bc93c8603e
2 changed files with 5 additions and 3 deletions

View File

@ -11,6 +11,8 @@ Plugin Version: **v2.0.0**
- pop'n music Usagi to Neko to Shōnen no Yume
- pop'n music peace
Important : require minimum Asphyxia Core **v1.31**
## Changelog
### 2.0.0

View File

@ -45,9 +45,9 @@ export const getProfile = async (refid: string, name?: string) => {
const params = await utils.readParams(refid, version);
let binary_profile = Array(2200).fill(0);
let name_binary = profile.name.substr(0, 12);
for (let i = 0; i < name_binary.length; i++) {
binary_profile[i] = name_binary.charAt(i);
let name_binary = U.EncodeString(profile.name, 'shift_jis');
for (let i = 0; i < name_binary.length || i < 12; i++) {
binary_profile[i] = name_binary[i];
}
binary_profile[13] = {