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

#include <glib-object.h>
#include <gio/gio.h>
#include <glib.h>
#include <stdlib.h>
#include <string.h>
#include <gee.h>
#include <glib/gstdio.h>
#include <adwaita.h>
#include <float.h>
#include <math.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;
enum  {
	PROTON_PLUS_MODELS_RELEASES_BASIC_0_PROPERTY,
	PROTON_PLUS_MODELS_RELEASES_BASIC_INSTALL_LOCATION_PROPERTY,
	PROTON_PLUS_MODELS_RELEASES_BASIC_DOWNLOAD_SIZE_PROPERTY,
	PROTON_PLUS_MODELS_RELEASES_BASIC_DESTINATION_PATH_PROPERTY,
	PROTON_PLUS_MODELS_RELEASES_BASIC_NUM_PROPERTIES
};
static GParamSpec* proton_plus_models_releases_basic_properties[PROTON_PLUS_MODELS_RELEASES_BASIC_NUM_PROPERTIES];
#define _g_free0(var) (var = (g_free (var), NULL))

#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 PROTON_PLUS_MODELS_TYPE_GROUP (proton_plus_models_group_get_type ())
#define PROTON_PLUS_MODELS_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_TYPE_GROUP, ProtonPlusModelsGroup))
#define PROTON_PLUS_MODELS_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_TYPE_GROUP, ProtonPlusModelsGroupClass))
#define PROTON_PLUS_MODELS_IS_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_TYPE_GROUP))
#define PROTON_PLUS_MODELS_IS_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_TYPE_GROUP))
#define PROTON_PLUS_MODELS_GROUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_TYPE_GROUP, ProtonPlusModelsGroupClass))

typedef struct _ProtonPlusModelsGroup ProtonPlusModelsGroup;
typedef struct _ProtonPlusModelsGroupClass ProtonPlusModelsGroupClass;

#define PROTON_PLUS_MODELS_TYPE_LAUNCHER (proton_plus_models_launcher_get_type ())
#define PROTON_PLUS_MODELS_LAUNCHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_TYPE_LAUNCHER, ProtonPlusModelsLauncher))
#define PROTON_PLUS_MODELS_LAUNCHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_TYPE_LAUNCHER, ProtonPlusModelsLauncherClass))
#define PROTON_PLUS_MODELS_IS_LAUNCHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_TYPE_LAUNCHER))
#define PROTON_PLUS_MODELS_IS_LAUNCHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_TYPE_LAUNCHER))
#define PROTON_PLUS_MODELS_LAUNCHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_TYPE_LAUNCHER, ProtonPlusModelsLauncherClass))

typedef struct _ProtonPlusModelsLauncher ProtonPlusModelsLauncher;
typedef struct _ProtonPlusModelsLauncherClass ProtonPlusModelsLauncherClass;
typedef struct _ProtonPlusModelsLauncherPrivate ProtonPlusModelsLauncherPrivate;

#define PROTON_PLUS_MODELS_TYPE_GAME (proton_plus_models_game_get_type ())
#define PROTON_PLUS_MODELS_GAME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_TYPE_GAME, ProtonPlusModelsGame))
#define PROTON_PLUS_MODELS_GAME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_TYPE_GAME, ProtonPlusModelsGameClass))
#define PROTON_PLUS_MODELS_IS_GAME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_TYPE_GAME))
#define PROTON_PLUS_MODELS_IS_GAME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_TYPE_GAME))
#define PROTON_PLUS_MODELS_GAME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_TYPE_GAME, ProtonPlusModelsGameClass))

typedef struct _ProtonPlusModelsGame ProtonPlusModelsGame;
typedef struct _ProtonPlusModelsGameClass ProtonPlusModelsGameClass;

#define PROTON_PLUS_MODELS_TYPE_SIMPLE_RUNNER (proton_plus_models_simple_runner_get_type ())
#define PROTON_PLUS_MODELS_SIMPLE_RUNNER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_TYPE_SIMPLE_RUNNER, ProtonPlusModelsSimpleRunner))
#define PROTON_PLUS_MODELS_SIMPLE_RUNNER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_TYPE_SIMPLE_RUNNER, ProtonPlusModelsSimpleRunnerClass))
#define PROTON_PLUS_MODELS_IS_SIMPLE_RUNNER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_TYPE_SIMPLE_RUNNER))
#define PROTON_PLUS_MODELS_IS_SIMPLE_RUNNER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_TYPE_SIMPLE_RUNNER))
#define PROTON_PLUS_MODELS_SIMPLE_RUNNER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_TYPE_SIMPLE_RUNNER, ProtonPlusModelsSimpleRunnerClass))

typedef struct _ProtonPlusModelsSimpleRunner ProtonPlusModelsSimpleRunner;
typedef struct _ProtonPlusModelsSimpleRunnerClass ProtonPlusModelsSimpleRunnerClass;
typedef enum  {
	PROTON_PLUS_MODELS_LAUNCHER_INSTALLATION_TYPES_SYSTEM,
	PROTON_PLUS_MODELS_LAUNCHER_INSTALLATION_TYPES_FLATPAK,
	PROTON_PLUS_MODELS_LAUNCHER_INSTALLATION_TYPES_SNAP
} ProtonPlusModelsLauncherInstallationTypes;

#define PROTON_PLUS_MODELS_LAUNCHER_TYPE_INSTALLATION_TYPES (proton_plus_models_launcher_installation_types_get_type ())
typedef struct _Block12Data Block12Data;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef enum  {
	PROTON_PLUS_MODELS_BASE_RELEASE_STEP_NOTHING,
	PROTON_PLUS_MODELS_BASE_RELEASE_STEP_DOWNLOADING,
	PROTON_PLUS_MODELS_BASE_RELEASE_STEP_EXTRACTING,
	PROTON_PLUS_MODELS_BASE_RELEASE_STEP_MOVING,
	PROTON_PLUS_MODELS_BASE_RELEASE_STEP_REMOVING
} ProtonPlusModelsBaseReleaseStep;

#define PROTON_PLUS_MODELS_BASE_RELEASE_TYPE_STEP (proton_plus_models_base_release_step_get_type ())

#define PROTON_PLUS_WIDGETS_TYPE_WINDOW (proton_plus_widgets_window_get_type ())
#define PROTON_PLUS_WIDGETS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_WIDGETS_TYPE_WINDOW, ProtonPlusWidgetsWindow))
#define PROTON_PLUS_WIDGETS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_WIDGETS_TYPE_WINDOW, ProtonPlusWidgetsWindowClass))
#define PROTON_PLUS_WIDGETS_IS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_WIDGETS_TYPE_WINDOW))
#define PROTON_PLUS_WIDGETS_IS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_WIDGETS_TYPE_WINDOW))
#define PROTON_PLUS_WIDGETS_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_WIDGETS_TYPE_WINDOW, ProtonPlusWidgetsWindowClass))

typedef struct _ProtonPlusWidgetsWindow ProtonPlusWidgetsWindow;
typedef struct _ProtonPlusWidgetsWindowClass ProtonPlusWidgetsWindowClass;
typedef struct _Block13Data Block13Data;
typedef enum  {
	PROTON_PLUS_MODELS_BASE_RELEASE_STATE_NOT_INSTALLED,
	PROTON_PLUS_MODELS_BASE_RELEASE_STATE_UPDATE_AVAILABLE,
	PROTON_PLUS_MODELS_BASE_RELEASE_STATE_UP_TO_DATE,
	PROTON_PLUS_MODELS_BASE_RELEASE_STATE_BUSY_INSTALLING,
	PROTON_PLUS_MODELS_BASE_RELEASE_STATE_BUSY_REMOVING,
	PROTON_PLUS_MODELS_BASE_RELEASE_STATE_BUSY_UPDATING
} ProtonPlusModelsBaseReleaseState;

#define PROTON_PLUS_MODELS_BASE_RELEASE_TYPE_STATE (proton_plus_models_base_release_state_get_type ())
typedef gboolean (*ProtonPlusUtilsWebcancel_callback) (gpointer user_data);
typedef void (*ProtonPlusUtilsWebprogress_callback) (gboolean is_percent, gint64 progress_percentage, gdouble speed_kbps, gdouble* remaining_seconds, gpointer user_data);
typedef gboolean (*ProtonPlusUtilsFilesystemcancel_callback) (gpointer user_data);
typedef struct _ProtonPlusModelsReleasesBasicStartInstallData ProtonPlusModelsReleasesBasicStartInstallData;
typedef struct _ProtonPlusModelsReleasesBasicStartRemoveData ProtonPlusModelsReleasesBasicStartRemoveData;

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 _ProtonPlusModelsReleasesBasicPrivate {
	gchar* _install_location;
	gint64 _download_size;
	gchar* _destination_path;
};

struct _ProtonPlusModelsLauncher {
	GObject parent_instance;
	ProtonPlusModelsLauncherPrivate * priv;
	gchar* title;
	gchar* icon_path;
	gchar* directory;
	gboolean installed;
	gboolean has_library_support;
	GList* games;
	GeeArrayList* compatibility_tools;
	ProtonPlusModelsGroup** groups;
	gint groups_length1;
	ProtonPlusModelsLauncherInstallationTypes installation_type;
};

