/* latest.c generated by valac 0.56.19, the Vala compiler
 * generated from latest.vala, do not modify */

#include <glib-object.h>
#include <gio/gio.h>
#include <glib.h>
#include <stdlib.h>
#include <string.h>

#if !defined(VALA_STRICT_C)
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 14)
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#elif defined(__clang__) && (__clang_major__ >= 16)
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
#endif
#if !defined(VALA_EXTERN)
#if defined(_MSC_VER)
#define VALA_EXTERN __declspec(dllexport) extern
#elif __GNUC__ >= 4
#define VALA_EXTERN __attribute__((visibility("default"))) extern
#else
#define VALA_EXTERN extern
#endif
#endif

#define PROTON_PLUS_MODELS_TYPE_BASE_RELEASE (proton_plus_models_base_release_get_type ())
#define PROTON_PLUS_MODELS_BASE_RELEASE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_TYPE_BASE_RELEASE, ProtonPlusModelsBaseRelease))
#define PROTON_PLUS_MODELS_BASE_RELEASE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_TYPE_BASE_RELEASE, ProtonPlusModelsBaseReleaseClass))
#define PROTON_PLUS_MODELS_IS_BASE_RELEASE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_TYPE_BASE_RELEASE))
#define PROTON_PLUS_MODELS_IS_BASE_RELEASE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_TYPE_BASE_RELEASE))
#define PROTON_PLUS_MODELS_BASE_RELEASE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_TYPE_BASE_RELEASE, ProtonPlusModelsBaseReleaseClass))

typedef struct _ProtonPlusModelsBaseRelease ProtonPlusModelsBaseRelease;
typedef struct _ProtonPlusModelsBaseReleaseClass ProtonPlusModelsBaseReleaseClass;
typedef struct _ProtonPlusModelsBaseReleasePrivate ProtonPlusModelsBaseReleasePrivate;

#define PROTON_PLUS_MODELS_TYPE_PARAMETERS (proton_plus_models_parameters_get_type ())
#define PROTON_PLUS_MODELS_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_TYPE_PARAMETERS, ProtonPlusModelsParameters))
#define PROTON_PLUS_MODELS_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_TYPE_PARAMETERS, ProtonPlusModelsParametersClass))
#define PROTON_PLUS_MODELS_IS_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_TYPE_PARAMETERS))
#define PROTON_PLUS_MODELS_IS_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_TYPE_PARAMETERS))
#define PROTON_PLUS_MODELS_PARAMETERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_TYPE_PARAMETERS, ProtonPlusModelsParametersClass))

typedef struct _ProtonPlusModelsParameters ProtonPlusModelsParameters;
typedef struct _ProtonPlusModelsParametersClass ProtonPlusModelsParametersClass;

#define PROTON_PLUS_MODELS_TYPE_RELEASE (proton_plus_models_release_get_type ())
#define PROTON_PLUS_MODELS_RELEASE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_TYPE_RELEASE, ProtonPlusModelsRelease))
#define PROTON_PLUS_MODELS_RELEASE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_TYPE_RELEASE, ProtonPlusModelsReleaseClass))
#define PROTON_PLUS_MODELS_IS_RELEASE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_TYPE_RELEASE))
#define PROTON_PLUS_MODELS_IS_RELEASE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_TYPE_RELEASE))
#define PROTON_PLUS_MODELS_RELEASE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_TYPE_RELEASE, ProtonPlusModelsReleaseClass))

typedef struct _ProtonPlusModelsRelease ProtonPlusModelsRelease;
typedef struct _ProtonPlusModelsReleaseClass ProtonPlusModelsReleaseClass;
typedef struct _ProtonPlusModelsReleasePrivate ProtonPlusModelsReleasePrivate;

#define PROTON_PLUS_MODELS_RELEASES_TYPE_BASIC (proton_plus_models_releases_basic_get_type ())
#define PROTON_PLUS_MODELS_RELEASES_BASIC(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_RELEASES_TYPE_BASIC, ProtonPlusModelsReleasesBasic))
#define PROTON_PLUS_MODELS_RELEASES_BASIC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_RELEASES_TYPE_BASIC, ProtonPlusModelsReleasesBasicClass))
#define PROTON_PLUS_MODELS_RELEASES_IS_BASIC(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_RELEASES_TYPE_BASIC))
#define PROTON_PLUS_MODELS_RELEASES_IS_BASIC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_RELEASES_TYPE_BASIC))
#define PROTON_PLUS_MODELS_RELEASES_BASIC_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_RELEASES_TYPE_BASIC, ProtonPlusModelsReleasesBasicClass))

typedef struct _ProtonPlusModelsReleasesBasic ProtonPlusModelsReleasesBasic;
typedef struct _ProtonPlusModelsReleasesBasicClass ProtonPlusModelsReleasesBasicClass;
typedef struct _ProtonPlusModelsReleasesBasicPrivate ProtonPlusModelsReleasesBasicPrivate;

#define PROTON_PLUS_MODELS_RELEASES_TYPE_LATEST (proton_plus_models_releases_latest_get_type ())
#define PROTON_PLUS_MODELS_RELEASES_LATEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_RELEASES_TYPE_LATEST, ProtonPlusModelsReleasesLatest))
#define PROTON_PLUS_MODELS_RELEASES_LATEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_RELEASES_TYPE_LATEST, ProtonPlusModelsReleasesLatestClass))
#define PROTON_PLUS_MODELS_RELEASES_IS_LATEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_RELEASES_TYPE_LATEST))
#define PROTON_PLUS_MODELS_RELEASES_IS_LATEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_RELEASES_TYPE_LATEST))
#define PROTON_PLUS_MODELS_RELEASES_LATEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_RELEASES_TYPE_LATEST, ProtonPlusModelsReleasesLatestClass))

