/* steamtinkerlaunch.c generated by valac 0.56.19, the Vala compiler
 * generated from steamtinkerlaunch.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 <json-glib/json-glib.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_UPDATE (proton_plus_models_releases_update_get_type ())
#define PROTON_PLUS_MODELS_RELEASES_UPDATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_RELEASES_TYPE_UPDATE, ProtonPlusModelsReleasesUpdate))
#define PROTON_PLUS_MODELS_RELEASES_UPDATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_RELEASES_TYPE_UPDATE, ProtonPlusModelsReleasesUpdateClass))
#define PROTON_PLUS_MODELS_RELEASES_IS_UPDATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_RELEASES_TYPE_UPDATE))
#define PROTON_PLUS_MODELS_RELEASES_IS_UPDATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_RELEASES_TYPE_UPDATE))
#define PROTON_PLUS_MODELS_RELEASES_UPDATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_RELEASES_TYPE_UPDATE, ProtonPlusModelsReleasesUpdateClass))

typedef struct _ProtonPlusModelsReleasesUpdate ProtonPlusModelsReleasesUpdate;
typedef struct _ProtonPlusModelsReleasesUpdateClass ProtonPlusModelsReleasesUpdateClass;
typedef struct _ProtonPlusModelsReleasesUpdatePrivate ProtonPlusModelsReleasesUpdatePrivate;

#define PROTON_PLUS_MODELS_RELEASES_TYPE_STEAM_TINKER_LAUNCH (proton_plus_models_releases_steam_tinker_launch_get_type ())
#define PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_RELEASES_TYPE_STEAM_TINKER_LAUNCH, ProtonPlusModelsReleasesSteamTinkerLaunch))
#define PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_RELEASES_TYPE_STEAM_TINKER_LAUNCH, ProtonPlusModelsReleasesSteamTinkerLaunchClass))
#define PROTON_PLUS_MODELS_RELEASES_IS_STEAM_TINKER_LAUNCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_RELEASES_TYPE_STEAM_TINKER_LAUNCH))
#define PROTON_PLUS_MODELS_RELEASES_IS_STEAM_TINKER_LAUNCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_RELEASES_TYPE_STEAM_TINKER_LAUNCH))
#define PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_RELEASES_TYPE_STEAM_TINKER_LAUNCH, ProtonPlusModelsReleasesSteamTinkerLaunchClass))

typedef struct _ProtonPlusModelsReleasesSteamTinkerLaunch ProtonPlusModelsReleasesSteamTinkerLaunch;
typedef struct _ProtonPlusModelsReleasesSteamTinkerLaunchClass ProtonPlusModelsReleasesSteamTinkerLaunchClass;
typedef struct _ProtonPlusModelsReleasesSteamTinkerLaunchPrivate ProtonPlusModelsReleasesSteamTinkerLaunchPrivate;
enum  {
	PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_0_PROPERTY,
	PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_BASE_LOCATION_PROPERTY,
	PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_NUM_PROPERTIES
};
static GParamSpec* proton_plus_models_releases_steam_tinker_launch_properties[PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_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_RELEASES_STEAM_TINKER_LAUNCH_TYPE_STL_REMOVE_PARAMETERS (proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_get_type ())
#define PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_STL_REMOVE_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_TYPE_STL_REMOVE_PARAMETERS, ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters))
#define PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_STL_REMOVE_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_TYPE_STL_REMOVE_PARAMETERS, ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_ParametersClass))
#define PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_IS_STL_REMOVE_PARAMETERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_TYPE_STL_REMOVE_PARAMETERS))
#define PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_IS_STL_REMOVE_PARAMETERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_TYPE_STL_REMOVE_PARAMETERS))
#define PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_STL_REMOVE_PARAMETERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_TYPE_STL_REMOVE_PARAMETERS, ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_ParametersClass))

typedef struct _ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters;
typedef struct _ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_ParametersClass ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_ParametersClass;

#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 ())
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _ProtonPlusModelsReleasesSteamTinkerLaunchExecStlData ProtonPlusModelsReleasesSteamTinkerLaunchExecStlData;
typedef enum  {
	PROTON_PLUS_RETURN_CODE_UNKNOWN_ERROR,
	PROTON_PLUS_RETURN_CODE_RELEASES_LOADED,
	PROTON_PLUS_RETURN_CODE_NOTHING_TO_UPDATE,
	PROTON_PLUS_RETURN_CODE_RUNNERS_UPDATED,
	PROTON_PLUS_RETURN_CODE_RUNNER_UPDATED,
	PROTON_PLUS_RETURN_CODE_VALID_REQUEST,
	PROTON_PLUS_RETURN_CODE_CONNECTION_ISSUE,
	PROTON_PLUS_RETURN_CODE_CONNECTION_REFUSED,
	PROTON_PLUS_RETURN_CODE_CONNECTION_UNKNOWN,
	PROTON_PLUS_RETURN_CODE_API_LIMIT_REACHED,
	PROTON_PLUS_RETURN_CODE_INVALID_ACCESS_TOKEN
} ProtonPlusReturnCode;

#define PROTON_PLUS_TYPE_RETURN_CODE (proton_plus_return_code_get_type ())
typedef enum  {
	PROTON_PLUS_UTILS_WEB_GET_TYPE_OTHER,
	PROTON_PLUS_UTILS_WEB_GET_TYPE_GITHUB,
	PROTON_PLUS_UTILS_WEB_GET_TYPE_GITLAB,
	PROTON_PLUS_UTILS_WEB_GET_TYPE_FORGEJO,
	PROTON_PLUS_UTILS_WEB_GET_TYPE_STEAMTINKERLAUNCH
} ProtonPlusUtilsWebGetType;

#define PROTON_PLUS_UTILS_WEB_TYPE_GET_TYPE (proton_plus_utils_web_get_type_get_type ())
#define __vala_JsonNode_free0(var) ((var == NULL) ? NULL : (var = (_vala_JsonNode_free (var), NULL)))
#define _json_array_unref0(var) ((var == NULL) ? NULL : (var = (json_array_unref (var), NULL)))
#define _json_object_unref0(var) ((var == NULL) ? NULL : (var = (json_object_unref (var), NULL)))
typedef struct _ProtonPlusModelsReleasesSteamTinkerLaunchRefreshLatestStlVersionData ProtonPlusModelsReleasesSteamTinkerLaunchRefreshLatestStlVersionData;
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 ())
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 _ProtonPlusModelsReleasesSteamTinkerLaunchStartInstallData ProtonPlusModelsReleasesSteamTinkerLaunchStartInstallData;
typedef struct _ProtonPlusModelsReleasesSteamTinkerLaunchStartRemoveData ProtonPlusModelsReleasesSteamTinkerLaunchStartRemoveData;
typedef struct _ProtonPlusModelsReleasesSteamTinkerLaunchStartUpdateData ProtonPlusModelsReleasesSteamTinkerLaunchStartUpdateData;
typedef struct _ProtonPlusModelsParametersPrivate ProtonPlusModelsParametersPrivate;
typedef struct _ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_ParametersPrivate ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_ParametersPrivate;
enum  {
	PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_STL_REMOVE_PARAMETERS_0_PROPERTY,
	PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_STL_REMOVE_PARAMETERS_DELETE_CONFIG_PROPERTY,
	PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_STL_REMOVE_PARAMETERS_USER_REQUEST_PROPERTY,
	PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_STL_REMOVE_PARAMETERS_NUM_PROPERTIES
};
static GParamSpec* proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_properties[PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_STL_REMOVE_PARAMETERS_NUM_PROPERTIES];

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 _ProtonPlusModelsReleasesUpdate {
	ProtonPlusModelsRelease parent_instance;
	ProtonPlusModelsReleasesUpdatePrivate * priv;
};

struct _ProtonPlusModelsReleasesUpdateClass {
	ProtonPlusModelsReleaseClass parent_class;
	void (*_start_update) (ProtonPlusModelsReleasesUpdate* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	gboolean (*_start_update_finish) (ProtonPlusModelsReleasesUpdate* self, GAsyncResult* _res_);
};

struct _ProtonPlusModelsReleasesSteamTinkerLaunch {
	ProtonPlusModelsReleasesUpdate parent_instance;
	ProtonPlusModelsReleasesSteamTinkerLaunchPrivate * priv;
};

struct _ProtonPlusModelsReleasesSteamTinkerLaunchClass {
	ProtonPlusModelsReleasesUpdateClass parent_class;
};

struct _ProtonPlusModelsReleasesSteamTinkerLaunchPrivate {
	gchar* _home_location;
	gchar* _compat_location;
	gchar* _parent_location;
	gchar* _base_location;
	gchar* _binary_location;
	gchar* _download_location;
	gchar* _meta_location;
	gchar* _link_parent_location;
	gchar* _link_location;
	gchar* _config_location;
	gchar* _manual_remove_location;
	GList* external_locations;
	gchar* _latest_date;
	gchar* _latest_hash;
	gchar* _local_date;
	gchar* _local_hash;
};

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 _ProtonPlusModelsReleasesSteamTinkerLaunchExecStlData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	ProtonPlusModelsReleasesSteamTinkerLaunch* self;
	gchar* exec_location;
	gchar* args;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	const gchar* _tmp5_;
	const gchar* _tmp6_;
	gchar* _tmp7_;
	gchar* _tmp8_;
	gchar* _tmp9_;
	gchar* _tmp10_;
};

struct _ProtonPlusModelsReleasesSteamTinkerLaunchRefreshLatestStlVersionData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	ProtonPlusModelsReleasesSteamTinkerLaunch* self;
	gchar* response;
	ProtonPlusReturnCode code;
	gchar* _tmp0_;
	ProtonPlusReturnCode _tmp1_;
	JsonNode* root_node;
	const gchar* _tmp2_;
	JsonNode* _tmp3_;
	JsonNode* _tmp4_;
	JsonArray* root_array;
	JsonNode* _tmp5_;
	JsonArray* _tmp6_;
	JsonArray* _tmp7_;
	JsonArray* _tmp8_;
	JsonNode* commit_node;
	JsonArray* _tmp9_;
	JsonNode* _tmp10_;
	JsonNode* _tmp11_;
	JsonNode* _tmp12_;
	JsonObject* commit_obj;
	JsonNode* _tmp13_;
	JsonObject* _tmp14_;
	JsonObject* _tmp15_;
	JsonObject* _tmp16_;
	JsonNode* commit_metadata_node;
	JsonObject* _tmp17_;
	JsonNode* _tmp18_;
	JsonNode* _tmp19_;
	JsonNode* _tmp20_;
	JsonObject* commit_metadata_obj;
	JsonNode* _tmp21_;
	JsonObject* _tmp22_;
	JsonObject* _tmp23_;
	JsonObject* _tmp24_;
	JsonNode* committer_metadata_node;
	JsonObject* _tmp25_;
	JsonNode* _tmp26_;
	JsonNode* _tmp27_;
	JsonNode* _tmp28_;
	JsonObject* committer_metadata_obj;
	JsonNode* _tmp29_;
	JsonObject* _tmp30_;
	JsonObject* _tmp31_;
	gchar* raw_date;
	JsonObject* _tmp32_;
	const gchar* _tmp33_;
	gchar* _tmp34_;
	gchar** date_parts;
	const gchar* _tmp35_;
	gchar** _tmp36_;
	gchar** _tmp37_;
	gint date_parts_length1;
	gint _date_parts_size_;
	gchar** _tmp38_;
	gint _tmp38__length1;
	gchar** _tmp39_;
	gint _tmp39__length1;
	const gchar* _tmp40_;
	JsonObject* _tmp41_;
	const gchar* _tmp42_;
	gchar* _tmp43_;
	gchar* _tmp44_;
};

struct _ProtonPlusModelsReleasesSteamTinkerLaunchStartInstallData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	ProtonPlusModelsReleasesSteamTinkerLaunch* self;
	gboolean result;
	gchar* _tmp0_;
	gchar* _tmp1_;
	const gchar* _tmp2_;
	const gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	GList* _tmp6_;
	GList* location_collection;
	GList* location_it;
	gchar* _tmp7_;
	gchar* location;
	gboolean deleted;
	const gchar* _tmp8_;
	gboolean base_location_exists;
	const gchar* _tmp9_;
	gboolean deleted_old_files;
	ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters* _tmp10_;
	ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters* _tmp11_;
	gboolean _tmp12_;
	const gchar* _tmp13_;
	gboolean download_dir_exists;
	const gchar* _tmp14_;
	gchar* downloaded_file_location;
	const gchar* _tmp15_;
	const gchar* _tmp16_;
	const gchar* _tmp17_;
	const gchar* _tmp18_;
	const gchar* _tmp19_;
	gchar* _tmp20_;
	const gchar* _tmp21_;
	gboolean _vala1_deleted;
	const gchar* _tmp22_;
	gchar* download_error;
	gboolean download_valid;
	gchar* _tmp23_;
	gchar* _tmp24_;
	const gchar* _tmp25_;
	gchar* _tmp26_;
	gboolean _tmp27_;
	gboolean _tmp28_;
	const gchar* _tmp29_;
	gchar* extracted_file_location;
	const gchar* _tmp30_;
	const gchar* _tmp31_;
	gchar* _tmp32_;
	gchar* _tmp33_;
	const gchar* _tmp34_;
	const gchar* _tmp35_;
	gchar* _tmp36_;
	gchar* _tmp37_;
	const gchar* _tmp38_;
	gboolean moved;
	const gchar* _tmp39_;
	const gchar* _tmp40_;
	gboolean download_deleted;
	const gchar* _tmp41_;
	gboolean link_parent_location_exists;
	const gchar* _tmp42_;
	gboolean link_created;
	const gchar* _tmp43_;
	const gchar* _tmp44_;
	const gchar* _tmp45_;
	const gchar* _tmp46_;
	const gchar* _tmp47_;
	ProtonPlusModelsSimpleRunner* simple_runner;
	const gchar* _tmp48_;
	gchar* _tmp49_;
	gchar* _tmp50_;
	ProtonPlusModelsSimpleRunner* _tmp51_;
	ProtonPlusModelsSimpleRunner* _tmp52_;
	ProtonPlusModelsRunner* _tmp53_;
	ProtonPlusModelsRunner* _tmp54_;
	ProtonPlusModelsGroup* _tmp55_;
	ProtonPlusModelsGroup* _tmp56_;
	ProtonPlusModelsLauncher* _tmp57_;
	ProtonPlusModelsLauncher* _tmp58_;
	GeeArrayList* _tmp59_;
	ProtonPlusModelsSimpleRunner* _tmp60_;
	GError* _inner_error0_;
};

struct _ProtonPlusModelsReleasesSteamTinkerLaunchStartRemoveData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	ProtonPlusModelsReleasesSteamTinkerLaunch* self;
	ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters* parameters;
	gboolean result;
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
	gboolean link_deleted;
	const gchar* _tmp3_;
	const gchar* _tmp4_;
	gboolean _tmp5_;
	gboolean _tmp6_;
	const gchar* _tmp7_;
	const gchar* _tmp8_;
	gchar* remove_location;
	gchar* _tmp9_;
	const gchar* _tmp10_;
	const gchar* _tmp11_;
	gboolean base_deleted;
	const gchar* _tmp12_;
	gboolean _tmp13_;
	gboolean _tmp14_;
	gboolean _tmp15_;
	const gchar* _tmp16_;
	const gchar* _tmp17_;
	gboolean config_deleted;
	const gchar* _tmp18_;
	GeeArrayList* _simple_runner_list;
	ProtonPlusModelsRunner* _tmp19_;
	ProtonPlusModelsRunner* _tmp20_;
	ProtonPlusModelsGroup* _tmp21_;
	ProtonPlusModelsGroup* _tmp22_;
	ProtonPlusModelsLauncher* _tmp23_;
	ProtonPlusModelsLauncher* _tmp24_;
	GeeArrayList* _tmp25_;
	gint _simple_runner_size;
	GeeArrayList* _tmp26_;
	gint _tmp27_;
	gint _tmp28_;
	gint _simple_runner_index;
	gint _tmp29_;
	gint _tmp30_;
	ProtonPlusModelsSimpleRunner* simple_runner;
	GeeArrayList* _tmp31_;
	gpointer _tmp32_;
	ProtonPlusModelsSimpleRunner* _tmp33_;
	const gchar* _tmp34_;
	const gchar* _tmp35_;
	const gchar* _tmp36_;
	gchar* _tmp37_;
	gchar* _tmp38_;
	gboolean _tmp39_;
	ProtonPlusModelsRunner* _tmp40_;
	ProtonPlusModelsRunner* _tmp41_;
	ProtonPlusModelsGroup* _tmp42_;
	ProtonPlusModelsGroup* _tmp43_;
	ProtonPlusModelsLauncher* _tmp44_;
	ProtonPlusModelsLauncher* _tmp45_;
	GeeArrayList* _tmp46_;
	ProtonPlusModelsSimpleRunner* _tmp47_;
};

struct _ProtonPlusModelsReleasesSteamTinkerLaunchStartUpdateData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	ProtonPlusModelsReleasesSteamTinkerLaunch* self;
	gboolean result;
	gboolean remove_success;
	ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters* _tmp0_;
	ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters* _tmp1_;
	gboolean _tmp2_;
	gboolean install_success;
};

struct _ProtonPlusModelsParameters {
	GObject parent_instance;
	ProtonPlusModelsParametersPrivate * priv;
};

struct _ProtonPlusModelsParametersClass {
	GObjectClass parent_class;
};

struct _ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters {
	ProtonPlusModelsParameters parent_instance;
	ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_ParametersPrivate * priv;
};

struct _ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_ParametersClass {
	ProtonPlusModelsParametersClass parent_class;
};

struct _ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_ParametersPrivate {
	gboolean _delete_config;
	gboolean _user_request;
};

static gint ProtonPlusModelsReleasesSteamTinkerLaunch_private_offset;
static gpointer proton_plus_models_releases_steam_tinker_launch_parent_class = NULL;
VALA_EXTERN gboolean proton_plus_globals_IS_STEAM_OS;
static gint ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters_private_offset;
static gpointer proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_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_update_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsReleasesUpdate, g_object_unref)
VALA_EXTERN GType proton_plus_models_releases_steam_tinker_launch_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsReleasesSteamTinkerLaunch, 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 void _proton_plus_models_releases_update_start_update (ProtonPlusModelsReleasesUpdate* self,
                                                       GAsyncReadyCallback _callback_,
                                                       gpointer _user_data_);
VALA_EXTERN gboolean _proton_plus_models_releases_update_start_update_finish (ProtonPlusModelsReleasesUpdate* self,
                                                                  GAsyncResult* _res_);
static void _g_free0_ (gpointer var);
static inline void _g_list_free__g_free0_ (GList* self);
VALA_EXTERN GType proton_plus_models_runner_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsRunner, g_object_unref)
VALA_EXTERN ProtonPlusModelsReleasesSteamTinkerLaunch* proton_plus_models_releases_steam_tinker_launch_new (ProtonPlusModelsRunner* runner);
VALA_EXTERN ProtonPlusModelsReleasesSteamTinkerLaunch* proton_plus_models_releases_steam_tinker_launch_construct (GType object_type,
                                                                                                      ProtonPlusModelsRunner* runner);
VALA_EXTERN GType proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters, g_object_unref)
static void proton_plus_models_releases_steam_tinker_launch_set_home_location (ProtonPlusModelsReleasesSteamTinkerLaunch* 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);
static void proton_plus_models_releases_steam_tinker_launch_set_compat_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                          const gchar* value);
static const gchar* proton_plus_models_releases_steam_tinker_launch_get_home_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self);
static void proton_plus_models_releases_steam_tinker_launch_set_parent_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                          const gchar* value);
static const gchar* proton_plus_models_releases_steam_tinker_launch_get_parent_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self);
VALA_EXTERN void proton_plus_models_releases_steam_tinker_launch_set_base_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                        const gchar* value);
static void proton_plus_models_releases_steam_tinker_launch_set_manual_remove_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                                 const gchar* value);
VALA_EXTERN const gchar* proton_plus_models_releases_steam_tinker_launch_get_base_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self);
static void proton_plus_models_releases_steam_tinker_launch_set_binary_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                          const gchar* value);
static void proton_plus_models_releases_steam_tinker_launch_set_meta_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                        const gchar* value);
static void proton_plus_models_releases_steam_tinker_launch_set_download_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                            const gchar* value);
static void proton_plus_models_releases_steam_tinker_launch_set_link_parent_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                               const gchar* value);
static const gchar* proton_plus_models_releases_steam_tinker_launch_get_link_parent_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self);
static void proton_plus_models_releases_steam_tinker_launch_set_link_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                        const gchar* value);
static void proton_plus_models_releases_steam_tinker_launch_set_config_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                          const gchar* value);
static void proton_plus_models_releases_steam_tinker_launch_refresh_latest_stl_version (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                                 GAsyncReadyCallback _callback_,
                                                                                 gpointer _user_data_);
static void proton_plus_models_releases_steam_tinker_launch_refresh_latest_stl_version_finish (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                                        GAsyncResult* _res_);
static void __lambda15_ (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                  GObject* obj,
                  GAsyncResult* res);
static void ___lambda15__gasync_ready_callback (GObject* source_object,
                                         GAsyncResult* res,
                                         gpointer self);
static gchar* proton_plus_models_releases_steam_tinker_launch_get_download_url (ProtonPlusModelsReleasesSteamTinkerLaunch* self);
static const gchar* proton_plus_models_releases_steam_tinker_launch_get_latest_hash (ProtonPlusModelsReleasesSteamTinkerLaunch* self);
static void proton_plus_models_releases_steam_tinker_launch_exec_stl_data_free (gpointer _data);
static void proton_plus_models_releases_steam_tinker_launch_exec_stl (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                               const gchar* exec_location,
                                                               const gchar* args,
                                                               GAsyncReadyCallback _callback_,
                                                               gpointer _user_data_);
static void proton_plus_models_releases_steam_tinker_launch_exec_stl_finish (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                      GAsyncResult* _res_);
static gboolean proton_plus_models_releases_steam_tinker_launch_exec_stl_co (ProtonPlusModelsReleasesSteamTinkerLaunchExecStlData* _data_);
VALA_EXTERN void proton_plus_utils_system_run_command (const gchar* command,
                                           GAsyncReadyCallback _callback_,
                                           gpointer _user_data_);
VALA_EXTERN gchar* proton_plus_utils_system_run_command_finish (GAsyncResult* _res_);
static void proton_plus_models_releases_steam_tinker_launch_exec_stl_ready (GObject* source_object,
                                                                     GAsyncResult* _res_,
                                                                     gpointer _user_data_);
static void proton_plus_models_releases_steam_tinker_launch_refresh_latest_stl_version_data_free (gpointer _data);
static gboolean proton_plus_models_releases_steam_tinker_launch_refresh_latest_stl_version_co (ProtonPlusModelsReleasesSteamTinkerLaunchRefreshLatestStlVersionData* _data_);
static void proton_plus_models_releases_steam_tinker_launch_set_latest_date (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                      const gchar* value);
static void proton_plus_models_releases_steam_tinker_launch_set_latest_hash (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                      const gchar* value);
VALA_EXTERN GType proton_plus_return_code_get_type (void) G_GNUC_CONST ;
VALA_EXTERN GType proton_plus_utils_web_get_type_get_type (void) G_GNUC_CONST ;
VALA_EXTERN void proton_plus_utils_web_get_request (const gchar* uri,
                                        ProtonPlusUtilsWebGetType get_type,
                                        GAsyncReadyCallback _callback_,
                                        gpointer _user_data_);
VALA_EXTERN ProtonPlusReturnCode proton_plus_utils_web_get_request_finish (GAsyncResult* _res_,
                                                               gchar** response);
static void proton_plus_models_releases_steam_tinker_launch_refresh_latest_stl_version_ready (GObject* source_object,
                                                                                       GAsyncResult* _res_,
                                                                                       gpointer _user_data_);
VALA_EXTERN JsonNode* proton_plus_utils_parser_get_node_from_json (const gchar* json);
static void _vala_JsonNode_free (JsonNode* self);
static JsonNode* _vala_JsonNode_copy (JsonNode* self);
VALA_EXTERN void proton_plus_models_base_release_set_download_url (ProtonPlusModelsBaseRelease* self,
                                                       const gchar* value);
static void proton_plus_models_releases_steam_tinker_launch_write_installation_metadata (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                                  const gchar* meta_location);
VALA_EXTERN void proton_plus_utils_filesystem_create_file (const gchar* path,
                                               const gchar* content,
                                               gboolean private_mode);
static const gchar* proton_plus_models_releases_steam_tinker_launch_get_latest_date (ProtonPlusModelsReleasesSteamTinkerLaunch* self);
VALA_EXTERN gboolean proton_plus_models_releases_steam_tinker_launch_detect_external_locations (ProtonPlusModelsReleasesSteamTinkerLaunch* self);
static void proton_plus_models_releases_steam_tinker_launch_real_refresh_state (ProtonPlusModelsBaseRelease* base);
static const gchar* proton_plus_models_releases_steam_tinker_launch_get_binary_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self);
static const gchar* proton_plus_models_releases_steam_tinker_launch_get_meta_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self);
static void proton_plus_models_releases_steam_tinker_launch_set_local_date (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                     const gchar* value);
static void proton_plus_models_releases_steam_tinker_launch_set_local_hash (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                     const gchar* value);
VALA_EXTERN gchar* proton_plus_utils_filesystem_get_file_content (const gchar* path,
                                                      gboolean use_uri);
static const gchar* proton_plus_models_releases_steam_tinker_launch_get_local_date (ProtonPlusModelsReleasesSteamTinkerLaunch* self);
static const gchar* proton_plus_models_releases_steam_tinker_launch_get_local_hash (ProtonPlusModelsReleasesSteamTinkerLaunch* self);
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 const gchar* proton_plus_models_base_release_get_title (ProtonPlusModelsBaseRelease* self);
VALA_EXTERN void proton_plus_models_base_release_set_displayed_title (ProtonPlusModelsBaseRelease* self,
                                                          const gchar* value);
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 proton_plus_models_releases_steam_tinker_launch_real__start_install_data_free (gpointer _data);
static void proton_plus_models_releases_steam_tinker_launch_real__start_install (ProtonPlusModelsBaseRelease* base,
                                                                          GAsyncReadyCallback _callback_,
                                                                          gpointer _user_data_);
static gboolean proton_plus_models_releases_steam_tinker_launch_real__start_install_co (ProtonPlusModelsReleasesSteamTinkerLaunchStartInstallData* _data_);
VALA_EXTERN void proton_plus_utils_system_check_dependency (const gchar* name,
                                                GAsyncReadyCallback _callback_,
                                                gpointer _user_data_);
VALA_EXTERN gboolean proton_plus_utils_system_check_dependency_finish (GAsyncResult* _res_);
static void _proton_plus_models_releases_steam_tinker_launch_start_install_ready (GObject* source_object,
                                                                           GAsyncResult* _res_,
                                                                           gpointer _user_data_);
static const gchar* proton_plus_models_releases_steam_tinker_launch_get_compat_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self);
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_);
VALA_EXTERN void proton_plus_models_base_release_remove (ProtonPlusModelsBaseRelease* self,
                                             ProtonPlusModelsParameters* parameters,
                                             GAsyncReadyCallback _callback_,
                                             gpointer _user_data_);
VALA_EXTERN gboolean proton_plus_models_base_release_remove_finish (ProtonPlusModelsBaseRelease* self,
                                                        GAsyncResult* _res_);
VALA_EXTERN ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters* proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_new (void);
VALA_EXTERN ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters* proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_construct (GType object_type);
static const gchar* proton_plus_models_releases_steam_tinker_launch_get_download_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self);
VALA_EXTERN void proton_plus_utils_filesystem_create_directory (const gchar* path,
                                                    GAsyncReadyCallback _callback_,
                                                    gpointer _user_data_);
VALA_EXTERN gboolean proton_plus_utils_filesystem_create_directory_finish (GAsyncResult* _res_);
VALA_EXTERN gboolean proton_plus_utils_filesystem_delete_file (const gchar* path);
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 __lambda16_ (ProtonPlusModelsReleasesSteamTinkerLaunch* self);
VALA_EXTERN gboolean proton_plus_models_base_release_get_canceled (ProtonPlusModelsBaseRelease* self);
static gboolean ___lambda16__protonplusutilswebcancel_callback (gpointer self);
static void __lambda17_ (ProtonPlusModelsReleasesSteamTinkerLaunch* 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 ___lambda17__protonplusutilswebprogress_callback (gboolean is_percent,
                                                       gint64 progress_percentage,
                                                       gdouble speed_kbps,
                                                       gdouble* remaining_seconds,
                                                       gpointer self);
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 __lambda18_ (ProtonPlusModelsReleasesSteamTinkerLaunch* self);
static gboolean ___lambda18__protonplusutilsfilesystemcancel_callback (gpointer self);
VALA_EXTERN void proton_plus_utils_filesystem_move_dir_contents (const gchar* source_dir,
                                                     const gchar* target_dir,
                                                     GAsyncReadyCallback _callback_,
                                                     gpointer _user_data_);
VALA_EXTERN gboolean proton_plus_utils_filesystem_move_dir_contents_finish (GAsyncResult* _res_);
VALA_EXTERN void proton_plus_utils_filesystem_make_symlink (const gchar* link_location,
                                                const gchar* target_path,
                                                GAsyncReadyCallback _callback_,
                                                gpointer _user_data_);
VALA_EXTERN gboolean proton_plus_utils_filesystem_make_symlink_finish (GAsyncResult* _res_);
static const gchar* proton_plus_models_releases_steam_tinker_launch_get_link_location (ProtonPlusModelsReleasesSteamTinkerLaunch* 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 ProtonPlusModelsRunner* proton_plus_models_base_release_get_runner (ProtonPlusModelsBaseRelease* self);
static void proton_plus_models_releases_steam_tinker_launch_real__start_remove_data_free (gpointer _data);
static void proton_plus_models_releases_steam_tinker_launch_real__start_remove (ProtonPlusModelsRelease* base,
                                                                         ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters* parameters,
                                                                         GAsyncReadyCallback _callback_,
                                                                         gpointer _user_data_);
static gboolean proton_plus_models_releases_steam_tinker_launch_real__start_remove_co (ProtonPlusModelsReleasesSteamTinkerLaunchStartRemoveData* _data_);
static void _proton_plus_models_releases_steam_tinker_launch_start_remove_ready (GObject* source_object,
                                                                          GAsyncResult* _res_,
                                                                          gpointer _user_data_);
VALA_EXTERN gboolean proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_get_user_request (ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters* self);
static const gchar* proton_plus_models_releases_steam_tinker_launch_get_manual_remove_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self);
VALA_EXTERN gboolean proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_get_delete_config (ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters* self);
static const gchar* proton_plus_models_releases_steam_tinker_launch_get_config_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self);
VALA_EXTERN const gchar* proton_plus_models_simple_runner_get_path (ProtonPlusModelsSimpleRunner* self);
static void proton_plus_models_releases_steam_tinker_launch_real__start_update_data_free (gpointer _data);
static void proton_plus_models_releases_steam_tinker_launch_real__start_update (ProtonPlusModelsReleasesUpdate* base,
                                                                         GAsyncReadyCallback _callback_,
                                                                         gpointer _user_data_);
static gboolean proton_plus_models_releases_steam_tinker_launch_real__start_update_co (ProtonPlusModelsReleasesSteamTinkerLaunchStartUpdateData* _data_);
static void _proton_plus_models_releases_steam_tinker_launch_start_update_ready (GObject* source_object,
                                                                          GAsyncResult* _res_,
                                                                          gpointer _user_data_);
VALA_EXTERN void proton_plus_models_base_release_install (ProtonPlusModelsBaseRelease* self,
                                              GAsyncReadyCallback _callback_,
                                              gpointer _user_data_);
VALA_EXTERN gboolean proton_plus_models_base_release_install_finish (ProtonPlusModelsBaseRelease* self,
                                                         GAsyncResult* _res_);
VALA_EXTERN ProtonPlusModelsParameters* proton_plus_models_parameters_new (void);
VALA_EXTERN ProtonPlusModelsParameters* proton_plus_models_parameters_construct (GType object_type);
VALA_EXTERN void proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_set_delete_config (ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters* self,
                                                                                              gboolean value);
VALA_EXTERN void proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_set_user_request (ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters* self,
                                                                                             gboolean value);
static void proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_finalize (GObject * obj);
static GType proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_get_type_once (void);
static void _vala_proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_get_property (GObject * object,
                                                                                               guint property_id,
                                                                                               GValue * value,
                                                                                               GParamSpec * pspec);
static void _vala_proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_set_property (GObject * object,
                                                                                               guint property_id,
                                                                                               const GValue * value,
                                                                                               GParamSpec * pspec);
static void proton_plus_models_releases_steam_tinker_launch_finalize (GObject * obj);
static GType proton_plus_models_releases_steam_tinker_launch_get_type_once (void);
static void _vala_proton_plus_models_releases_steam_tinker_launch_get_property (GObject * object,
                                                                         guint property_id,
                                                                         GValue * value,
                                                                         GParamSpec * pspec);
static void _vala_proton_plus_models_releases_steam_tinker_launch_set_property (GObject * object,
                                                                         guint property_id,
                                                                         const GValue * value,
                                                                         GParamSpec * pspec);
static void _vala_array_destroy (gpointer array,
                          gssize array_length,
                          GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array,
                       gssize array_length,
                       GDestroyNotify destroy_func);
static gssize _vala_array_length (gpointer array);

static inline gpointer
proton_plus_models_releases_steam_tinker_launch_get_instance_private (ProtonPlusModelsReleasesSteamTinkerLaunch* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusModelsReleasesSteamTinkerLaunch_private_offset);
}

static void
_g_free0_ (gpointer var)
{
	var = (g_free (var), NULL);
}

static inline void
_g_list_free__g_free0_ (GList* self)
{
	g_list_free_full (self, (GDestroyNotify) _g_free0_);
}

static const gchar*
string_to_string (const gchar* self)
{
	const gchar* result;
	g_return_val_if_fail (self != NULL, NULL);
	result = self;
	return result;
}

static void
__lambda15_ (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
             GObject* obj,
             GAsyncResult* res)
{
	g_return_if_fail (res != NULL);
	proton_plus_models_base_release_refresh_state ((ProtonPlusModelsBaseRelease*) self);
}

static void
___lambda15__gasync_ready_callback (GObject* source_object,
                                    GAsyncResult* res,
                                    gpointer self)
{
	__lambda15_ ((ProtonPlusModelsReleasesSteamTinkerLaunch*) self, source_object, res);
	g_object_unref (self);
}

ProtonPlusModelsReleasesSteamTinkerLaunch*
proton_plus_models_releases_steam_tinker_launch_construct (GType object_type,
                                                           ProtonPlusModelsRunner* runner)
{
	ProtonPlusModelsReleasesSteamTinkerLaunch * self = NULL;
	const gchar* _tmp0_;
	ProtonPlusModelsGroup* _tmp1_;
	ProtonPlusModelsGroup* _tmp2_;
	ProtonPlusModelsLauncher* _tmp3_;
	ProtonPlusModelsLauncher* _tmp4_;
	const gchar* _tmp5_;
	ProtonPlusModelsGroup* _tmp6_;
	ProtonPlusModelsGroup* _tmp7_;
	const gchar* _tmp8_;
	const gchar* _tmp9_;
	gchar* _tmp10_;
	gchar* _tmp11_;
	const gchar* _tmp30_;
	const gchar* _tmp31_;
	gchar* _tmp32_;
	gchar* _tmp33_;
	const gchar* _tmp34_;
	const gchar* _tmp35_;
	gchar* _tmp36_;
	gchar* _tmp37_;
	const gchar* _tmp38_;
	const gchar* _tmp39_;
	gchar* _tmp40_;
	gchar* _tmp41_;
	const gchar* _tmp42_;
	const gchar* _tmp43_;
	gchar* _tmp44_;
	gchar* _tmp45_;
	const gchar* _tmp46_;
	const gchar* _tmp47_;
	gchar* _tmp48_;
	gchar* _tmp49_;
	const gchar* _tmp50_;
	const gchar* _tmp51_;
	gchar* _tmp52_;
	gchar* _tmp53_;
	g_return_val_if_fail (runner != NULL, NULL);
	self = (ProtonPlusModelsReleasesSteamTinkerLaunch*) g_object_new (object_type, "r-type", PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_TYPE_STL_REMOVE_PARAMETERS, "r-dup-func", (GBoxedCopyFunc) g_object_ref, "r-destroy-func", (GDestroyNotify) g_object_unref, "runner", runner, "title", "Steam Tinker Launch", NULL);
	_tmp0_ = g_get_home_dir ();
	proton_plus_models_releases_steam_tinker_launch_set_home_location (self, _tmp0_);
	_tmp1_ = proton_plus_models_runner_get_group (runner);
	_tmp2_ = _tmp1_;
	_tmp3_ = proton_plus_models_group_get_launcher (_tmp2_);
	_tmp4_ = _tmp3_;
	_tmp5_ = _tmp4_->directory;
	_tmp6_ = proton_plus_models_runner_get_group (runner);
	_tmp7_ = _tmp6_;
	_tmp8_ = proton_plus_models_group_get_directory (_tmp7_);
	_tmp9_ = _tmp8_;
	_tmp10_ = g_strconcat (_tmp5_, _tmp9_, NULL);
	_tmp11_ = _tmp10_;
	proton_plus_models_releases_steam_tinker_launch_set_compat_location (self, _tmp11_);
	_g_free0 (_tmp11_);
	if (proton_plus_globals_IS_STEAM_OS) {
		const gchar* _tmp12_;
		const gchar* _tmp13_;
		gchar* _tmp14_;
		gchar* _tmp15_;
		const gchar* _tmp16_;
		const gchar* _tmp17_;
		gchar* _tmp18_;
		gchar* _tmp19_;
		const gchar* _tmp20_;
		_tmp12_ = self->priv->_home_location;
		_tmp13_ = string_to_string (_tmp12_);
		_tmp14_ = g_strconcat (_tmp13_, "/stl", NULL);
		_tmp15_ = _tmp14_;
		proton_plus_models_releases_steam_tinker_launch_set_parent_location (self, _tmp15_);
		_g_free0 (_tmp15_);
		_tmp16_ = self->priv->_parent_location;
		_tmp17_ = string_to_string (_tmp16_);
		_tmp18_ = g_strconcat (_tmp17_, "/prefix", NULL);
		_tmp19_ = _tmp18_;
		proton_plus_models_releases_steam_tinker_launch_set_base_location (self, _tmp19_);
		_g_free0 (_tmp19_);
		_tmp20_ = self->priv->_parent_location;
		proton_plus_models_releases_steam_tinker_launch_set_manual_remove_location (self, _tmp20_);
	} else {
		const gchar* _tmp21_;
		const gchar* _tmp22_;
		gchar* _tmp23_;
		gchar* _tmp24_;
		const gchar* _tmp25_;
		const gchar* _tmp26_;
		gchar* _tmp27_;
		gchar* _tmp28_;
		const gchar* _tmp29_;
		_tmp21_ = self->priv->_home_location;
		_tmp22_ = string_to_string (_tmp21_);
		_tmp23_ = g_strconcat (_tmp22_, "/.local/share", NULL);
		_tmp24_ = _tmp23_;
		proton_plus_models_releases_steam_tinker_launch_set_parent_location (self, _tmp24_);
		_g_free0 (_tmp24_);
		_tmp25_ = self->priv->_parent_location;
		_tmp26_ = string_to_string (_tmp25_);
		_tmp27_ = g_strconcat (_tmp26_, "/steamtinkerlaunch", NULL);
		_tmp28_ = _tmp27_;
		proton_plus_models_releases_steam_tinker_launch_set_base_location (self, _tmp28_);
		_g_free0 (_tmp28_);
		_tmp29_ = self->priv->_base_location;
		proton_plus_models_releases_steam_tinker_launch_set_manual_remove_location (self, _tmp29_);
	}
	_tmp30_ = self->priv->_base_location;
	_tmp31_ = string_to_string (_tmp30_);
	_tmp32_ = g_strconcat (_tmp31_, "/steamtinkerlaunch", NULL);
	_tmp33_ = _tmp32_;
	proton_plus_models_releases_steam_tinker_launch_set_binary_location (self, _tmp33_);
	_g_free0 (_tmp33_);
	_tmp34_ = self->priv->_base_location;
	_tmp35_ = string_to_string (_tmp34_);
	_tmp36_ = g_strconcat (_tmp35_, "/ProtonPlus.meta", NULL);
	_tmp37_ = _tmp36_;
	proton_plus_models_releases_steam_tinker_launch_set_meta_location (self, _tmp37_);
	_g_free0 (_tmp37_);
	_tmp38_ = self->priv->_base_location;
	_tmp39_ = string_to_string (_tmp38_);
	_tmp40_ = g_strconcat (_tmp39_, "/ProtonPlus.downloads", NULL);
	_tmp41_ = _tmp40_;
	proton_plus_models_releases_steam_tinker_launch_set_download_location (self, _tmp41_);
	_g_free0 (_tmp41_);
	_tmp42_ = self->priv->_home_location;
	_tmp43_ = string_to_string (_tmp42_);
	_tmp44_ = g_strconcat (_tmp43_, "/.local/bin", NULL);
	_tmp45_ = _tmp44_;
	proton_plus_models_releases_steam_tinker_launch_set_link_parent_location (self, _tmp45_);
	_g_free0 (_tmp45_);
	_tmp46_ = self->priv->_link_parent_location;
	_tmp47_ = string_to_string (_tmp46_);
	_tmp48_ = g_strconcat (_tmp47_, "/steamtinkerlaunch", NULL);
	_tmp49_ = _tmp48_;
	proton_plus_models_releases_steam_tinker_launch_set_link_location (self, _tmp49_);
	_g_free0 (_tmp49_);
	_tmp50_ = self->priv->_home_location;
	_tmp51_ = string_to_string (_tmp50_);
	_tmp52_ = g_strconcat (_tmp51_, "/.config/steamtinkerlaunch", NULL);
	_tmp53_ = _tmp52_;
	proton_plus_models_releases_steam_tinker_launch_set_config_location (self, _tmp53_);
	_g_free0 (_tmp53_);
	(self->priv->external_locations == NULL) ? NULL : (self->priv->external_locations = (_g_list_free__g_free0_ (self->priv->external_locations), NULL));
	self->priv->external_locations = NULL;
	proton_plus_models_releases_steam_tinker_launch_refresh_latest_stl_version (self, ___lambda15__gasync_ready_callback, g_object_ref (self));
	return self;
}

ProtonPlusModelsReleasesSteamTinkerLaunch*
proton_plus_models_releases_steam_tinker_launch_new (ProtonPlusModelsRunner* runner)
{
	return proton_plus_models_releases_steam_tinker_launch_construct (PROTON_PLUS_MODELS_RELEASES_TYPE_STEAM_TINKER_LAUNCH, runner);
}

static gchar*
proton_plus_models_releases_steam_tinker_launch_get_download_url (ProtonPlusModelsReleasesSteamTinkerLaunch* self)
{
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* result;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_latest_hash;
	_tmp1_ = string_to_string (_tmp0_);
	_tmp2_ = g_strconcat ("https://github.com/sonic2kk/steamtinkerlaunch/archive/", _tmp1_, ".zip", NULL);
	result = _tmp2_;
	return result;
}

static void
proton_plus_models_releases_steam_tinker_launch_exec_stl_data_free (gpointer _data)
{
	ProtonPlusModelsReleasesSteamTinkerLaunchExecStlData* _data_;
	_data_ = _data;
	_g_free0 (_data_->exec_location);
	_g_free0 (_data_->args);
	_g_object_unref0 (_data_->self);
	g_slice_free (ProtonPlusModelsReleasesSteamTinkerLaunchExecStlData, _data_);
}

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

static void
proton_plus_models_releases_steam_tinker_launch_exec_stl (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                          const gchar* exec_location,
                                                          const gchar* args,
                                                          GAsyncReadyCallback _callback_,
                                                          gpointer _user_data_)
{
	ProtonPlusModelsReleasesSteamTinkerLaunchExecStlData* _data_;
	ProtonPlusModelsReleasesSteamTinkerLaunch* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (exec_location != NULL);
	g_return_if_fail (args != NULL);
	_data_ = g_slice_new0 (ProtonPlusModelsReleasesSteamTinkerLaunchExecStlData);
	_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_steam_tinker_launch_exec_stl_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	_tmp1_ = g_strdup (exec_location);
	_g_free0 (_data_->exec_location);
	_data_->exec_location = _tmp1_;
	_tmp2_ = g_strdup (args);
	_g_free0 (_data_->args);
	_data_->args = _tmp2_;
	proton_plus_models_releases_steam_tinker_launch_exec_stl_co (_data_);
}

static void
proton_plus_models_releases_steam_tinker_launch_exec_stl_finish (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                 GAsyncResult* _res_)
{
	ProtonPlusModelsReleasesSteamTinkerLaunchExecStlData* _data_;
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
}

static void
proton_plus_models_releases_steam_tinker_launch_exec_stl_ready (GObject* source_object,
                                                                GAsyncResult* _res_,
                                                                gpointer _user_data_)
{
	ProtonPlusModelsReleasesSteamTinkerLaunchExecStlData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	proton_plus_models_releases_steam_tinker_launch_exec_stl_co (_data_);
}

static gboolean
proton_plus_models_releases_steam_tinker_launch_exec_stl_co (ProtonPlusModelsReleasesSteamTinkerLaunchExecStlData* _data_)
{
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		case 2:
		goto _state_2;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	if (!g_file_test (_data_->exec_location, G_FILE_TEST_IS_REGULAR)) {
		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;
	}
	if (!g_file_test (_data_->exec_location, G_FILE_TEST_IS_EXECUTABLE)) {
		_data_->_tmp0_ = string_to_string (_data_->exec_location);
		_data_->_tmp1_ = g_strconcat ("chmod +x ", _data_->_tmp0_, NULL);
		_data_->_tmp2_ = _data_->_tmp1_;
		_data_->_state_ = 1;
		proton_plus_utils_system_run_command (_data_->_tmp2_, proton_plus_models_releases_steam_tinker_launch_exec_stl_ready, _data_);
		return FALSE;
		_state_1:
		_data_->_tmp3_ = proton_plus_utils_system_run_command_finish (_data_->_res_);
		_data_->_tmp4_ = _data_->_tmp3_;
		_g_free0 (_data_->_tmp4_);
		_g_free0 (_data_->_tmp2_);
	}
	_data_->_tmp5_ = string_to_string (_data_->exec_location);
	_data_->_tmp6_ = string_to_string (_data_->args);
	_data_->_tmp7_ = g_strconcat (_data_->_tmp5_, " ", _data_->_tmp6_, NULL);
	_data_->_tmp8_ = _data_->_tmp7_;
	_data_->_state_ = 2;
	proton_plus_utils_system_run_command (_data_->_tmp8_, proton_plus_models_releases_steam_tinker_launch_exec_stl_ready, _data_);
	return FALSE;
	_state_2:
	_data_->_tmp9_ = proton_plus_utils_system_run_command_finish (_data_->_res_);
	_data_->_tmp10_ = _data_->_tmp9_;
	_g_free0 (_data_->_tmp10_);
	_g_free0 (_data_->_tmp8_);
	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_steam_tinker_launch_refresh_latest_stl_version_data_free (gpointer _data)
{
	ProtonPlusModelsReleasesSteamTinkerLaunchRefreshLatestStlVersionData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->self);
	g_slice_free (ProtonPlusModelsReleasesSteamTinkerLaunchRefreshLatestStlVersionData, _data_);
}

static void
proton_plus_models_releases_steam_tinker_launch_refresh_latest_stl_version (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                            GAsyncReadyCallback _callback_,
                                                                            gpointer _user_data_)
{
	ProtonPlusModelsReleasesSteamTinkerLaunchRefreshLatestStlVersionData* _data_;
	ProtonPlusModelsReleasesSteamTinkerLaunch* _tmp0_;
	g_return_if_fail (self != NULL);
	_data_ = g_slice_new0 (ProtonPlusModelsReleasesSteamTinkerLaunchRefreshLatestStlVersionData);
	_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_steam_tinker_launch_refresh_latest_stl_version_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	proton_plus_models_releases_steam_tinker_launch_refresh_latest_stl_version_co (_data_);
}

static void
proton_plus_models_releases_steam_tinker_launch_refresh_latest_stl_version_finish (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                                   GAsyncResult* _res_)
{
	ProtonPlusModelsReleasesSteamTinkerLaunchRefreshLatestStlVersionData* _data_;
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
}

static void
proton_plus_models_releases_steam_tinker_launch_refresh_latest_stl_version_ready (GObject* source_object,
                                                                                  GAsyncResult* _res_,
                                                                                  gpointer _user_data_)
{
	ProtonPlusModelsReleasesSteamTinkerLaunchRefreshLatestStlVersionData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	proton_plus_models_releases_steam_tinker_launch_refresh_latest_stl_version_co (_data_);
}

static void
_vala_JsonNode_free (JsonNode* self)
{
	g_boxed_free (json_node_get_type (), self);
}

static gpointer
_json_array_ref0 (gpointer self)
{
	return self ? json_array_ref (self) : NULL;
}

static JsonNode*
_vala_JsonNode_copy (JsonNode* self)
{
	return g_boxed_copy (json_node_get_type (), self);
}

static gpointer
__vala_JsonNode_copy0 (gpointer self)
{
	return self ? _vala_JsonNode_copy (self) : NULL;
}

static gpointer
_json_object_ref0 (gpointer self)
{
	return self ? json_object_ref (self) : NULL;
}

static gboolean
proton_plus_models_releases_steam_tinker_launch_refresh_latest_stl_version_co (ProtonPlusModelsReleasesSteamTinkerLaunchRefreshLatestStlVersionData* _data_)
{
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	proton_plus_models_releases_steam_tinker_launch_set_latest_date (_data_->self, "");
	proton_plus_models_releases_steam_tinker_launch_set_latest_hash (_data_->self, "");
	_data_->_tmp0_ = NULL;
	_data_->_state_ = 1;
	proton_plus_utils_web_get_request ("https://api.github.com/repos/sonic2kk/steamtinkerlaunch/commits?per_pa" \
"ge=1", PROTON_PLUS_UTILS_WEB_GET_TYPE_STEAMTINKERLAUNCH, proton_plus_models_releases_steam_tinker_launch_refresh_latest_stl_version_ready, _data_);
	return FALSE;
	_state_1:
	_data_->_tmp1_ = proton_plus_utils_web_get_request_finish (_data_->_res_, &_data_->_tmp0_);
	_g_free0 (_data_->response);
	_data_->response = _data_->_tmp0_;
	_data_->code = _data_->_tmp1_;
	if (_data_->code != PROTON_PLUS_RETURN_CODE_VALID_REQUEST) {
		_g_free0 (_data_->response);
		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_ = _data_->response;
	_data_->_tmp3_ = proton_plus_utils_parser_get_node_from_json (_data_->_tmp2_);
	_data_->root_node = _data_->_tmp3_;
	_data_->_tmp4_ = _data_->root_node;
	if (json_node_get_node_type (_data_->_tmp4_) != JSON_NODE_ARRAY) {
		__vala_JsonNode_free0 (_data_->root_node);
		_g_free0 (_data_->response);
		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_->_tmp5_ = _data_->root_node;
	_data_->_tmp6_ = json_node_get_array (_data_->_tmp5_);
	_data_->_tmp7_ = _json_array_ref0 (_data_->_tmp6_);
	_data_->root_array = _data_->_tmp7_;
	_data_->_tmp8_ = _data_->root_array;
	if (json_array_get_length (_data_->_tmp8_) < ((guint) 1)) {
		_json_array_unref0 (_data_->root_array);
		__vala_JsonNode_free0 (_data_->root_node);
		_g_free0 (_data_->response);
		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_->_tmp9_ = _data_->root_array;
	_data_->_tmp10_ = json_array_get_element (_data_->_tmp9_, (guint) 0);
	_data_->_tmp11_ = __vala_JsonNode_copy0 (_data_->_tmp10_);
	_data_->commit_node = _data_->_tmp11_;
	_data_->_tmp12_ = _data_->commit_node;
	if (json_node_get_node_type (_data_->_tmp12_) != JSON_NODE_OBJECT) {
		__vala_JsonNode_free0 (_data_->commit_node);
		_json_array_unref0 (_data_->root_array);
		__vala_JsonNode_free0 (_data_->root_node);
		_g_free0 (_data_->response);
		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_->_tmp13_ = _data_->commit_node;
	_data_->_tmp14_ = json_node_get_object (_data_->_tmp13_);
	_data_->_tmp15_ = _json_object_ref0 (_data_->_tmp14_);
	_data_->commit_obj = _data_->_tmp15_;
	_data_->_tmp16_ = _data_->commit_obj;
	if (!json_object_has_member (_data_->_tmp16_, "commit")) {
		_json_object_unref0 (_data_->commit_obj);
		__vala_JsonNode_free0 (_data_->commit_node);
		_json_array_unref0 (_data_->root_array);
		__vala_JsonNode_free0 (_data_->root_node);
		_g_free0 (_data_->response);
		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_->commit_obj;
	_data_->_tmp18_ = json_object_get_member (_data_->_tmp17_, "commit");
	_data_->_tmp19_ = __vala_JsonNode_copy0 (_data_->_tmp18_);
	_data_->commit_metadata_node = _data_->_tmp19_;
	_data_->_tmp20_ = _data_->commit_metadata_node;
	if (json_node_get_node_type (_data_->_tmp20_) != JSON_NODE_OBJECT) {
		__vala_JsonNode_free0 (_data_->commit_metadata_node);
		_json_object_unref0 (_data_->commit_obj);
		__vala_JsonNode_free0 (_data_->commit_node);
		_json_array_unref0 (_data_->root_array);
		__vala_JsonNode_free0 (_data_->root_node);
		_g_free0 (_data_->response);
		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_->commit_metadata_node;
	_data_->_tmp22_ = json_node_get_object (_data_->_tmp21_);
	_data_->_tmp23_ = _json_object_ref0 (_data_->_tmp22_);
	_data_->commit_metadata_obj = _data_->_tmp23_;
	_data_->_tmp24_ = _data_->commit_metadata_obj;
	if (!json_object_has_member (_data_->_tmp24_, "committer")) {
		_json_object_unref0 (_data_->commit_metadata_obj);
		__vala_JsonNode_free0 (_data_->commit_metadata_node);
		_json_object_unref0 (_data_->commit_obj);
		__vala_JsonNode_free0 (_data_->commit_node);
		_json_array_unref0 (_data_->root_array);
		__vala_JsonNode_free0 (_data_->root_node);
		_g_free0 (_data_->response);
		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_->_tmp25_ = _data_->commit_metadata_obj;
	_data_->_tmp26_ = json_object_get_member (_data_->_tmp25_, "committer");
	_data_->_tmp27_ = __vala_JsonNode_copy0 (_data_->_tmp26_);
	_data_->committer_metadata_node = _data_->_tmp27_;
	_data_->_tmp28_ = _data_->committer_metadata_node;
	if (json_node_get_node_type (_data_->_tmp28_) != JSON_NODE_OBJECT) {
		__vala_JsonNode_free0 (_data_->committer_metadata_node);
		_json_object_unref0 (_data_->commit_metadata_obj);
		__vala_JsonNode_free0 (_data_->commit_metadata_node);
		_json_object_unref0 (_data_->commit_obj);
		__vala_JsonNode_free0 (_data_->commit_node);
		_json_array_unref0 (_data_->root_array);
		__vala_JsonNode_free0 (_data_->root_node);
		_g_free0 (_data_->response);
		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_->committer_metadata_node;
	_data_->_tmp30_ = json_node_get_object (_data_->_tmp29_);
	_data_->_tmp31_ = _json_object_ref0 (_data_->_tmp30_);
	_data_->committer_metadata_obj = _data_->_tmp31_;
	_data_->_tmp32_ = _data_->committer_metadata_obj;
	_data_->_tmp33_ = json_object_get_string_member_with_default (_data_->_tmp32_, "date", "");
	_data_->_tmp34_ = g_strdup (_data_->_tmp33_);
	_data_->raw_date = _data_->_tmp34_;
	_data_->_tmp35_ = _data_->raw_date;
	_data_->_tmp37_ = _data_->_tmp36_ = g_strsplit (_data_->_tmp35_, "T", 0);
	_data_->date_parts = _data_->_tmp37_;
	_data_->date_parts_length1 = _vala_array_length (_data_->_tmp36_);
	_data_->_date_parts_size_ = _data_->date_parts_length1;
	_data_->_tmp38_ = _data_->date_parts;
	_data_->_tmp38__length1 = _data_->date_parts_length1;
	if (_data_->_tmp38__length1 > 0) {
		_data_->_tmp39_ = _data_->date_parts;
		_data_->_tmp39__length1 = _data_->date_parts_length1;
		_data_->_tmp40_ = _data_->_tmp39_[0];
		proton_plus_models_releases_steam_tinker_launch_set_latest_date (_data_->self, _data_->_tmp40_);
	}
	_data_->_tmp41_ = _data_->commit_obj;
	_data_->_tmp42_ = json_object_get_string_member_with_default (_data_->_tmp41_, "sha", "");
	proton_plus_models_releases_steam_tinker_launch_set_latest_hash (_data_->self, _data_->_tmp42_);
	_data_->_tmp43_ = proton_plus_models_releases_steam_tinker_launch_get_download_url (_data_->self);
	_data_->_tmp44_ = _data_->_tmp43_;
	proton_plus_models_base_release_set_download_url ((ProtonPlusModelsBaseRelease*) _data_->self, _data_->_tmp44_);
	_g_free0 (_data_->_tmp44_);
	_data_->date_parts = (_vala_array_free (_data_->date_parts, _data_->date_parts_length1, (GDestroyNotify) g_free), NULL);
	_g_free0 (_data_->raw_date);
	_json_object_unref0 (_data_->committer_metadata_obj);
	__vala_JsonNode_free0 (_data_->committer_metadata_node);
	_json_object_unref0 (_data_->commit_metadata_obj);
	__vala_JsonNode_free0 (_data_->commit_metadata_node);
	_json_object_unref0 (_data_->commit_obj);
	__vala_JsonNode_free0 (_data_->commit_node);
	_json_array_unref0 (_data_->root_array);
	__vala_JsonNode_free0 (_data_->root_node);
	_g_free0 (_data_->response);
	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_steam_tinker_launch_write_installation_metadata (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                             const gchar* meta_location)
{
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
	const gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (meta_location != NULL);
	_tmp0_ = self->priv->_latest_date;
	_tmp1_ = string_to_string (_tmp0_);
	_tmp2_ = self->priv->_latest_hash;
	_tmp3_ = string_to_string (_tmp2_);
	_tmp4_ = g_strconcat (_tmp1_, ":", _tmp3_, NULL);
	_tmp5_ = _tmp4_;
	proton_plus_utils_filesystem_create_file (meta_location, _tmp5_, FALSE);
	_g_free0 (_tmp5_);
}

gboolean
proton_plus_models_releases_steam_tinker_launch_detect_external_locations (ProtonPlusModelsReleasesSteamTinkerLaunch* self)
{
	GList* _tmp0_;
	gchar* location = NULL;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
	gchar* _tmp3_;
	const gchar* _tmp4_;
	const gchar* _tmp7_;
	gchar* _tmp8_;
	gboolean _tmp9_ = FALSE;
	GList* _tmp13_;
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp0_ = self->priv->external_locations;
	if (g_list_length (_tmp0_) > ((guint) 0)) {
		(self->priv->external_locations == NULL) ? NULL : (self->priv->external_locations = (_g_list_free__g_free0_ (self->priv->external_locations), NULL));
		self->priv->external_locations = NULL;
	}
	_tmp1_ = self->priv->_home_location;
	_tmp2_ = string_to_string (_tmp1_);
	_tmp3_ = g_strconcat (_tmp2_, "/SteamTinkerLaunch", NULL);
	location = _tmp3_;
	_tmp4_ = location;
	if (g_file_test (_tmp4_, G_FILE_TEST_IS_DIR)) {
		const gchar* _tmp5_;
		gchar* _tmp6_;
		_tmp5_ = location;
		_tmp6_ = g_strdup (_tmp5_);
		self->priv->external_locations = g_list_append (self->priv->external_locations, _tmp6_);
	}
	_tmp7_ = g_get_home_dir ();
	_tmp8_ = g_strconcat (_tmp7_, "/stl", NULL);
	_g_free0 (location);
	location = _tmp8_;
	if (!proton_plus_globals_IS_STEAM_OS) {
		const gchar* _tmp10_;
		_tmp10_ = location;
		_tmp9_ = g_file_test (_tmp10_, G_FILE_TEST_IS_DIR);
	} else {
		_tmp9_ = FALSE;
	}
	if (_tmp9_) {
		const gchar* _tmp11_;
		gchar* _tmp12_;
		_tmp11_ = location;
		_tmp12_ = g_strdup (_tmp11_);
		self->priv->external_locations = g_list_append (self->priv->external_locations, _tmp12_);
	}
	_tmp13_ = self->priv->external_locations;
	result = g_list_length (_tmp13_) > ((guint) 0);
	_g_free0 (location);
	return result;
}

static gchar*
string_strip (const gchar* self)
{
	gchar* _result_ = NULL;
	gchar* _tmp0_;
	gchar* result;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = g_strdup (self);
	_result_ = _tmp0_;
	g_strstrip (_result_);
	result = _result_;
	return result;
}

static void
proton_plus_models_releases_steam_tinker_launch_real_refresh_state (ProtonPlusModelsBaseRelease* base)
{
	ProtonPlusModelsReleasesSteamTinkerLaunch * self;
	gboolean base_location_exists = FALSE;
	const gchar* _tmp0_;
	gboolean binary_location_exists = FALSE;
	const gchar* _tmp1_;
	gboolean meta_file_exists = FALSE;
	const gchar* _tmp2_;
	gboolean _tmp3_ = FALSE;
	gboolean _tmp4_ = FALSE;
	gboolean installed = FALSE;
	gboolean updated = FALSE;
	gchar* _row_title = NULL;
	const gchar* _tmp25_;
	const gchar* _tmp26_;
	gchar* _tmp27_;
	const gchar* _tmp28_;
	const gchar* _tmp40_;
	ProtonPlusModelsBaseReleaseState _tmp41_ = 0;
	self = (ProtonPlusModelsReleasesSteamTinkerLaunch*) base;
	_tmp0_ = self->priv->_base_location;
	base_location_exists = g_file_test (_tmp0_, G_FILE_TEST_IS_DIR);
	_tmp1_ = self->priv->_binary_location;
	binary_location_exists = g_file_test (_tmp1_, G_FILE_TEST_IS_EXECUTABLE);
	_tmp2_ = self->priv->_meta_location;
	meta_file_exists = g_file_test (_tmp2_, G_FILE_TEST_IS_REGULAR);
	if (base_location_exists) {
		_tmp4_ = binary_location_exists;
	} else {
		_tmp4_ = FALSE;
	}
	if (_tmp4_) {
		_tmp3_ = meta_file_exists;
	} else {
		_tmp3_ = FALSE;
	}
	installed = _tmp3_;
	updated = FALSE;
	proton_plus_models_releases_steam_tinker_launch_set_local_date (self, "");
	proton_plus_models_releases_steam_tinker_launch_set_local_hash (self, "");
	if (installed) {
		gchar* raw_metadata = NULL;
		const gchar* _tmp5_;
		gchar* _tmp6_;
		gchar** metadata_parts = NULL;
		const gchar* _tmp7_;
		gchar* _tmp8_;
		gchar* _tmp9_;
		gchar** _tmp10_;
		gchar** _tmp11_;
		gchar** _tmp12_;
		gint _tmp12__length1;
		gint metadata_parts_length1;
		gint _metadata_parts_size_;
		gchar** _tmp13_;
		gint _tmp13__length1;
		const gchar* _tmp21_;
		_tmp5_ = self->priv->_meta_location;
		_tmp6_ = proton_plus_utils_filesystem_get_file_content (_tmp5_, FALSE);
		raw_metadata = _tmp6_;
		_tmp7_ = raw_metadata;
		_tmp8_ = string_strip (_tmp7_);
		_tmp9_ = _tmp8_;
		_tmp11_ = _tmp10_ = g_strsplit (_tmp9_, ":", 0);
		_tmp12_ = _tmp11_;
		_tmp12__length1 = _vala_array_length (_tmp10_);
		_g_free0 (_tmp9_);
		metadata_parts = _tmp12_;
		metadata_parts_length1 = _tmp12__length1;
		_metadata_parts_size_ = metadata_parts_length1;
		_tmp13_ = metadata_parts;
		_tmp13__length1 = metadata_parts_length1;
		if (_tmp13__length1 >= 2) {
			gchar** _tmp14_;
			gint _tmp14__length1;
			const gchar* _tmp15_;
			gchar** _tmp16_;
			gint _tmp16__length1;
			const gchar* _tmp17_;
			gboolean _tmp18_ = FALSE;
			const gchar* _tmp19_;
			_tmp14_ = metadata_parts;
			_tmp14__length1 = metadata_parts_length1;
			_tmp15_ = _tmp14_[0];
			proton_plus_models_releases_steam_tinker_launch_set_local_date (self, _tmp15_);
			_tmp16_ = metadata_parts;
			_tmp16__length1 = metadata_parts_length1;
			_tmp17_ = _tmp16_[1];
			proton_plus_models_releases_steam_tinker_launch_set_local_hash (self, _tmp17_);
			_tmp19_ = self->priv->_local_date;
			if (g_strcmp0 (_tmp19_, "") == 0) {
				_tmp18_ = TRUE;
			} else {
				const gchar* _tmp20_;
				_tmp20_ = self->priv->_local_hash;
				_tmp18_ = g_strcmp0 (_tmp20_, "") == 0;
			}
			if (_tmp18_) {
				proton_plus_models_releases_steam_tinker_launch_set_local_hash (self, "");
				proton_plus_models_releases_steam_tinker_launch_set_local_date (self, "");
			}
		}
		_tmp21_ = self->priv->_local_hash;
		if (g_strcmp0 (_tmp21_, "") == 0) {
			installed = FALSE;
		} else {
			const gchar* _tmp22_;
			_tmp22_ = self->priv->_latest_hash;
			if (g_strcmp0 (_tmp22_, "") != 0) {
				const gchar* _tmp23_;
				const gchar* _tmp24_;
				_tmp23_ = self->priv->_latest_hash;
				_tmp24_ = self->priv->_local_hash;
				updated = g_strcmp0 (_tmp23_, _tmp24_) == 0;
			}
		}
		metadata_parts = (_vala_array_free (metadata_parts, metadata_parts_length1, (GDestroyNotify) g_free), NULL);
		_g_free0 (raw_metadata);
	}
	proton_plus_models_base_release_set_step ((ProtonPlusModelsBaseRelease*) self, PROTON_PLUS_MODELS_BASE_RELEASE_STEP_NOTHING);
	_tmp25_ = proton_plus_models_base_release_get_title ((ProtonPlusModelsBaseRelease*) self);
	_tmp26_ = _tmp25_;
	_tmp27_ = g_strdup (_tmp26_);
	_row_title = _tmp27_;
	_tmp28_ = self->priv->_local_date;
	if (g_strcmp0 (_tmp28_, "") != 0) {
		const gchar* _tmp29_;
		const gchar* _tmp30_;
		const gchar* _tmp31_;
		const gchar* _tmp32_;
		gchar* _tmp33_;
		_tmp29_ = _row_title;
		_tmp30_ = string_to_string (_tmp29_);
		_tmp31_ = self->priv->_local_date;
		_tmp32_ = string_to_string (_tmp31_);
		_tmp33_ = g_strconcat (_tmp30_, " (", _tmp32_, ")", NULL);
		_g_free0 (_row_title);
		_row_title = _tmp33_;
	} else {
		const gchar* _tmp34_;
		_tmp34_ = self->priv->_latest_date;
		if (g_strcmp0 (_tmp34_, "") != 0) {
			const gchar* _tmp35_;
			const gchar* _tmp36_;
			const gchar* _tmp37_;
			const gchar* _tmp38_;
			gchar* _tmp39_;
			_tmp35_ = _row_title;
			_tmp36_ = string_to_string (_tmp35_);
			_tmp37_ = self->priv->_latest_date;
			_tmp38_ = string_to_string (_tmp37_);
			_tmp39_ = g_strconcat (_tmp36_, " (", _tmp38_, ")", NULL);
			_g_free0 (_row_title);
			_row_title = _tmp39_;
		}
	}
	_tmp40_ = _row_title;
	proton_plus_models_base_release_set_displayed_title ((ProtonPlusModelsBaseRelease*) self, _tmp40_);
	if (!installed) {
		_tmp41_ = PROTON_PLUS_MODELS_BASE_RELEASE_STATE_NOT_INSTALLED;
	} else {
		ProtonPlusModelsBaseReleaseState _tmp42_ = 0;
		if (updated) {
			_tmp42_ = PROTON_PLUS_MODELS_BASE_RELEASE_STATE_UP_TO_DATE;
		} else {
			_tmp42_ = PROTON_PLUS_MODELS_BASE_RELEASE_STATE_UPDATE_AVAILABLE;
		}
		_tmp41_ = _tmp42_;
	}
	proton_plus_models_base_release_set_state ((ProtonPlusModelsBaseRelease*) self, _tmp41_);
	_g_free0 (_row_title);
}

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

static void
proton_plus_models_releases_steam_tinker_launch_real__start_install (ProtonPlusModelsBaseRelease* base,
                                                                     GAsyncReadyCallback _callback_,
                                                                     gpointer _user_data_)
{
	ProtonPlusModelsReleasesSteamTinkerLaunch * self;
	ProtonPlusModelsReleasesSteamTinkerLaunchStartInstallData* _data_;
	ProtonPlusModelsReleasesSteamTinkerLaunch* _tmp0_;
	self = (ProtonPlusModelsReleasesSteamTinkerLaunch*) base;
	_data_ = g_slice_new0 (ProtonPlusModelsReleasesSteamTinkerLaunchStartInstallData);
	_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_steam_tinker_launch_real__start_install_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	proton_plus_models_releases_steam_tinker_launch_real__start_install_co (_data_);
}

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

static void
_proton_plus_models_releases_steam_tinker_launch_start_install_ready (GObject* source_object,
                                                                      GAsyncResult* _res_,
                                                                      gpointer _user_data_)
{
	ProtonPlusModelsReleasesSteamTinkerLaunchStartInstallData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	proton_plus_models_releases_steam_tinker_launch_real__start_install_co (_data_);
}

static gboolean
__lambda16_ (ProtonPlusModelsReleasesSteamTinkerLaunch* 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
___lambda16__protonplusutilswebcancel_callback (gpointer self)
{
	gboolean result;
	result = __lambda16_ ((ProtonPlusModelsReleasesSteamTinkerLaunch*) self);
	return result;
}

static void
__lambda17_ (ProtonPlusModelsReleasesSteamTinkerLaunch* 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
___lambda17__protonplusutilswebprogress_callback (gboolean is_percent,
                                                  gint64 progress_percentage,
                                                  gdouble speed_kbps,
                                                  gdouble* remaining_seconds,
                                                  gpointer self)
{
	__lambda17_ ((ProtonPlusModelsReleasesSteamTinkerLaunch*) self, is_percent, progress_percentage, speed_kbps, remaining_seconds);
}

static gboolean
__lambda18_ (ProtonPlusModelsReleasesSteamTinkerLaunch* 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
___lambda18__protonplusutilsfilesystemcancel_callback (gpointer self)
{
	gboolean result;
	result = __lambda18_ ((ProtonPlusModelsReleasesSteamTinkerLaunch*) self);
	return result;
}

static gboolean
proton_plus_models_releases_steam_tinker_launch_real__start_install_co (ProtonPlusModelsReleasesSteamTinkerLaunchStartInstallData* _data_)
{
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		case 2:
		goto _state_2;
		case 3:
		goto _state_3;
		case 4:
		goto _state_4;
		case 5:
		goto _state_5;
		case 6:
		goto _state_6;
		case 7:
		goto _state_7;
		case 8:
		goto _state_8;
		case 9:
		goto _state_9;
		case 10:
		goto _state_10;
		case 11:
		goto _state_11;
		case 12:
		goto _state_12;
		case 13:
		goto _state_13;
		case 14:
		goto _state_14;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_state_ = 1;
	proton_plus_utils_system_check_dependency ("steamtinkerlaunch", _proton_plus_models_releases_steam_tinker_launch_start_install_ready, _data_);
	return FALSE;
	_state_1:
	if (proton_plus_utils_system_check_dependency_finish (_data_->_res_)) {
		_data_->_state_ = 2;
		proton_plus_utils_system_run_command ("steamtinkerlaunch compat del", _proton_plus_models_releases_steam_tinker_launch_start_install_ready, _data_);
		return FALSE;
		_state_2:
		_data_->_tmp0_ = proton_plus_utils_system_run_command_finish (_data_->_res_);
		_data_->_tmp1_ = _data_->_tmp0_;
		_g_free0 (_data_->_tmp1_);
	}
	_data_->_tmp2_ = _data_->self->priv->_compat_location;
	_data_->_tmp3_ = string_to_string (_data_->_tmp2_);
	_data_->_tmp4_ = g_strconcat (_data_->_tmp3_, "/SteamTinkerLaunch/steamtinkerlaunch", NULL);
	_data_->_tmp5_ = _data_->_tmp4_;
	_data_->_state_ = 3;
	proton_plus_models_releases_steam_tinker_launch_exec_stl (_data_->self, _data_->_tmp5_, "compat del", _proton_plus_models_releases_steam_tinker_launch_start_install_ready, _data_);
	return FALSE;
	_state_3:
	proton_plus_models_releases_steam_tinker_launch_exec_stl_finish (_data_->self, _data_->_res_);
	_g_free0 (_data_->_tmp5_);
	_data_->_tmp6_ = _data_->self->priv->external_locations;
	{
		_data_->location_collection = _data_->_tmp6_;
		for (_data_->location_it = _data_->location_collection; _data_->location_it != NULL; _data_->location_it = _data_->location_it->next) {
			_data_->_tmp7_ = g_strdup ((const gchar*) _data_->location_it->data);
			_data_->location = _data_->_tmp7_;
			{
				_data_->_tmp8_ = _data_->location;
				_data_->_state_ = 4;
				proton_plus_utils_filesystem_delete_directory (_data_->_tmp8_, _proton_plus_models_releases_steam_tinker_launch_start_install_ready, _data_);
				return FALSE;
				_state_4:
				_data_->deleted = proton_plus_utils_filesystem_delete_directory_finish (_data_->_res_);
				if (!_data_->deleted) {
					_data_->result = FALSE;
					_g_free0 (_data_->location);
					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_->location);
			}
		}
	}
	_data_->_tmp9_ = _data_->self->priv->_base_location;
	_data_->base_location_exists = g_file_test (_data_->_tmp9_, G_FILE_TEST_EXISTS);
	if (_data_->base_location_exists) {
		_data_->_tmp10_ = proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_new ();
		_data_->_tmp11_ = _data_->_tmp10_;
		_data_->_state_ = 5;
		proton_plus_models_base_release_remove ((ProtonPlusModelsBaseRelease*) _data_->self, (ProtonPlusModelsParameters*) _data_->_tmp11_, _proton_plus_models_releases_steam_tinker_launch_start_install_ready, _data_);
		return FALSE;
		_state_5:
		_data_->_tmp12_ = proton_plus_models_base_release_remove_finish ((ProtonPlusModelsBaseRelease*) _data_->self, _data_->_res_);
		_g_object_unref0 (_data_->_tmp11_);
		_data_->deleted_old_files = _data_->_tmp12_;
		if (!_data_->deleted_old_files) {
			_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_->_tmp13_ = _data_->self->priv->_download_location;
	if (!g_file_test (_data_->_tmp13_, G_FILE_TEST_IS_DIR)) {
		_data_->_tmp14_ = _data_->self->priv->_download_location;
		_data_->_state_ = 6;
		proton_plus_utils_filesystem_create_directory (_data_->_tmp14_, _proton_plus_models_releases_steam_tinker_launch_start_install_ready, _data_);
		return FALSE;
		_state_6:
		_data_->download_dir_exists = proton_plus_utils_filesystem_create_directory_finish (_data_->_res_);
		if (!_data_->download_dir_exists) {
			_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_->_tmp15_ = _data_->self->priv->_download_location;
	_data_->_tmp16_ = string_to_string (_data_->_tmp15_);
	_data_->_tmp17_ = proton_plus_models_base_release_get_title ((ProtonPlusModelsBaseRelease*) _data_->self);
	_data_->_tmp18_ = _data_->_tmp17_;
	_data_->_tmp19_ = string_to_string (_data_->_tmp18_);
	_data_->_tmp20_ = g_strconcat (_data_->_tmp16_, "/", _data_->_tmp19_, ".zip", NULL);
	_data_->downloaded_file_location = _data_->_tmp20_;
	_data_->_tmp21_ = _data_->downloaded_file_location;
	if (g_file_test (_data_->_tmp21_, G_FILE_TEST_EXISTS)) {
		_data_->_tmp22_ = _data_->downloaded_file_location;
		_data_->_vala1_deleted = proton_plus_utils_filesystem_delete_file (_data_->_tmp22_);
		if (!_data_->_vala1_deleted) {
			_data_->result = FALSE;
			_g_free0 (_data_->downloaded_file_location);
			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_DOWNLOADING);
	_data_->_tmp23_ = proton_plus_models_releases_steam_tinker_launch_get_download_url (_data_->self);
	_data_->_tmp24_ = _data_->_tmp23_;
	_data_->_tmp25_ = _data_->downloaded_file_location;
	_data_->_tmp26_ = NULL;
	_data_->_state_ = 7;
	proton_plus_utils_web_Download (_data_->_tmp24_, _data_->_tmp25_, ___lambda16__protonplusutilswebcancel_callback, _data_->self, ___lambda17__protonplusutilswebprogress_callback, _data_->self, _proton_plus_models_releases_steam_tinker_launch_start_install_ready, _data_);
	return FALSE;
	_state_7:
	_data_->_tmp27_ = proton_plus_utils_web_Download_finish (_data_->_res_, &_data_->_tmp26_);
	_g_free0 (_data_->download_error);
	_data_->download_error = _data_->_tmp26_;
	_data_->_tmp28_ = _data_->_tmp27_;
	_g_free0 (_data_->_tmp24_);
	_data_->download_valid = _data_->_tmp28_;
	if (!_data_->download_valid) {
		_data_->_tmp29_ = _data_->download_error;
		proton_plus_models_base_release_set_error_message ((ProtonPlusModelsBaseRelease*) _data_->self, _data_->_tmp29_);
		_data_->result = FALSE;
		_g_free0 (_data_->download_error);
		_g_free0 (_data_->downloaded_file_location);
		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_EXTRACTING);
	_data_->_tmp30_ = _data_->self->priv->_download_location;
	_data_->_tmp31_ = string_to_string (_data_->_tmp30_);
	_data_->_tmp32_ = g_strconcat (_data_->_tmp31_, "/", NULL);
	_data_->_tmp33_ = _data_->_tmp32_;
	_data_->_tmp34_ = proton_plus_models_base_release_get_title ((ProtonPlusModelsBaseRelease*) _data_->self);
	_data_->_tmp35_ = _data_->_tmp34_;
	_data_->_state_ = 8;
	proton_plus_utils_filesystem_extract (_data_->_tmp33_, _data_->_tmp35_, ".zip", ___lambda18__protonplusutilsfilesystemcancel_callback, _data_->self, _proton_plus_models_releases_steam_tinker_launch_start_install_ready, _data_);
	return FALSE;
	_state_8:
	_data_->_tmp36_ = proton_plus_utils_filesystem_extract_finish (_data_->_res_);
	_data_->_tmp37_ = _data_->_tmp36_;
	_g_free0 (_data_->_tmp33_);
	_data_->extracted_file_location = _data_->_tmp37_;
	_data_->_tmp38_ = _data_->extracted_file_location;
	if (g_strcmp0 (_data_->_tmp38_, "") == 0) {
		_data_->result = FALSE;
		_g_free0 (_data_->extracted_file_location);
		_g_free0 (_data_->download_error);
		_g_free0 (_data_->downloaded_file_location);
		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_->_tmp39_ = _data_->extracted_file_location;
	_data_->_tmp40_ = _data_->self->priv->_base_location;
	_data_->_state_ = 9;
	proton_plus_utils_filesystem_move_dir_contents (_data_->_tmp39_, _data_->_tmp40_, _proton_plus_models_releases_steam_tinker_launch_start_install_ready, _data_);
	return FALSE;
	_state_9:
	_data_->moved = proton_plus_utils_filesystem_move_dir_contents_finish (_data_->_res_);
	if (!_data_->moved) {
		_data_->result = FALSE;
		_g_free0 (_data_->extracted_file_location);
		_g_free0 (_data_->download_error);
		_g_free0 (_data_->downloaded_file_location);
		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_->_tmp41_ = _data_->self->priv->_download_location;
	_data_->_state_ = 10;
	proton_plus_utils_filesystem_delete_directory (_data_->_tmp41_, _proton_plus_models_releases_steam_tinker_launch_start_install_ready, _data_);
	return FALSE;
	_state_10:
	_data_->download_deleted = proton_plus_utils_filesystem_delete_directory_finish (_data_->_res_);
	if (!_data_->download_deleted) {
		_data_->result = FALSE;
		_g_free0 (_data_->extracted_file_location);
		_g_free0 (_data_->download_error);
		_g_free0 (_data_->downloaded_file_location);
		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_->_tmp42_ = _data_->self->priv->_link_parent_location;
	_data_->_state_ = 11;
	proton_plus_utils_filesystem_create_directory (_data_->_tmp42_, _proton_plus_models_releases_steam_tinker_launch_start_install_ready, _data_);
	return FALSE;
	_state_11:
	_data_->link_parent_location_exists = proton_plus_utils_filesystem_create_directory_finish (_data_->_res_);
	if (!_data_->link_parent_location_exists) {
		_data_->result = FALSE;
		_g_free0 (_data_->extracted_file_location);
		_g_free0 (_data_->download_error);
		_g_free0 (_data_->downloaded_file_location);
		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_->_tmp43_ = _data_->self->priv->_link_location;
	_data_->_tmp44_ = _data_->self->priv->_binary_location;
	_data_->_state_ = 12;
	proton_plus_utils_filesystem_make_symlink (_data_->_tmp43_, _data_->_tmp44_, _proton_plus_models_releases_steam_tinker_launch_start_install_ready, _data_);
	return FALSE;
	_state_12:
	_data_->link_created = proton_plus_utils_filesystem_make_symlink_finish (_data_->_res_);
	if (!_data_->link_created) {
		_data_->result = FALSE;
		_g_free0 (_data_->extracted_file_location);
		_g_free0 (_data_->download_error);
		_g_free0 (_data_->downloaded_file_location);
		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;
	}
	if (proton_plus_globals_IS_STEAM_OS) {
		_data_->_tmp45_ = _data_->self->priv->_binary_location;
		_data_->_state_ = 13;
		proton_plus_models_releases_steam_tinker_launch_exec_stl (_data_->self, _data_->_tmp45_, "", _proton_plus_models_releases_steam_tinker_launch_start_install_ready, _data_);
		return FALSE;
		_state_13:
		proton_plus_models_releases_steam_tinker_launch_exec_stl_finish (_data_->self, _data_->_res_);
	}
	_data_->_tmp46_ = _data_->self->priv->_binary_location;
	_data_->_state_ = 14;
	proton_plus_models_releases_steam_tinker_launch_exec_stl (_data_->self, _data_->_tmp46_, "compat add", _proton_plus_models_releases_steam_tinker_launch_start_install_ready, _data_);
	return FALSE;
	_state_14:
	proton_plus_models_releases_steam_tinker_launch_exec_stl_finish (_data_->self, _data_->_res_);
	_data_->_tmp47_ = _data_->self->priv->_meta_location;
	proton_plus_models_releases_steam_tinker_launch_write_installation_metadata (_data_->self, _data_->_tmp47_);
	_data_->_tmp48_ = _data_->self->priv->_compat_location;
	_data_->_tmp49_ = g_strdup_printf ("%s/SteamTinkerLaunch", _data_->_tmp48_);
	_data_->_tmp50_ = _data_->_tmp49_;
	_data_->_tmp51_ = proton_plus_models_simple_runner_new_from_path (_data_->_tmp50_, &_data_->_inner_error0_);
	_data_->_tmp52_ = _data_->_tmp51_;
	_g_free0 (_data_->_tmp50_);
	_data_->simple_runner = _data_->_tmp52_;
	if (G_UNLIKELY (_data_->_inner_error0_ != NULL)) {
		_g_free0 (_data_->extracted_file_location);
		_g_free0 (_data_->download_error);
		_g_free0 (_data_->downloaded_file_location);
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error0_->message, g_quark_to_string (_data_->_inner_error0_->domain), _data_->_inner_error0_->code);
		g_clear_error (&_data_->_inner_error0_);
		g_object_unref (_data_->_async_result);
		return FALSE;
	}
	_data_->_tmp53_ = proton_plus_models_base_release_get_runner ((ProtonPlusModelsBaseRelease*) _data_->self);
	_data_->_tmp54_ = _data_->_tmp53_;
	_data_->_tmp55_ = proton_plus_models_runner_get_group (_data_->_tmp54_);
	_data_->_tmp56_ = _data_->_tmp55_;
	_data_->_tmp57_ = proton_plus_models_group_get_launcher (_data_->_tmp56_);
	_data_->_tmp58_ = _data_->_tmp57_;
	_data_->_tmp59_ = _data_->_tmp58_->compatibility_tools;
	_data_->_tmp60_ = _data_->simple_runner;
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp59_, _data_->_tmp60_);
	_data_->result = TRUE;
	_g_object_unref0 (_data_->simple_runner);
	_g_free0 (_data_->extracted_file_location);
	_g_free0 (_data_->download_error);
	_g_free0 (_data_->downloaded_file_location);
	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_steam_tinker_launch_real__start_remove_data_free (gpointer _data)
{
	ProtonPlusModelsReleasesSteamTinkerLaunchStartRemoveData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->parameters);
	_g_object_unref0 (_data_->self);
	g_slice_free (ProtonPlusModelsReleasesSteamTinkerLaunchStartRemoveData, _data_);
}

static void
proton_plus_models_releases_steam_tinker_launch_real__start_remove (ProtonPlusModelsRelease* base,
                                                                    ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters* parameters,
                                                                    GAsyncReadyCallback _callback_,
                                                                    gpointer _user_data_)
{
	ProtonPlusModelsReleasesSteamTinkerLaunch * self;
	ProtonPlusModelsReleasesSteamTinkerLaunchStartRemoveData* _data_;
	ProtonPlusModelsReleasesSteamTinkerLaunch* _tmp0_;
	ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters* _tmp1_;
	g_return_if_fail (parameters != NULL);
	self = (ProtonPlusModelsReleasesSteamTinkerLaunch*) base;
	_data_ = g_slice_new0 (ProtonPlusModelsReleasesSteamTinkerLaunchStartRemoveData);
	_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_steam_tinker_launch_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_steam_tinker_launch_real__start_remove_co (_data_);
}

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

static void
_proton_plus_models_releases_steam_tinker_launch_start_remove_ready (GObject* source_object,
                                                                     GAsyncResult* _res_,
                                                                     gpointer _user_data_)
{
	ProtonPlusModelsReleasesSteamTinkerLaunchStartRemoveData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	proton_plus_models_releases_steam_tinker_launch_real__start_remove_co (_data_);
}

static gboolean
proton_plus_models_releases_steam_tinker_launch_real__start_remove_co (ProtonPlusModelsReleasesSteamTinkerLaunchStartRemoveData* _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:
	_data_->_tmp0_ = _data_->self->priv->_binary_location;
	_data_->_state_ = 1;
	proton_plus_models_releases_steam_tinker_launch_exec_stl (_data_->self, _data_->_tmp0_, "compat del", _proton_plus_models_releases_steam_tinker_launch_start_remove_ready, _data_);
	return FALSE;
	_state_1:
	proton_plus_models_releases_steam_tinker_launch_exec_stl_finish (_data_->self, _data_->_res_);
	_data_->_tmp1_ = _data_->self->priv->_link_location;
	if (g_file_test (_data_->_tmp1_, G_FILE_TEST_EXISTS)) {
		_data_->_tmp2_ = _data_->self->priv->_link_location;
		if (!g_file_test (_data_->_tmp2_, G_FILE_TEST_IS_SYMLINK)) {
			_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_->_tmp3_ = _data_->self->priv->_link_location;
		_data_->link_deleted = proton_plus_utils_filesystem_delete_file (_data_->_tmp3_);
		if (!_data_->link_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;
		}
	}
	_data_->_tmp5_ = proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_get_user_request (_data_->parameters);
	_data_->_tmp6_ = _data_->_tmp5_;
	if (_data_->_tmp6_) {
		_data_->_tmp7_ = _data_->self->priv->_manual_remove_location;
		_data_->_tmp4_ = _data_->_tmp7_;
	} else {
		_data_->_tmp8_ = _data_->self->priv->_base_location;
		_data_->_tmp4_ = _data_->_tmp8_;
	}
	_data_->_tmp9_ = g_strdup (_data_->_tmp4_);
	_data_->remove_location = _data_->_tmp9_;
	_data_->_tmp10_ = _data_->remove_location;
	if (g_file_test (_data_->_tmp10_, G_FILE_TEST_EXISTS)) {
		_data_->_tmp11_ = _data_->remove_location;
		if (!g_file_test (_data_->_tmp11_, G_FILE_TEST_IS_DIR)) {
			_data_->result = FALSE;
			_g_free0 (_data_->remove_location);
			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_->_tmp12_ = _data_->remove_location;
		_data_->_state_ = 2;
		proton_plus_utils_filesystem_delete_directory (_data_->_tmp12_, _proton_plus_models_releases_steam_tinker_launch_start_remove_ready, _data_);
		return FALSE;
		_state_2:
		_data_->base_deleted = proton_plus_utils_filesystem_delete_directory_finish (_data_->_res_);
		if (!_data_->base_deleted) {
			_data_->result = FALSE;
			_g_free0 (_data_->remove_location);
			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_ = proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_get_delete_config (_data_->parameters);
	_data_->_tmp15_ = _data_->_tmp14_;
	if (_data_->_tmp15_) {
		_data_->_tmp16_ = _data_->self->priv->_config_location;
		_data_->_tmp13_ = g_file_test (_data_->_tmp16_, G_FILE_TEST_EXISTS);
	} else {
		_data_->_tmp13_ = FALSE;
	}
	if (_data_->_tmp13_) {
		_data_->_tmp17_ = _data_->self->priv->_config_location;
		if (!g_file_test (_data_->_tmp17_, G_FILE_TEST_IS_DIR)) {
			_data_->result = FALSE;
			_g_free0 (_data_->remove_location);
			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_->_tmp18_ = _data_->self->priv->_config_location;
		_data_->_state_ = 3;
		proton_plus_utils_filesystem_delete_directory (_data_->_tmp18_, _proton_plus_models_releases_steam_tinker_launch_start_remove_ready, _data_);
		return FALSE;
		_state_3:
		_data_->config_deleted = proton_plus_utils_filesystem_delete_directory_finish (_data_->_res_);
		if (!_data_->config_deleted) {
			_data_->result = FALSE;
			_g_free0 (_data_->remove_location);
			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_->_tmp19_ = proton_plus_models_base_release_get_runner ((ProtonPlusModelsBaseRelease*) _data_->self);
		_data_->_tmp20_ = _data_->_tmp19_;
		_data_->_tmp21_ = proton_plus_models_runner_get_group (_data_->_tmp20_);
		_data_->_tmp22_ = _data_->_tmp21_;
		_data_->_tmp23_ = proton_plus_models_group_get_launcher (_data_->_tmp22_);
		_data_->_tmp24_ = _data_->_tmp23_;
		_data_->_tmp25_ = _data_->_tmp24_->compatibility_tools;
		_data_->_simple_runner_list = _data_->_tmp25_;
		_data_->_tmp26_ = _data_->_simple_runner_list;
		_data_->_tmp27_ = gee_abstract_collection_get_size ((GeeAbstractCollection*) _data_->_tmp26_);
		_data_->_tmp28_ = _data_->_tmp27_;
		_data_->_simple_runner_size = _data_->_tmp28_;
		_data_->_simple_runner_index = -1;
		while (TRUE) {
			_data_->_simple_runner_index = _data_->_simple_runner_index + 1;
			_data_->_tmp29_ = _data_->_simple_runner_index;
			_data_->_tmp30_ = _data_->_simple_runner_size;
			if (!(_data_->_tmp29_ < _data_->_tmp30_)) {
				break;
			}
			_data_->_tmp31_ = _data_->_simple_runner_list;
			_data_->_tmp32_ = gee_abstract_list_get ((GeeAbstractList*) _data_->_tmp31_, _data_->_simple_runner_index);
			_data_->simple_runner = (ProtonPlusModelsSimpleRunner*) _data_->_tmp32_;
			_data_->_tmp33_ = _data_->simple_runner;
			_data_->_tmp34_ = proton_plus_models_simple_runner_get_path (_data_->_tmp33_);
			_data_->_tmp35_ = _data_->_tmp34_;
			_data_->_tmp36_ = _data_->self->priv->_compat_location;
			_data_->_tmp37_ = g_strdup_printf ("%s/SteamTinkerLaunch", _data_->_tmp36_);
			_data_->_tmp38_ = _data_->_tmp37_;
			_data_->_tmp39_ = g_strcmp0 (_data_->_tmp35_, _data_->_tmp38_) == 0;
			_g_free0 (_data_->_tmp38_);
			if (_data_->_tmp39_) {
				_data_->_tmp40_ = proton_plus_models_base_release_get_runner ((ProtonPlusModelsBaseRelease*) _data_->self);
				_data_->_tmp41_ = _data_->_tmp40_;
				_data_->_tmp42_ = proton_plus_models_runner_get_group (_data_->_tmp41_);
				_data_->_tmp43_ = _data_->_tmp42_;
				_data_->_tmp44_ = proton_plus_models_group_get_launcher (_data_->_tmp43_);
				_data_->_tmp45_ = _data_->_tmp44_;
				_data_->_tmp46_ = _data_->_tmp45_->compatibility_tools;
				_data_->_tmp47_ = _data_->simple_runner;
				gee_abstract_collection_remove ((GeeAbstractCollection*) _data_->_tmp46_, _data_->_tmp47_);
				_g_object_unref0 (_data_->simple_runner);
				break;
			}
			_g_object_unref0 (_data_->simple_runner);
		}
	}
	_data_->result = TRUE;
	_g_free0 (_data_->remove_location);
	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_steam_tinker_launch_real__start_update_data_free (gpointer _data)
{
	ProtonPlusModelsReleasesSteamTinkerLaunchStartUpdateData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->self);
	g_slice_free (ProtonPlusModelsReleasesSteamTinkerLaunchStartUpdateData, _data_);
}

static void
proton_plus_models_releases_steam_tinker_launch_real__start_update (ProtonPlusModelsReleasesUpdate* base,
                                                                    GAsyncReadyCallback _callback_,
                                                                    gpointer _user_data_)
{
	ProtonPlusModelsReleasesSteamTinkerLaunch * self;
	ProtonPlusModelsReleasesSteamTinkerLaunchStartUpdateData* _data_;
	ProtonPlusModelsReleasesSteamTinkerLaunch* _tmp0_;
	self = (ProtonPlusModelsReleasesSteamTinkerLaunch*) base;
	_data_ = g_slice_new0 (ProtonPlusModelsReleasesSteamTinkerLaunchStartUpdateData);
	_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_steam_tinker_launch_real__start_update_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	proton_plus_models_releases_steam_tinker_launch_real__start_update_co (_data_);
}

static gboolean
_proton_plus_models_releases_steam_tinker_launch_start_update_finish (ProtonPlusModelsReleasesUpdate* base,
                                                                      GAsyncResult* _res_)
{
	gboolean result;
	ProtonPlusModelsReleasesSteamTinkerLaunchStartUpdateData* _data_;
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
	result = _data_->result;
	return result;
}

static void
_proton_plus_models_releases_steam_tinker_launch_start_update_ready (GObject* source_object,
                                                                     GAsyncResult* _res_,
                                                                     gpointer _user_data_)
{
	ProtonPlusModelsReleasesSteamTinkerLaunchStartUpdateData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	proton_plus_models_releases_steam_tinker_launch_real__start_update_co (_data_);
}

static gboolean
proton_plus_models_releases_steam_tinker_launch_real__start_update_co (ProtonPlusModelsReleasesSteamTinkerLaunchStartUpdateData* _data_)
{
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		case 2:
		goto _state_2;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_tmp0_ = proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_new ();
	_data_->_tmp1_ = _data_->_tmp0_;
	_data_->_state_ = 1;
	proton_plus_models_base_release_remove ((ProtonPlusModelsBaseRelease*) _data_->self, (ProtonPlusModelsParameters*) _data_->_tmp1_, _proton_plus_models_releases_steam_tinker_launch_start_update_ready, _data_);
	return FALSE;
	_state_1:
	_data_->_tmp2_ = proton_plus_models_base_release_remove_finish ((ProtonPlusModelsBaseRelease*) _data_->self, _data_->_res_);
	_g_object_unref0 (_data_->_tmp1_);
	_data_->remove_success = _data_->_tmp2_;
	if (!_data_->remove_success) {
		_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_->_state_ = 2;
	proton_plus_models_base_release_install ((ProtonPlusModelsBaseRelease*) _data_->self, _proton_plus_models_releases_steam_tinker_launch_start_update_ready, _data_);
	return FALSE;
	_state_2:
	_data_->install_success = proton_plus_models_base_release_install_finish ((ProtonPlusModelsBaseRelease*) _data_->self, _data_->_res_);
	if (!_data_->install_success) {
		_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_->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;
}

static const gchar*
proton_plus_models_releases_steam_tinker_launch_get_home_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_home_location;
	result = _tmp0_;
	return result;
}

static void
proton_plus_models_releases_steam_tinker_launch_set_home_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                   const gchar* value)
{
	gchar* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = g_strdup (value);
	_g_free0 (self->priv->_home_location);
	self->priv->_home_location = _tmp0_;
}

static const gchar*
proton_plus_models_releases_steam_tinker_launch_get_compat_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_compat_location;
	result = _tmp0_;
	return result;
}

static void
proton_plus_models_releases_steam_tinker_launch_set_compat_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                     const gchar* value)
{
	gchar* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = g_strdup (value);
	_g_free0 (self->priv->_compat_location);
	self->priv->_compat_location = _tmp0_;
}

static const gchar*
proton_plus_models_releases_steam_tinker_launch_get_parent_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_parent_location;
	result = _tmp0_;
	return result;
}

static void
proton_plus_models_releases_steam_tinker_launch_set_parent_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                     const gchar* value)
{
	gchar* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = g_strdup (value);
	_g_free0 (self->priv->_parent_location);
	self->priv->_parent_location = _tmp0_;
}

const gchar*
proton_plus_models_releases_steam_tinker_launch_get_base_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_base_location;
	result = _tmp0_;
	return result;
}

void
proton_plus_models_releases_steam_tinker_launch_set_base_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                   const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_releases_steam_tinker_launch_get_base_location (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_base_location);
		self->priv->_base_location = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_releases_steam_tinker_launch_properties[PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_BASE_LOCATION_PROPERTY]);
	}
}

static const gchar*
proton_plus_models_releases_steam_tinker_launch_get_binary_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_binary_location;
	result = _tmp0_;
	return result;
}

static void
proton_plus_models_releases_steam_tinker_launch_set_binary_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                     const gchar* value)
{
	gchar* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = g_strdup (value);
	_g_free0 (self->priv->_binary_location);
	self->priv->_binary_location = _tmp0_;
}

static const gchar*
proton_plus_models_releases_steam_tinker_launch_get_download_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_download_location;
	result = _tmp0_;
	return result;
}

static void
proton_plus_models_releases_steam_tinker_launch_set_download_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                       const gchar* value)
{
	gchar* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = g_strdup (value);
	_g_free0 (self->priv->_download_location);
	self->priv->_download_location = _tmp0_;
}

static const gchar*
proton_plus_models_releases_steam_tinker_launch_get_meta_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_meta_location;
	result = _tmp0_;
	return result;
}

static void
proton_plus_models_releases_steam_tinker_launch_set_meta_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                   const gchar* value)
{
	gchar* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = g_strdup (value);
	_g_free0 (self->priv->_meta_location);
	self->priv->_meta_location = _tmp0_;
}

static const gchar*
proton_plus_models_releases_steam_tinker_launch_get_link_parent_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_link_parent_location;
	result = _tmp0_;
	return result;
}

static void
proton_plus_models_releases_steam_tinker_launch_set_link_parent_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                          const gchar* value)
{
	gchar* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = g_strdup (value);
	_g_free0 (self->priv->_link_parent_location);
	self->priv->_link_parent_location = _tmp0_;
}

static const gchar*
proton_plus_models_releases_steam_tinker_launch_get_link_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_link_location;
	result = _tmp0_;
	return result;
}

static void
proton_plus_models_releases_steam_tinker_launch_set_link_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                   const gchar* value)
{
	gchar* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = g_strdup (value);
	_g_free0 (self->priv->_link_location);
	self->priv->_link_location = _tmp0_;
}

static const gchar*
proton_plus_models_releases_steam_tinker_launch_get_config_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_config_location;
	result = _tmp0_;
	return result;
}

static void
proton_plus_models_releases_steam_tinker_launch_set_config_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                     const gchar* value)
{
	gchar* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = g_strdup (value);
	_g_free0 (self->priv->_config_location);
	self->priv->_config_location = _tmp0_;
}

static const gchar*
proton_plus_models_releases_steam_tinker_launch_get_manual_remove_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_manual_remove_location;
	result = _tmp0_;
	return result;
}

static void
proton_plus_models_releases_steam_tinker_launch_set_manual_remove_location (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                            const gchar* value)
{
	gchar* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = g_strdup (value);
	_g_free0 (self->priv->_manual_remove_location);
	self->priv->_manual_remove_location = _tmp0_;
}

static const gchar*
proton_plus_models_releases_steam_tinker_launch_get_latest_date (ProtonPlusModelsReleasesSteamTinkerLaunch* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_latest_date;
	result = _tmp0_;
	return result;
}

static void
proton_plus_models_releases_steam_tinker_launch_set_latest_date (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                 const gchar* value)
{
	gchar* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = g_strdup (value);
	_g_free0 (self->priv->_latest_date);
	self->priv->_latest_date = _tmp0_;
}

static const gchar*
proton_plus_models_releases_steam_tinker_launch_get_latest_hash (ProtonPlusModelsReleasesSteamTinkerLaunch* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_latest_hash;
	result = _tmp0_;
	return result;
}

static void
proton_plus_models_releases_steam_tinker_launch_set_latest_hash (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                 const gchar* value)
{
	gchar* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = g_strdup (value);
	_g_free0 (self->priv->_latest_hash);
	self->priv->_latest_hash = _tmp0_;
}

static const gchar*
proton_plus_models_releases_steam_tinker_launch_get_local_date (ProtonPlusModelsReleasesSteamTinkerLaunch* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_local_date;
	result = _tmp0_;
	return result;
}

static void
proton_plus_models_releases_steam_tinker_launch_set_local_date (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                const gchar* value)
{
	gchar* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = g_strdup (value);
	_g_free0 (self->priv->_local_date);
	self->priv->_local_date = _tmp0_;
}

static const gchar*
proton_plus_models_releases_steam_tinker_launch_get_local_hash (ProtonPlusModelsReleasesSteamTinkerLaunch* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_local_hash;
	result = _tmp0_;
	return result;
}

static void
proton_plus_models_releases_steam_tinker_launch_set_local_hash (ProtonPlusModelsReleasesSteamTinkerLaunch* self,
                                                                const gchar* value)
{
	gchar* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = g_strdup (value);
	_g_free0 (self->priv->_local_hash);
	self->priv->_local_hash = _tmp0_;
}

static inline gpointer
proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_get_instance_private (ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters_private_offset);
}

ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters*
proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_construct (GType object_type)
{
	ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters * self = NULL;
	self = (ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters*) proton_plus_models_parameters_construct (object_type);
	return self;
}

ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters*
proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_new (void)
{
	return proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_construct (PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_TYPE_STL_REMOVE_PARAMETERS);
}

gboolean
proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_get_delete_config (ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters* self)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	result = self->priv->_delete_config;
	return result;
}

void
proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_set_delete_config (ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters* self,
                                                                                         gboolean value)
{
	gboolean old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_get_delete_config (self);
	if (old_value != value) {
		self->priv->_delete_config = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_properties[PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_STL_REMOVE_PARAMETERS_DELETE_CONFIG_PROPERTY]);
	}
}

gboolean
proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_get_user_request (ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters* self)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	result = self->priv->_user_request;
	return result;
}

void
proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_set_user_request (ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters* self,
                                                                                        gboolean value)
{
	gboolean old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_get_user_request (self);
	if (old_value != value) {
		self->priv->_user_request = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_properties[PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_STL_REMOVE_PARAMETERS_USER_REQUEST_PROPERTY]);
	}
}

static void
proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_class_init (ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_ParametersClass * klass,
                                                                                  gpointer klass_data)
{
	proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_set_property;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_STL_REMOVE_PARAMETERS_DELETE_CONFIG_PROPERTY, proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_properties[PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_STL_REMOVE_PARAMETERS_DELETE_CONFIG_PROPERTY] = g_param_spec_boolean ("delete-config", "delete-config", "delete-config", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_STL_REMOVE_PARAMETERS_USER_REQUEST_PROPERTY, proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_properties[PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_STL_REMOVE_PARAMETERS_USER_REQUEST_PROPERTY] = g_param_spec_boolean ("user-request", "user-request", "user-request", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
}

static void
proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_instance_init (ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters * self,
                                                                                     gpointer klass)
{
	self->priv = proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_get_instance_private (self);
	self->priv->_delete_config = FALSE;
	self->priv->_user_request = FALSE;
}

static void
proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_finalize (GObject * obj)
{
	ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_TYPE_STL_REMOVE_PARAMETERS, ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters);
	G_OBJECT_CLASS (proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_parent_class)->finalize (obj);
}

static GType
proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_ParametersClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters), 0, (GInstanceInitFunc) proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_instance_init, NULL };
	GType proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_type_id;
	proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_type_id = g_type_register_static (PROTON_PLUS_MODELS_TYPE_PARAMETERS, "ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters", &g_define_type_info, 0);
	ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters_private_offset = g_type_add_instance_private (proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_type_id, sizeof (ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_ParametersPrivate));
	return proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_type_id;
}

GType
proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_get_type (void)
{
	static volatile gsize proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_type_id__once)) {
		GType proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_type_id;
		proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_type_id = proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_get_type_once ();
		g_once_init_leave (&proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_type_id__once, proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_type_id);
	}
	return proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_type_id__once;
}

static void
_vala_proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_get_property (GObject * object,
                                                                                          guint property_id,
                                                                                          GValue * value,
                                                                                          GParamSpec * pspec)
{
	ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_TYPE_STL_REMOVE_PARAMETERS, ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters);
	switch (property_id) {
		case PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_STL_REMOVE_PARAMETERS_DELETE_CONFIG_PROPERTY:
		g_value_set_boolean (value, proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_get_delete_config (self));
		break;
		case PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_STL_REMOVE_PARAMETERS_USER_REQUEST_PROPERTY:
		g_value_set_boolean (value, proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_get_user_request (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_set_property (GObject * object,
                                                                                          guint property_id,
                                                                                          const GValue * value,
                                                                                          GParamSpec * pspec)
{
	ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_TYPE_STL_REMOVE_PARAMETERS, ProtonPlusModelsReleasesSteamTinkerLaunchSTL_Remove_Parameters);
	switch (property_id) {
		case PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_STL_REMOVE_PARAMETERS_DELETE_CONFIG_PROPERTY:
		proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_set_delete_config (self, g_value_get_boolean (value));
		break;
		case PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_STL_REMOVE_PARAMETERS_USER_REQUEST_PROPERTY:
		proton_plus_models_releases_steam_tinker_launch_stl_remove_parameters_set_user_request (self, g_value_get_boolean (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
proton_plus_models_releases_steam_tinker_launch_class_init (ProtonPlusModelsReleasesSteamTinkerLaunchClass * klass,
                                                            gpointer klass_data)
{
	proton_plus_models_releases_steam_tinker_launch_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusModelsReleasesSteamTinkerLaunch_private_offset);
	((ProtonPlusModelsBaseReleaseClass *) klass)->refresh_state = (void (*) (ProtonPlusModelsBaseRelease*)) proton_plus_models_releases_steam_tinker_launch_real_refresh_state;
	((ProtonPlusModelsBaseReleaseClass *) klass)->_start_install = (void (*) (ProtonPlusModelsBaseRelease*, GAsyncReadyCallback, gpointer)) proton_plus_models_releases_steam_tinker_launch_real__start_install;
	((ProtonPlusModelsBaseReleaseClass *) klass)->_start_install_finish = (gboolean (*) (ProtonPlusModelsBaseRelease*, GAsyncResult*)) _proton_plus_models_releases_steam_tinker_launch_start_install_finish;
	((ProtonPlusModelsReleaseClass *) klass)->_start_remove = (void (*) (ProtonPlusModelsRelease*, gconstpointer, GAsyncReadyCallback, gpointer)) proton_plus_models_releases_steam_tinker_launch_real__start_remove;
	((ProtonPlusModelsReleaseClass *) klass)->_start_remove_finish = (gboolean (*) (ProtonPlusModelsRelease*, GAsyncResult*)) _proton_plus_models_releases_steam_tinker_launch_start_remove_finish;
	((ProtonPlusModelsReleasesUpdateClass *) klass)->_start_update = (void (*) (ProtonPlusModelsReleasesUpdate*, GAsyncReadyCallback, gpointer)) proton_plus_models_releases_steam_tinker_launch_real__start_update;
	((ProtonPlusModelsReleasesUpdateClass *) klass)->_start_update_finish = (gboolean (*) (ProtonPlusModelsReleasesUpdate*, GAsyncResult*)) _proton_plus_models_releases_steam_tinker_launch_start_update_finish;
	G_OBJECT_CLASS (klass)->get_property = _vala_proton_plus_models_releases_steam_tinker_launch_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_proton_plus_models_releases_steam_tinker_launch_set_property;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_models_releases_steam_tinker_launch_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_BASE_LOCATION_PROPERTY, proton_plus_models_releases_steam_tinker_launch_properties[PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_BASE_LOCATION_PROPERTY] = g_param_spec_string ("base-location", "base-location", "base-location", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
}

static void
proton_plus_models_releases_steam_tinker_launch_instance_init (ProtonPlusModelsReleasesSteamTinkerLaunch * self,
                                                               gpointer klass)
{
	self->priv = proton_plus_models_releases_steam_tinker_launch_get_instance_private (self);
}

static void
proton_plus_models_releases_steam_tinker_launch_finalize (GObject * obj)
{
	ProtonPlusModelsReleasesSteamTinkerLaunch * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_MODELS_RELEASES_TYPE_STEAM_TINKER_LAUNCH, ProtonPlusModelsReleasesSteamTinkerLaunch);
	_g_free0 (self->priv->_home_location);
	_g_free0 (self->priv->_compat_location);
	_g_free0 (self->priv->_parent_location);
	_g_free0 (self->priv->_base_location);
	_g_free0 (self->priv->_binary_location);
	_g_free0 (self->priv->_download_location);
	_g_free0 (self->priv->_meta_location);
	_g_free0 (self->priv->_link_parent_location);
	_g_free0 (self->priv->_link_location);
	_g_free0 (self->priv->_config_location);
	_g_free0 (self->priv->_manual_remove_location);
	(self->priv->external_locations == NULL) ? NULL : (self->priv->external_locations = (_g_list_free__g_free0_ (self->priv->external_locations), NULL));
	_g_free0 (self->priv->_latest_date);
	_g_free0 (self->priv->_latest_hash);
	_g_free0 (self->priv->_local_date);
	_g_free0 (self->priv->_local_hash);
	G_OBJECT_CLASS (proton_plus_models_releases_steam_tinker_launch_parent_class)->finalize (obj);
}

static GType
proton_plus_models_releases_steam_tinker_launch_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusModelsReleasesSteamTinkerLaunchClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_models_releases_steam_tinker_launch_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusModelsReleasesSteamTinkerLaunch), 0, (GInstanceInitFunc) proton_plus_models_releases_steam_tinker_launch_instance_init, NULL };
	GType proton_plus_models_releases_steam_tinker_launch_type_id;
	proton_plus_models_releases_steam_tinker_launch_type_id = g_type_register_static (PROTON_PLUS_MODELS_RELEASES_TYPE_UPDATE, "ProtonPlusModelsReleasesSteamTinkerLaunch", &g_define_type_info, 0);
	ProtonPlusModelsReleasesSteamTinkerLaunch_private_offset = g_type_add_instance_private (proton_plus_models_releases_steam_tinker_launch_type_id, sizeof (ProtonPlusModelsReleasesSteamTinkerLaunchPrivate));
	return proton_plus_models_releases_steam_tinker_launch_type_id;
}

GType
proton_plus_models_releases_steam_tinker_launch_get_type (void)
{
	static volatile gsize proton_plus_models_releases_steam_tinker_launch_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_models_releases_steam_tinker_launch_type_id__once)) {
		GType proton_plus_models_releases_steam_tinker_launch_type_id;
		proton_plus_models_releases_steam_tinker_launch_type_id = proton_plus_models_releases_steam_tinker_launch_get_type_once ();
		g_once_init_leave (&proton_plus_models_releases_steam_tinker_launch_type_id__once, proton_plus_models_releases_steam_tinker_launch_type_id);
	}
	return proton_plus_models_releases_steam_tinker_launch_type_id__once;
}

static void
_vala_proton_plus_models_releases_steam_tinker_launch_get_property (GObject * object,
                                                                    guint property_id,
                                                                    GValue * value,
                                                                    GParamSpec * pspec)
{
	ProtonPlusModelsReleasesSteamTinkerLaunch * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_MODELS_RELEASES_TYPE_STEAM_TINKER_LAUNCH, ProtonPlusModelsReleasesSteamTinkerLaunch);
	switch (property_id) {
		case PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_BASE_LOCATION_PROPERTY:
		g_value_set_string (value, proton_plus_models_releases_steam_tinker_launch_get_base_location (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_proton_plus_models_releases_steam_tinker_launch_set_property (GObject * object,
                                                                    guint property_id,
                                                                    const GValue * value,
                                                                    GParamSpec * pspec)
{
	ProtonPlusModelsReleasesSteamTinkerLaunch * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_MODELS_RELEASES_TYPE_STEAM_TINKER_LAUNCH, ProtonPlusModelsReleasesSteamTinkerLaunch);
	switch (property_id) {
		case PROTON_PLUS_MODELS_RELEASES_STEAM_TINKER_LAUNCH_BASE_LOCATION_PROPERTY:
		proton_plus_models_releases_steam_tinker_launch_set_base_location (self, g_value_get_string (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_array_destroy (gpointer array,
                     gssize array_length,
                     GDestroyNotify destroy_func)
{
	if ((array != NULL) && (destroy_func != NULL)) {
		gssize i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}

static void
_vala_array_free (gpointer array,
                  gssize array_length,
                  GDestroyNotify destroy_func)
{
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}

static gssize
_vala_array_length (gpointer array)
{
	gssize length;
	length = 0;
	if (array) {
		while (((gpointer*) array)[length]) {
			length++;
		}
	}
	return length;
}

