config/~/FlipperZero/FW Patch/set_my_name.patch

42 lines
1.6 KiB
Diff
Raw Normal View History

2023-04-27 22:59:24 +03:00
diff --git a/applications/settings/dolphin_passport/passport.c b/applications/settings/dolphin_passport/passport.c
2023-04-27 23:33:02 +03:00
index d43f150c..40d51678 100644
2023-04-27 22:59:24 +03:00
--- a/applications/settings/dolphin_passport/passport.c
+++ b/applications/settings/dolphin_passport/passport.c
2023-04-27 23:33:02 +03:00
@@ -37,21 +37,8 @@ static void input_callback(InputEvent* input, void* ctx) {
static void render_callback(Canvas* canvas, void* ctx) {
DolphinStats* stats = ctx;
- char level_str[20];
- char mood_str[32];
uint8_t mood = 0;
- if(stats->butthurt <= 4) {
- mood = 0;
- snprintf(mood_str, 20, "Mood: Happy");
- } else if(stats->butthurt <= 9) {
- mood = 1;
- snprintf(mood_str, 20, "Mood: Ok");
- } else {
- mood = 2;
- snprintf(mood_str, 20, "Mood: Angry");
- }
-
uint32_t xp_progress = 0;
uint32_t xp_to_levelup = dolphin_state_xp_to_levelup(stats->icounter);
uint32_t xp_for_current_level =
@@ -76,11 +63,9 @@ static void render_callback(Canvas* canvas, void* ctx) {
2023-04-27 22:59:24 +03:00
canvas_draw_line(canvas, 58, 30, 123, 30);
canvas_draw_line(canvas, 58, 44, 123, 44);
- const char* my_name = furi_hal_version_get_name_ptr();
2023-04-27 23:33:02 +03:00
- snprintf(level_str, 20, "Level: %hu", stats->level);
- canvas_draw_str(canvas, 58, 12, my_name ? my_name : "Unknown");
- canvas_draw_str(canvas, 58, 26, mood_str);
- canvas_draw_str(canvas, 58, 40, level_str);
+ canvas_draw_str(canvas, 58, 12, "AlexanderPopov");
+ canvas_draw_str(canvas, 58, 26, "8 911 313-90-95");
+ canvas_draw_str(canvas, 58, 40, "iiiypuk.me");
canvas_set_color(canvas, ColorWhite);
canvas_draw_box(canvas, 123 - xp_progress, 47, xp_progress + 1, 6);