typedef struct _ProtonPlusModelsReleasesLatest ProtonPlusModelsReleasesLatest;
typedef struct _ProtonPlusModelsReleasesLatestClass ProtonPlusModelsReleasesLatestClass;
typedef struct _ProtonPlusModelsReleasesLatestPrivate ProtonPlusModelsReleasesLatestPrivate;
enum  {
	PROTON_PLUS_MODELS_RELEASES_LATEST_0_PROPERTY,
	PROTON_PLUS_MODELS_RELEASES_LATEST_NUM_PROPERTIES
};
static GParamSpec* proton_plus_models_releases_latest_properties[PROTON_PLUS_MODELS_RELEASES_LATEST_NUM_PROPERTIES];

#define PROTON_PLUS_MODELS_TYPE_RUNNER (proton_plus_models_runner_get_type ())
#define PROTON_PLUS_MODELS_RUNNER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_TYPE_RUNNER, ProtonPlusModelsRunner))
#define PROTON_PLUS_MODELS_RUNNER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_TYPE_RUNNER, ProtonPlusModelsRunnerClass))
#define PROTON_PLUS_MODELS_IS_RUNNER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_TYPE_RUNNER))
#define PROTON_PLUS_MODELS_IS_RUNNER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_TYPE_RUNNER))
#define PROTON_PLUS_MODELS_RUNNER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_TYPE_RUNNER, ProtonPlusModelsRunnerClass))

typedef struct _ProtonPlusModelsRunner ProtonPlusModelsRunner;
typedef struct _ProtonPlusModelsRunnerClass ProtonPlusModelsRunnerClass;

#define PROTON_PLUS_MODELS_RUNNERS_TYPE_BASIC (proton_plus_models_runners_basic_get_type ())
#define PROTON_PLUS_MODELS_RUNNERS_BASIC(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_RUNNERS_TYPE_BASIC, ProtonPlusModelsRunnersBasic))
#define PROTON_PLUS_MODELS_RUNNERS_BASIC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_RUNNERS_TYPE_BASIC, ProtonPlusModelsRunnersBasicClass))
#define PROTON_PLUS_MODELS_RUNNERS_IS_BASIC(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_RUNNERS_TYPE_BASIC))
#define PROTON_PLUS_MODELS_RUNNERS_IS_BASIC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_RUNNERS_TYPE_BASIC))
#define PROTON_PLUS_MODELS_RUNNERS_BASIC_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_RUNNERS_TYPE_BASIC, ProtonPlusModelsRunnersBasicClass))

typedef struct _ProtonPlusModelsRunnersBasic ProtonPlusModelsRunnersBasic;
typedef struct _ProtonPlusModelsRunnersBasicClass ProtonPlusModelsRunnersBasicClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))
typedef struct _ProtonPlusModelsReleasesLatestStartInstallData ProtonPlusModelsReleasesLatestStartInstallData;

struct _ProtonPlusModelsBaseRelease {
	GObject parent_instance;
	ProtonPlusModelsBaseReleasePrivate * priv;
};