struct _ProtonPlusModelsLauncherClass {
	GObjectClass parent_class;
	void (*load_game_library) (ProtonPlusModelsLauncher* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	gboolean (*load_game_library_finish) (ProtonPlusModelsLauncher* self, GAsyncResult* _res_);
	gint (*get_compatibility_tool_usage_count) (ProtonPlusModelsLauncher* self, const gchar* compatibility_tool_name);
};

struct _Block12Data {
	int _ref_count_;
	ProtonPlusModelsReleasesBasic* self;
	gboolean directory_name_valid;
	gboolean install_directory_valid;
};

struct _Block13Data {
	int _ref_count_;
	Block12Data * _data12_;
	gchar* backup_directory_name;
	gboolean backup_directory_valid;
};

struct _ProtonPlusModelsReleasesBasicStartInstallData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	ProtonPlusModelsReleasesBasic* self;
	gboolean result;
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	gchar* download_path;
	const gchar* _tmp2_;
	const gchar* _tmp3_;
	const gchar* _tmp4_;
	gchar* _tmp5_;
	const gchar* _tmp6_;
	gchar* download_error;
	gboolean download_valid;
	const gchar* _tmp7_;
	const gchar* _tmp8_;
	const gchar* _tmp9_;
	gchar* _tmp10_;
	gboolean _tmp11_;
	const gchar* _tmp12_;
	gchar* extract_path;
	const gchar* _tmp13_;
	gchar* _tmp14_;
	gchar* source_path;
	const gchar* _tmp15_;
	const gchar* _tmp16_;
	const gchar* _tmp17_;
	gchar* _tmp18_;
	const gchar* _tmp19_;
	ProtonPlusModelsRunnersBasic* runner;
	ProtonPlusModelsRunner* _tmp20_;
	ProtonPlusModelsRunner* _tmp21_;
	ProtonPlusModelsRunnersBasic* _tmp22_;
	ProtonPlusModelsRunnersBasic* _tmp23_;
	ProtonPlusModelsGroup* _tmp24_;
	ProtonPlusModelsGroup* _tmp25_;
	ProtonPlusModelsLauncher* _tmp26_;
	ProtonPlusModelsLauncher* _tmp27_;
	const gchar* _tmp28_;
	ProtonPlusModelsRunnersBasic* _tmp29_;
	ProtonPlusModelsGroup* _tmp30_;
	ProtonPlusModelsGroup* _tmp31_;
	const gchar* _tmp32_;
	const gchar* _tmp33_;
	ProtonPlusModelsRunnersBasic* _tmp34_;
	const gchar* _tmp35_;
	const gchar* _tmp36_;
	gchar* _tmp37_;
	gchar* _tmp38_;
	gchar* _tmp39_;
	gchar* _tmp40_;
	gboolean renaming_valid;
	const gchar* _tmp41_;
	const gchar* _tmp42_;
};

struct _ProtonPlusModelsReleasesBasicStartRemoveData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	ProtonPlusModelsReleasesBasic* self;
	ProtonPlusModelsParameters* parameters;
	gboolean result;
	gboolean deleted;
	const gchar* _tmp0_;
};

static gint ProtonPlusModelsReleasesBasic_private_offset;
static gpointer proton_plus_models_releases_basic_parent_class = NULL;
VALA_EXTERN ProtonPlusWidgetsWindow* proton_plus_widgets_application_window;
VALA_EXTERN gchar* proton_plus_globals_CACHE_PATH;

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 void proton_plus_models_base_release_refresh_state (ProtonPlusModelsBaseRelease* self);
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 void _proton_plus_models_release_start_remove (ProtonPlusModelsRelease* self,
                                               gconstpointer parameters,
                                               GAsyncReadyCallback _callback_,
                                               gpointer _user_data_);
VALA_EXTERN gboolean _proton_plus_models_release_start_remove_finish (ProtonPlusModelsRelease* 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 ProtonPlusModelsReleasesBasic* proton_plus_models_releases_basic_new_simple (ProtonPlusModelsRunnersBasic* runner,
                                                                             const gchar* title,
                                                                             const gchar* install_location);
VALA_EXTERN ProtonPlusModelsReleasesBasic* proton_plus_models_releases_basic_construct_simple (GType object_type,
                                                                                   ProtonPlusModelsRunnersBasic* runner,
                                                                                   const gchar* title,
                                                                                   const gchar* install_location);
VALA_EXTERN ProtonPlusModelsRelease* proton_plus_models_release_construct (GType object_type,
                                                               GType r_type,
                                                               GBoxedCopyFunc r_dup_func,
                                                               GDestroyNotify r_destroy_func);
VALA_EXTERN void proton_plus_models_base_release_set_runner (ProtonPlusModelsBaseRelease* self,
                                                 ProtonPlusModelsRunner* value);
VALA_EXTERN void proton_plus_models_base_release_set_title (ProtonPlusModelsBaseRelease* self,
                                                const gchar* value);
VALA_EXTERN void proton_plus_models_releases_basic_set_install_location (ProtonPlusModelsReleasesBasic* self,
                                                             const gchar* value);
VALA_EXTERN ProtonPlusModelsReleasesBasic* proton_plus_models_releases_basic_new_github (ProtonPlusModelsRunnersBasic* runner,
                                                                             const gchar* title,
                                                                             const gchar* description,
                                                                             const gchar* release_date,
                                                                             gint64 download_size,
                                                                             const gchar* download_url,
                                                                             const gchar* page_url);
VALA_EXTERN ProtonPlusModelsReleasesBasic* proton_plus_models_releases_basic_construct_github (GType object_type,
                                                                                   ProtonPlusModelsRunnersBasic* runner,
                                                                                   const gchar* title,
                                                                                   const gchar* description,
                                                                                   const gchar* release_date,
                                                                                   gint64 download_size,
                                                                                   const gchar* download_url,
                                                                                   const gchar* page_url);
VALA_EXTERN void proton_plus_models_base_release_set_description (ProtonPlusModelsBaseRelease* self,
                                                      const gchar* value);
VALA_EXTERN void proton_plus_models_releases_basic_set_download_size (ProtonPlusModelsReleasesBasic* self,
                                                          gint64 value);
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 ProtonPlusModelsReleasesBasic* proton_plus_models_releases_basic_new_gitlab (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_construct_gitlab (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 void proton_plus_models_base_release_set_displayed_title (ProtonPlusModelsBaseRelease* self,
                                                          const gchar* value);
VALA_EXTERN const gchar* proton_plus_models_base_release_get_description (ProtonPlusModelsBaseRelease* self);
VALA_EXTERN void proton_plus_models_base_release_set_release_date (ProtonPlusModelsBaseRelease* self,
                                                       const gchar* value);
VALA_EXTERN void proton_plus_models_base_release_set_download_url (ProtonPlusModelsBaseRelease* self,
                                                       const gchar* value);
VALA_EXTERN void proton_plus_models_base_release_set_page_url (ProtonPlusModelsBaseRelease* self,
                                                   const gchar* value);
VALA_EXTERN GType proton_plus_models_group_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsGroup, g_object_unref)
VALA_EXTERN ProtonPlusModelsGroup* proton_plus_models_runner_get_group (ProtonPlusModelsRunner* self);
VALA_EXTERN GType proton_plus_models_launcher_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsLauncher, g_object_unref)
VALA_EXTERN ProtonPlusModelsLauncher* proton_plus_models_group_get_launcher (ProtonPlusModelsGroup* self);
VALA_EXTERN GType proton_plus_models_game_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsGame, g_object_unref)
VALA_EXTERN GType proton_plus_models_simple_runner_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsSimpleRunner, g_object_unref)
VALA_EXTERN GType proton_plus_models_launcher_installation_types_get_type (void) G_GNUC_CONST ;
VALA_EXTERN const gchar* proton_plus_models_group_get_directory (ProtonPlusModelsGroup* self);
VALA_EXTERN gchar* proton_plus_models_runners_basic_get_directory_name (ProtonPlusModelsRunnersBasic* self,
                                                            const gchar* release_name);
static void proton_plus_models_releases_basic_real_refresh_state (ProtonPlusModelsBaseRelease* base);
static Block12Data* block12_data_ref (Block12Data* _data12_);
static void block12_data_unref (void * _userdata_);
VALA_EXTERN GType proton_plus_models_base_release_step_get_type (void) G_GNUC_CONST ;
VALA_EXTERN void proton_plus_models_base_release_set_step (ProtonPlusModelsBaseRelease* self,
                                               ProtonPlusModelsBaseReleaseStep value);
VALA_EXTERN ProtonPlusModelsRunner* proton_plus_models_base_release_get_runner (ProtonPlusModelsBaseRelease* self);
VALA_EXTERN const gchar* proton_plus_models_base_release_get_title (ProtonPlusModelsBaseRelease* self);
VALA_EXTERN const gchar* proton_plus_models_releases_basic_get_install_location (ProtonPlusModelsReleasesBasic* self);
VALA_EXTERN GType proton_plus_widgets_window_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusWidgetsWindow, g_object_unref)
VALA_EXTERN gboolean proton_plus_widgets_window_get_updating (ProtonPlusWidgetsWindow* self);
static Block13Data* block13_data_ref (Block13Data* _data13_);
static void block13_data_unref (void * _userdata_);
VALA_EXTERN GType proton_plus_models_base_release_state_get_type (void) G_GNUC_CONST ;
VALA_EXTERN void proton_plus_models_base_release_set_state (ProtonPlusModelsBaseRelease* self,
                                                ProtonPlusModelsBaseReleaseState value);
