/** * rarch_game_specific_options: * * Returns: true (1) if a game specific core * options path has been found, * otherwise false (0). **/ static bool rarch_game_specific_options(char **output) { char game_path[255]; game_path[0] ='\0'; if (!retroarch_validate_game_options(game_path, sizeof(game_path), false)) return false; if (!config_file_exists(game_path)) return false; RARCH_LOG("%s %s\n", msg_hash_to_str(MSG_GAME_SPECIFIC_CORE_OPTIONS_FOUND_AT), game_path); *output = strdup(game_path); return true; }
/** * rarch_game_specific_options: * * Returns: true (1) if a game specific core * options path has been found, * otherwise false (0). **/ static bool rarch_game_specific_options(char **output) { char game_path[PATH_MAX_LENGTH]; config_file_t *option_file = NULL; if (!retroarch_validate_game_options(game_path, sizeof(game_path), false)) return false; option_file = config_file_new(game_path); if (!option_file) return false; config_file_free(option_file); RARCH_LOG("Per-Game Options: " "game-specific core options found at %s\n", game_path); *output = strdup(game_path); return true; }
/** * rarch_game_specific_options: * * Returns: true (1) if a game specific core * options path has been found, * otherwise false (0). **/ static bool rarch_game_specific_options(char **output) { char game_path[PATH_MAX_LENGTH] = {0}; config_file_t *option_file = NULL; if (!retroarch_validate_game_options(game_path, sizeof(game_path), false)) return false; option_file = config_file_new(game_path); if (!option_file) return false; config_file_free(option_file); RARCH_LOG("%s %s\n", msg_hash_to_str(MSG_GAME_SPECIFIC_CORE_OPTIONS_FOUND_AT), game_path); *output = strdup(game_path); return true; }