struct _ProtonPlusModelsBaseReleaseClass {
	GObjectClass parent_class;
	void (*install) (ProtonPlusModelsBaseRelease* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	gboolean (*install_finish) (ProtonPlusModelsBaseRelease* self, GAsyncResult* _res_);
	void (*_start_install) (ProtonPlusModelsBaseRelease* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	gboolean (*_start_install_finish) (ProtonPlusModelsBaseRelease* self, GAsyncResult* _res_);
	void (*remove) (ProtonPlusModelsBaseRelease* self, ProtonPlusModelsParameters* parameters, GAsyncReadyCallback _callback_, gpointer _user_data_);
	gboolean (*remove_finish) (ProtonPlusModelsBaseRelease* self, GAsyncResult* _res_);
	void (*refresh_state) (ProtonPlusModelsBaseRelease* self);
};

struct _ProtonPlusModelsRelease {
	ProtonPlusModelsBaseRelease parent_instance;
	ProtonPlusModelsReleasePrivate * priv;
};

struct _ProtonPlusModelsReleaseClass {
	ProtonPlusModelsBaseReleaseClass parent_class;
	void (*_start_remove) (ProtonPlusModelsRelease* self, gconstpointer parameters, GAsyncReadyCallback _callback_, gpointer _user_data_);
	gboolean (*_start_remove_finish) (ProtonPlusModelsRelease* self, GAsyncResult* _res_);
};

struct _ProtonPlusModelsReleasesBasic {
	ProtonPlusModelsRelease parent_instance;
	ProtonPlusModelsReleasesBasicPrivate * priv;
};

struct _ProtonPlusModelsReleasesBasicClass {
	ProtonPlusModelsReleaseClass parent_class;
};

struct _ProtonPlusModelsReleasesLatest {
	ProtonPlusModelsReleasesBasic parent_instance;
	ProtonPlusModelsReleasesLatestPrivate * priv;
};

struct _ProtonPlusModelsReleasesLatestClass {
	ProtonPlusModelsReleasesBasicClass parent_class;
};

struct _ProtonPlusModelsReleasesLatestStartInstallData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	ProtonPlusModelsReleasesLatest* self;
	gboolean result;
	gboolean installed;
	gchar* compatibilitytoolvdf_path;
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* compatibilitytoolvdf_content;
	const gchar* _tmp3_;
	gchar* _tmp4_;
	const gchar* _tmp5_;
	gchar* start_text;
	gchar* _tmp6_;
	gchar* end_text;
	gchar* _tmp7_;
	gint start_pos;
	gint end_pos;
	gchar* _tmp8_;
	const gchar* _tmp9_;
	const gchar* _tmp10_;
	const gchar* _tmp11_;
	gint _tmp12_;
	gint _tmp13_;
	gchar* _tmp14_;
	const gchar* _tmp15_;
	const gchar* _tmp16_;
	gchar* internal_title;
	const gchar* _tmp17_;
	gchar* _tmp18_;
	const gchar* _tmp19_;
	const gchar* _tmp20_;
	const gchar* _tmp21_;
	const gchar* _tmp22_;
	const gchar* _tmp23_;
	gint _tmp24_;
	gint _tmp25_;
	const gchar* _tmp26_;
	gint _tmp27_;
	gint _tmp28_;
	gchar* internal_title_line;
	const gchar* _tmp29_;
	gchar* _tmp30_;
	gchar* internal_title_line_modified;
	const gchar* _tmp31_;
	const gchar* _tmp32_;
	const gchar* _tmp33_;
	const gchar* _tmp34_;
	gchar* _tmp35_;
	const gchar* _tmp36_;
	const gchar* _tmp37_;
	const gchar* _tmp38_;
	gchar* _tmp39_;
	gchar* _tmp40_;
	const gchar* _tmp41_;
	const gchar* _tmp42_;
	const gchar* _tmp43_;
	gint _tmp44_;
	gint _tmp45_;
	gchar* _tmp46_;
	const gchar* _tmp47_;
	const gchar* _tmp48_;
	gchar* display_title;
	const gchar* _tmp49_;
	gchar* _tmp50_;
	const gchar* _tmp51_;
	const gchar* _tmp52_;
	const gchar* _tmp53_;
	const gchar* _tmp54_;
	const gchar* _tmp55_;
	gint _tmp56_;
	gint _tmp57_;
	const gchar* _tmp58_;
	gint _tmp59_;
	gint _tmp60_;
	gchar* display_title_line;
	const gchar* _tmp61_;
	gchar* _tmp62_;
	gchar* display_title_line_modified;
	const gchar* _tmp63_;
	const gchar* _tmp64_;
	const gchar* _tmp65_;
	const gchar* _tmp66_;
	gchar* _tmp67_;
	const gchar* _tmp68_;
	const gchar* _tmp69_;
	const gchar* _tmp70_;
	gchar* _tmp71_;
	gboolean modified;
	const gchar* _tmp72_;
	const gchar* _tmp73_;
};

static gpointer proton_plus_models_releases_latest_parent_class = NULL;

VALA_EXTERN GType proton_plus_models_base_release_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsBaseRelease, g_object_unref)
VALA_EXTERN GType proton_plus_models_parameters_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsParameters, g_object_unref)
VALA_EXTERN GType proton_plus_models_release_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsRelease, g_object_unref)
VALA_EXTERN GType proton_plus_models_releases_basic_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsReleasesBasic, g_object_unref)
VALA_EXTERN GType proton_plus_models_releases_latest_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsReleasesLatest, g_object_unref)
VALA_EXTERN void _proton_plus_models_base_release_start_install (ProtonPlusModelsBaseRelease* self,
                                                     GAsyncReadyCallback _callback_,
                                                     gpointer _user_data_);
VALA_EXTERN gboolean _proton_plus_models_base_release_start_install_finish (ProtonPlusModelsBaseRelease* self,
                                                                GAsyncResult* _res_);
VALA_EXTERN GType proton_plus_models_runner_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsRunner, g_object_unref)
VALA_EXTERN GType proton_plus_models_runners_basic_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsRunnersBasic, g_object_unref)
VALA_EXTERN ProtonPlusModelsReleasesLatest* proton_plus_models_releases_latest_new (ProtonPlusModelsRunnersBasic* runner,
                                                                        const gchar* title,
                                                                        const gchar* description,
                                                                        const gchar* release_date,
                                                                        const gchar* download_url,
                                                                        const gchar* page_url);
VALA_EXTERN ProtonPlusModelsReleasesLatest* proton_plus_models_releases_latest_construct (GType object_type,
                                                                              ProtonPlusModelsRunnersBasic* runner,
                                                                              const gchar* title,
                                                                              const gchar* description,
                                                                              const gchar* release_date,
                                                                              const gchar* download_url,
                                                                              const gchar* page_url);
VALA_EXTERN ProtonPlusModelsReleasesBasic* proton_plus_models_releases_basic_new (void);
VALA_EXTERN ProtonPlusModelsReleasesBasic* proton_plus_models_releases_basic_construct (GType object_type);
VALA_EXTERN void proton_plus_models_releases_basic_shared (ProtonPlusModelsReleasesBasic* self,
                                               ProtonPlusModelsRunnersBasic* runner,
                                               const gchar* title,
                                               const gchar* release_date,
                                               const gchar* download_url,
                                               const gchar* page_url);
VALA_EXTERN void proton_plus_models_base_release_set_description (ProtonPlusModelsBaseRelease* self,
                                                      const gchar* value);
static void proton_plus_models_releases_latest_real__start_install_data_free (gpointer _data);
static void proton_plus_models_releases_latest_real__start_install (ProtonPlusModelsBaseRelease* base,
                                                             GAsyncReadyCallback _callback_,
                                                             gpointer _user_data_);
static gboolean proton_plus_models_releases_latest_real__start_install_co (ProtonPlusModelsReleasesLatestStartInstallData* _data_);
static void _proton_plus_models_releases_latest_start_install_ready (GObject* source_object,
                                                              GAsyncResult* _res_,
                                                              gpointer _user_data_);
VALA_EXTERN const gchar* proton_plus_models_releases_basic_get_destination_path (ProtonPlusModelsReleasesBasic* self);
VALA_EXTERN gchar* proton_plus_utils_filesystem_get_file_content (const gchar* path,
                                                      gboolean use_uri);