static void ___lambda69_ (Block13Data* _data13_);
static void ____lambda69__g_object_notify (GObject* _sender,
                                    GParamSpec* pspec,
                                    gpointer self);
static void proton_plus_models_releases_basic_real__start_install_data_free (gpointer _data);
static void proton_plus_models_releases_basic_real__start_install (ProtonPlusModelsBaseRelease* base,
                                                            GAsyncReadyCallback _callback_,
                                                            gpointer _user_data_);
static gboolean proton_plus_models_releases_basic_real__start_install_co (ProtonPlusModelsReleasesBasicStartInstallData* _data_);
VALA_EXTERN const gchar* proton_plus_models_base_release_get_download_url (ProtonPlusModelsBaseRelease* self);
VALA_EXTERN void proton_plus_utils_web_Download (const gchar* url,
                                     const gchar* path,
                                     ProtonPlusUtilsWebcancel_callback cancel_callback,
                                     gpointer cancel_callback_target,
                                     ProtonPlusUtilsWebprogress_callback progress_callback,
                                     gpointer progress_callback_target,
                                     GAsyncReadyCallback _callback_,
                                     gpointer _user_data_);
VALA_EXTERN gboolean proton_plus_utils_web_Download_finish (GAsyncResult* _res_,
                                                gchar** error_message);
static gboolean ___lambda70_ (ProtonPlusModelsReleasesBasic* self);
VALA_EXTERN gboolean proton_plus_models_base_release_get_canceled (ProtonPlusModelsBaseRelease* self);
static gboolean ____lambda70__protonplusutilswebcancel_callback (gpointer self);
static void ___lambda71_ (ProtonPlusModelsReleasesBasic* self,
                   gboolean is_percent,
                   gint64 progress,
                   gdouble speed_kbps,
                   gdouble* seconds_remaining);
VALA_EXTERN void proton_plus_models_base_release_set_is_percent (ProtonPlusModelsBaseRelease* self,
                                                     gboolean value);
VALA_EXTERN gchar* proton_plus_utils_filesystem_convert_bytes_to_string (gint64 size);
VALA_EXTERN void proton_plus_models_base_release_set_progress (ProtonPlusModelsBaseRelease* self,
                                                   const gchar* value);
VALA_EXTERN void proton_plus_models_base_release_set_speed_kbps (ProtonPlusModelsBaseRelease* self,
                                                     gdouble value);
VALA_EXTERN void proton_plus_models_base_release_set_seconds_remaining (ProtonPlusModelsBaseRelease* self,
                                                            gdouble* value);
static void ____lambda71__protonplusutilswebprogress_callback (gboolean is_percent,
                                                        gint64 progress_percentage,
                                                        gdouble speed_kbps,
                                                        gdouble* remaining_seconds,
                                                        gpointer self);
static void _proton_plus_models_releases_basic_start_install_ready (GObject* source_object,
                                                             GAsyncResult* _res_,
                                                             gpointer _user_data_);
VALA_EXTERN void proton_plus_models_base_release_set_error_message (ProtonPlusModelsBaseRelease* self,
                                                        const gchar* value);
VALA_EXTERN void proton_plus_utils_filesystem_extract (const gchar* install_location,
                                           const gchar* tool_name,
                                           const gchar* extension,
                                           ProtonPlusUtilsFilesystemcancel_callback cancel_callback,
                                           gpointer cancel_callback_target,
                                           GAsyncReadyCallback _callback_,
                                           gpointer _user_data_);
VALA_EXTERN gchar* proton_plus_utils_filesystem_extract_finish (GAsyncResult* _res_);
static gboolean __lambda72_ (ProtonPlusModelsReleasesBasic* self);
static gboolean ___lambda72__protonplusutilsfilesystemcancel_callback (gpointer self);
VALA_EXTERN void proton_plus_models_releases_basic_set_destination_path (ProtonPlusModelsReleasesBasic* self,
                                                             const gchar* value);
VALA_EXTERN void proton_plus_utils_filesystem_move_directory (const gchar* source,
                                                  const gchar* destination,
                                                  GAsyncReadyCallback _callback_,
                                                  gpointer _user_data_);
VALA_EXTERN gboolean proton_plus_utils_filesystem_move_directory_finish (GAsyncResult* _res_);
VALA_EXTERN const gchar* proton_plus_models_releases_basic_get_destination_path (ProtonPlusModelsReleasesBasic* self);
VALA_EXTERN void proton_plus_models_releases_basic_add_to_games_tab (ProtonPlusModelsReleasesBasic* self);
static void proton_plus_models_releases_basic_real__start_remove_data_free (gpointer _data);
static void proton_plus_models_releases_basic_real__start_remove (ProtonPlusModelsRelease* base,
                                                           ProtonPlusModelsParameters* parameters,
                                                           GAsyncReadyCallback _callback_,
                                                           gpointer _user_data_);
static gboolean proton_plus_models_releases_basic_real__start_remove_co (ProtonPlusModelsReleasesBasicStartRemoveData* _data_);
VALA_EXTERN void proton_plus_utils_filesystem_delete_directory (const gchar* path,
                                                    GAsyncReadyCallback _callback_,
                                                    gpointer _user_data_);
VALA_EXTERN gboolean proton_plus_utils_filesystem_delete_directory_finish (GAsyncResult* _res_);
static void _proton_plus_models_releases_basic_start_remove_ready (GObject* source_object,
                                                            GAsyncResult* _res_,
                                                            gpointer _user_data_);
VALA_EXTERN void proton_plus_models_releases_basic_remove_from_games_tab (ProtonPlusModelsReleasesBasic* self);
VALA_EXTERN ProtonPlusModelsSimpleRunner* proton_plus_models_simple_runner_new_from_path (const gchar* path,
                                                                              GError** error);
VALA_EXTERN ProtonPlusModelsSimpleRunner* proton_plus_models_simple_runner_construct_from_path (GType object_type,
                                                                                    const gchar* path,
                                                                                    GError** error);
VALA_EXTERN const gchar* proton_plus_models_simple_runner_get_path (ProtonPlusModelsSimpleRunner* self);
VALA_EXTERN ProtonPlusModelsReleasesBasic* proton_plus_models_releases_basic_new (void);
VALA_EXTERN ProtonPlusModelsReleasesBasic* proton_plus_models_releases_basic_construct (GType object_type);
VALA_EXTERN gint64 proton_plus_models_releases_basic_get_download_size (ProtonPlusModelsReleasesBasic* self);
static void proton_plus_models_releases_basic_finalize (GObject * obj);
static GType proton_plus_models_releases_basic_get_type_once (void);
static void _vala_proton_plus_models_releases_basic_get_property (GObject * object,
                                                           guint property_id,
                                                           GValue * value,
                                                           GParamSpec * pspec);
static void _vala_proton_plus_models_releases_basic_set_property (GObject * object,
                                                           guint property_id,
                                                           const GValue * value,
                                                           GParamSpec * pspec);

static inline gpointer
proton_plus_models_releases_basic_get_instance_private (ProtonPlusModelsReleasesBasic* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusModelsReleasesBasic_private_offset);
}

ProtonPlusModelsReleasesBasic*
proton_plus_models_releases_basic_construct_simple (GType object_type,
                                                    ProtonPlusModelsRunnersBasic* runner,
                                                    const gchar* title,
                                                    const gchar* install_location)
{
	ProtonPlusModelsReleasesBasic * self = NULL;
	g_return_val_if_fail (runner != NULL, NULL);
	g_return_val_if_fail (title != NULL, NULL);
	g_return_val_if_fail (install_location != NULL, NULL);
	self = (ProtonPlusModelsReleasesBasic*) proton_plus_models_release_construct (object_type, PROTON_PLUS_MODELS_TYPE_PARAMETERS, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref);
	proton_plus_models_base_release_set_runner ((ProtonPlusModelsBaseRelease*) self, (ProtonPlusModelsRunner*) runner);
	proton_plus_models_base_release_set_title ((ProtonPlusModelsBaseRelease*) self, title);
	proton_plus_models_releases_basic_set_install_location (self, install_location);
	return self;
}

ProtonPlusModelsReleasesBasic*
proton_plus_models_releases_basic_new_simple (ProtonPlusModelsRunnersBasic* runner,
                                              const gchar* title,
                                              const gchar* install_location)
{
	return proton_plus_models_releases_basic_construct_simple (PROTON_PLUS_MODELS_RELEASES_TYPE_BASIC, runner, title, install_location);
}

ProtonPlusModelsReleasesBasic*
proton_plus_models_releases_basic_construct_github (GType object_type,
                                                    ProtonPlusModelsRunnersBasic* runner,
                                                    const gchar* title,
                                                    const gchar* description,
                                                    const gchar* release_date,
                                                    gint64 download_size,
                                                    const gchar* download_url,
                                                    const gchar* page_url)
{
	ProtonPlusModelsReleasesBasic * 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 = (ProtonPlusModelsReleasesBasic*) proton_plus_models_release_construct (object_type, PROTON_PLUS_MODELS_TYPE_PARAMETERS, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref);
	proton_plus_models_base_release_set_description ((ProtonPlusModelsBaseRelease*) self, description);
	proton_plus_models_releases_basic_set_download_size (self, download_size);
	proton_plus_models_releases_basic_shared (self, runner, title, release_date, download_url, page_url);
	return self;
}

