mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-14 19:15:05 -05:00
Fix profile links
This commit is contained in:
parent
8e4b76f7d1
commit
3fe102d2ca
2 changed files with 13 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
12
loader/src/hooks/ProfilePageFix.cpp
Normal file
12
loader/src/hooks/ProfilePageFix.cpp
Normal 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());
|
||||
}
|
||||
};
|
Loading…
Reference in a new issue