VALA_EXTERN const gchar* proton_plus_models_base_release_get_title (ProtonPlusModelsBaseRelease* self);
VALA_EXTERN gboolean proton_plus_utils_filesystem_modify_file (const gchar* path,
                                                   const gchar* content);
VALA_EXTERN void proton_plus_models_releases_basic_add_to_games_tab (ProtonPlusModelsReleasesBasic* self);
static GType proton_plus_models_releases_latest_get_type_once (void);

ProtonPlusModelsReleasesLatest*
proton_plus_models_releases_latest_construct (GType object_type,
                                              ProtonPlusModelsRunnersBasic* runner,
                                              const gchar* title,
                                              const gchar* description,
                                              const gchar* release_date,
                                              const gchar* download_url,
                                              const gchar* page_url)
{
	ProtonPlusModelsReleasesLatest * self = NULL;
	g_return_val_if_fail (runner != NULL, NULL);
	g_return_val_if_fail (title != NULL, NULL);
	g_return_val_if_fail (description != NULL, NULL);
	g_return_val_if_fail (release_date != NULL, NULL);
	g_return_val_if_fail (download_url != NULL, NULL);
	g_return_val_if_fail (page_url != NULL, NULL);
	self = (ProtonPlusModelsReleasesLatest*) proton_plus_models_releases_basic_construct (object_type);
	proton_plus_models_releases_basic_shared ((ProtonPlusModelsReleasesBasic*) self, runner, title, release_date, download_url, page_url);
	proton_plus_models_base_release_set_description ((ProtonPlusModelsBaseRelease*) self, description);
	return self;
}

ProtonPlusModelsReleasesLatest*
proton_plus_models_releases_latest_new (ProtonPlusModelsRunnersBasic* runner,
                                        const gchar* title,
                                        const gchar* description,
                                        const gchar* release_date,
                                        const gchar* download_url,
                                        const gchar* page_url)
{
	return proton_plus_models_releases_latest_construct (PROTON_PLUS_MODELS_RELEASES_TYPE_LATEST, runner, title, description, release_date, download_url, page_url);
}

static void
proton_plus_models_releases_latest_real__start_install_data_free (gpointer _data)
{
	ProtonPlusModelsReleasesLatestStartInstallData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->self);
	g_slice_free (ProtonPlusModelsReleasesLatestStartInstallData, _data_);
}

static gpointer
_g_object_ref0 (gpointer self)
{
	return self ? g_object_ref (self) : NULL;
}