ProtonPlusModelsReleasesBasic*
proton_plus_models_releases_basic_new_github (ProtonPlusModelsRunnersBasic* runner,
                                              const gchar* title,
                                              const gchar* description,
                                              const gchar* release_date,
                                              gint64 download_size,
                                              const gchar* download_url,
                                              const gchar* page_url)
{
	return proton_plus_models_releases_basic_construct_github (PROTON_PLUS_MODELS_RELEASES_TYPE_BASIC, runner, title, description, release_date, download_size, download_url, page_url);
}

ProtonPlusModelsReleasesBasic*
proton_plus_models_releases_basic_construct_gitlab (GType object_type,
                                                    ProtonPlusModelsRunnersBasic* runner,
                                                    const gchar* title,
                                                    const gchar* description,
                                                    const gchar* release_date,
                                                    const gchar* download_url,
                                                    const gchar* page_url)
{
	ProtonPlusModelsReleasesBasic * 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 = (ProtonPlusModelsReleasesBasic*) proton_plus_models_release_construct (object_type, PROTON_PLUS_MODELS_TYPE_PARAMETERS, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref);
	proton_plus_models_base_release_set_description ((ProtonPlusModelsBaseRelease*) self, description);
	proton_plus_models_releases_basic_shared (self, runner, title, release_date, download_url, page_url);
	return self;
}

ProtonPlusModelsReleasesBasic*
proton_plus_models_releases_basic_new_gitlab (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_basic_construct_gitlab (PROTON_PLUS_MODELS_RELEASES_TYPE_BASIC, runner, title, description, release_date, download_url, page_url);
}

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)
{
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	ProtonPlusModelsGroup* _tmp2_;
	ProtonPlusModelsGroup* _tmp3_;
	ProtonPlusModelsLauncher* _tmp4_;
	ProtonPlusModelsLauncher* _tmp5_;
	const gchar* _tmp6_;
	ProtonPlusModelsGroup* _tmp7_;
	ProtonPlusModelsGroup* _tmp8_;
	const gchar* _tmp9_;
	const gchar* _tmp10_;
	gchar* _tmp11_;
	gchar* _tmp12_;
	gchar* _tmp13_;
	gchar* _tmp14_;
	gchar* _tmp15_;
	gchar* _tmp16_;
	gchar* _tmp17_;
	gchar* _tmp18_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (runner != NULL);
	g_return_if_fail (title != NULL);
	g_return_if_fail (release_date != NULL);
	g_return_if_fail (download_url != NULL);
	g_return_if_fail (page_url != NULL);
	proton_plus_models_base_release_set_runner ((ProtonPlusModelsBaseRelease*) self, (ProtonPlusModelsRunner*) runner);
	proton_plus_models_base_release_set_title ((ProtonPlusModelsBaseRelease*) self, title);
	proton_plus_models_base_release_set_displayed_title ((ProtonPlusModelsBaseRelease*) self, title);
	_tmp0_ = proton_plus_models_base_release_get_description ((ProtonPlusModelsBaseRelease*) self);
	_tmp1_ = _tmp0_;
	proton_plus_models_base_release_set_description ((ProtonPlusModelsBaseRelease*) self, _tmp1_);
	proton_plus_models_base_release_set_release_date ((ProtonPlusModelsBaseRelease*) self, release_date);
	proton_plus_models_base_release_set_download_url ((ProtonPlusModelsBaseRelease*) self, download_url);
	proton_plus_models_base_release_set_page_url ((ProtonPlusModelsBaseRelease*) self, page_url);
	_tmp2_ = proton_plus_models_runner_get_group ((ProtonPlusModelsRunner*) runner);
	_tmp3_ = _tmp2_;
	_tmp4_ = proton_plus_models_group_get_launcher (_tmp3_);
	_tmp5_ = _tmp4_;
	_tmp6_ = _tmp5_->directory;
	_tmp7_ = proton_plus_models_runner_get_group ((ProtonPlusModelsRunner*) runner);
	_tmp8_ = _tmp7_;
	_tmp9_ = proton_plus_models_group_get_directory (_tmp8_);
	_tmp10_ = _tmp9_;
	_tmp11_ = g_strconcat (_tmp6_, _tmp10_, NULL);
	_tmp12_ = _tmp11_;
	_tmp13_ = g_strconcat (_tmp12_, "/", NULL);
	_tmp14_ = _tmp13_;
	_tmp15_ = proton_plus_models_runners_basic_get_directory_name (runner, title);
	_tmp16_ = _tmp15_;
	_tmp17_ = g_strconcat (_tmp14_, _tmp16_, NULL);
	_tmp18_ = _tmp17_;
	proton_plus_models_releases_basic_set_install_location (self, _tmp18_);
	_g_free0 (_tmp18_);
	_g_free0 (_tmp16_);
	_g_free0 (_tmp14_);
	_g_free0 (_tmp12_);
	proton_plus_models_base_release_refresh_state ((ProtonPlusModelsBaseRelease*) self);
}

static Block12Data*
block12_data_ref (Block12Data* _data12_)
{
	g_atomic_int_inc (&_data12_->_ref_count_);
	return _data12_;
}

static void
block12_data_unref (void * _userdata_)
{
	Block12Data* _data12_;
	_data12_ = (Block12Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data12_->_ref_count_)) {
		ProtonPlusModelsReleasesBasic* self;
		self = _data12_->self;
		_g_object_unref0 (self);
		g_slice_free (Block12Data, _data12_);
	}
}

static gboolean
string_contains (const gchar* self,
                 const gchar* needle)
{
	gchar* _tmp0_;
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	g_return_val_if_fail (needle != NULL, FALSE);
	_tmp0_ = strstr ((gchar*) self, (gchar*) needle);
	result = _tmp0_ != NULL;
	return result;
}

static Block13Data*
block13_data_ref (Block13Data* _data13_)
{
	g_atomic_int_inc (&_data13_->_ref_count_);
	return _data13_;
}

static void
block13_data_unref (void * _userdata_)
{
	Block13Data* _data13_;
	_data13_ = (Block13Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data13_->_ref_count_)) {
		ProtonPlusModelsReleasesBasic* self;
		self = _data13_->_data12_->self;
		_g_free0 (_data13_->backup_directory_name);
		block12_data_unref (_data13_->_data12_);
		_data13_->_data12_ = NULL;
		g_slice_free (Block13Data, _data13_);
	}
}

static void
___lambda69_ (Block13Data* _data13_)
{
	Block12Data* _data12_;
	ProtonPlusModelsReleasesBasic* self;
	const gchar* _tmp0_;
	ProtonPlusModelsRunner* _tmp1_;
	ProtonPlusModelsRunner* _tmp2_;
	ProtonPlusModelsGroup* _tmp3_;
	ProtonPlusModelsGroup* _tmp4_;
	ProtonPlusModelsLauncher* _tmp5_;
	ProtonPlusModelsLauncher* _tmp6_;
	const gchar* _tmp7_;
	ProtonPlusModelsRunner* _tmp8_;
	ProtonPlusModelsRunner* _tmp9_;
	ProtonPlusModelsGroup* _tmp10_;
	ProtonPlusModelsGroup* _tmp11_;
	const gchar* _tmp12_;
	const gchar* _tmp13_;
	const gchar* _tmp14_;
	gchar* _tmp15_;
	gchar* _tmp16_;
	gboolean _tmp17_ = FALSE;
	gboolean _tmp18_ = FALSE;
	_data12_ = _data13_->_data12_;
	self = _data12_->self;
	_tmp0_ = self->priv->_install_location;
	_data12_->install_directory_valid = g_file_test (_tmp0_, G_FILE_TEST_IS_DIR);
	_tmp1_ = proton_plus_models_base_release_get_runner ((ProtonPlusModelsBaseRelease*) self);
	_tmp2_ = _tmp1_;
	_tmp3_ = proton_plus_models_runner_get_group (_tmp2_);
	_tmp4_ = _tmp3_;
	_tmp5_ = proton_plus_models_group_get_launcher (_tmp4_);
	_tmp6_ = _tmp5_;
	_tmp7_ = _tmp6_->directory;
	_tmp8_ = proton_plus_models_base_release_get_runner ((ProtonPlusModelsBaseRelease*) self);
	_tmp9_ = _tmp8_;
	_tmp10_ = proton_plus_models_runner_get_group (_tmp9_);
	_tmp11_ = _tmp10_;
	_tmp12_ = proton_plus_models_group_get_directory (_tmp11_);
	_tmp13_ = _tmp12_;
	_tmp14_ = _data13_->backup_directory_name;
	_tmp15_ = g_strdup_printf ("%s%s/%s", _tmp7_, _tmp13_, _tmp14_);
	_tmp16_ = _tmp15_;
	_data13_->backup_directory_valid = g_file_test (_tmp16_, G_FILE_TEST_IS_DIR);
	_g_free0 (_tmp16_);
	if (!_data12_->directory_name_valid) {
		_tmp18_ = TRUE;
	} else {
		gboolean _tmp19_ = FALSE;
		if (_data13_->backup_directory_valid) {
			_tmp19_ = !_data12_->install_directory_valid;
		} else {
			_tmp19_ = FALSE;
		}
		_tmp18_ = _tmp19_;
	}
	if (_tmp18_) {
		_tmp17_ = TRUE;
	} else {
		gboolean _tmp20_ = FALSE;
		if (!_data13_->backup_directory_valid) {
			_tmp20_ = !_data12_->install_directory_valid;
		} else {
			_tmp20_ = FALSE;
		}
		_tmp17_ = _tmp20_;
	}
	if (_tmp17_) {
		proton_plus_models_base_release_set_state ((ProtonPlusModelsBaseRelease*) self, PROTON_PLUS_MODELS_BASE_RELEASE_STATE_NOT_INSTALLED);
	}
}

