Fix profile links

This commit is contained in:
FigmentBoy 2024-02-11 21:21:14 -05:00
parent 8e4b76f7d1
commit 3fe102d2ca
No known key found for this signature in database
GPG key ID: DAC9B296323BFA9B
2 changed files with 13 additions and 1 deletions

View file

@ -24,7 +24,7 @@ Developed by
* Camila314 - [GitHub](https://github.com/camila314/)
* zmx - [GitHub](https://github.com/qimiko/)
* PoweredByPie - [GitHub](https://github.com/poweredbypie/)
* fig - [GitHub](https://github.com/FigmentBoy)
* [fig](user:107269) - [GitHub](https://github.com/FigmentBoy)
* FireCubez - [GitHub](https://github.com/FireCubez)
* [And more!](https://github.com/geode-sdk/geode/graphs/contributors)

View file

@ -0,0 +1,12 @@
#include <Geode/modify/ProfilePage.hpp>
#include <Geode/binding/GJUserScore.hpp>
using namespace geode::prelude;
// Fixes the names not showing up on profile links
struct CustomProfilePage : Modify<CustomProfilePage, ProfilePage> {
virtual TodoReturn getUserInfoFinished(GJUserScore* info) {
ProfilePage::getUserInfoFinished(info);
m_usernameLabel->setString(info->m_userName.c_str());
}
};