static void
proton_plus_models_releases_latest_real__start_install (ProtonPlusModelsBaseRelease* base,
                                                        GAsyncReadyCallback _callback_,
                                                        gpointer _user_data_)
{
	ProtonPlusModelsReleasesLatest * self;
	ProtonPlusModelsReleasesLatestStartInstallData* _data_;
	ProtonPlusModelsReleasesLatest* _tmp0_;
	self = (ProtonPlusModelsReleasesLatest*) base;
	_data_ = g_slice_new0 (ProtonPlusModelsReleasesLatestStartInstallData);
	_data_->_async_result = g_task_new (G_OBJECT (self), NULL, _callback_, _user_data_);
	g_task_set_task_data (_data_->_async_result, _data_, proton_plus_models_releases_latest_real__start_install_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	proton_plus_models_releases_latest_real__start_install_co (_data_);
}

static gboolean
_proton_plus_models_releases_latest_start_install_finish (ProtonPlusModelsBaseRelease* base,
                                                          GAsyncResult* _res_)
{
	gboolean result;
	ProtonPlusModelsReleasesLatestStartInstallData* _data_;
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
	result = _data_->result;
	return result;
}

static void
_proton_plus_models_releases_latest_start_install_ready (GObject* source_object,
                                                         GAsyncResult* _res_,
                                                         gpointer _user_data_)
{
	ProtonPlusModelsReleasesLatestStartInstallData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	proton_plus_models_releases_latest_real__start_install_co (_data_);
}

static gint
string_index_of (const gchar* self,
                 const gchar* needle,
                 gint start_index)
{
	gchar* _result_ = NULL;
	gchar* _tmp0_;
	gchar* _tmp1_;
	gint result;
	g_return_val_if_fail (self != NULL, -1);
	g_return_val_if_fail (needle != NULL, -1);
	_tmp0_ = strstr (((gchar*) self) + start_index, (gchar*) needle);
	_result_ = _tmp0_;
	_tmp1_ = _result_;
	if (_tmp1_ != NULL) {
		gchar* _tmp2_;
		_tmp2_ = _result_;
		result = (gint) (_tmp2_ - ((gchar*) self));
		return result;
	} else {
		result = -1;
		return result;
	}
}

static glong
string_strnlen (gchar* str,
                glong maxlen)
{
	gchar* end = NULL;
	gchar* _tmp0_;
	gchar* _tmp1_;
	glong result;
	_tmp0_ = memchr (str, 0, (gsize) maxlen);
	end = _tmp0_;
	_tmp1_ = end;
	if (_tmp1_ == NULL) {
		result = maxlen;
		return result;
	} else {
		gchar* _tmp2_;
		_tmp2_ = end;
		result = (glong) (_tmp2_ - str);
		return result;
	}
}

static gchar*
string_substring (const gchar* self,
                  glong offset,
                  glong len)
{
	glong string_length = 0L;
	gboolean _tmp0_ = FALSE;
	gchar* _tmp3_;
	gchar* result;
	g_return_val_if_fail (self != NULL, NULL);
	if (offset >= ((glong) 0)) {
		_tmp0_ = len >= ((glong) 0);
	} else {
		_tmp0_ = FALSE;
	}
	if (_tmp0_) {
		string_length = string_strnlen ((gchar*) self, offset + len);
	} else {
		gint _tmp1_;
		gint _tmp2_;
		_tmp1_ = strlen (self);
		_tmp2_ = _tmp1_;
		string_length = (glong) _tmp2_;
	}
	if (offset < ((glong) 0)) {
		offset = string_length + offset;
		g_return_val_if_fail (offset >= ((glong) 0), NULL);
	} else {
		g_return_val_if_fail (offset <= string_length, NULL);
	}
	if (len < ((glong) 0)) {
		len = string_length - offset;
	}
	g_return_val_if_fail ((offset + len) <= string_length, NULL);
	_tmp3_ = g_strndup (((gchar*) self) + offset, (gsize) len);
	result = _tmp3_;
	return result;
}

static gchar*
string_replace (const gchar* self,
                const gchar* old,
                const gchar* replacement)
{
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	GError* _inner_error0_ = NULL;
	gchar* result;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (old != NULL, NULL);
	g_return_val_if_fail (replacement != NULL, NULL);
	if ((*((gchar*) self)) == '\0') {
		_tmp1_ = TRUE;
	} else {
		_tmp1_ = (*((gchar*) old)) == '\0';
	}
	if (_tmp1_) {
		_tmp0_ = TRUE;
	} else {
		_tmp0_ = g_strcmp0 (old, replacement) == 0;
	}
	if (_tmp0_) {
		gchar* _tmp2_;
		_tmp2_ = g_strdup (self);
		result = _tmp2_;
		return result;
	}
	{
		GRegex* regex = NULL;
		gchar* _tmp3_;
		gchar* _tmp4_;
		GRegex* _tmp5_;
		GRegex* _tmp6_;
		gchar* _tmp7_ = NULL;
		GRegex* _tmp8_;
		gchar* _tmp9_;
		gchar* _tmp10_;
		_tmp3_ = g_regex_escape_string (old, -1);
		_tmp4_ = _tmp3_;
		_tmp5_ = g_regex_new (_tmp4_, 0, 0, &_inner_error0_);
		_tmp6_ = _tmp5_;
		_g_free0 (_tmp4_);
		regex = _tmp6_;
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			if (_inner_error0_->domain == G_REGEX_ERROR) {
				goto __catch0_g_regex_error;
			}
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
			g_clear_error (&_inner_error0_);
			return NULL;
		}
		_tmp8_ = regex;
		_tmp9_ = g_regex_replace_literal (_tmp8_, self, (gssize) -1, 0, replacement, 0, &_inner_error0_);
		_tmp7_ = _tmp9_;
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			_g_regex_unref0 (regex);
			if (_inner_error0_->domain == G_REGEX_ERROR) {
				goto __catch0_g_regex_error;
			}
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
			g_clear_error (&_inner_error0_);
			return NULL;
		}
		_tmp10_ = _tmp7_;
		_tmp7_ = NULL;
		result = _tmp10_;
		_g_free0 (_tmp7_);
		_g_regex_unref0 (regex);
		return result;
	}
	goto __finally0;
	__catch0_g_regex_error:
	{
		g_clear_error (&_inner_error0_);
		g_assert_not_reached ();
	}
	__finally0:
	g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
	g_clear_error (&_inner_error0_);
	return NULL;
}

