Who tf wrote this, and why? | Biggest stability update ever

Bro, what the fuck is this bullshit? I swear imma go cry if I see more shit like that...
This commit is contained in:
VerstreuteSeele
2023-01-06 01:45:02 +01:00
parent f082ca1915
commit a026ab37bd
199 changed files with 152 additions and 1068 deletions

View File

@@ -8,6 +8,8 @@
#include <notification/notification.h>
#include <notification/notification_messages.h>
#include <assets_icons.h>
#include <flipper_format/flipper_format_i.h>
#include <lib/toolbox/path.h>
#include <applications/main/subghz/subghz_i.h>
@@ -18,33 +20,11 @@
#include <lib/subghz/protocols/keeloq.h>
#include <lib/subghz/protocols/star_line.h>
#include <SubGHz_Remote_icons.h>
#define UNIRFMAP_FOLDER "/ext/subghz/unirf"
#define UNIRFMAP_FOLDER "/ext/unirf"
#define UNIRFMAP_EXTENSION ".txt"
#define TAG "UniRF Remix"
static const char* mfname;
static int kl_type;
void keeloq_reset_mfname() {
mfname = "";
}
void keeloq_reset_kl_type() {
kl_type = 0;
}
void star_line_reset_mfname() {
mfname = "";
}
void star_line_reset_kl_type() {
kl_type = 0;
}
typedef struct {
uint32_t frequency;
FuriString* name;
@@ -707,8 +687,6 @@ static void render_callback(Canvas* canvas, void* ctx) {
canvas_draw_icon(canvas, 113, 15, &I_Pin_cell_13x13);
canvas_draw_icon(canvas, 116, 18, &I_Pin_star_7x7);
break;
default:
break;
}
//Repeat indicator
@@ -728,7 +706,7 @@ static void input_callback(InputEvent* input_event, void* ctx) {
void unirfremix_subghz_alloc(UniRFRemix* app) {
// load subghz presets
app->setting = subghz_setting_alloc();
subghz_setting_load(app->setting, EXT_PATH("subghz/assets/setting_user.txt"));
subghz_setting_load(app->setting, EXT_PATH("subghz/assets/setting_user"));
// load mfcodes
app->environment = subghz_environment_alloc();
@@ -1004,8 +982,6 @@ int32_t unirfremix_app(void* p) {
case 5:
app->send_status_c = 5;
break;
default:
break;
}
app->processing = 2;