mirror of
https://github.com/asphyxia-core/plugins.git
synced 2026-09-22 22:27:56 +03:00
Tune street: Fix profile name not displayed
This commit is contained in:
@@ -11,6 +11,8 @@ Plugin Version: **v2.0.0**
|
|||||||
- pop'n music Usagi to Neko to Shōnen no Yume
|
- pop'n music Usagi to Neko to Shōnen no Yume
|
||||||
- pop'n music peace
|
- pop'n music peace
|
||||||
|
|
||||||
|
Important : require minimum Asphyxia Core **v1.31**
|
||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
### 2.0.0
|
### 2.0.0
|
||||||
|
|||||||
@@ -45,9 +45,9 @@ export const getProfile = async (refid: string, name?: string) => {
|
|||||||
const params = await utils.readParams(refid, version);
|
const params = await utils.readParams(refid, version);
|
||||||
|
|
||||||
let binary_profile = Array(2200).fill(0);
|
let binary_profile = Array(2200).fill(0);
|
||||||
let name_binary = profile.name.substr(0, 12);
|
let name_binary = U.EncodeString(profile.name, 'shift_jis');
|
||||||
for (let i = 0; i < name_binary.length; i++) {
|
for (let i = 0; i < name_binary.length || i < 12; i++) {
|
||||||
binary_profile[i] = name_binary.charAt(i);
|
binary_profile[i] = name_binary[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
binary_profile[13] = {
|
binary_profile[13] = {
|
||||||
|
|||||||
Reference in New Issue
Block a user