static gboolean
proton_plus_models_releases_latest_real__start_install_co (ProtonPlusModelsReleasesLatestStartInstallData* _data_)
{
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_state_ = 1;
	PROTON_PLUS_MODELS_BASE_RELEASE_CLASS (proton_plus_models_releases_latest_parent_class)->_start_install ((ProtonPlusModelsBaseRelease*) G_TYPE_CHECK_INSTANCE_CAST (_data_->self, PROTON_PLUS_MODELS_RELEASES_TYPE_BASIC, ProtonPlusModelsReleasesBasic), _proton_plus_models_releases_latest_start_install_ready, _data_);
	return FALSE;
	_state_1:
	_data_->installed = PROTON_PLUS_MODELS_BASE_RELEASE_CLASS (proton_plus_models_releases_latest_parent_class)->_start_install_finish ((ProtonPlusModelsBaseRelease*) G_TYPE_CHECK_INSTANCE_CAST (_data_->self, PROTON_PLUS_MODELS_RELEASES_TYPE_BASIC, ProtonPlusModelsReleasesBasic), _data_->_res_);
	if (!_data_->installed) {
		_data_->result = FALSE;
		g_task_return_pointer (_data_->_async_result, _data_, NULL);
		if (_data_->_state_ != 0) {
			while (!g_task_get_completed (_data_->_async_result)) {
				g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
			}
		}
		g_object_unref (_data_->_async_result);
		return FALSE;
	}
	_data_->_tmp0_ = proton_plus_models_releases_basic_get_destination_path ((ProtonPlusModelsReleasesBasic*) _data_->self);
	_data_->_tmp1_ = _data_->_tmp0_;
	_data_->_tmp2_ = g_strdup_printf ("%s/compatibilitytool.vdf", _data_->_tmp1_);
	_data_->compatibilitytoolvdf_path = _data_->_tmp2_;
	_data_->_tmp3_ = _data_->compatibilitytoolvdf_path;
	_data_->_tmp4_ = proton_plus_utils_filesystem_get_file_content (_data_->_tmp3_, FALSE);
	_data_->compatibilitytoolvdf_content = _data_->_tmp4_;
	_data_->_tmp5_ = _data_->compatibilitytoolvdf_content;
	if (g_strcmp0 (_data_->_tmp5_, "") == 0) {
		_data_->result = FALSE;
		_g_free0 (_data_->compatibilitytoolvdf_content);
		_g_free0 (_data_->compatibilitytoolvdf_path);
		g_task_return_pointer (_data_->_async_result, _data_, NULL);
		if (_data_->_state_ != 0) {
			while (!g_task_get_completed (_data_->_async_result)) {
				g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
			}
		}
		g_object_unref (_data_->_async_result);
		return FALSE;
	}
	_data_->_tmp6_ = g_strdup ("");
	_data_->start_text = _data_->_tmp6_;
	_data_->_tmp7_ = g_strdup ("");
	_data_->end_text = _data_->_tmp7_;
	_data_->start_pos = 0;
	_data_->end_pos = 0;
	_data_->_tmp8_ = g_strdup ("compat_tools\"\n  {\n    \"");
	_g_free0 (_data_->start_text);
	_data_->start_text = _data_->_tmp8_;
	_data_->_tmp9_ = _data_->compatibilitytoolvdf_content;
	_data_->_tmp10_ = _data_->start_text;
	_data_->_tmp11_ = _data_->start_text;
	_data_->_tmp12_ = strlen (_data_->_tmp11_);
	_data_->_tmp13_ = _data_->_tmp12_;
	_data_->start_pos = string_index_of (_data_->_tmp9_, _data_->_tmp10_, 0) + _data_->_tmp13_;
	if (_data_->start_pos == -1) {
		_data_->result = FALSE;
		_g_free0 (_data_->end_text);
		_g_free0 (_data_->start_text);
		_g_free0 (_data_->compatibilitytoolvdf_content);
		_g_free0 (_data_->compatibilitytoolvdf_path);
		g_task_return_pointer (_data_->_async_result, _data_, NULL);
		if (_data_->_state_ != 0) {
			while (!g_task_get_completed (_data_->_async_result)) {
				g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
			}
		}
		g_object_unref (_data_->_async_result);
		return FALSE;
	}
	_data_->_tmp14_ = g_strdup ("\" // Internal name of this tool");
	_g_free0 (_data_->end_text);
	_data_->end_text = _data_->_tmp14_;
	_data_->_tmp15_ = _data_->compatibilitytoolvdf_content;
	_data_->_tmp16_ = _data_->end_text;
	_data_->end_pos = string_index_of (_data_->_tmp15_, _data_->_tmp16_, _data_->start_pos);
	if (_data_->end_pos == -1) {
		_data_->result = FALSE;
		_g_free0 (_data_->end_text);
		_g_free0 (_data_->start_text);
		_g_free0 (_data_->compatibilitytoolvdf_content);
		_g_free0 (_data_->compatibilitytoolvdf_path);
		g_task_return_pointer (_data_->_async_result, _data_, NULL);
		if (_data_->_state_ != 0) {
			while (!g_task_get_completed (_data_->_async_result)) {
				g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
			}
		}
		g_object_unref (_data_->_async_result);
		return FALSE;
	}
	_data_->_tmp17_ = _data_->compatibilitytoolvdf_content;
	_data_->_tmp18_ = string_substring (_data_->_tmp17_, (glong) _data_->start_pos, (glong) (_data_->end_pos - _data_->start_pos));
	_data_->internal_title = _data_->_tmp18_;
	_data_->_tmp19_ = _data_->compatibilitytoolvdf_content;
	_data_->_tmp20_ = _data_->start_text;
	_data_->start_pos = string_index_of (_data_->_tmp19_, _data_->_tmp20_, 0);
	if (_data_->start_pos == -1) {
		_data_->result = FALSE;
		_g_free0 (_data_->internal_title);
		_g_free0 (_data_->end_text);
		_g_free0 (_data_->start_text);
		_g_free0 (_data_->compatibilitytoolvdf_content);
		_g_free0 (_data_->compatibilitytoolvdf_path);
		g_task_return_pointer (_data_->_async_result, _data_, NULL);
		if (_data_->_state_ != 0) {
			while (!g_task_get_completed (_data_->_async_result)) {
				g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
			}
		}
		g_object_unref (_data_->_async_result);
		return FALSE;
	}
	_data_->_tmp21_ = _data_->compatibilitytoolvdf_content;
	_data_->_tmp22_ = _data_->end_text;
	_data_->_tmp23_ = _data_->start_text;
	_data_->_tmp24_ = strlen (_data_->_tmp23_);
	_data_->_tmp25_ = _data_->_tmp24_;
	_data_->_tmp26_ = _data_->end_text;
	_data_->_tmp27_ = strlen (_data_->_tmp26_);
	_data_->_tmp28_ = _data_->_tmp27_;
	_data_->end_pos = string_index_of (_data_->_tmp21_, _data_->_tmp22_, _data_->start_pos + _data_->_tmp25_) + _data_->_tmp28_;
	if (_data_->end_pos == -1) {
		_data_->result = FALSE;
		_g_free0 (_data_->internal_title);
		_g_free0 (_data_->end_text);
		_g_free0 (_data_->start_text);
		_g_free0 (_data_->compatibilitytoolvdf_content);
		_g_free0 (_data_->compatibilitytoolvdf_path);
		g_task_return_pointer (_data_->_async_result, _data_, NULL);
		if (_data_->_state_ != 0) {
			while (!g_task_get_completed (_data_->_async_result)) {
				g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
			}
		}
		g_object_unref (_data_->_async_result);
		return FALSE;
	}
	_data_->_tmp29_ = _data_->compatibilitytoolvdf_content;
	_data_->_tmp30_ = string_substring (_data_->_tmp29_, (glong) _data_->start_pos, (glong) (_data_->end_pos - _data_->start_pos));
	_data_->internal_title_line = _data_->_tmp30_;
	_data_->_tmp31_ = _data_->internal_title_line;
	_data_->_tmp32_ = _data_->internal_title;
	_data_->_tmp33_ = proton_plus_models_base_release_get_title ((ProtonPlusModelsBaseRelease*) _data_->self);
	_data_->_tmp34_ = _data_->_tmp33_;
	_data_->_tmp35_ = string_replace (_data_->_tmp31_, _data_->_tmp32_, _data_->_tmp34_);
	_data_->internal_title_line_modified = _data_->_tmp35_;
	_data_->_tmp36_ = _data_->compatibilitytoolvdf_content;
	_data_->_tmp37_ = _data_->internal_title_line;
	_data_->_tmp38_ = _data_->internal_title_line_modified;
	_data_->_tmp39_ = string_replace (_data_->_tmp36_, _data_->_tmp37_, _data_->_tmp38_);
	_g_free0 (_data_->compatibilitytoolvdf_content);
	_data_->compatibilitytoolvdf_content = _data_->_tmp39_;
	_data_->_tmp40_ = g_strdup ("display_name\" \"");
	_g_free0 (_data_->start_text);
	_data_->start_text = _data_->_tmp40_;
	_data_->_tmp41_ = _data_->compatibilitytoolvdf_content;
	_data_->_tmp42_ = _data_->start_text;
	_data_->_tmp43_ = _data_->start_text;
	_data_->_tmp44_ = strlen (_data_->_tmp43_);
	_data_->_tmp45_ = _data_->_tmp44_;
	_data_->start_pos = string_index_of (_data_->_tmp41_, _data_->_tmp42_, 0) + _data_->_tmp45_;
	if (_data_->start_pos == -1) {
		_data_->result = FALSE;
		_g_free0 (_data_->internal_title_line_modified);
		_g_free0 (_data_->internal_title_line);
		_g_free0 (_data_->internal_title);
		_g_free0 (_data_->end_text);
		_g_free0 (_data_->start_text);
		_g_free0 (_data_->compatibilitytoolvdf_content);
		_g_free0 (_data_->compatibilitytoolvdf_path);
		g_task_return_pointer (_data_->_async_result, _data_, NULL);
		if (_data_->_state_ != 0) {
			while (!g_task_get_completed (_data_->_async_result)) {
				g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
			}
		}
		g_object_unref (_data_->_async_result);
		return FALSE;
	}
	_data_->_tmp46_ = g_strdup ("\"");
	_g_free0 (_data_->end_text);
	_data_->end_text = _data_->_tmp46_;
	_data_->_tmp47_ = _data_->compatibilitytoolvdf_content;
	_data_->_tmp48_ = _data_->end_text;
	_data_->end_pos = string_index_of (_data_->_tmp47_, _data_->_tmp48_, _data_->start_pos);
	if (_data_->end_pos == -1) {
		_data_->result = FALSE;
		_g_free0 (_data_->internal_title_line_modified);
		_g_free0 (_data_->internal_title_line);
		_g_free0 (_data_->internal_title);
		_g_free0 (_data_->end_text);
		_g_free0 (_data_->start_text);
		_g_free0 (_data_->compatibilitytoolvdf_content);
		_g_free0 (_data_->compatibilitytoolvdf_path);
		g_task_return_pointer (_data_->_async_result, _data_, NULL);
		if (_data_->_state_ != 0) {
			while (!g_task_get_completed (_data_->_async_result)) {
				g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
			}
		}
		g_object_unref (_data_->_async_result);
		return FALSE;
	}
	_data_->_tmp49_ = _data_->compatibilitytoolvdf_content;
	_data_->_tmp50_ = string_substring (_data_->_tmp49_, (glong) _data_->start_pos, (glong) (_data_->end_pos - _data_->start_pos));
	_data_->display_title = _data_->_tmp50_;
	_data_->_tmp51_ = _data_->compatibilitytoolvdf_content;
	_data_->_tmp52_ = _data_->start_text;
	_data_->start_pos = string_index_of (_data_->_tmp51_, _data_->_tmp52_, 0);
	if (_data_->start_pos == -1) {
		_data_->result = FALSE;
		_g_free0 (_data_->display_title);
		_g_free0 (_data_->internal_title_line_modified);
		_g_free0 (_data_->internal_title_line);
		_g_free0 (_data_->internal_title);
		_g_free0 (_data_->end_text);
		_g_free0 (_data_->start_text);
		_g_free0 (_data_->compatibilitytoolvdf_content);
		_g_free0 (_data_->compatibilitytoolvdf_path);
		g_task_return_pointer (_data_->_async_result, _data_, NULL);
		if (_data_->_state_ != 0) {
			while (!g_task_get_completed (_data_->_async_result)) {
				g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
			}
		}
		g_object_unref (_data_->_async_result);
		return FALSE;
	}
	_data_->_tmp53_ = _data_->compatibilitytoolvdf_content;
	_data_->_tmp54_ = _data_->end_text;
	_data_->_tmp55_ = _data_->start_text;
	_data_->_tmp56_ = strlen (_data_->_tmp55_);
	_data_->_tmp57_ = _data_->_tmp56_;
	_data_->_tmp58_ = _data_->end_text;
	_data_->_tmp59_ = strlen (_data_->_tmp58_);
	_data_->_tmp60_ = _data_->_tmp59_;
	_data_->end_pos = string_index_of (_data_->_tmp53_, _data_->_tmp54_, _data_->start_pos + _data_->_tmp57_) + _data_->_tmp60_;
	if (_data_->end_pos == -1) {
		_data_->result = FALSE;
		_g_free0 (_data_->display_title);
		_g_free0 (_data_->internal_title_line_modified);
		_g_free0 (_data_->internal_title_line);
		_g_free0 (_data_->internal_title);
		_g_free0 (_data_->end_text);
		_g_free0 (_data_->start_text);
		_g_free0 (_data_->compatibilitytoolvdf_content);
		_g_free0 (_data_->compatibilitytoolvdf_path);
		g_task_return_pointer (_data_->_async_result, _data_, NULL);
		if (_data_->_state_ != 0) {
			while (!g_task_get_completed (_data_->_async_result)) {
				g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
			}
		}
		g_object_unref (_data_->_async_result);
		return FALSE;
	}
	_data_->_tmp61_ = _data_->compatibilitytoolvdf_content;
	_data_->_tmp62_ = string_substring (_data_->_tmp61_, (glong) _data_->start_pos, (glong) (_data_->end_pos - _data_->start_pos));
	_data_->display_title_line = _data_->_tmp62_;
	_data_->_tmp63_ = _data_->display_title_line;
	_data_->_tmp64_ = _data_->display_title;
	_data_->_tmp65_ = proton_plus_models_base_release_get_title ((ProtonPlusModelsBaseRelease*) _data_->self);
	_data_->_tmp66_ = _data_->_tmp65_;
	_data_->_tmp67_ = string_replace (_data_->_tmp63_, _data_->_tmp64_, _data_->_tmp66_);
	_data_->display_title_line_modified = _data_->_tmp67_;
	_data_->_tmp68_ = _data_->compatibilitytoolvdf_content;
	_data_->_tmp69_ = _data_->display_title_line;
	_data_->_tmp70_ = _data_->display_title_line_modified;
	_data_->_tmp71_ = string_replace (_data_->_tmp68_, _data_->_tmp69_, _data_->_tmp70_);
	_g_free0 (_data_->compatibilitytoolvdf_content);
	_data_->compatibilitytoolvdf_content = _data_->_tmp71_;
	_data_->_tmp72_ = _data_->compatibilitytoolvdf_path;
	_data_->_tmp73_ = _data_->compatibilitytoolvdf_content;
	_data_->modified = proton_plus_utils_filesystem_modify_file (_data_->_tmp72_, _data_->_tmp73_);
	if (!_data_->modified) {
		_data_->result = FALSE;
		_g_free0 (_data_->display_title_line_modified);
		_g_free0 (_data_->display_title_line);
		_g_free0 (_data_->display_title);
		_g_free0 (_data_->internal_title_line_modified);
		_g_free0 (_data_->internal_title_line);
		_g_free0 (_data_->internal_title);
		_g_free0 (_data_->end_text);
		_g_free0 (_data_->start_text);
		_g_free0 (_data_->compatibilitytoolvdf_content);
		_g_free0 (_data_->compatibilitytoolvdf_path);
		g_task_return_pointer (_data_->_async_result, _data_, NULL);
		if (_data_->_state_ != 0) {
			while (!g_task_get_completed (_data_->_async_result)) {
				g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
			}
		}
		g_object_unref (_data_->_async_result);
		return FALSE;
	}
	proton_plus_models_releases_basic_add_to_games_tab ((ProtonPlusModelsReleasesBasic*) _data_->self);
	_data_->result = TRUE;
	_g_free0 (_data_->display_title_line_modified);
	_g_free0 (_data_->display_title_line);
	_g_free0 (_data_->display_title);
	_g_free0 (_data_->internal_title_line_modified);
	_g_free0 (_data_->internal_title_line);
	_g_free0 (_data_->internal_title);
	_g_free0 (_data_->end_text);
	_g_free0 (_data_->start_text);
	_g_free0 (_data_->compatibilitytoolvdf_content);
	_g_free0 (_data_->compatibilitytoolvdf_path);
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
	if (_data_->_state_ != 0) {
		while (!g_task_get_completed (_data_->_async_result)) {
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
		}
	}
	g_object_unref (_data_->_async_result);
	return FALSE;
}

