~thestr4ng3r/rz-commodore

f2e3fc380ce633c8feb39cd2f7e5c423179124ba — Florian Märkl 4 months ago e067eaa
Update for RzCorePlugin Changes
1 files changed, 3 insertions(+), 5 deletions(-)

M src/core_commodore.c
M src/core_commodore.c => src/core_commodore.c +3 -5
@@ 148,11 148,8 @@ static bool cb_vic_ii_color(void *user, void *data) {
	return true;
}

static int commodore_init(void *user, const char *cmd) {
	RzCmd *rzcmd = user;
	RzCore *core = rzcmd->data;
static bool commodore_init(RzCore *core) {
	RzConfig *config = core->config;

	rz_config_lock(config, false);
	rz_config_set_i_cb(config, CFG_COLOR_BACKGROUND, RZ_VIC_II_PALETTE_COLOR_BLACK, cb_vic_ii_color);
	rz_config_set_i_cb(config, CFG_COLOR_INDIV, RZ_VIC_II_PALETTE_COLOR_WHITE, cb_vic_ii_color);


@@ 160,6 157,7 @@ static int commodore_init(void *user, const char *cmd) {
	rz_config_set_i_cb(config, CFG_COLOR_MULTI_B, RZ_VIC_II_PALETTE_COLOR_BLUE, cb_vic_ii_color);
	rz_config_lock(config, true);

	RzCmd *rzcmd = core->rcmd;
	RzCmdDesc *rot = rz_cmd_get_root(rzcmd);
	RzCmdDesc *root_cd = rz_cmd_desc_group_new(rzcmd, rot, "C=", NULL, NULL, &root_help);
	rz_warn_if_fail(root_cd);


@@ 168,7 166,7 @@ static int commodore_init(void *user, const char *cmd) {
	return true;
}

static int commodore_fini(void *user, const char *cmd) {
static bool commodore_fini(RzCore *core) {
	return true;
}