static void
____lambda69__g_object_notify (GObject* _sender,
                               GParamSpec* pspec,
                               gpointer self)
{
	___lambda69_ (self);
}

static void
proton_plus_models_releases_basic_real_refresh_state (ProtonPlusModelsBaseRelease* base)
{
	ProtonPlusModelsReleasesBasic * self;
	Block12Data* _data12_;
	gchar* directory_name = NULL;
	ProtonPlusModelsRunner* _tmp0_;
	ProtonPlusModelsRunner* _tmp1_;
	const gchar* _tmp2_;
	const gchar* _tmp3_;
	gchar* _tmp4_;
	const gchar* _tmp5_;
	const gchar* _tmp6_;
	gboolean _tmp7_ = FALSE;
	gboolean _tmp8_ = FALSE;
	const gchar* _tmp9_;
	const gchar* _tmp10_;
	self = (ProtonPlusModelsReleasesBasic*) base;
	_data12_ = g_slice_new0 (Block12Data);
	_data12_->_ref_count_ = 1;
	_data12_->self = g_object_ref (self);
	proton_plus_models_base_release_set_step ((ProtonPlusModelsBaseRelease*) self, PROTON_PLUS_MODELS_BASE_RELEASE_STEP_NOTHING);
	_tmp0_ = proton_plus_models_base_release_get_runner ((ProtonPlusModelsBaseRelease*) self);
	_tmp1_ = _tmp0_;
	_tmp2_ = proton_plus_models_base_release_get_title ((ProtonPlusModelsBaseRelease*) self);
	_tmp3_ = _tmp2_;
	_tmp4_ = proton_plus_models_runners_basic_get_directory_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, PROTON_PLUS_MODELS_RUNNERS_TYPE_BASIC, ProtonPlusModelsRunnersBasic), _tmp3_);
	directory_name = _tmp4_;
	_tmp5_ = directory_name;
	_data12_->directory_name_valid = g_strcmp0 (_tmp5_, "") != 0;
	_tmp6_ = self->priv->_install_location;
	_data12_->install_directory_valid = g_file_test (_tmp6_, G_FILE_TEST_IS_DIR);
	_tmp9_ = proton_plus_models_base_release_get_title ((ProtonPlusModelsBaseRelease*) self);
	_tmp10_ = _tmp9_;
	if (string_contains (_tmp10_, "Latest")) {
		ProtonPlusWidgetsWindow* _tmp11_;
		_tmp11_ = proton_plus_widgets_application_window;
		_tmp8_ = _tmp11_ != NULL;
	} else {
		_tmp8_ = FALSE;
	}
	if (_tmp8_) {
		ProtonPlusWidgetsWindow* _tmp12_;
		gboolean _tmp13_;
		gboolean _tmp14_;
		_tmp12_ = proton_plus_widgets_application_window;
		_tmp13_ = proton_plus_widgets_window_get_updating (_tmp12_);
		_tmp14_ = _tmp13_;
		_tmp7_ = _tmp14_;
	} else {
		_tmp7_ = FALSE;
	}
	if (_tmp7_) {
		Block13Data* _data13_;
		const gchar* _tmp15_;
		gchar* _tmp16_;
		ProtonPlusModelsRunner* _tmp17_;
		ProtonPlusModelsRunner* _tmp18_;
		ProtonPlusModelsGroup* _tmp19_;
		ProtonPlusModelsGroup* _tmp20_;
		ProtonPlusModelsLauncher* _tmp21_;
		ProtonPlusModelsLauncher* _tmp22_;
		const gchar* _tmp23_;
		ProtonPlusModelsRunner* _tmp24_;
		ProtonPlusModelsRunner* _tmp25_;
		ProtonPlusModelsGroup* _tmp26_;
		ProtonPlusModelsGroup* _tmp27_;
		const gchar* _tmp28_;
		const gchar* _tmp29_;
		const gchar* _tmp30_;
		gchar* _tmp31_;
		gchar* _tmp32_;
		gboolean _tmp33_;
		ProtonPlusModelsBaseReleaseState _tmp34_ = 0;
		gboolean _tmp35_ = FALSE;
		ProtonPlusWidgetsWindow* _tmp37_;
		_data13_ = g_slice_new0 (Block13Data);
		_data13_->_ref_count_ = 1;
		_data13_->_data12_ = block12_data_ref (_data12_);
		_tmp15_ = directory_name;
		_tmp16_ = g_strdup_printf ("%s Backup", _tmp15_);
		_data13_->backup_directory_name = _tmp16_;
		_tmp17_ = proton_plus_models_base_release_get_runner ((ProtonPlusModelsBaseRelease*) self);
		_tmp18_ = _tmp17_;
		_tmp19_ = proton_plus_models_runner_get_group (_tmp18_);
		_tmp20_ = _tmp19_;
		_tmp21_ = proton_plus_models_group_get_launcher (_tmp20_);
		_tmp22_ = _tmp21_;
		_tmp23_ = _tmp22_->directory;
		_tmp24_ = proton_plus_models_base_release_get_runner ((ProtonPlusModelsBaseRelease*) self);
		_tmp25_ = _tmp24_;
		_tmp26_ = proton_plus_models_runner_get_group (_tmp25_);
		_tmp27_ = _tmp26_;
		_tmp28_ = proton_plus_models_group_get_directory (_tmp27_);
		_tmp29_ = _tmp28_;
		_tmp30_ = _data13_->backup_directory_name;
		_tmp31_ = g_strdup_printf ("%s%s/%s", _tmp23_, _tmp29_, _tmp30_);
		_tmp32_ = _tmp31_;
		_tmp33_ = g_file_test (_tmp32_, G_FILE_TEST_IS_DIR);
		_g_free0 (_tmp32_);
		_data13_->backup_directory_valid = _tmp33_;
		if (_data12_->directory_name_valid) {
			gboolean _tmp36_ = FALSE;
			if (_data12_->install_directory_valid) {
				_tmp36_ = TRUE;
			} else {
				_tmp36_ = _data13_->backup_directory_valid;
			}
			_tmp35_ = _tmp36_;
		} else {
			_tmp35_ = FALSE;
		}
		if (_tmp35_) {
			_tmp34_ = PROTON_PLUS_MODELS_BASE_RELEASE_STATE_UP_TO_DATE;
		} else {
			_tmp34_ = PROTON_PLUS_MODELS_BASE_RELEASE_STATE_NOT_INSTALLED;
		}
		proton_plus_models_base_release_set_state ((ProtonPlusModelsBaseRelease*) self, _tmp34_);
		_tmp37_ = proton_plus_widgets_application_window;
		g_signal_connect_data ((GObject*) _tmp37_, "notify::updating", (GCallback) ____lambda69__g_object_notify, block13_data_ref (_data13_), (GClosureNotify) block13_data_unref, 0);
		block13_data_unref (_data13_);
		_data13_ = NULL;
	} else {
		ProtonPlusModelsBaseReleaseState _tmp38_ = 0;
		gboolean _tmp39_ = FALSE;
		if (_data12_->directory_name_valid) {
			_tmp39_ = _data12_->install_directory_valid;
		} else {
			_tmp39_ = FALSE;
		}
		if (_tmp39_) {
			_tmp38_ = PROTON_PLUS_MODELS_BASE_RELEASE_STATE_UP_TO_DATE;
		} else {
			_tmp38_ = PROTON_PLUS_MODELS_BASE_RELEASE_STATE_NOT_INSTALLED;
		}
		proton_plus_models_base_release_set_state ((ProtonPlusModelsBaseRelease*) self, _tmp38_);
	}
	_g_free0 (directory_name);
	block12_data_unref (_data12_);
	_data12_ = NULL;
}

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

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

static void
proton_plus_models_releases_basic_real__start_install (ProtonPlusModelsBaseRelease* base,
                                                       GAsyncReadyCallback _callback_,
                                                       gpointer _user_data_)
{
	ProtonPlusModelsReleasesBasic * self;
	ProtonPlusModelsReleasesBasicStartInstallData* _data_;
	ProtonPlusModelsReleasesBasic* _tmp0_;
	self = (ProtonPlusModelsReleasesBasic*) base;
	_data_ = g_slice_new0 (ProtonPlusModelsReleasesBasicStartInstallData);
	_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_basic_real__start_install_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	proton_plus_models_releases_basic_real__start_install_co (_data_);
}

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

static gboolean
___lambda70_ (ProtonPlusModelsReleasesBasic* self)
{
	gboolean _tmp0_;
	gboolean _tmp1_;
	gboolean result;
	_tmp0_ = proton_plus_models_base_release_get_canceled ((ProtonPlusModelsBaseRelease*) self);
	_tmp1_ = _tmp0_;
	result = _tmp1_;
	return result;
}

static gboolean
____lambda70__protonplusutilswebcancel_callback (gpointer self)
{
	gboolean result;
	result = ___lambda70_ ((ProtonPlusModelsReleasesBasic*) self);
	return result;
}

