mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-06-19 23:20:57 +00:00
edit profile url
This commit is contained in:
+1
-2
@@ -886,8 +886,7 @@ void MyAccountFrame::OnClickLogin(wxCommandEvent& event WXUNUSED(event)) {
|
|||||||
json["username"] = ctrlUsername->GetValue().utf8_string();
|
json["username"] = ctrlUsername->GetValue().utf8_string();
|
||||||
|
|
||||||
if (Login(json.dump())) {
|
if (Login(json.dump())) {
|
||||||
std::string picture = HTTP::Get("https://forum.beammp.com/user_avatar/forum.beammp.com/" + UIData::Username + "/240/19891_2.png");
|
std::string picture = HTTP::Get("https://forum.beammp.com/user_avatar/forum.beammp.com/" + UIData::Username + "/240/4411_2.png");
|
||||||
//4411_2
|
|
||||||
std::ofstream File("icons/" + UIData::Username + PictureType(picture), std::ios::binary);
|
std::ofstream File("icons/" + UIData::Username + PictureType(picture), std::ios::binary);
|
||||||
if (File.is_open()) {
|
if (File.is_open()) {
|
||||||
File << picture;
|
File << picture;
|
||||||
|
|||||||
Reference in New Issue
Block a user