mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-06-13 04:10:50 -05:00
Render users actual Mii in Mii editor
This commit is contained in:
parent
6deca851c5
commit
d35d031583
|
|
@ -214,9 +214,8 @@ router.post('/online-files', requireLoginMiddleware, async (request, response) =
|
|||
response.end(onlineFiles.toBuffer());
|
||||
});
|
||||
|
||||
router.get('/miieditor', async (request, response) => {
|
||||
// Should obviously be the user's
|
||||
const encodedUserMiiData = 'AwAAQOlVognnx0GC2X0LLQOzuI0n2QAAAUBiAGUAbABsAGEAAABFAAAAAAAAAEBAEgCBAQRoQxggNEYUgRIXaA0AACkDUkhQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP6G';
|
||||
router.get('/miieditor', requireLoginMiddleware, async (request, response) => {
|
||||
const { account } = request;
|
||||
|
||||
// Adapted from https://www.3dbrew.org/wiki/Mii#Mapped_Editor_.3C-.3E_Hex_values
|
||||
|
||||
|
|
@ -260,7 +259,7 @@ router.get('/miieditor', async (request, response) => {
|
|||
};
|
||||
|
||||
response.render('account/miieditor', {
|
||||
encodedUserMiiData,
|
||||
encodedUserMiiData: account.mii.data,
|
||||
editorToHex
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user