static void
___lambda71_ (ProtonPlusModelsReleasesBasic* self,
              gboolean is_percent,
              gint64 progress,
              gdouble speed_kbps,
              gdouble* seconds_remaining)
{
	gchar* _tmp0_ = NULL;
	proton_plus_models_base_release_set_is_percent ((ProtonPlusModelsBaseRelease*) self, is_percent);
	if (is_percent) {
		gchar* _tmp1_;
		gchar* _tmp2_;
		gchar* _tmp3_;
		_tmp1_ = g_strdup_printf ("%" G_GINT64_FORMAT, progress);
		_tmp2_ = _tmp1_;
		_tmp3_ = g_strconcat (_tmp2_, "%", NULL);
		_g_free0 (_tmp0_);
		_tmp0_ = _tmp3_;
		_g_free0 (_tmp2_);
	} else {
		gchar* _tmp4_;
		_tmp4_ = proton_plus_utils_filesystem_convert_bytes_to_string (progress);
		_g_free0 (_tmp0_);
		_tmp0_ = _tmp4_;
	}
	proton_plus_models_base_release_set_progress ((ProtonPlusModelsBaseRelease*) self, _tmp0_);
	proton_plus_models_base_release_set_speed_kbps ((ProtonPlusModelsBaseRelease*) self, speed_kbps);
	proton_plus_models_base_release_set_seconds_remaining ((ProtonPlusModelsBaseRelease*) self, seconds_remaining);
	_g_free0 (_tmp0_);
}

static void
____lambda71__protonplusutilswebprogress_callback (gboolean is_percent,
                                                   gint64 progress_percentage,
                                                   gdouble speed_kbps,
                                                   gdouble* remaining_seconds,
                                                   gpointer self)
{
	___lambda71_ ((ProtonPlusModelsReleasesBasic*) self, is_percent, progress_percentage, speed_kbps, remaining_seconds);
}

static void
_proton_plus_models_releases_basic_start_install_ready (GObject* source_object,
                                                        GAsyncResult* _res_,
                                                        gpointer _user_data_)
{
	ProtonPlusModelsReleasesBasicStartInstallData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	proton_plus_models_releases_basic_real__start_install_co (_data_);
}

static gboolean
__lambda72_ (ProtonPlusModelsReleasesBasic* self)
{
	gboolean _tmp0_;
	gboolean _tmp1_;
	gboolean result;
	_tmp0_ = proton_plus_models_base_release_get_canceled ((ProtonPlusModelsBaseRelease*) self);
	_tmp1_ = _tmp0_;
	result = _tmp1_;
	return result;
}

static gboolean
___lambda72__protonplusutilsfilesystemcancel_callback (gpointer self)
{
	gboolean result;
	result = __lambda72_ ((ProtonPlusModelsReleasesBasic*) self);
	return result;
}

