Skip to content

Commit

Permalink
n64video_config_defaults -> n64video_config_init
Browse files Browse the repository at this point in the history
  • Loading branch information
ata4 committed Apr 22, 2019
1 parent 422a7d8 commit 5a3dfce
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/core/n64video.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ static void cmd_init(void)
rdp_cmd_len = CMD_MAX_INTS;
}

void n64video_config_defaults(struct n64video_config* config)
void n64video_config_init(struct n64video_config* config)
{
config->parallel = true;
config->num_workers = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/core/n64video.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ struct n64video_config
uint32_t num_workers;
};

void n64video_config_defaults(struct n64video_config* config);
void n64video_config_init(struct n64video_config* config);
void n64video_init(struct n64video_config* config);
void n64video_update_screen(void);
void n64video_process_list(void);
Expand Down
2 changes: 1 addition & 1 deletion src/plugin/mupen64plus/gfx_m64p.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ EXPORT m64p_error CALL PluginStartup(m64p_dynlib_handle _CoreLibHandle, void *Co
ConfigSetDefaultInt(configVideoGeneral, KEY_SCREEN_WIDTH, 640, "Width of output window or fullscreen width");
ConfigSetDefaultInt(configVideoGeneral, KEY_SCREEN_HEIGHT, 480, "Height of output window or fullscreen height");

n64video_config_defaults(&config);
n64video_config_init(&config);

ConfigSetDefaultBool(configVideoAngrylionPlus, KEY_PARALLEL, config.parallel, "Distribute rendering between multiple processors if True");
ConfigSetDefaultInt(configVideoAngrylionPlus, KEY_NUM_WORKERS, config.num_workers, "Rendering Workers (0=Use all logical processors)");
Expand Down
2 changes: 1 addition & 1 deletion src/plugin/zilmar/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ INT_PTR CALLBACK config_dialog_proc(HWND hwnd, UINT iMessage, WPARAM wParam, LPA
SetWindowText(hwnd, CORE_BASE_NAME " Config");

if (!config_load()) {
n64video_config_defaults(&config);
n64video_config_init(&config);
}

char* vi_mode_strings[] = {
Expand Down

0 comments on commit 5a3dfce

Please sign in to comment.