static void
proton_plus_models_releases_latest_class_init (ProtonPlusModelsReleasesLatestClass * klass,
                                               gpointer klass_data)
{
	proton_plus_models_releases_latest_parent_class = g_type_class_peek_parent (klass);
	((ProtonPlusModelsBaseReleaseClass *) klass)->_start_install = (void (*) (ProtonPlusModelsBaseRelease*, GAsyncReadyCallback, gpointer)) proton_plus_models_releases_latest_real__start_install;
	((ProtonPlusModelsBaseReleaseClass *) klass)->_start_install_finish = (gboolean (*) (ProtonPlusModelsBaseRelease*, GAsyncResult*)) _proton_plus_models_releases_latest_start_install_finish;
}

static void
proton_plus_models_releases_latest_instance_init (ProtonPlusModelsReleasesLatest * self,
                                                  gpointer klass)
{
}

static GType
proton_plus_models_releases_latest_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusModelsReleasesLatestClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_models_releases_latest_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusModelsReleasesLatest), 0, (GInstanceInitFunc) proton_plus_models_releases_latest_instance_init, NULL };
	GType proton_plus_models_releases_latest_type_id;
	proton_plus_models_releases_latest_type_id = g_type_register_static (PROTON_PLUS_MODELS_RELEASES_TYPE_BASIC, "ProtonPlusModelsReleasesLatest", &g_define_type_info, 0);
	return proton_plus_models_releases_latest_type_id;
}

GType
proton_plus_models_releases_latest_get_type (void)
{
	static volatile gsize proton_plus_models_releases_latest_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_models_releases_latest_type_id__once)) {
		GType proton_plus_models_releases_latest_type_id;
		proton_plus_models_releases_latest_type_id = proton_plus_models_releases_latest_get_type_once ();
		g_once_init_leave (&proton_plus_models_releases_latest_type_id__once, proton_plus_models_releases_latest_type_id);
	}
	return proton_plus_models_releases_latest_type_id__once;
}