static gboolean
proton_plus_models_releases_basic_real__start_install_co (ProtonPlusModelsReleasesBasicStartInstallData* _data_)
{
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		case 2:
		goto _state_2;
		case 3:
		goto _state_3;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	proton_plus_models_base_release_set_step ((ProtonPlusModelsBaseRelease*) _data_->self, PROTON_PLUS_MODELS_BASE_RELEASE_STEP_DOWNLOADING);
	_data_->_tmp0_ = proton_plus_models_base_release_get_download_url ((ProtonPlusModelsBaseRelease*) _data_->self);
	_data_->_tmp1_ = _data_->_tmp0_;
	if (!string_contains (_data_->_tmp1_, ".tar")) {
		_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_->_tmp2_ = proton_plus_globals_CACHE_PATH;
	_data_->_tmp3_ = proton_plus_models_base_release_get_title ((ProtonPlusModelsBaseRelease*) _data_->self);
	_data_->_tmp4_ = _data_->_tmp3_;
	_data_->_tmp5_ = g_strdup_printf ("%s/%s.tar.gz", _data_->_tmp2_, _data_->_tmp4_);
	_data_->download_path = _data_->_tmp5_;
	_data_->_tmp6_ = _data_->download_path;
	if (!g_file_test (_data_->_tmp6_, G_FILE_TEST_EXISTS)) {
		_data_->_tmp7_ = proton_plus_models_base_release_get_download_url ((ProtonPlusModelsBaseRelease*) _data_->self);
		_data_->_tmp8_ = _data_->_tmp7_;
		_data_->_tmp9_ = _data_->download_path;
		_data_->_tmp10_ = NULL;
		_data_->_state_ = 1;
		proton_plus_utils_web_Download (_data_->_tmp8_, _data_->_tmp9_, ____lambda70__protonplusutilswebcancel_callback, _data_->self, ____lambda71__protonplusutilswebprogress_callback, _data_->self, _proton_plus_models_releases_basic_start_install_ready, _data_);
		return FALSE;
		_state_1:
		_data_->_tmp11_ = proton_plus_utils_web_Download_finish (_data_->_res_, &_data_->_tmp10_);
		_g_free0 (_data_->download_error);
		_data_->download_error = _data_->_tmp10_;
		_data_->download_valid = _data_->_tmp11_;
		if (!_data_->download_valid) {
			_data_->_tmp12_ = _data_->download_error;
			proton_plus_models_base_release_set_error_message ((ProtonPlusModelsBaseRelease*) _data_->self, _data_->_tmp12_);
			_data_->result = FALSE;
			_g_free0 (_data_->download_error);
			_g_free0 (_data_->download_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;
		}
		_g_free0 (_data_->download_error);
	}
	proton_plus_models_base_release_set_step ((ProtonPlusModelsBaseRelease*) _data_->self, PROTON_PLUS_MODELS_BASE_RELEASE_STEP_EXTRACTING);
	_data_->_tmp13_ = proton_plus_globals_CACHE_PATH;
	_data_->_tmp14_ = g_strdup_printf ("%s/", _data_->_tmp13_);
	_data_->extract_path = _data_->_tmp14_;
	_data_->_tmp15_ = _data_->extract_path;
	_data_->_tmp16_ = proton_plus_models_base_release_get_title ((ProtonPlusModelsBaseRelease*) _data_->self);
	_data_->_tmp17_ = _data_->_tmp16_;
	_data_->_state_ = 2;
	proton_plus_utils_filesystem_extract (_data_->_tmp15_, _data_->_tmp17_, ".tar.gz", ___lambda72__protonplusutilsfilesystemcancel_callback, _data_->self, _proton_plus_models_releases_basic_start_install_ready, _data_);
	return FALSE;
	_state_2:
	_data_->_tmp18_ = proton_plus_utils_filesystem_extract_finish (_data_->_res_);
	_data_->source_path = _data_->_tmp18_;
	_data_->_tmp19_ = _data_->source_path;
	if (g_strcmp0 (_data_->_tmp19_, "") == 0) {
		_data_->result = FALSE;
		_g_free0 (_data_->source_path);
		_g_free0 (_data_->extract_path);
		_g_free0 (_data_->download_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_base_release_set_step ((ProtonPlusModelsBaseRelease*) _data_->self, PROTON_PLUS_MODELS_BASE_RELEASE_STEP_MOVING);
	_data_->_tmp20_ = proton_plus_models_base_release_get_runner ((ProtonPlusModelsBaseRelease*) _data_->self);
	_data_->_tmp21_ = _data_->_tmp20_;
	_data_->_tmp22_ = _g_object_ref0 (PROTON_PLUS_MODELS_RUNNERS_IS_BASIC (_data_->_tmp21_) ? ((ProtonPlusModelsRunnersBasic*) _data_->_tmp21_) : NULL);
	_data_->runner = _data_->_tmp22_;
	_data_->_tmp23_ = _data_->runner;
	_data_->_tmp24_ = proton_plus_models_runner_get_group ((ProtonPlusModelsRunner*) _data_->_tmp23_);
	_data_->_tmp25_ = _data_->_tmp24_;
	_data_->_tmp26_ = proton_plus_models_group_get_launcher (_data_->_tmp25_);
	_data_->_tmp27_ = _data_->_tmp26_;
	_data_->_tmp28_ = _data_->_tmp27_->directory;
	_data_->_tmp29_ = _data_->runner;
	_data_->_tmp30_ = proton_plus_models_runner_get_group ((ProtonPlusModelsRunner*) _data_->_tmp29_);
	_data_->_tmp31_ = _data_->_tmp30_;
	_data_->_tmp32_ = proton_plus_models_group_get_directory (_data_->_tmp31_);
	_data_->_tmp33_ = _data_->_tmp32_;
	_data_->_tmp34_ = _data_->runner;
	_data_->_tmp35_ = proton_plus_models_base_release_get_title ((ProtonPlusModelsBaseRelease*) _data_->self);
	_data_->_tmp36_ = _data_->_tmp35_;
	_data_->_tmp37_ = proton_plus_models_runners_basic_get_directory_name (_data_->_tmp34_, _data_->_tmp36_);
	_data_->_tmp38_ = _data_->_tmp37_;
	_data_->_tmp39_ = g_strdup_printf ("%s%s/%s/", _data_->_tmp28_, _data_->_tmp33_, _data_->_tmp38_);
	_data_->_tmp40_ = _data_->_tmp39_;
	proton_plus_models_releases_basic_set_destination_path (_data_->self, _data_->_tmp40_);
	_g_free0 (_data_->_tmp40_);
	_g_free0 (_data_->_tmp38_);
	_data_->_tmp41_ = _data_->source_path;
	_data_->_tmp42_ = _data_->self->priv->_destination_path;
	_data_->_state_ = 3;
	proton_plus_utils_filesystem_move_directory (_data_->_tmp41_, _data_->_tmp42_, _proton_plus_models_releases_basic_start_install_ready, _data_);
	return FALSE;
	_state_3:
	_data_->renaming_valid = proton_plus_utils_filesystem_move_directory_finish (_data_->_res_);
	if (!_data_->renaming_valid) {
		_data_->result = FALSE;
		_g_object_unref0 (_data_->runner);
		_g_free0 (_data_->source_path);
		_g_free0 (_data_->extract_path);
		_g_free0 (_data_->download_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 (_data_->self);
	_data_->result = TRUE;
	_g_object_unref0 (_data_->runner);
	_g_free0 (_data_->source_path);
	_g_free0 (_data_->extract_path);
	_g_free0 (_data_->download_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_basic_real__start_remove_data_free (gpointer _data)
{
	ProtonPlusModelsReleasesBasicStartRemoveData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->parameters);
	_g_object_unref0 (_data_->self);
	g_slice_free (ProtonPlusModelsReleasesBasicStartRemoveData, _data_);
}

static void
proton_plus_models_releases_basic_real__start_remove (ProtonPlusModelsRelease* base,
                                                      ProtonPlusModelsParameters* parameters,
                                                      GAsyncReadyCallback _callback_,
                                                      gpointer _user_data_)
{
	ProtonPlusModelsReleasesBasic * self;
	ProtonPlusModelsReleasesBasicStartRemoveData* _data_;
	ProtonPlusModelsReleasesBasic* _tmp0_;
	ProtonPlusModelsParameters* _tmp1_;
	g_return_if_fail (parameters != NULL);
	self = (ProtonPlusModelsReleasesBasic*) base;
	_data_ = g_slice_new0 (ProtonPlusModelsReleasesBasicStartRemoveData);
	_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_basic_real__start_remove_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	_tmp1_ = _g_object_ref0 (parameters);
	_g_object_unref0 (_data_->parameters);
	_data_->parameters = _tmp1_;
	proton_plus_models_releases_basic_real__start_remove_co (_data_);
}

static gboolean
_proton_plus_models_releases_basic_start_remove_finish (ProtonPlusModelsRelease* base,
                                                        GAsyncResult* _res_)
{
	gboolean result;
	ProtonPlusModelsReleasesBasicStartRemoveData* _data_;
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
	result = _data_->result;
	return result;
}

static void
_proton_plus_models_releases_basic_start_remove_ready (GObject* source_object,
                                                       GAsyncResult* _res_,
                                                       gpointer _user_data_)
{
	ProtonPlusModelsReleasesBasicStartRemoveData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	proton_plus_models_releases_basic_real__start_remove_co (_data_);
}

static gboolean
proton_plus_models_releases_basic_real__start_remove_co (ProtonPlusModelsReleasesBasicStartRemoveData* _data_)
{
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	proton_plus_models_base_release_set_step ((ProtonPlusModelsBaseRelease*) _data_->self, PROTON_PLUS_MODELS_BASE_RELEASE_STEP_REMOVING);
	_data_->_tmp0_ = _data_->self->priv->_install_location;
	_data_->_state_ = 1;
	proton_plus_utils_filesystem_delete_directory (_data_->_tmp0_, _proton_plus_models_releases_basic_start_remove_ready, _data_);
	return FALSE;
	_state_1:
	_data_->deleted = proton_plus_utils_filesystem_delete_directory_finish (_data_->_res_);
	if (!_data_->deleted) {
		_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;
	}
	proton_plus_models_releases_basic_remove_from_games_tab (_data_->self);
	_data_->result = TRUE;
	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;
}

void
proton_plus_models_releases_basic_add_to_games_tab (ProtonPlusModelsReleasesBasic* self)
{
	ProtonPlusModelsRunner* _tmp0_;
	ProtonPlusModelsRunner* _tmp1_;
	ProtonPlusModelsGroup* _tmp2_;
	ProtonPlusModelsGroup* _tmp3_;
	ProtonPlusModelsLauncher* _tmp4_;
	ProtonPlusModelsLauncher* _tmp5_;
	const gchar* _tmp6_;
	ProtonPlusModelsSimpleRunner* simple_runner = NULL;
	const gchar* _tmp7_;
	ProtonPlusModelsSimpleRunner* _tmp8_;
	ProtonPlusModelsRunner* _tmp9_;
	ProtonPlusModelsRunner* _tmp10_;
	ProtonPlusModelsGroup* _tmp11_;
	ProtonPlusModelsGroup* _tmp12_;
	ProtonPlusModelsLauncher* _tmp13_;
	ProtonPlusModelsLauncher* _tmp14_;
	GeeArrayList* _tmp15_;
	ProtonPlusModelsSimpleRunner* _tmp16_;
	GError* _inner_error0_ = NULL;
	g_return_if_fail (self != NULL);
	_tmp0_ = proton_plus_models_base_release_get_runner ((ProtonPlusModelsBaseRelease*) self);
	_tmp1_ = _tmp0_;
	_tmp2_ = proton_plus_models_runner_get_group (_tmp1_);
	_tmp3_ = _tmp2_;
	_tmp4_ = proton_plus_models_group_get_launcher (_tmp3_);
	_tmp5_ = _tmp4_;
	_tmp6_ = _tmp5_->title;
	if (g_strcmp0 (_tmp6_, "Steam") != 0) {
		return;
	}
	_tmp7_ = self->priv->_install_location;
	_tmp8_ = proton_plus_models_simple_runner_new_from_path (_tmp7_, &_inner_error0_);
	simple_runner = _tmp8_;
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
		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;
	}
	_tmp9_ = proton_plus_models_base_release_get_runner ((ProtonPlusModelsBaseRelease*) self);
	_tmp10_ = _tmp9_;
	_tmp11_ = proton_plus_models_runner_get_group (_tmp10_);
	_tmp12_ = _tmp11_;
	_tmp13_ = proton_plus_models_group_get_launcher (_tmp12_);
	_tmp14_ = _tmp13_;
	_tmp15_ = _tmp14_->compatibility_tools;
	_tmp16_ = simple_runner;
	gee_abstract_collection_add ((GeeAbstractCollection*) _tmp15_, _tmp16_);
	_g_object_unref0 (simple_runner);
}

void
proton_plus_models_releases_basic_remove_from_games_tab (ProtonPlusModelsReleasesBasic* self)
{
	g_return_if_fail (self != NULL);
	{
		GeeArrayList* _simple_runner_list = NULL;
		ProtonPlusModelsRunner* _tmp0_;
		ProtonPlusModelsRunner* _tmp1_;
		ProtonPlusModelsGroup* _tmp2_;
		ProtonPlusModelsGroup* _tmp3_;
		ProtonPlusModelsLauncher* _tmp4_;
		ProtonPlusModelsLauncher* _tmp5_;
		GeeArrayList* _tmp6_;
		gint _simple_runner_size = 0;
		GeeArrayList* _tmp7_;
		gint _tmp8_;
		gint _tmp9_;
		gint _simple_runner_index = 0;
		_tmp0_ = proton_plus_models_base_release_get_runner ((ProtonPlusModelsBaseRelease*) self);
		_tmp1_ = _tmp0_;
		_tmp2_ = proton_plus_models_runner_get_group (_tmp1_);
		_tmp3_ = _tmp2_;
		_tmp4_ = proton_plus_models_group_get_launcher (_tmp3_);
		_tmp5_ = _tmp4_;
		_tmp6_ = _tmp5_->compatibility_tools;
		_simple_runner_list = _tmp6_;
		_tmp7_ = _simple_runner_list;
		_tmp8_ = gee_abstract_collection_get_size ((GeeAbstractCollection*) _tmp7_);
		_tmp9_ = _tmp8_;
		_simple_runner_size = _tmp9_;
		_simple_runner_index = -1;
		while (TRUE) {
			gint _tmp10_;
			gint _tmp11_;
			ProtonPlusModelsSimpleRunner* simple_runner = NULL;
			GeeArrayList* _tmp12_;
			gpointer _tmp13_;
			ProtonPlusModelsSimpleRunner* _tmp14_;
			const gchar* _tmp15_;
			const gchar* _tmp16_;
			const gchar* _tmp17_;
			_simple_runner_index = _simple_runner_index + 1;
			_tmp10_ = _simple_runner_index;
			_tmp11_ = _simple_runner_size;
			if (!(_tmp10_ < _tmp11_)) {
				break;
			}
			_tmp12_ = _simple_runner_list;
			_tmp13_ = gee_abstract_list_get ((GeeAbstractList*) _tmp12_, _simple_runner_index);
			simple_runner = (ProtonPlusModelsSimpleRunner*) _tmp13_;
			_tmp14_ = simple_runner;
			_tmp15_ = proton_plus_models_simple_runner_get_path (_tmp14_);
			_tmp16_ = _tmp15_;
			_tmp17_ = self->priv->_install_location;
			if (g_strcmp0 (_tmp16_, _tmp17_) == 0) {
				ProtonPlusModelsRunner* _tmp18_;
				ProtonPlusModelsRunner* _tmp19_;
				ProtonPlusModelsGroup* _tmp20_;
				ProtonPlusModelsGroup* _tmp21_;
				ProtonPlusModelsLauncher* _tmp22_;
				ProtonPlusModelsLauncher* _tmp23_;
				GeeArrayList* _tmp24_;
				ProtonPlusModelsSimpleRunner* _tmp25_;
				_tmp18_ = proton_plus_models_base_release_get_runner ((ProtonPlusModelsBaseRelease*) self);
				_tmp19_ = _tmp18_;
				_tmp20_ = proton_plus_models_runner_get_group (_tmp19_);
				_tmp21_ = _tmp20_;
				_tmp22_ = proton_plus_models_group_get_launcher (_tmp21_);
				_tmp23_ = _tmp22_;
				_tmp24_ = _tmp23_->compatibility_tools;
				_tmp25_ = simple_runner;
				gee_abstract_collection_remove ((GeeAbstractCollection*) _tmp24_, _tmp25_);
				_g_object_unref0 (simple_runner);
				break;
			}
			_g_object_unref0 (simple_runner);
		}
	}
}

ProtonPlusModelsReleasesBasic*
proton_plus_models_releases_basic_construct (GType object_type)
{
	ProtonPlusModelsReleasesBasic * self = NULL;
	self = (ProtonPlusModelsReleasesBasic*) proton_plus_models_release_construct (object_type, PROTON_PLUS_MODELS_TYPE_PARAMETERS, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref);
	return self;
}

ProtonPlusModelsReleasesBasic*
proton_plus_models_releases_basic_new (void)
{
	return proton_plus_models_releases_basic_construct (PROTON_PLUS_MODELS_RELEASES_TYPE_BASIC);
}

const gchar*
proton_plus_models_releases_basic_get_install_location (ProtonPlusModelsReleasesBasic* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_install_location;
	result = _tmp0_;
	return result;
}

void
proton_plus_models_releases_basic_set_install_location (ProtonPlusModelsReleasesBasic* self,
                                                        const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_releases_basic_get_install_location (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_install_location);
		self->priv->_install_location = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_releases_basic_properties[PROTON_PLUS_MODELS_RELEASES_BASIC_INSTALL_LOCATION_PROPERTY]);
	}
}

gint64
proton_plus_models_releases_basic_get_download_size (ProtonPlusModelsReleasesBasic* self)
{
	gint64 result;
	g_return_val_if_fail (self != NULL, -1LL);
	result = self->priv->_download_size;
	return result;
}

void
proton_plus_models_releases_basic_set_download_size (ProtonPlusModelsReleasesBasic* self,
                                                     gint64 value)
{
	gint64 old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_releases_basic_get_download_size (self);
	if (old_value != value) {
		self->priv->_download_size = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_releases_basic_properties[PROTON_PLUS_MODELS_RELEASES_BASIC_DOWNLOAD_SIZE_PROPERTY]);
	}
}

const gchar*
proton_plus_models_releases_basic_get_destination_path (ProtonPlusModelsReleasesBasic* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_destination_path;
	result = _tmp0_;
	return result;
}

void
proton_plus_models_releases_basic_set_destination_path (ProtonPlusModelsReleasesBasic* self,
                                                        const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_releases_basic_get_destination_path (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_destination_path);
		self->priv->_destination_path = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_releases_basic_properties[PROTON_PLUS_MODELS_RELEASES_BASIC_DESTINATION_PATH_PROPERTY]);
	}
}

static void
proton_plus_models_releases_basic_class_init (ProtonPlusModelsReleasesBasicClass * klass,
                                              gpointer klass_data)
{
	proton_plus_models_releases_basic_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusModelsReleasesBasic_private_offset);
	((ProtonPlusModelsBaseReleaseClass *) klass)->refresh_state = (void (*) (ProtonPlusModelsBaseRelease*)) proton_plus_models_releases_basic_real_refresh_state;
	((ProtonPlusModelsBaseReleaseClass *) klass)->_start_install = (void (*) (ProtonPlusModelsBaseRelease*, GAsyncReadyCallback, gpointer)) proton_plus_models_releases_basic_real__start_install;
	((ProtonPlusModelsBaseReleaseClass *) klass)->_start_install_finish = (gboolean (*) (ProtonPlusModelsBaseRelease*, GAsyncResult*)) _proton_plus_models_releases_basic_start_install_finish;
	((ProtonPlusModelsReleaseClass *) klass)->_start_remove = (void (*) (ProtonPlusModelsRelease*, gconstpointer, GAsyncReadyCallback, gpointer)) proton_plus_models_releases_basic_real__start_remove;
	((ProtonPlusModelsReleaseClass *) klass)->_start_remove_finish = (gboolean (*) (ProtonPlusModelsRelease*, GAsyncResult*)) _proton_plus_models_releases_basic_start_remove_finish;
	G_OBJECT_CLASS (klass)->get_property = _vala_proton_plus_models_releases_basic_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_proton_plus_models_releases_basic_set_property;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_models_releases_basic_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_RELEASES_BASIC_INSTALL_LOCATION_PROPERTY, proton_plus_models_releases_basic_properties[PROTON_PLUS_MODELS_RELEASES_BASIC_INSTALL_LOCATION_PROPERTY] = g_param_spec_string ("install-location", "install-location", "install-location", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_RELEASES_BASIC_DOWNLOAD_SIZE_PROPERTY, proton_plus_models_releases_basic_properties[PROTON_PLUS_MODELS_RELEASES_BASIC_DOWNLOAD_SIZE_PROPERTY] = g_param_spec_int64 ("download-size", "download-size", "download-size", G_MININT64, G_MAXINT64, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_RELEASES_BASIC_DESTINATION_PATH_PROPERTY, proton_plus_models_releases_basic_properties[PROTON_PLUS_MODELS_RELEASES_BASIC_DESTINATION_PATH_PROPERTY] = g_param_spec_string ("destination-path", "destination-path", "destination-path", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
}

static void
proton_plus_models_releases_basic_instance_init (ProtonPlusModelsReleasesBasic * self,
                                                 gpointer klass)
{
	self->priv = proton_plus_models_releases_basic_get_instance_private (self);
}

static void
proton_plus_models_releases_basic_finalize (GObject * obj)
{
	ProtonPlusModelsReleasesBasic * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_MODELS_RELEASES_TYPE_BASIC, ProtonPlusModelsReleasesBasic);
	_g_free0 (self->priv->_install_location);
	_g_free0 (self->priv->_destination_path);
	G_OBJECT_CLASS (proton_plus_models_releases_basic_parent_class)->finalize (obj);
}

static GType
proton_plus_models_releases_basic_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusModelsReleasesBasicClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_models_releases_basic_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusModelsReleasesBasic), 0, (GInstanceInitFunc) proton_plus_models_releases_basic_instance_init, NULL };
	GType proton_plus_models_releases_basic_type_id;
	proton_plus_models_releases_basic_type_id = g_type_register_static (PROTON_PLUS_MODELS_TYPE_RELEASE, "ProtonPlusModelsReleasesBasic", &g_define_type_info, 0);
	ProtonPlusModelsReleasesBasic_private_offset = g_type_add_instance_private (proton_plus_models_releases_basic_type_id, sizeof (ProtonPlusModelsReleasesBasicPrivate));
	return proton_plus_models_releases_basic_type_id;
}

GType
proton_plus_models_releases_basic_get_type (void)
{
	static volatile gsize proton_plus_models_releases_basic_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_models_releases_basic_type_id__once)) {
		GType proton_plus_models_releases_basic_type_id;
		proton_plus_models_releases_basic_type_id = proton_plus_models_releases_basic_get_type_once ();
		g_once_init_leave (&proton_plus_models_releases_basic_type_id__once, proton_plus_models_releases_basic_type_id);
	}
	return proton_plus_models_releases_basic_type_id__once;
}

static void
_vala_proton_plus_models_releases_basic_get_property (GObject * object,
                                                      guint property_id,
                                                      GValue * value,
                                                      GParamSpec * pspec)
{
	ProtonPlusModelsReleasesBasic * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_MODELS_RELEASES_TYPE_BASIC, ProtonPlusModelsReleasesBasic);
	switch (property_id) {
		case PROTON_PLUS_MODELS_RELEASES_BASIC_INSTALL_LOCATION_PROPERTY:
		g_value_set_string (value, proton_plus_models_releases_basic_get_install_location (self));
		break;
		case PROTON_PLUS_MODELS_RELEASES_BASIC_DOWNLOAD_SIZE_PROPERTY:
		g_value_set_int64 (value, proton_plus_models_releases_basic_get_download_size (self));
		break;
		case PROTON_PLUS_MODELS_RELEASES_BASIC_DESTINATION_PATH_PROPERTY:
		g_value_set_string (value, proton_plus_models_releases_basic_get_destination_path (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_proton_plus_models_releases_basic_set_property (GObject * object,
                                                      guint property_id,
                                                      const GValue * value,
                                                      GParamSpec * pspec)
{
	ProtonPlusModelsReleasesBasic * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_MODELS_RELEASES_TYPE_BASIC, ProtonPlusModelsReleasesBasic);
	switch (property_id) {
		case PROTON_PLUS_MODELS_RELEASES_BASIC_INSTALL_LOCATION_PROPERTY:
		proton_plus_models_releases_basic_set_install_location (self, g_value_get_string (value));
		break;
		case PROTON_PLUS_MODELS_RELEASES_BASIC_DOWNLOAD_SIZE_PROPERTY:
		proton_plus_models_releases_basic_set_download_size (self, g_value_get_int64 (value));
		break;
		case PROTON_PLUS_MODELS_RELEASES_BASIC_DESTINATION_PATH_PROPERTY:
		proton_plus_models_releases_basic_set_destination_path (self, g_value_get_string (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

