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

#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include <gio/gio.h>
#include <gee.h>
#include <errno.h>
#include <glib/gi18n-lib.h>
#include <json-glib/json-glib.h>
#include <gobject/gvaluecollector.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_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;
typedef struct _ProtonPlusModelsGamePrivate ProtonPlusModelsGamePrivate;

#define PROTON_PLUS_MODELS_GAMES_TYPE_STEAM (proton_plus_models_games_steam_get_type ())
#define PROTON_PLUS_MODELS_GAMES_STEAM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_GAMES_TYPE_STEAM, ProtonPlusModelsGamesSteam))
#define PROTON_PLUS_MODELS_GAMES_STEAM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_GAMES_TYPE_STEAM, ProtonPlusModelsGamesSteamClass))
#define PROTON_PLUS_MODELS_GAMES_IS_STEAM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_GAMES_TYPE_STEAM))
#define PROTON_PLUS_MODELS_GAMES_IS_STEAM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_GAMES_TYPE_STEAM))
#define PROTON_PLUS_MODELS_GAMES_STEAM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_GAMES_TYPE_STEAM, ProtonPlusModelsGamesSteamClass))

typedef struct _ProtonPlusModelsGamesSteam ProtonPlusModelsGamesSteam;
typedef struct _ProtonPlusModelsGamesSteamClass ProtonPlusModelsGamesSteamClass;
typedef struct _ProtonPlusModelsGamesSteamPrivate ProtonPlusModelsGamesSteamPrivate;
enum  {
	PROTON_PLUS_MODELS_GAMES_STEAM_0_PROPERTY,
	PROTON_PLUS_MODELS_GAMES_STEAM_APPID_PROPERTY,
	PROTON_PLUS_MODELS_GAMES_STEAM_LIBRARY_FOLDER_ID_PROPERTY,
	PROTON_PLUS_MODELS_GAMES_STEAM_LIBRARY_FOLDER_PATH_PROPERTY,
	PROTON_PLUS_MODELS_GAMES_STEAM_AWACY_NAME_PROPERTY,
	PROTON_PLUS_MODELS_GAMES_STEAM_AWACY_STATUS_PROPERTY,
	PROTON_PLUS_MODELS_GAMES_STEAM_LAUNCH_OPTIONS_PROPERTY,
	PROTON_PLUS_MODELS_GAMES_STEAM_IS_NON_STEAM_PROPERTY,
	PROTON_PLUS_MODELS_GAMES_STEAM_NUM_PROPERTIES
};
static GParamSpec* proton_plus_models_games_steam_properties[PROTON_PLUS_MODELS_GAMES_STEAM_NUM_PROPERTIES];
#define _g_free0(var) (var = (g_free (var), NULL))

#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;

#define PROTON_PLUS_MODELS_LAUNCHERS_TYPE_STEAM (proton_plus_models_launchers_steam_get_type ())
#define PROTON_PLUS_MODELS_LAUNCHERS_STEAM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_LAUNCHERS_TYPE_STEAM, ProtonPlusModelsLaunchersSteam))
#define PROTON_PLUS_MODELS_LAUNCHERS_STEAM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_LAUNCHERS_TYPE_STEAM, ProtonPlusModelsLaunchersSteamClass))
#define PROTON_PLUS_MODELS_LAUNCHERS_IS_STEAM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_LAUNCHERS_TYPE_STEAM))
#define PROTON_PLUS_MODELS_LAUNCHERS_IS_STEAM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_LAUNCHERS_TYPE_STEAM))
#define PROTON_PLUS_MODELS_LAUNCHERS_STEAM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_LAUNCHERS_TYPE_STEAM, ProtonPlusModelsLaunchersSteamClass))

typedef struct _ProtonPlusModelsLaunchersSteam ProtonPlusModelsLaunchersSteam;
typedef struct _ProtonPlusModelsLaunchersSteamClass ProtonPlusModelsLaunchersSteamClass;
typedef struct _ProtonPlusModelsLauncherPrivate ProtonPlusModelsLauncherPrivate;

#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;

#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;
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_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))
#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))

#define PROTON_PLUS_VDF_TYPE_SHORTCUT (proton_plus_vdf_shortcut_get_type ())
typedef struct _ProtonPlusVDFShortcut ProtonPlusVDFShortcut;

#define PROTON_PLUS_VDF_TYPE_NODE (proton_plus_vdf_node_get_type ())
#define PROTON_PLUS_VDF_NODE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_VDF_TYPE_NODE, ProtonPlusVDFNode))
#define PROTON_PLUS_VDF_NODE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_VDF_TYPE_NODE, ProtonPlusVDFNodeClass))
#define PROTON_PLUS_VDF_IS_NODE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_VDF_TYPE_NODE))
#define PROTON_PLUS_VDF_IS_NODE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_VDF_TYPE_NODE))
#define PROTON_PLUS_VDF_NODE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_VDF_TYPE_NODE, ProtonPlusVDFNodeClass))

typedef struct _ProtonPlusVDFNode ProtonPlusVDFNode;
typedef struct _ProtonPlusVDFNodeClass ProtonPlusVDFNodeClass;

#define PROTON_PLUS_MODELS_TYPE_STEAM_PROFILE (proton_plus_models_steam_profile_get_type ())
#define PROTON_PLUS_MODELS_STEAM_PROFILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_TYPE_STEAM_PROFILE, ProtonPlusModelsSteamProfile))
#define PROTON_PLUS_MODELS_STEAM_PROFILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_TYPE_STEAM_PROFILE, ProtonPlusModelsSteamProfileClass))
#define PROTON_PLUS_MODELS_IS_STEAM_PROFILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_TYPE_STEAM_PROFILE))
#define PROTON_PLUS_MODELS_IS_STEAM_PROFILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_TYPE_STEAM_PROFILE))
#define PROTON_PLUS_MODELS_STEAM_PROFILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_TYPE_STEAM_PROFILE, ProtonPlusModelsSteamProfileClass))

typedef struct _ProtonPlusModelsSteamProfile ProtonPlusModelsSteamProfile;
typedef struct _ProtonPlusModelsSteamProfileClass ProtonPlusModelsSteamProfileClass;

#define PROTON_PLUS_VDF_TYPE_BINARY (proton_plus_vdf_binary_get_type ())
#define PROTON_PLUS_VDF_BINARY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_VDF_TYPE_BINARY, ProtonPlusVDFBinary))
#define PROTON_PLUS_VDF_BINARY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_VDF_TYPE_BINARY, ProtonPlusVDFBinaryClass))
#define PROTON_PLUS_VDF_IS_BINARY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_VDF_TYPE_BINARY))
#define PROTON_PLUS_VDF_IS_BINARY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_VDF_TYPE_BINARY))
#define PROTON_PLUS_VDF_BINARY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_VDF_TYPE_BINARY, ProtonPlusVDFBinaryClass))

typedef struct _ProtonPlusVDFBinary ProtonPlusVDFBinary;
typedef struct _ProtonPlusVDFBinaryClass ProtonPlusVDFBinaryClass;

#define PROTON_PLUS_VDF_TYPE_SHORTCUTS (proton_plus_vdf_shortcuts_get_type ())
#define PROTON_PLUS_VDF_SHORTCUTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_VDF_TYPE_SHORTCUTS, ProtonPlusVDFShortcuts))
#define PROTON_PLUS_VDF_SHORTCUTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_VDF_TYPE_SHORTCUTS, ProtonPlusVDFShortcutsClass))
#define PROTON_PLUS_VDF_IS_SHORTCUTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_VDF_TYPE_SHORTCUTS))
#define PROTON_PLUS_VDF_IS_SHORTCUTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_VDF_TYPE_SHORTCUTS))
#define PROTON_PLUS_VDF_SHORTCUTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_VDF_TYPE_SHORTCUTS, ProtonPlusVDFShortcutsClass))

typedef struct _ProtonPlusVDFShortcuts ProtonPlusVDFShortcuts;
typedef struct _ProtonPlusVDFShortcutsClass ProtonPlusVDFShortcutsClass;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _ProtonPlusModelsSteamProfilePrivate ProtonPlusModelsSteamProfilePrivate;

#define PROTON_PLUS_MODELS_GAMES_STEAM_TYPE_AWACY_GAME (proton_plus_models_games_steam_awacy_game_get_type ())
#define PROTON_PLUS_MODELS_GAMES_STEAM_AWACY_GAME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_MODELS_GAMES_STEAM_TYPE_AWACY_GAME, ProtonPlusModelsGamesSteamAwacyGame))
#define PROTON_PLUS_MODELS_GAMES_STEAM_AWACY_GAME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_MODELS_GAMES_STEAM_TYPE_AWACY_GAME, ProtonPlusModelsGamesSteamAwacyGameClass))
#define PROTON_PLUS_MODELS_GAMES_STEAM_IS_AWACY_GAME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_MODELS_GAMES_STEAM_TYPE_AWACY_GAME))
#define PROTON_PLUS_MODELS_GAMES_STEAM_IS_AWACY_GAME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_MODELS_GAMES_STEAM_TYPE_AWACY_GAME))
#define PROTON_PLUS_MODELS_GAMES_STEAM_AWACY_GAME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_MODELS_GAMES_STEAM_TYPE_AWACY_GAME, ProtonPlusModelsGamesSteamAwacyGameClass))

typedef struct _ProtonPlusModelsGamesSteamAwacyGame ProtonPlusModelsGamesSteamAwacyGame;
typedef struct _ProtonPlusModelsGamesSteamAwacyGameClass ProtonPlusModelsGamesSteamAwacyGameClass;
typedef struct _ProtonPlusModelsGamesSteamAwacyGamePrivate ProtonPlusModelsGamesSteamAwacyGamePrivate;
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)))
#define _proton_plus_models_games_steam_awacy_game_unref0(var) ((var == NULL) ? NULL : (var = (proton_plus_models_games_steam_awacy_game_unref (var), NULL)))
typedef struct _ProtonPlusModelsGamesSteamAwacyGameGetAwacyGamesData ProtonPlusModelsGamesSteamAwacyGameGetAwacyGamesData;
typedef struct _ProtonPlusModelsGamesSteamParamSpecAwacyGame ProtonPlusModelsGamesSteamParamSpecAwacyGame;

struct _ProtonPlusModelsGame {
	GObject parent_instance;
	ProtonPlusModelsGamePrivate * priv;
};

struct _ProtonPlusModelsGameClass {
	GObjectClass parent_class;
	gboolean (*change_compatibility_tool) (ProtonPlusModelsGame* self, const gchar* compat_tool);
};

struct _ProtonPlusModelsGamesSteam {
	ProtonPlusModelsGame parent_instance;
	ProtonPlusModelsGamesSteamPrivate * priv;
};

struct _ProtonPlusModelsGamesSteamClass {
	ProtonPlusModelsGameClass parent_class;
};

struct _ProtonPlusModelsGamesSteamPrivate {
	guint _appid;
	gint _library_folder_id;
	gchar* _library_folder_path;
	gchar* _awacy_name;
	gchar* _awacy_status;
	gchar* _launch_options;
	gboolean _is_non_steam;
};

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 _ProtonPlusVDFShortcut {
	gint32 AppID;
	gboolean AllowDesktopConfig;
	gboolean AllowOverlay;
	gchar* AppName;
	gint32 Devkit;
	gchar* DevkitGameID;
	gint32 DevkitOverrideAppID;
	gchar* Exe;
	gchar* FlatpakAppID;
	gboolean IsHidden;
	gint32 LastPlayTime;
	gchar* LaunchOptions;
	gint32 OpenVR;
	gchar* ShortcutPath;
	gchar* StartDir;
	gchar* Icon;
	ProtonPlusVDFNode* shortcut_node;
	ProtonPlusVDFNode* shortcut_node_tags;
};

struct _ProtonPlusModelsSteamProfile {
	GObject parent_instance;
	ProtonPlusModelsSteamProfilePrivate * priv;
	GHashTable* launch_options_hashtable;
	GList* non_steam_games;
};

struct _ProtonPlusModelsSteamProfileClass {
	GObjectClass parent_class;
};

struct _ProtonPlusModelsGamesSteamAwacyGame {
	GTypeInstance parent_instance;
	volatile int ref_count;
	ProtonPlusModelsGamesSteamAwacyGamePrivate * priv;
};

struct _ProtonPlusModelsGamesSteamAwacyGameClass {
	GTypeClass parent_class;
	void (*finalize) (ProtonPlusModelsGamesSteamAwacyGame *self);
};

struct _ProtonPlusModelsGamesSteamAwacyGamePrivate {
	gint _appid;
	gchar* _name;
	gchar* _status;
};

struct _ProtonPlusModelsGamesSteamAwacyGameGetAwacyGamesData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	GList* result;
	GList* games;
	gchar* response;
	ProtonPlusReturnCode get_code;
	gchar* _tmp0_;
	ProtonPlusReturnCode _tmp1_;
	JsonNode* root_node;
	const gchar* _tmp2_;
	JsonNode* _tmp3_;
	JsonNode* _tmp4_;
	JsonNode* _tmp5_;
	JsonArray* root_array;
	JsonNode* _tmp6_;
	JsonArray* _tmp7_;
	JsonArray* _tmp8_;
	JsonArray* _tmp9_;
	gint i;
	gboolean _tmp10_;
	gint _tmp11_;
	JsonArray* _tmp12_;
	JsonObject* object;
	JsonArray* _tmp13_;
	JsonObject* _tmp14_;
	JsonObject* _tmp15_;
	JsonObject* storeids_object;
	JsonObject* _tmp16_;
	JsonObject* _tmp17_;
	JsonObject* _tmp18_;
	JsonObject* _tmp19_;
	JsonObject* _tmp20_;
	gint appid;
	JsonObject* _tmp21_;
	const gchar* _tmp22_;
	gint _tmp23_;
	gboolean _tmp24_;
	JsonObject* _tmp25_;
	gchar* name;
	JsonObject* _tmp26_;
	const gchar* _tmp27_;
	gchar* _tmp28_;
	JsonObject* _tmp29_;
	gchar* status;
	JsonObject* _tmp30_;
	const gchar* _tmp31_;
	gchar* _tmp32_;
	ProtonPlusModelsGamesSteamAwacyGame* game;
	const gchar* _tmp33_;
	const gchar* _tmp34_;
	ProtonPlusModelsGamesSteamAwacyGame* _tmp35_;
	ProtonPlusModelsGamesSteamAwacyGame* _tmp36_;
	ProtonPlusModelsGamesSteamAwacyGame* _tmp37_;
};

struct _ProtonPlusModelsGamesSteamParamSpecAwacyGame {
	GParamSpec parent_instance;
};

static gint ProtonPlusModelsGamesSteam_private_offset;
static gpointer proton_plus_models_games_steam_parent_class = NULL;
static gint ProtonPlusModelsGamesSteamAwacyGame_private_offset;
static gpointer proton_plus_models_games_steam_awacy_game_parent_class = NULL;

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_games_steam_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsGamesSteam, g_object_unref)
VALA_EXTERN gboolean proton_plus_models_game_change_compatibility_tool (ProtonPlusModelsGame* self,
                                                            const gchar* compat_tool);
VALA_EXTERN GType proton_plus_models_launcher_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsLauncher, g_object_unref)
VALA_EXTERN GType proton_plus_models_launchers_steam_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsLaunchersSteam, g_object_unref)
VALA_EXTERN ProtonPlusModelsGamesSteam* proton_plus_models_games_steam_new (guint appid,
                                                                const gchar* name,
                                                                const gchar* game_folder_name,
                                                                gint library_folder_id,
                                                                const gchar* library_folder_path,
                                                                ProtonPlusModelsLaunchersSteam* launcher);
VALA_EXTERN ProtonPlusModelsGamesSteam* proton_plus_models_games_steam_construct (GType object_type,
                                                                      guint appid,
                                                                      const gchar* name,
                                                                      const gchar* game_folder_name,
                                                                      gint library_folder_id,
                                                                      const gchar* library_folder_path,
                                                                      ProtonPlusModelsLaunchersSteam* launcher);
VALA_EXTERN ProtonPlusModelsGame* proton_plus_models_game_construct (GType object_type,
                                                         const gchar* name,
                                                         const gchar* installdir,
                                                         const gchar* prefixdir,
                                                         guint prefix,
                                                         ProtonPlusModelsLauncher* launcher);
VALA_EXTERN void proton_plus_models_games_steam_set_appid (ProtonPlusModelsGamesSteam* self,
                                               guint value);
VALA_EXTERN void proton_plus_models_games_steam_set_library_folder_id (ProtonPlusModelsGamesSteam* self,
                                                           gint value);
VALA_EXTERN void proton_plus_models_games_steam_set_library_folder_path (ProtonPlusModelsGamesSteam* self,
                                                             const gchar* value);
VALA_EXTERN void proton_plus_models_game_set_launcher (ProtonPlusModelsGame* self,
                                           ProtonPlusModelsLauncher* value);
VALA_EXTERN ProtonPlusModelsGamesSteam* proton_plus_models_games_steam_new_non_steam (guint appid,
                                                                          const gchar* name,
                                                                          const gchar* launch_options,
                                                                          const gchar* compatibility_tool,
                                                                          ProtonPlusModelsLaunchersSteam* launcher);
VALA_EXTERN ProtonPlusModelsGamesSteam* proton_plus_models_games_steam_construct_non_steam (GType object_type,
                                                                                guint appid,
                                                                                const gchar* name,
                                                                                const gchar* launch_options,
                                                                                const gchar* compatibility_tool,
                                                                                ProtonPlusModelsLaunchersSteam* launcher);
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_group_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsGroup, g_object_unref)
VALA_EXTERN GType proton_plus_models_launcher_installation_types_get_type (void) G_GNUC_CONST ;
VALA_EXTERN void proton_plus_models_games_steam_set_launch_options (ProtonPlusModelsGamesSteam* self,
                                                        const gchar* value);
VALA_EXTERN void proton_plus_models_game_set_compatibility_tool (ProtonPlusModelsGame* self,
                                                     const gchar* value);
VALA_EXTERN void proton_plus_models_games_steam_set_is_non_steam (ProtonPlusModelsGamesSteam* self,
                                                      gboolean value);
static gboolean proton_plus_models_games_steam_real_change_compatibility_tool (ProtonPlusModelsGame* base,
                                                                        const gchar* compatibility_tool);
VALA_EXTERN ProtonPlusModelsLauncher* proton_plus_models_game_get_launcher (ProtonPlusModelsGame* self);
VALA_EXTERN gchar* proton_plus_utils_filesystem_get_file_content (const gchar* path,
                                                      gboolean use_uri);
VALA_EXTERN guint proton_plus_models_games_steam_get_appid (ProtonPlusModelsGamesSteam* self);
VALA_EXTERN gboolean proton_plus_utils_filesystem_modify_file (const gchar* path,
                                                   const gchar* content);
VALA_EXTERN gboolean proton_plus_models_games_steam_change_launch_options (ProtonPlusModelsGamesSteam* self,
                                                               const gchar* launch_options,
                                                               const gchar* localconfig_path);
VALA_EXTERN gboolean proton_plus_models_games_steam_get_is_non_steam (ProtonPlusModelsGamesSteam* self);
VALA_EXTERN GType proton_plus_vdf_shortcut_get_type (void) G_GNUC_CONST ;
VALA_EXTERN GType proton_plus_vdf_node_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusVDFNode, g_object_unref)
VALA_EXTERN ProtonPlusVDFShortcut* proton_plus_vdf_shortcut_dup (const ProtonPlusVDFShortcut* self);
VALA_EXTERN void proton_plus_vdf_shortcut_free (ProtonPlusVDFShortcut* self);
VALA_EXTERN void proton_plus_vdf_shortcut_copy (const ProtonPlusVDFShortcut* self,
                                    ProtonPlusVDFShortcut* dest);
VALA_EXTERN void proton_plus_vdf_shortcut_destroy (ProtonPlusVDFShortcut* self);
G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC (ProtonPlusVDFShortcut, proton_plus_vdf_shortcut_destroy)
VALA_EXTERN GType proton_plus_models_steam_profile_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsSteamProfile, g_object_unref)
VALA_EXTERN ProtonPlusModelsSteamProfile* proton_plus_models_launchers_steam_get_profile (ProtonPlusModelsLaunchersSteam* self);
VALA_EXTERN gpointer proton_plus_vdf_binary_ref (gpointer instance);
VALA_EXTERN void proton_plus_vdf_binary_unref (gpointer instance);
VALA_EXTERN GParamSpec* proton_plus_vdf_param_spec_binary (const gchar* name,
                                               const gchar* nick,
                                               const gchar* blurb,
                                               GType object_type,
                                               GParamFlags flags);
VALA_EXTERN void proton_plus_vdf_value_set_binary (GValue* value,
                                       gpointer v_object);
VALA_EXTERN void proton_plus_vdf_value_take_binary (GValue* value,
                                        gpointer v_object);
VALA_EXTERN gpointer proton_plus_vdf_value_get_binary (const GValue* value);
VALA_EXTERN GType proton_plus_vdf_binary_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusVDFBinary, proton_plus_vdf_binary_unref)
VALA_EXTERN GType proton_plus_vdf_shortcuts_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusVDFShortcuts, proton_plus_vdf_binary_unref)
VALA_EXTERN ProtonPlusVDFShortcuts* proton_plus_models_steam_profile_get_shortcuts (ProtonPlusModelsSteamProfile* self);
VALA_EXTERN void proton_plus_vdf_shortcuts_get_shortcut_by_name (ProtonPlusVDFShortcuts* self,
                                                     const gchar* name,
                                                     ProtonPlusVDFShortcut* result);
VALA_EXTERN const gchar* proton_plus_models_game_get_name (ProtonPlusModelsGame* self);
VALA_EXTERN void proton_plus_vdf_shortcuts_replace_shortcut_by_name (ProtonPlusVDFShortcuts* self,
                                                         const gchar* name,
                                                         ProtonPlusVDFShortcut* shortcut);
VALA_EXTERN void proton_plus_vdf_binary_save (ProtonPlusVDFBinary* self,
                                  GError** error);
VALA_EXTERN gint proton_plus_models_games_steam_get_library_folder_id (ProtonPlusModelsGamesSteam* self);
VALA_EXTERN const gchar* proton_plus_models_games_steam_get_library_folder_path (ProtonPlusModelsGamesSteam* self);
VALA_EXTERN const gchar* proton_plus_models_games_steam_get_awacy_name (ProtonPlusModelsGamesSteam* self);
VALA_EXTERN void proton_plus_models_games_steam_set_awacy_name (ProtonPlusModelsGamesSteam* self,
                                                    const gchar* value);
VALA_EXTERN const gchar* proton_plus_models_games_steam_get_awacy_status (ProtonPlusModelsGamesSteam* self);
VALA_EXTERN void proton_plus_models_games_steam_set_awacy_status (ProtonPlusModelsGamesSteam* self,
                                                      const gchar* value);
VALA_EXTERN const gchar* proton_plus_models_games_steam_get_launch_options (ProtonPlusModelsGamesSteam* self);
VALA_EXTERN gpointer proton_plus_models_games_steam_awacy_game_ref (gpointer instance);
VALA_EXTERN void proton_plus_models_games_steam_awacy_game_unref (gpointer instance);
VALA_EXTERN GParamSpec* proton_plus_models_games_steam_param_spec_awacy_game (const gchar* name,
                                                                  const gchar* nick,
                                                                  const gchar* blurb,
                                                                  GType object_type,
                                                                  GParamFlags flags);
VALA_EXTERN void proton_plus_models_games_steam_value_set_awacy_game (GValue* value,
                                                          gpointer v_object);
VALA_EXTERN void proton_plus_models_games_steam_value_take_awacy_game (GValue* value,
                                                           gpointer v_object);
VALA_EXTERN gpointer proton_plus_models_games_steam_value_get_awacy_game (const GValue* value);
VALA_EXTERN GType proton_plus_models_games_steam_awacy_game_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProtonPlusModelsGamesSteamAwacyGame, proton_plus_models_games_steam_awacy_game_unref)
VALA_EXTERN ProtonPlusModelsGamesSteamAwacyGame* proton_plus_models_games_steam_awacy_game_new (gint appid,
                                                                                    const gchar* name,
                                                                                    const gchar* status);
VALA_EXTERN ProtonPlusModelsGamesSteamAwacyGame* proton_plus_models_games_steam_awacy_game_construct (GType object_type,
                                                                                          gint appid,
                                                                                          const gchar* name,
                                                                                          const gchar* status);
VALA_EXTERN void proton_plus_models_games_steam_awacy_game_set_appid (ProtonPlusModelsGamesSteamAwacyGame* self,
                                                          gint value);
VALA_EXTERN void proton_plus_models_games_steam_awacy_game_set_name (ProtonPlusModelsGamesSteamAwacyGame* self,
                                                         const gchar* value);
VALA_EXTERN void proton_plus_models_games_steam_awacy_game_set_status (ProtonPlusModelsGamesSteamAwacyGame* self,
                                                           const gchar* value);
static void _proton_plus_models_games_steam_awacy_game_unref0_ (gpointer var);
static inline void _g_list_free__proton_plus_models_games_steam_awacy_game_unref0_ (GList* self);
static void proton_plus_models_games_steam_awacy_game_get_awacy_games_data_free (gpointer _data);
VALA_EXTERN void proton_plus_models_games_steam_awacy_game_get_awacy_games (GAsyncReadyCallback _callback_,
                                                                gpointer _user_data_);
VALA_EXTERN GList* proton_plus_models_games_steam_awacy_game_get_awacy_games_finish (GAsyncResult* _res_);
static gboolean proton_plus_models_games_steam_awacy_game_get_awacy_games_co (ProtonPlusModelsGamesSteamAwacyGameGetAwacyGamesData* _data_);
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_games_steam_awacy_game_get_awacy_games_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);
VALA_EXTERN gint proton_plus_models_games_steam_awacy_game_get_appid (ProtonPlusModelsGamesSteamAwacyGame* self);
VALA_EXTERN const gchar* proton_plus_models_games_steam_awacy_game_get_name (ProtonPlusModelsGamesSteamAwacyGame* self);
VALA_EXTERN const gchar* proton_plus_models_games_steam_awacy_game_get_status (ProtonPlusModelsGamesSteamAwacyGame* self);
static void proton_plus_models_games_steam_awacy_game_finalize (ProtonPlusModelsGamesSteamAwacyGame * obj);
static GType proton_plus_models_games_steam_awacy_game_get_type_once (void);
static void proton_plus_models_games_steam_finalize (GObject * obj);
static GType proton_plus_models_games_steam_get_type_once (void);
static void _vala_proton_plus_models_games_steam_get_property (GObject * object,
                                                        guint property_id,
                                                        GValue * value,
                                                        GParamSpec * pspec);
static void _vala_proton_plus_models_games_steam_set_property (GObject * object,
                                                        guint property_id,
                                                        const GValue * value,
                                                        GParamSpec * pspec);

static inline gpointer
proton_plus_models_games_steam_get_instance_private (ProtonPlusModelsGamesSteam* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusModelsGamesSteam_private_offset);
}

ProtonPlusModelsGamesSteam*
proton_plus_models_games_steam_construct (GType object_type,
                                          guint appid,
                                          const gchar* name,
                                          const gchar* game_folder_name,
                                          gint library_folder_id,
                                          const gchar* library_folder_path,
                                          ProtonPlusModelsLaunchersSteam* launcher)
{
	ProtonPlusModelsGamesSteam * self = NULL;
	gchar* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	g_return_val_if_fail (name != NULL, NULL);
	g_return_val_if_fail (game_folder_name != NULL, NULL);
	g_return_val_if_fail (library_folder_path != NULL, NULL);
	g_return_val_if_fail (launcher != NULL, NULL);
	_tmp0_ = g_strdup_printf ("%s/steamapps/common/%s", library_folder_path, game_folder_name);
	_tmp1_ = _tmp0_;
	_tmp2_ = g_strdup_printf ("%s/steamapps/compatdata/%u", library_folder_path, appid);
	_tmp3_ = _tmp2_;
	self = (ProtonPlusModelsGamesSteam*) proton_plus_models_game_construct (object_type, name, _tmp1_, _tmp3_, appid, (ProtonPlusModelsLauncher*) launcher);
	_g_free0 (_tmp3_);
	_g_free0 (_tmp1_);
	proton_plus_models_games_steam_set_appid (self, appid);
	proton_plus_models_games_steam_set_library_folder_id (self, library_folder_id);
	proton_plus_models_games_steam_set_library_folder_path (self, library_folder_path);
	proton_plus_models_game_set_launcher ((ProtonPlusModelsGame*) self, (ProtonPlusModelsLauncher*) launcher);
	return self;
}

ProtonPlusModelsGamesSteam*
proton_plus_models_games_steam_new (guint appid,
                                    const gchar* name,
                                    const gchar* game_folder_name,
                                    gint library_folder_id,
                                    const gchar* library_folder_path,
                                    ProtonPlusModelsLaunchersSteam* launcher)
{
	return proton_plus_models_games_steam_construct (PROTON_PLUS_MODELS_GAMES_TYPE_STEAM, appid, name, game_folder_name, library_folder_id, library_folder_path, launcher);
}

ProtonPlusModelsGamesSteam*
proton_plus_models_games_steam_construct_non_steam (GType object_type,
                                                    guint appid,
                                                    const gchar* name,
                                                    const gchar* launch_options,
                                                    const gchar* compatibility_tool,
                                                    ProtonPlusModelsLaunchersSteam* launcher)
{
	ProtonPlusModelsGamesSteam * self = NULL;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	g_return_val_if_fail (name != NULL, NULL);
	g_return_val_if_fail (launch_options != NULL, NULL);
	g_return_val_if_fail (compatibility_tool != NULL, NULL);
	g_return_val_if_fail (launcher != NULL, NULL);
	_tmp0_ = ((ProtonPlusModelsLauncher*) launcher)->directory;
	_tmp1_ = g_strdup_printf ("%s/steamapps/compatdata/%u", _tmp0_, appid);
	_tmp2_ = _tmp1_;
	self = (ProtonPlusModelsGamesSteam*) proton_plus_models_game_construct (object_type, name, "", _tmp2_, appid, (ProtonPlusModelsLauncher*) launcher);
	_g_free0 (_tmp2_);
	proton_plus_models_games_steam_set_appid (self, appid);
	proton_plus_models_games_steam_set_launch_options (self, launch_options);
	proton_plus_models_game_set_compatibility_tool ((ProtonPlusModelsGame*) self, compatibility_tool);
	proton_plus_models_games_steam_set_is_non_steam (self, TRUE);
	return self;
}

ProtonPlusModelsGamesSteam*
proton_plus_models_games_steam_new_non_steam (guint appid,
                                              const gchar* name,
                                              const gchar* launch_options,
                                              const gchar* compatibility_tool,
                                              ProtonPlusModelsLaunchersSteam* launcher)
{
	return proton_plus_models_games_steam_construct_non_steam (PROTON_PLUS_MODELS_GAMES_TYPE_STEAM, appid, name, launch_options, compatibility_tool, launcher);
}

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

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

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

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

static gboolean
uint_try_parse (const gchar* str,
                guint* _result_,
                const gchar** unparsed,
                guint _base)
{
	guint _vala__result_ = 0U;
	const gchar* _vala_unparsed = NULL;
	gchar* endptr = NULL;
	gulong ulong_result = 0UL;
	gchar* _tmp0_ = NULL;
	gulong _tmp1_;
	gchar* _tmp2_;
	gint _tmp3_;
	gint _tmp4_;
	gulong _tmp6_;
	gboolean result;
	g_return_val_if_fail (str != NULL, FALSE);
	errno = 0;
	_tmp1_ = strtoul (str, &_tmp0_, (gint) _base);
	endptr = _tmp0_;
	ulong_result = _tmp1_;
	_tmp2_ = endptr;
	_tmp3_ = strlen (str);
	_tmp4_ = _tmp3_;
	if (_tmp2_ == (((gchar*) str) + _tmp4_)) {
		_vala_unparsed = "";
	} else {
		gchar* _tmp5_;
		_tmp5_ = endptr;
		_vala_unparsed = (const gchar*) _tmp5_;
	}
	_tmp6_ = ulong_result;
	if ((((gulong) 0) <= _tmp6_) && (_tmp6_ <= ((gulong) G_MAXUINT))) {
		gboolean _tmp7_ = FALSE;
		gboolean _tmp8_ = FALSE;
		_vala__result_ = (guint) ulong_result;
		if (errno != ERANGE) {
			_tmp8_ = errno != EINVAL;
		} else {
			_tmp8_ = FALSE;
		}
		if (_tmp8_) {
			const gchar* _tmp9_;
			gchar* _tmp10_;
			_tmp9_ = _vala_unparsed;
			_tmp10_ = endptr;
			_tmp7_ = _tmp9_ != _tmp10_;
		} else {
			_tmp7_ = FALSE;
		}
		result = _tmp7_;
		if (_result_) {
			*_result_ = _vala__result_;
		}
		if (unparsed) {
			*unparsed = _vala_unparsed;
		}
		return result;
	} else {
		_vala__result_ = G_MAXUINT;
		result = FALSE;
		if (_result_) {
			*_result_ = _vala__result_;
		}
		if (unparsed) {
			*unparsed = _vala_unparsed;
		}
		return result;
	}
}

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

static gboolean
proton_plus_models_games_steam_real_change_compatibility_tool (ProtonPlusModelsGame* base,
                                                               const gchar* compatibility_tool)
{
	ProtonPlusModelsGamesSteam * self;
	gchar* config_path = NULL;
	ProtonPlusModelsLauncher* _tmp0_;
	ProtonPlusModelsLauncher* _tmp1_;
	const gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* config_content = NULL;
	const gchar* _tmp4_;
	gchar* _tmp5_;
	GString* compat_tool_mapping_string_builder = NULL;
	gchar* compat_tool_mapping_content = NULL;
	gchar* _tmp6_;
	gchar* compat_tool_mapping_item = NULL;
	gchar* _tmp7_;
	guint compat_tool_mapping_item_appid = 0U;
	gchar* compat_tool_mapping_item_name = NULL;
	gchar* _tmp8_;
	gchar* start_text = NULL;
	gchar* _tmp9_;
	gchar* end_text = NULL;
	gchar* _tmp10_;
	gint start_pos = 0;
	gint end_pos = 0;
	gint current_position = 0;
	gchar* _tmp11_;
	gchar* _tmp12_;
	const gchar* _tmp13_;
	const gchar* _tmp14_;
	const gchar* _tmp30_;
	const gchar* _tmp31_;
	const gchar* _tmp32_;
	const gchar* _tmp33_;
	const gchar* _tmp34_;
	gint _tmp35_;
	gint _tmp36_;
	const gchar* _tmp37_;
	gchar* _tmp38_;
	const gchar* _tmp39_;
	GString* _tmp40_;
	const gchar* _tmp41_;
	guint _tmp42_;
	gchar* _tmp43_;
	gchar* _tmp44_;
	gboolean _tmp45_;
	gboolean modified = FALSE;
	const gchar* _tmp133_;
	const gchar* _tmp134_;
	gboolean result;
	self = (ProtonPlusModelsGamesSteam*) base;
	g_return_val_if_fail (compatibility_tool != NULL, FALSE);
	_tmp0_ = proton_plus_models_game_get_launcher ((ProtonPlusModelsGame*) self);
	_tmp1_ = _tmp0_;
	_tmp2_ = _tmp1_->directory;
	_tmp3_ = g_strdup_printf ("%s/config/config.vdf", _tmp2_);
	config_path = _tmp3_;
	_tmp4_ = config_path;
	_tmp5_ = proton_plus_utils_filesystem_get_file_content (_tmp4_, FALSE);
	config_content = _tmp5_;
	_tmp6_ = g_strdup ("");
	compat_tool_mapping_content = _tmp6_;
	_tmp7_ = g_strdup ("");
	compat_tool_mapping_item = _tmp7_;
	compat_tool_mapping_item_appid = (guint) 0;
	_tmp8_ = g_strdup ("");
	compat_tool_mapping_item_name = _tmp8_;
	_tmp9_ = g_strdup ("");
	start_text = _tmp9_;
	_tmp10_ = g_strdup ("");
	end_text = _tmp10_;
	start_pos = 0;
	end_pos = 0;
	current_position = 0;
	_tmp11_ = g_strdup ("\"CompatToolMapping\"\n\t\t\t\t{");
	_g_free0 (start_text);
	start_text = _tmp11_;
	_tmp12_ = g_strdup ("\n\t\t\t\t}");
	_g_free0 (end_text);
	end_text = _tmp12_;
	_tmp13_ = config_content;
	_tmp14_ = start_text;
	if (string_index_of (_tmp13_, _tmp14_, 0) == -1) {
		gchar* start_steam_text = NULL;
		gchar* _tmp15_;
		gint start_steam_pos = 0;
		const gchar* _tmp16_;
		const gchar* _tmp17_;
		gint insert_pos = 0;
		const gchar* _tmp18_;
		gint _tmp19_;
		gint _tmp20_;
		const gchar* _tmp21_;
		gchar* _tmp22_;
		gchar* _tmp23_;
		gchar* _tmp24_;
		gchar* _tmp25_;
		const gchar* _tmp26_;
		gchar* _tmp27_;
		gchar* _tmp28_;
		gchar* _tmp29_;
		_tmp15_ = g_strdup ("\"Steam\"\n\t\t\t{");
		start_steam_text = _tmp15_;
		_tmp16_ = config_content;
		_tmp17_ = start_steam_text;
		start_steam_pos = string_index_of (_tmp16_, _tmp17_, 0);
		_tmp18_ = start_steam_text;
		_tmp19_ = strlen (_tmp18_);
		_tmp20_ = _tmp19_;
		insert_pos = start_steam_pos + _tmp20_;
		_tmp21_ = config_content;
		_tmp22_ = string_substring (_tmp21_, (glong) 0, (glong) insert_pos);
		_tmp23_ = _tmp22_;
		_tmp24_ = g_strconcat (_tmp23_, "\n\t\t\t\t\"CompatToolMapping\"\n\t\t\t\t{\n\t\t\t\t}", NULL);
		_tmp25_ = _tmp24_;
		_tmp26_ = config_content;
		_tmp27_ = string_substring (_tmp26_, (glong) insert_pos, (glong) -1);
		_tmp28_ = _tmp27_;
		_tmp29_ = g_strconcat (_tmp25_, _tmp28_, NULL);
		_g_free0 (config_content);
		config_content = _tmp29_;
		_g_free0 (_tmp28_);
		_g_free0 (_tmp25_);
		_g_free0 (_tmp23_);
		_g_free0 (start_steam_text);
	}
	_tmp30_ = config_content;
	_tmp31_ = start_text;
	start_pos = string_index_of (_tmp30_, _tmp31_, 0);
	_tmp32_ = config_content;
	_tmp33_ = end_text;
	_tmp34_ = end_text;
	_tmp35_ = strlen (_tmp34_);
	_tmp36_ = _tmp35_;
	end_pos = string_index_of (_tmp32_, _tmp33_, start_pos) + _tmp36_;
	_tmp37_ = config_content;
	_tmp38_ = string_substring (_tmp37_, (glong) start_pos, (glong) (end_pos - start_pos));
	_g_free0 (compat_tool_mapping_content);
	compat_tool_mapping_content = _tmp38_;
	_tmp39_ = compat_tool_mapping_content;
	_tmp40_ = g_string_new (_tmp39_);
	_g_string_free0 (compat_tool_mapping_string_builder);
	compat_tool_mapping_string_builder = _tmp40_;
	_tmp41_ = compat_tool_mapping_content;
	_tmp42_ = self->priv->_appid;
	_tmp43_ = g_strdup_printf ("%u", _tmp42_);
	_tmp44_ = _tmp43_;
	_tmp45_ = string_contains (_tmp41_, _tmp44_);
	_g_free0 (_tmp44_);
	if (_tmp45_) {
		guint _tmp46_;
		gchar* _tmp47_;
		const gchar* _tmp48_;
		const gchar* _tmp49_;
		gchar* _tmp50_;
		const gchar* _tmp51_;
		const gchar* _tmp52_;
		const gchar* _tmp53_;
		gint _tmp54_;
		gint _tmp55_;
		const gchar* _tmp56_;
		gint _tmp57_;
		gint _tmp58_;
		const gchar* _tmp59_;
		gchar* _tmp60_;
		gchar* _tmp61_;
		const gchar* _tmp62_;
		const gchar* _tmp63_;
		const gchar* _tmp64_;
		gint _tmp65_;
		gint _tmp66_;
		gchar* _tmp67_;
		const gchar* _tmp68_;
		const gchar* _tmp69_;
		gboolean compat_tool_mapping_item_appid_valid = FALSE;
		const gchar* _tmp70_;
		gchar* _tmp71_;
		gchar* _tmp72_;
		guint _tmp73_ = 0U;
		gboolean _tmp74_;
		gboolean _tmp75_;
		guint _tmp76_;
		_tmp46_ = self->priv->_appid;
		_tmp47_ = g_strdup_printf ("\n\t\t\t\t\t\"%u\"", _tmp46_);
		_g_free0 (start_text);
		start_text = _tmp47_;
		_tmp48_ = compat_tool_mapping_content;
		_tmp49_ = start_text;
		start_pos = string_index_of (_tmp48_, _tmp49_, current_position);
		if (start_pos == -1) {
			result = FALSE;
			_g_free0 (end_text);
			_g_free0 (start_text);
			_g_free0 (compat_tool_mapping_item_name);
			_g_free0 (compat_tool_mapping_item);
			_g_free0 (compat_tool_mapping_content);
			_g_string_free0 (compat_tool_mapping_string_builder);
			_g_free0 (config_content);
			_g_free0 (config_path);
			return result;
		}
		_tmp50_ = g_strdup ("}");
		_g_free0 (end_text);
		end_text = _tmp50_;
		_tmp51_ = compat_tool_mapping_content;
		_tmp52_ = end_text;
		_tmp53_ = start_text;
		_tmp54_ = strlen (_tmp53_);
		_tmp55_ = _tmp54_;
		_tmp56_ = end_text;
		_tmp57_ = strlen (_tmp56_);
		_tmp58_ = _tmp57_;
		end_pos = string_index_of (_tmp51_, _tmp52_, start_pos + _tmp55_) + _tmp58_;
		if (end_pos == -1) {
			result = FALSE;
			_g_free0 (end_text);
			_g_free0 (start_text);
			_g_free0 (compat_tool_mapping_item_name);
			_g_free0 (compat_tool_mapping_item);
			_g_free0 (compat_tool_mapping_content);
			_g_string_free0 (compat_tool_mapping_string_builder);
			_g_free0 (config_content);
			_g_free0 (config_path);
			return result;
		}
		_tmp59_ = compat_tool_mapping_content;
		_tmp60_ = string_substring (_tmp59_, (glong) start_pos, (glong) (end_pos - start_pos));
		_g_free0 (compat_tool_mapping_item);
		compat_tool_mapping_item = _tmp60_;
		current_position = end_pos;
		_tmp61_ = g_strdup ("\"");
		_g_free0 (start_text);
		start_text = _tmp61_;
		_tmp62_ = compat_tool_mapping_item;
		_tmp63_ = start_text;
		_tmp64_ = start_text;
		_tmp65_ = strlen (_tmp64_);
		_tmp66_ = _tmp65_;
		start_pos = string_index_of (_tmp62_, _tmp63_, 0) + _tmp66_;
		if (start_pos == -1) {
			result = FALSE;
			_g_free0 (end_text);
			_g_free0 (start_text);
			_g_free0 (compat_tool_mapping_item_name);
			_g_free0 (compat_tool_mapping_item);
			_g_free0 (compat_tool_mapping_content);
			_g_string_free0 (compat_tool_mapping_string_builder);
			_g_free0 (config_content);
			_g_free0 (config_path);
			return result;
		}
		_tmp67_ = g_strdup ("\"");
		_g_free0 (end_text);
		end_text = _tmp67_;
		_tmp68_ = compat_tool_mapping_item;
		_tmp69_ = end_text;
		end_pos = string_index_of (_tmp68_, _tmp69_, start_pos);
		if (end_pos == -1) {
			result = FALSE;
			_g_free0 (end_text);
			_g_free0 (start_text);
			_g_free0 (compat_tool_mapping_item_name);
			_g_free0 (compat_tool_mapping_item);
			_g_free0 (compat_tool_mapping_content);
			_g_string_free0 (compat_tool_mapping_string_builder);
			_g_free0 (config_content);
			_g_free0 (config_path);
			return result;
		}
		_tmp70_ = compat_tool_mapping_item;
		_tmp71_ = string_substring (_tmp70_, (glong) start_pos, (glong) (end_pos - start_pos));
		_tmp72_ = _tmp71_;
		_tmp74_ = uint_try_parse (_tmp72_, &_tmp73_, NULL, (guint) 0);
		compat_tool_mapping_item_appid = _tmp73_;
		_tmp75_ = _tmp74_;
		_g_free0 (_tmp72_);
		compat_tool_mapping_item_appid_valid = _tmp75_;
		if (!compat_tool_mapping_item_appid_valid) {
			result = FALSE;
			_g_free0 (end_text);
			_g_free0 (start_text);
			_g_free0 (compat_tool_mapping_item_name);
			_g_free0 (compat_tool_mapping_item);
			_g_free0 (compat_tool_mapping_content);
			_g_string_free0 (compat_tool_mapping_string_builder);
			_g_free0 (config_content);
			_g_free0 (config_path);
			return result;
		}
		_tmp76_ = self->priv->_appid;
		if (compat_tool_mapping_item_appid != _tmp76_) {
			result = FALSE;
			_g_free0 (end_text);
			_g_free0 (start_text);
			_g_free0 (compat_tool_mapping_item_name);
			_g_free0 (compat_tool_mapping_item);
			_g_free0 (compat_tool_mapping_content);
			_g_string_free0 (compat_tool_mapping_string_builder);
			_g_free0 (config_content);
			_g_free0 (config_path);
			return result;
		}
		if (g_strcmp0 (compatibility_tool, _ ("Undefined")) == 0) {
			const gchar* _tmp77_;
			const gchar* _tmp78_;
			gchar* _tmp79_;
			_tmp77_ = config_content;
			_tmp78_ = compat_tool_mapping_item;
			_tmp79_ = string_replace (_tmp77_, _tmp78_, "");
			_g_free0 (config_content);
			config_content = _tmp79_;
		} else {
			gchar* _tmp80_;
			const gchar* _tmp81_;
			const gchar* _tmp82_;
			const gchar* _tmp83_;
			gint _tmp84_;
			gint _tmp85_;
			gchar* _tmp86_;
			const gchar* _tmp87_;
			const gchar* _tmp88_;
			const gchar* _tmp89_;
			gchar* _tmp90_;
			gchar* compat_tool_mapping_item_modified = NULL;
			const gchar* _tmp91_;
			const gchar* _tmp92_;
			gchar* _tmp93_;
			const gchar* _tmp94_;
			const gchar* _tmp95_;
			const gchar* _tmp96_;
			gchar* _tmp97_;
			_tmp80_ = g_strdup ("name\"\t\t\"");
			_g_free0 (start_text);
			start_text = _tmp80_;
			_tmp81_ = compat_tool_mapping_item;
			_tmp82_ = start_text;
			_tmp83_ = start_text;
			_tmp84_ = strlen (_tmp83_);
			_tmp85_ = _tmp84_;
			start_pos = string_index_of (_tmp81_, _tmp82_, 0) + _tmp85_;
			if (start_pos == -1) {
				result = FALSE;
				_g_free0 (end_text);
				_g_free0 (start_text);
				_g_free0 (compat_tool_mapping_item_name);
				_g_free0 (compat_tool_mapping_item);
				_g_free0 (compat_tool_mapping_content);
				_g_string_free0 (compat_tool_mapping_string_builder);
				_g_free0 (config_content);
				_g_free0 (config_path);
				return result;
			}
			_tmp86_ = g_strdup ("\"");
			_g_free0 (end_text);
			end_text = _tmp86_;
			_tmp87_ = compat_tool_mapping_item;
			_tmp88_ = end_text;
			end_pos = string_index_of (_tmp87_, _tmp88_, start_pos);
			if (end_pos == -1) {
				result = FALSE;
				_g_free0 (end_text);
				_g_free0 (start_text);
				_g_free0 (compat_tool_mapping_item_name);
				_g_free0 (compat_tool_mapping_item);
				_g_free0 (compat_tool_mapping_content);
				_g_string_free0 (compat_tool_mapping_string_builder);
				_g_free0 (config_content);
				_g_free0 (config_path);
				return result;
			}
			_tmp89_ = compat_tool_mapping_item;
			_tmp90_ = string_substring (_tmp89_, (glong) start_pos, (glong) (end_pos - start_pos));
			_g_free0 (compat_tool_mapping_item_name);
			compat_tool_mapping_item_name = _tmp90_;
			_tmp91_ = compat_tool_mapping_item;
			_tmp92_ = compat_tool_mapping_item_name;
			_tmp93_ = string_replace (_tmp91_, _tmp92_, compatibility_tool);
			compat_tool_mapping_item_modified = _tmp93_;
			_tmp94_ = config_content;
			_tmp95_ = compat_tool_mapping_item;
			_tmp96_ = compat_tool_mapping_item_modified;
			_tmp97_ = string_replace (_tmp94_, _tmp95_, _tmp96_);
			_g_free0 (config_content);
			config_content = _tmp97_;
			_g_free0 (compat_tool_mapping_item_modified);
		}
	} else {
		gchar* line1 = NULL;
		guint _tmp98_;
		gchar* _tmp99_;
		gchar* line2 = NULL;
		gchar* _tmp100_;
		gchar* line3 = NULL;
		gchar* _tmp101_;
		gchar* line4 = NULL;
		gchar* _tmp102_;
		gchar* line5 = NULL;
		gchar* _tmp103_;
		gchar* line6 = NULL;
		gchar* _tmp104_;
		gchar* new_item = NULL;
		const gchar* _tmp105_;
		const gchar* _tmp106_;
		gchar* _tmp107_;
		gchar* _tmp108_;
		const gchar* _tmp109_;
		gchar* _tmp110_;
		gchar* _tmp111_;
		const gchar* _tmp112_;
		gchar* _tmp113_;
		gchar* _tmp114_;
		const gchar* _tmp115_;
		gchar* _tmp116_;
		gchar* _tmp117_;
		const gchar* _tmp118_;
		gchar* _tmp119_;
		gchar* _tmp120_;
		GString* _tmp121_;
		const gchar* _tmp122_;
		gint _tmp123_;
		gint _tmp124_;
		gint _tmp125_;
		gint _tmp126_;
		const gchar* _tmp127_;
		const gchar* _tmp128_;
		const gchar* _tmp129_;
		GString* _tmp130_;
		const gchar* _tmp131_;
		gchar* _tmp132_;
		if (g_strcmp0 (compatibility_tool, _ ("Undefined")) == 0) {
			result = TRUE;
			_g_free0 (end_text);
			_g_free0 (start_text);
			_g_free0 (compat_tool_mapping_item_name);
			_g_free0 (compat_tool_mapping_item);
			_g_free0 (compat_tool_mapping_content);
			_g_string_free0 (compat_tool_mapping_string_builder);
			_g_free0 (config_content);
			_g_free0 (config_path);
			return result;
		}
		_tmp98_ = self->priv->_appid;
		_tmp99_ = g_strdup_printf ("\n\t\t\t\t\t\"%u\"\n", _tmp98_);
		line1 = _tmp99_;
		_tmp100_ = g_strdup ("\t\t\t\t\t{\n");
		line2 = _tmp100_;
		_tmp101_ = g_strdup_printf ("\t\t\t\t\t\t\"name\"\t\t\"%s\"\n", compatibility_tool);
		line3 = _tmp101_;
		_tmp102_ = g_strdup_printf ("\t\t\t\t\t\t\"config\"\t\t\"%s\"\n", "");
		line4 = _tmp102_;
		_tmp103_ = g_strdup_printf ("\t\t\t\t\t\t\"priority\"\t\t\"%i\"\n", 250);
		line5 = _tmp103_;
		_tmp104_ = g_strdup ("\t\t\t\t\t}");
		line6 = _tmp104_;
		_tmp105_ = line1;
		_tmp106_ = line2;
		_tmp107_ = g_strconcat (_tmp105_, _tmp106_, NULL);
		_tmp108_ = _tmp107_;
		_tmp109_ = line3;
		_tmp110_ = g_strconcat (_tmp108_, _tmp109_, NULL);
		_tmp111_ = _tmp110_;
		_tmp112_ = line4;
		_tmp113_ = g_strconcat (_tmp111_, _tmp112_, NULL);
		_tmp114_ = _tmp113_;
		_tmp115_ = line5;
		_tmp116_ = g_strconcat (_tmp114_, _tmp115_, NULL);
		_tmp117_ = _tmp116_;
		_tmp118_ = line6;
		_tmp119_ = g_strconcat (_tmp117_, _tmp118_, NULL);
		_tmp120_ = _tmp119_;
		_g_free0 (_tmp117_);
		_g_free0 (_tmp114_);
		_g_free0 (_tmp111_);
		_g_free0 (_tmp108_);
		new_item = _tmp120_;
		_tmp121_ = compat_tool_mapping_string_builder;
		_tmp122_ = compat_tool_mapping_content;
		_tmp123_ = strlen (_tmp122_);
		_tmp124_ = _tmp123_;
		_tmp125_ = strlen ("\n\t\t\t\t}");
		_tmp126_ = _tmp125_;
		_tmp127_ = new_item;
		g_string_insert (_tmp121_, (gssize) (_tmp124_ - _tmp126_), _tmp127_);
		_tmp128_ = config_content;
		_tmp129_ = compat_tool_mapping_content;
		_tmp130_ = compat_tool_mapping_string_builder;
		_tmp131_ = _tmp130_->str;
		_tmp132_ = string_replace (_tmp128_, _tmp129_, _tmp131_);
		_g_free0 (config_content);
		config_content = _tmp132_;
		_g_free0 (new_item);
		_g_free0 (line6);
		_g_free0 (line5);
		_g_free0 (line4);
		_g_free0 (line3);
		_g_free0 (line2);
		_g_free0 (line1);
	}
	_tmp133_ = config_path;
	_tmp134_ = config_content;
	modified = proton_plus_utils_filesystem_modify_file (_tmp133_, _tmp134_);
	if (!modified) {
		result = FALSE;
		_g_free0 (end_text);
		_g_free0 (start_text);
		_g_free0 (compat_tool_mapping_item_name);
		_g_free0 (compat_tool_mapping_item);
		_g_free0 (compat_tool_mapping_content);
		_g_string_free0 (compat_tool_mapping_string_builder);
		_g_free0 (config_content);
		_g_free0 (config_path);
		return result;
	}
	proton_plus_models_game_set_compatibility_tool ((ProtonPlusModelsGame*) self, compatibility_tool);
	result = TRUE;
	_g_free0 (end_text);
	_g_free0 (start_text);
	_g_free0 (compat_tool_mapping_item_name);
	_g_free0 (compat_tool_mapping_item);
	_g_free0 (compat_tool_mapping_content);
	_g_string_free0 (compat_tool_mapping_string_builder);
	_g_free0 (config_content);
	_g_free0 (config_path);
	return result;
}

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

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

gboolean
proton_plus_models_games_steam_change_launch_options (ProtonPlusModelsGamesSteam* self,
                                                      const gchar* launch_options,
                                                      const gchar* localconfig_path)
{
	gchar* escaped_launch_options = NULL;
	gchar* _tmp0_;
	ProtonPlusModelsLaunchersSteam* steam_launcher = NULL;
	ProtonPlusModelsLauncher* _tmp1_;
	ProtonPlusModelsLauncher* _tmp2_;
	ProtonPlusModelsLaunchersSteam* _tmp3_;
	gboolean _tmp4_;
	gchar* config_content = NULL;
	gchar* _tmp31_;
	gchar* start_text = NULL;
	gchar* _tmp32_;
	gchar* end_text = NULL;
	gchar* _tmp33_;
	gint start_pos = 0;
	gint end_pos = 0;
	gchar* app = NULL;
	gchar* _tmp34_;
	gchar* app_launch_options = NULL;
	gchar* _tmp35_;
	gchar* app_modified = NULL;
	gchar* _tmp36_;
	guint _tmp37_;
	gchar* _tmp38_;
	const gchar* _tmp39_;
	const gchar* _tmp40_;
	const gchar* _tmp41_;
	gint _tmp42_;
	gint _tmp43_;
	gchar* _tmp44_;
	const gchar* _tmp45_;
	const gchar* _tmp46_;
	const gchar* _tmp47_;
	gint _tmp48_;
	gint _tmp49_;
	const gchar* _tmp50_;
	gchar* _tmp51_;
	const gchar* _tmp52_;
	gint _tmp53_;
	gint _tmp54_;
	const gchar* _tmp119_;
	const gchar* _tmp120_;
	const gchar* _tmp121_;
	gchar* _tmp122_;
	gboolean modified = FALSE;
	const gchar* _tmp123_;
	gboolean _tmp124_ = FALSE;
	ProtonPlusModelsLaunchersSteam* _tmp125_;
	ProtonPlusModelsSteamProfile* _tmp126_;
	ProtonPlusModelsSteamProfile* _tmp127_;
	GError* _inner_error0_ = NULL;
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	g_return_val_if_fail (launch_options != NULL, FALSE);
	g_return_val_if_fail (localconfig_path != NULL, FALSE);
	_tmp0_ = string_replace (launch_options, "\"", "\\\"");
	escaped_launch_options = _tmp0_;
	_tmp1_ = proton_plus_models_game_get_launcher ((ProtonPlusModelsGame*) self);
	_tmp2_ = _tmp1_;
	_tmp3_ = _g_object_ref0 (PROTON_PLUS_MODELS_LAUNCHERS_IS_STEAM (_tmp2_) ? ((ProtonPlusModelsLaunchersSteam*) _tmp2_) : NULL);
	steam_launcher = _tmp3_;
	_tmp4_ = self->priv->_is_non_steam;
	if (_tmp4_) {
		ProtonPlusVDFShortcut shortcut = {0};
		ProtonPlusModelsLaunchersSteam* _tmp5_;
		ProtonPlusModelsSteamProfile* _tmp6_;
		ProtonPlusModelsSteamProfile* _tmp7_;
		ProtonPlusVDFShortcuts* _tmp8_;
		ProtonPlusVDFShortcuts* _tmp9_;
		const gchar* _tmp10_;
		const gchar* _tmp11_;
		ProtonPlusVDFShortcut _tmp12_ = {0};
		const gchar* _tmp13_;
		gchar* _tmp14_;
		ProtonPlusModelsLaunchersSteam* _tmp15_;
		ProtonPlusModelsSteamProfile* _tmp16_;
		ProtonPlusModelsSteamProfile* _tmp17_;
		ProtonPlusVDFShortcuts* _tmp18_;
		ProtonPlusVDFShortcuts* _tmp19_;
		const gchar* _tmp20_;
		const gchar* _tmp21_;
		ProtonPlusVDFShortcut _tmp22_;
		_tmp5_ = steam_launcher;
		_tmp6_ = proton_plus_models_launchers_steam_get_profile (_tmp5_);
		_tmp7_ = _tmp6_;
		_tmp8_ = proton_plus_models_steam_profile_get_shortcuts (_tmp7_);
		_tmp9_ = _tmp8_;
		_tmp10_ = proton_plus_models_game_get_name ((ProtonPlusModelsGame*) self);
		_tmp11_ = _tmp10_;
		proton_plus_vdf_shortcuts_get_shortcut_by_name (_tmp9_, _tmp11_, &_tmp12_);
		shortcut = _tmp12_;
		_tmp13_ = escaped_launch_options;
		_tmp14_ = g_strdup (_tmp13_);
		_g_free0 (shortcut.LaunchOptions);
		shortcut.LaunchOptions = _tmp14_;
		_tmp15_ = steam_launcher;
		_tmp16_ = proton_plus_models_launchers_steam_get_profile (_tmp15_);
		_tmp17_ = _tmp16_;
		_tmp18_ = proton_plus_models_steam_profile_get_shortcuts (_tmp17_);
		_tmp19_ = _tmp18_;
		_tmp20_ = proton_plus_models_game_get_name ((ProtonPlusModelsGame*) self);
		_tmp21_ = _tmp20_;
		_tmp22_ = shortcut;
		proton_plus_vdf_shortcuts_replace_shortcut_by_name (_tmp19_, _tmp21_, &_tmp22_);
		{
			ProtonPlusModelsLaunchersSteam* _tmp23_;
			ProtonPlusModelsSteamProfile* _tmp24_;
			ProtonPlusModelsSteamProfile* _tmp25_;
			ProtonPlusVDFShortcuts* _tmp26_;
			ProtonPlusVDFShortcuts* _tmp27_;
			_tmp23_ = steam_launcher;
			_tmp24_ = proton_plus_models_launchers_steam_get_profile (_tmp23_);
			_tmp25_ = _tmp24_;
			_tmp26_ = proton_plus_models_steam_profile_get_shortcuts (_tmp25_);
			_tmp27_ = _tmp26_;
			proton_plus_vdf_binary_save ((ProtonPlusVDFBinary*) _tmp27_, &_inner_error0_);
			if (G_UNLIKELY (_inner_error0_ != NULL)) {
				goto __catch0_g_error;
			}
		}
		goto __finally0;
		__catch0_g_error:
		{
			GError* _error_ = NULL;
			GError* _tmp28_;
			const gchar* _tmp29_;
			_error_ = _inner_error0_;
			_inner_error0_ = NULL;
			_tmp28_ = _error_;
			_tmp29_ = _tmp28_->message;
			g_warning ("steam.vala:154: %s", _tmp29_);
			result = FALSE;
			_g_error_free0 (_error_);
			proton_plus_vdf_shortcut_destroy (&shortcut);
			_g_object_unref0 (steam_launcher);
			_g_free0 (escaped_launch_options);
			return result;
		}
		__finally0:
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			gboolean _tmp30_ = FALSE;
			proton_plus_vdf_shortcut_destroy (&shortcut);
			_g_object_unref0 (steam_launcher);
			_g_free0 (escaped_launch_options);
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
			g_clear_error (&_inner_error0_);
			return _tmp30_;
		}
		proton_plus_models_games_steam_set_launch_options (self, launch_options);
		result = TRUE;
		proton_plus_vdf_shortcut_destroy (&shortcut);
		_g_object_unref0 (steam_launcher);
		_g_free0 (escaped_launch_options);
		return result;
	}
	_tmp31_ = proton_plus_utils_filesystem_get_file_content (localconfig_path, FALSE);
	config_content = _tmp31_;
	_tmp32_ = g_strdup ("");
	start_text = _tmp32_;
	_tmp33_ = g_strdup ("");
	end_text = _tmp33_;
	start_pos = 0;
	end_pos = 0;
	_tmp34_ = g_strdup ("");
	app = _tmp34_;
	_tmp35_ = g_strdup ("");
	app_launch_options = _tmp35_;
	_tmp36_ = g_strdup ("");
	app_modified = _tmp36_;
	_tmp37_ = self->priv->_appid;
	_tmp38_ = g_strdup_printf ("%u\"\n\t\t\t\t\t{", _tmp37_);
	_g_free0 (start_text);
	start_text = _tmp38_;
	_tmp39_ = config_content;
	_tmp40_ = start_text;
	_tmp41_ = start_text;
	_tmp42_ = strlen (_tmp41_);
	_tmp43_ = _tmp42_;
	start_pos = (string_index_of (_tmp39_, _tmp40_, 0) + _tmp43_) - 1;
	if (start_pos == -1) {
		result = FALSE;
		_g_free0 (app_modified);
		_g_free0 (app_launch_options);
		_g_free0 (app);
		_g_free0 (end_text);
		_g_free0 (start_text);
		_g_free0 (config_content);
		_g_object_unref0 (steam_launcher);
		_g_free0 (escaped_launch_options);
		return result;
	}
	_tmp44_ = g_strdup ("\n\t\t\t\t\t}");
	_g_free0 (end_text);
	end_text = _tmp44_;
	_tmp45_ = config_content;
	_tmp46_ = end_text;
	_tmp47_ = end_text;
	_tmp48_ = strlen (_tmp47_);
	_tmp49_ = _tmp48_;
	end_pos = string_index_of (_tmp45_, _tmp46_, start_pos) + _tmp49_;
	if (end_pos == -1) {
		result = FALSE;
		_g_free0 (app_modified);
		_g_free0 (app_launch_options);
		_g_free0 (app);
		_g_free0 (end_text);
		_g_free0 (start_text);
		_g_free0 (config_content);
		_g_object_unref0 (steam_launcher);
		_g_free0 (escaped_launch_options);
		return result;
	}
	_tmp50_ = config_content;
	_tmp51_ = string_substring (_tmp50_, (glong) start_pos, (glong) (end_pos - start_pos));
	_g_free0 (app);
	app = _tmp51_;
	_tmp52_ = escaped_launch_options;
	_tmp53_ = strlen (_tmp52_);
	_tmp54_ = _tmp53_;
	if (_tmp54_ == 0) {
		const gchar* _tmp55_;
		_tmp55_ = app;
		if (string_contains (_tmp55_, "LaunchOptions")) {
			gchar* _tmp56_;
			const gchar* _tmp57_;
			const gchar* _tmp58_;
			gchar* _tmp59_;
			const gchar* _tmp60_;
			const gchar* _tmp61_;
			const gchar* _tmp62_;
			gint _tmp63_;
			gint _tmp64_;
			const gchar* _tmp65_;
			gint _tmp66_;
			gint _tmp67_;
			const gchar* _tmp68_;
			gchar* _tmp69_;
			const gchar* _tmp70_;
			const gchar* _tmp71_;
			gchar* _tmp72_;
			_tmp56_ = g_strdup ("\n\t\t\t\t\t\t\"LaunchOptions\"\t\t\"");
			_g_free0 (start_text);
			start_text = _tmp56_;
			_tmp57_ = app;
			_tmp58_ = start_text;
			start_pos = string_index_of (_tmp57_, _tmp58_, 0);
			if (start_pos == -1) {
				result = FALSE;
				_g_free0 (app_modified);
				_g_free0 (app_launch_options);
				_g_free0 (app);
				_g_free0 (end_text);
				_g_free0 (start_text);
				_g_free0 (config_content);
				_g_object_unref0 (steam_launcher);
				_g_free0 (escaped_launch_options);
				return result;
			}
			_tmp59_ = g_strdup ("\"\n");
			_g_free0 (end_text);
			end_text = _tmp59_;
			_tmp60_ = app;
			_tmp61_ = end_text;
			_tmp62_ = start_text;
			_tmp63_ = strlen (_tmp62_);
			_tmp64_ = _tmp63_;
			end_pos = string_index_of (_tmp60_, _tmp61_, start_pos + _tmp64_);
			if (end_pos == -1) {
				result = FALSE;
				_g_free0 (app_modified);
				_g_free0 (app_launch_options);
				_g_free0 (app);
				_g_free0 (end_text);
				_g_free0 (start_text);
				_g_free0 (config_content);
				_g_object_unref0 (steam_launcher);
				_g_free0 (escaped_launch_options);
				return result;
			}
			_tmp65_ = end_text;
			_tmp66_ = strlen (_tmp65_);
			_tmp67_ = _tmp66_;
			end_pos = (end_pos + _tmp67_) - 1;
			_tmp68_ = app;
			_tmp69_ = string_substring (_tmp68_, (glong) start_pos, (glong) (end_pos - start_pos));
			_g_free0 (app_launch_options);
			app_launch_options = _tmp69_;
			_tmp70_ = app;
			_tmp71_ = app_launch_options;
			_tmp72_ = string_replace (_tmp70_, _tmp71_, "");
			_g_free0 (app_modified);
			app_modified = _tmp72_;
		}
	} else {
		const gchar* _tmp73_;
		_tmp73_ = app;
		if (string_contains (_tmp73_, "LaunchOptions")) {
			gchar* _tmp74_;
			const gchar* _tmp75_;
			const gchar* _tmp76_;
			const gchar* _tmp77_;
			gint _tmp78_;
			gint _tmp79_;
			gchar* _tmp80_;
			const gchar* _tmp81_;
			const gchar* _tmp82_;
			const gchar* _tmp83_;
			gchar* _tmp84_;
			const gchar* _tmp85_;
			gint _tmp86_;
			gint _tmp87_;
			_tmp74_ = g_strdup ("LaunchOptions\"\t\t\"");
			_g_free0 (start_text);
			start_text = _tmp74_;
			_tmp75_ = app;
			_tmp76_ = start_text;
			_tmp77_ = start_text;
			_tmp78_ = strlen (_tmp77_);
			_tmp79_ = _tmp78_;
			start_pos = string_index_of (_tmp75_, _tmp76_, 0) + _tmp79_;
			if (start_pos == -1) {
				result = FALSE;
				_g_free0 (app_modified);
				_g_free0 (app_launch_options);
				_g_free0 (app);
				_g_free0 (end_text);
				_g_free0 (start_text);
				_g_free0 (config_content);
				_g_object_unref0 (steam_launcher);
				_g_free0 (escaped_launch_options);
				return result;
			}
			_tmp80_ = g_strdup ("\"\n");
			_g_free0 (end_text);
			end_text = _tmp80_;
			_tmp81_ = app;
			_tmp82_ = end_text;
			end_pos = string_index_of (_tmp81_, _tmp82_, start_pos);
			if (end_pos == -1) {
				result = FALSE;
				_g_free0 (app_modified);
				_g_free0 (app_launch_options);
				_g_free0 (app);
				_g_free0 (end_text);
				_g_free0 (start_text);
				_g_free0 (config_content);
				_g_object_unref0 (steam_launcher);
				_g_free0 (escaped_launch_options);
				return result;
			}
			_tmp83_ = app;
			_tmp84_ = string_substring (_tmp83_, (glong) start_pos, (glong) (end_pos - start_pos));
			_g_free0 (app_launch_options);
			app_launch_options = _tmp84_;
			_tmp85_ = app_launch_options;
			_tmp86_ = strlen (_tmp85_);
			_tmp87_ = _tmp86_;
			if (_tmp87_ > 0) {
				const gchar* _tmp88_;
				const gchar* _tmp89_;
				const gchar* _tmp90_;
				gchar* _tmp91_;
				_tmp88_ = app;
				_tmp89_ = app_launch_options;
				_tmp90_ = escaped_launch_options;
				_tmp91_ = string_replace (_tmp88_, _tmp89_, _tmp90_);
				_g_free0 (app_modified);
				app_modified = _tmp91_;
			} else {
				gchar* before = NULL;
				const gchar* _tmp92_;
				gchar* _tmp93_;
				gchar* after = NULL;
				const gchar* _tmp94_;
				const gchar* _tmp95_;
				gint _tmp96_;
				gint _tmp97_;
				const gchar* _tmp98_;
				gint _tmp99_;
				gint _tmp100_;
				gchar* _tmp101_;
				const gchar* _tmp102_;
				const gchar* _tmp103_;
				const gchar* _tmp104_;
				gchar* _tmp105_;
				_tmp92_ = app;
				_tmp93_ = string_substring (_tmp92_, (glong) 0, (glong) start_pos);
				before = _tmp93_;
				_tmp94_ = app;
				_tmp95_ = app;
				_tmp96_ = strlen (_tmp95_);
				_tmp97_ = _tmp96_;
				_tmp98_ = before;
				_tmp99_ = strlen (_tmp98_);
				_tmp100_ = _tmp99_;
				_tmp101_ = string_substring (_tmp94_, (glong) start_pos, (glong) (_tmp97_ - _tmp100_));
				after = _tmp101_;
				_tmp102_ = before;
				_tmp103_ = escaped_launch_options;
				_tmp104_ = after;
				_tmp105_ = g_strdup_printf ("%s%s%s", _tmp102_, _tmp103_, _tmp104_);
				_g_free0 (app_modified);
				app_modified = _tmp105_;
				_g_free0 (after);
				_g_free0 (before);
			}
		} else {
			const gchar* _tmp106_;
			gchar* _tmp107_;
			const gchar* _tmp108_;
			const gchar* _tmp109_;
			gchar* _tmp110_;
			gchar* _tmp111_;
			const gchar* _tmp112_;
			gchar* _tmp113_;
			gchar* _tmp114_;
			const gchar* _tmp115_;
			gchar* _tmp116_;
			gchar* _tmp117_;
			gchar* _tmp118_;
			_tmp106_ = escaped_launch_options;
			_tmp107_ = g_strdup_printf ("\n\t\t\t\t\t\t\"LaunchOptions\"\t\t\"%s\"", _tmp106_);
			_g_free0 (app_launch_options);
			app_launch_options = _tmp107_;
			_tmp108_ = app;
			end_pos = string_last_index_of (_tmp108_, "\n\t\t\t\t\t}", 0);
			if (end_pos == -1) {
				result = FALSE;
				_g_free0 (app_modified);
				_g_free0 (app_launch_options);
				_g_free0 (app);
				_g_free0 (end_text);
				_g_free0 (start_text);
				_g_free0 (config_content);
				_g_object_unref0 (steam_launcher);
				_g_free0 (escaped_launch_options);
				return result;
			}
			_tmp109_ = app;
			_tmp110_ = string_substring (_tmp109_, (glong) 0, (glong) end_pos);
			_tmp111_ = _tmp110_;
			_tmp112_ = app_launch_options;
			_tmp113_ = g_strconcat (_tmp111_, _tmp112_, NULL);
			_tmp114_ = _tmp113_;
			_tmp115_ = app;
			_tmp116_ = string_substring (_tmp115_, (glong) end_pos, (glong) -1);
			_tmp117_ = _tmp116_;
			_tmp118_ = g_strconcat (_tmp114_, _tmp117_, NULL);
			_g_free0 (app_modified);
			app_modified = _tmp118_;
			_g_free0 (_tmp117_);
			_g_free0 (_tmp114_);
			_g_free0 (_tmp111_);
		}
	}
	_tmp119_ = config_content;
	_tmp120_ = app;
	_tmp121_ = app_modified;
	_tmp122_ = string_replace (_tmp119_, _tmp120_, _tmp121_);
	_g_free0 (config_content);
	config_content = _tmp122_;
	_tmp123_ = config_content;
	modified = proton_plus_utils_filesystem_modify_file (localconfig_path, _tmp123_);
	if (!modified) {
		result = FALSE;
		_g_free0 (app_modified);
		_g_free0 (app_launch_options);
		_g_free0 (app);
		_g_free0 (end_text);
		_g_free0 (start_text);
		_g_free0 (config_content);
		_g_object_unref0 (steam_launcher);
		_g_free0 (escaped_launch_options);
		return result;
	}
	proton_plus_models_games_steam_set_launch_options (self, launch_options);
	_tmp125_ = steam_launcher;
	_tmp126_ = proton_plus_models_launchers_steam_get_profile (_tmp125_);
	_tmp127_ = _tmp126_;
	if (_tmp127_ != NULL) {
		ProtonPlusModelsLaunchersSteam* _tmp128_;
		ProtonPlusModelsSteamProfile* _tmp129_;
		ProtonPlusModelsSteamProfile* _tmp130_;
		GHashTable* _tmp131_;
		_tmp128_ = steam_launcher;
		_tmp129_ = proton_plus_models_launchers_steam_get_profile (_tmp128_);
		_tmp130_ = _tmp129_;
		_tmp131_ = _tmp130_->launch_options_hashtable;
		_tmp124_ = _tmp131_ != NULL;
	} else {
		_tmp124_ = FALSE;
	}
	if (_tmp124_) {
		ProtonPlusModelsLaunchersSteam* _tmp132_;
		ProtonPlusModelsSteamProfile* _tmp133_;
		ProtonPlusModelsSteamProfile* _tmp134_;
		GHashTable* _tmp135_;
		guint _tmp136_;
		gchar* _tmp137_;
		_tmp132_ = steam_launcher;
		_tmp133_ = proton_plus_models_launchers_steam_get_profile (_tmp132_);
		_tmp134_ = _tmp133_;
		_tmp135_ = _tmp134_->launch_options_hashtable;
		_tmp136_ = self->priv->_appid;
		_tmp137_ = g_strdup (launch_options);
		g_hash_table_insert (_tmp135_, (gpointer) ((guintptr) _tmp136_), _tmp137_);
	}
	result = TRUE;
	_g_free0 (app_modified);
	_g_free0 (app_launch_options);
	_g_free0 (app);
	_g_free0 (end_text);
	_g_free0 (start_text);
	_g_free0 (config_content);
	_g_object_unref0 (steam_launcher);
	_g_free0 (escaped_launch_options);
	return result;
}

guint
proton_plus_models_games_steam_get_appid (ProtonPlusModelsGamesSteam* self)
{
	guint result;
	g_return_val_if_fail (self != NULL, 0U);
	result = self->priv->_appid;
	return result;
}

void
proton_plus_models_games_steam_set_appid (ProtonPlusModelsGamesSteam* self,
                                          guint value)
{
	guint old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_games_steam_get_appid (self);
	if (old_value != value) {
		self->priv->_appid = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_games_steam_properties[PROTON_PLUS_MODELS_GAMES_STEAM_APPID_PROPERTY]);
	}
}

gint
proton_plus_models_games_steam_get_library_folder_id (ProtonPlusModelsGamesSteam* self)
{
	gint result;
	g_return_val_if_fail (self != NULL, -1);
	result = self->priv->_library_folder_id;
	return result;
}

void
proton_plus_models_games_steam_set_library_folder_id (ProtonPlusModelsGamesSteam* self,
                                                      gint value)
{
	gint old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_games_steam_get_library_folder_id (self);
	if (old_value != value) {
		self->priv->_library_folder_id = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_games_steam_properties[PROTON_PLUS_MODELS_GAMES_STEAM_LIBRARY_FOLDER_ID_PROPERTY]);
	}
}

const gchar*
proton_plus_models_games_steam_get_library_folder_path (ProtonPlusModelsGamesSteam* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_library_folder_path;
	result = _tmp0_;
	return result;
}

void
proton_plus_models_games_steam_set_library_folder_path (ProtonPlusModelsGamesSteam* self,
                                                        const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_games_steam_get_library_folder_path (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_library_folder_path);
		self->priv->_library_folder_path = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_games_steam_properties[PROTON_PLUS_MODELS_GAMES_STEAM_LIBRARY_FOLDER_PATH_PROPERTY]);
	}
}

const gchar*
proton_plus_models_games_steam_get_awacy_name (ProtonPlusModelsGamesSteam* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_awacy_name;
	result = _tmp0_;
	return result;
}

void
proton_plus_models_games_steam_set_awacy_name (ProtonPlusModelsGamesSteam* self,
                                               const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_games_steam_get_awacy_name (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_awacy_name);
		self->priv->_awacy_name = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_games_steam_properties[PROTON_PLUS_MODELS_GAMES_STEAM_AWACY_NAME_PROPERTY]);
	}
}

const gchar*
proton_plus_models_games_steam_get_awacy_status (ProtonPlusModelsGamesSteam* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_awacy_status;
	result = _tmp0_;
	return result;
}

void
proton_plus_models_games_steam_set_awacy_status (ProtonPlusModelsGamesSteam* self,
                                                 const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_games_steam_get_awacy_status (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_awacy_status);
		self->priv->_awacy_status = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_games_steam_properties[PROTON_PLUS_MODELS_GAMES_STEAM_AWACY_STATUS_PROPERTY]);
	}
}

const gchar*
proton_plus_models_games_steam_get_launch_options (ProtonPlusModelsGamesSteam* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_launch_options;
	result = _tmp0_;
	return result;
}

void
proton_plus_models_games_steam_set_launch_options (ProtonPlusModelsGamesSteam* self,
                                                   const gchar* value)
{
	gchar* old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_games_steam_get_launch_options (self);
	if (g_strcmp0 (value, old_value) != 0) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup (value);
		_g_free0 (self->priv->_launch_options);
		self->priv->_launch_options = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_games_steam_properties[PROTON_PLUS_MODELS_GAMES_STEAM_LAUNCH_OPTIONS_PROPERTY]);
	}
}

gboolean
proton_plus_models_games_steam_get_is_non_steam (ProtonPlusModelsGamesSteam* self)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	result = self->priv->_is_non_steam;
	return result;
}

void
proton_plus_models_games_steam_set_is_non_steam (ProtonPlusModelsGamesSteam* self,
                                                 gboolean value)
{
	gboolean old_value;
	g_return_if_fail (self != NULL);
	old_value = proton_plus_models_games_steam_get_is_non_steam (self);
	if (old_value != value) {
		self->priv->_is_non_steam = value;
		g_object_notify_by_pspec ((GObject *) self, proton_plus_models_games_steam_properties[PROTON_PLUS_MODELS_GAMES_STEAM_IS_NON_STEAM_PROPERTY]);
	}
}

static inline gpointer
proton_plus_models_games_steam_awacy_game_get_instance_private (ProtonPlusModelsGamesSteamAwacyGame* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusModelsGamesSteamAwacyGame_private_offset);
}

ProtonPlusModelsGamesSteamAwacyGame*
proton_plus_models_games_steam_awacy_game_construct (GType object_type,
                                                     gint appid,
                                                     const gchar* name,
                                                     const gchar* status)
{
	ProtonPlusModelsGamesSteamAwacyGame* self = NULL;
	g_return_val_if_fail (name != NULL, NULL);
	g_return_val_if_fail (status != NULL, NULL);
	self = (ProtonPlusModelsGamesSteamAwacyGame*) g_type_create_instance (object_type);
	proton_plus_models_games_steam_awacy_game_set_appid (self, appid);
	proton_plus_models_games_steam_awacy_game_set_name (self, name);
	proton_plus_models_games_steam_awacy_game_set_status (self, status);
	return self;
}

ProtonPlusModelsGamesSteamAwacyGame*
proton_plus_models_games_steam_awacy_game_new (gint appid,
                                               const gchar* name,
                                               const gchar* status)
{
	return proton_plus_models_games_steam_awacy_game_construct (PROTON_PLUS_MODELS_GAMES_STEAM_TYPE_AWACY_GAME, appid, name, status);
}

static void
_proton_plus_models_games_steam_awacy_game_unref0_ (gpointer var)
{
	(var == NULL) ? NULL : (var = (proton_plus_models_games_steam_awacy_game_unref (var), NULL));
}

static inline void
_g_list_free__proton_plus_models_games_steam_awacy_game_unref0_ (GList* self)
{
	g_list_free_full (self, (GDestroyNotify) _proton_plus_models_games_steam_awacy_game_unref0_);
}

static void
proton_plus_models_games_steam_awacy_game_get_awacy_games_data_free (gpointer _data)
{
	ProtonPlusModelsGamesSteamAwacyGameGetAwacyGamesData* _data_;
	_data_ = _data;
	(_data_->result == NULL) ? NULL : (_data_->result = (_g_list_free__proton_plus_models_games_steam_awacy_game_unref0_ (_data_->result), NULL));
	g_slice_free (ProtonPlusModelsGamesSteamAwacyGameGetAwacyGamesData, _data_);
}

void
proton_plus_models_games_steam_awacy_game_get_awacy_games (GAsyncReadyCallback _callback_,
                                                           gpointer _user_data_)
{
	ProtonPlusModelsGamesSteamAwacyGameGetAwacyGamesData* _data_;
	_data_ = g_slice_new0 (ProtonPlusModelsGamesSteamAwacyGameGetAwacyGamesData);
	_data_->_async_result = g_task_new (NULL, NULL, _callback_, _user_data_);
	g_task_set_task_data (_data_->_async_result, _data_, proton_plus_models_games_steam_awacy_game_get_awacy_games_data_free);
	proton_plus_models_games_steam_awacy_game_get_awacy_games_co (_data_);
}

GList*
proton_plus_models_games_steam_awacy_game_get_awacy_games_finish (GAsyncResult* _res_)
{
	GList* result;
	ProtonPlusModelsGamesSteamAwacyGameGetAwacyGamesData* _data_;
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
	result = _data_->result;
	_data_->result = NULL;
	return result;
}

static void
proton_plus_models_games_steam_awacy_game_get_awacy_games_ready (GObject* source_object,
                                                                 GAsyncResult* _res_,
                                                                 gpointer _user_data_)
{
	ProtonPlusModelsGamesSteamAwacyGameGetAwacyGamesData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	proton_plus_models_games_steam_awacy_game_get_awacy_games_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 gpointer
_json_object_ref0 (gpointer self)
{
	return self ? json_object_ref (self) : NULL;
}

static gboolean
int_try_parse (const gchar* str,
               gint* _result_,
               const gchar** unparsed,
               guint _base)
{
	gint _vala__result_ = 0;
	const gchar* _vala_unparsed = NULL;
	gchar* endptr = NULL;
	glong long_result = 0L;
	gchar* _tmp0_ = NULL;
	glong _tmp1_;
	gchar* _tmp2_;
	gint _tmp3_;
	gint _tmp4_;
	glong _tmp6_;
	gboolean result;
	g_return_val_if_fail (str != NULL, FALSE);
	errno = 0;
	_tmp1_ = strtol (str, &_tmp0_, (gint) _base);
	endptr = _tmp0_;
	long_result = _tmp1_;
	_tmp2_ = endptr;
	_tmp3_ = strlen (str);
	_tmp4_ = _tmp3_;
	if (_tmp2_ == (((gchar*) str) + _tmp4_)) {
		_vala_unparsed = "";
	} else {
		gchar* _tmp5_;
		_tmp5_ = endptr;
		_vala_unparsed = (const gchar*) _tmp5_;
	}
	_tmp6_ = long_result;
	if ((((glong) G_MININT) <= _tmp6_) && (_tmp6_ <= ((glong) G_MAXINT))) {
		gboolean _tmp7_ = FALSE;
		gboolean _tmp8_ = FALSE;
		_vala__result_ = (gint) long_result;
		if (errno != ERANGE) {
			_tmp8_ = errno != EINVAL;
		} else {
			_tmp8_ = FALSE;
		}
		if (_tmp8_) {
			const gchar* _tmp9_;
			gchar* _tmp10_;
			_tmp9_ = _vala_unparsed;
			_tmp10_ = endptr;
			_tmp7_ = _tmp9_ != _tmp10_;
		} else {
			_tmp7_ = FALSE;
		}
		result = _tmp7_;
		if (_result_) {
			*_result_ = _vala__result_;
		}
		if (unparsed) {
			*unparsed = _vala_unparsed;
		}
		return result;
	} else {
		_vala__result_ = G_MAXINT;
		result = FALSE;
		if (_result_) {
			*_result_ = _vala__result_;
		}
		if (unparsed) {
			*unparsed = _vala_unparsed;
		}
		return result;
	}
}

static gpointer
_proton_plus_models_games_steam_awacy_game_ref0 (gpointer self)
{
	return self ? proton_plus_models_games_steam_awacy_game_ref (self) : NULL;
}

static gboolean
proton_plus_models_games_steam_awacy_game_get_awacy_games_co (ProtonPlusModelsGamesSteamAwacyGameGetAwacyGamesData* _data_)
{
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->games = NULL;
	_data_->_tmp0_ = NULL;
	_data_->_state_ = 1;
	proton_plus_utils_web_get_request ("https://raw.githubusercontent.com/AreWeAntiCheatYet/AreWeAntiCheatYet/" \
"refs/heads/master/games.json", PROTON_PLUS_UTILS_WEB_GET_TYPE_OTHER, proton_plus_models_games_steam_awacy_game_get_awacy_games_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_->get_code = _data_->_tmp1_;
	if (_data_->get_code != PROTON_PLUS_RETURN_CODE_VALID_REQUEST) {
		_data_->result = _data_->games;
		_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 (_data_->_tmp4_ == NULL) {
		_data_->result = _data_->games;
		__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;
	if (json_node_get_node_type (_data_->_tmp5_) != JSON_NODE_ARRAY) {
		_data_->result = _data_->games;
		__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_->_tmp6_ = _data_->root_node;
	_data_->_tmp7_ = json_node_get_array (_data_->_tmp6_);
	_data_->_tmp8_ = _json_array_ref0 (_data_->_tmp7_);
	_data_->root_array = _data_->_tmp8_;
	_data_->_tmp9_ = _data_->root_array;
	if (_data_->_tmp9_ == NULL) {
		_data_->result = _data_->games;
		_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_->i = 0;
		{
			_data_->_tmp10_ = TRUE;
			while (TRUE) {
				if (!_data_->_tmp10_) {
					_data_->_tmp11_ = _data_->i;
					_data_->i = _data_->_tmp11_ + 1;
				}
				_data_->_tmp10_ = FALSE;
				_data_->_tmp12_ = _data_->root_array;
				if (!(((guint) _data_->i) < json_array_get_length (_data_->_tmp12_))) {
					break;
				}
				_data_->_tmp13_ = _data_->root_array;
				_data_->_tmp14_ = json_array_get_object_element (_data_->_tmp13_, (guint) _data_->i);
				_data_->_tmp15_ = _json_object_ref0 (_data_->_tmp14_);
				_data_->object = _data_->_tmp15_;
				_data_->_tmp16_ = _data_->object;
				_data_->_tmp17_ = json_object_get_object_member (_data_->_tmp16_, "storeIds");
				_data_->_tmp18_ = _json_object_ref0 (_data_->_tmp17_);
				_data_->storeids_object = _data_->_tmp18_;
				_data_->_tmp19_ = _data_->storeids_object;
				if (_data_->_tmp19_ == NULL) {
					_json_object_unref0 (_data_->storeids_object);
					_json_object_unref0 (_data_->object);
					continue;
				}
				_data_->_tmp20_ = _data_->storeids_object;
				if (!json_object_has_member (_data_->_tmp20_, "steam")) {
					_json_object_unref0 (_data_->storeids_object);
					_json_object_unref0 (_data_->object);
					continue;
				}
				_data_->appid = 0;
				_data_->_tmp21_ = _data_->storeids_object;
				_data_->_tmp22_ = json_object_get_string_member (_data_->_tmp21_, "steam");
				_data_->_tmp23_ = 0;
				_data_->_tmp24_ = int_try_parse (_data_->_tmp22_, &_data_->_tmp23_, NULL, (guint) 0);
				_data_->appid = _data_->_tmp23_;
				if (!_data_->_tmp24_) {
					_json_object_unref0 (_data_->storeids_object);
					_json_object_unref0 (_data_->object);
					continue;
				}
				_data_->_tmp25_ = _data_->object;
				if (!json_object_has_member (_data_->_tmp25_, "slug")) {
					_json_object_unref0 (_data_->storeids_object);
					_json_object_unref0 (_data_->object);
					continue;
				}
				_data_->_tmp26_ = _data_->object;
				_data_->_tmp27_ = json_object_get_string_member (_data_->_tmp26_, "slug");
				_data_->_tmp28_ = g_strdup (_data_->_tmp27_);
				_data_->name = _data_->_tmp28_;
				_data_->_tmp29_ = _data_->object;
				if (!json_object_has_member (_data_->_tmp29_, "status")) {
					_g_free0 (_data_->name);
					_json_object_unref0 (_data_->storeids_object);
					_json_object_unref0 (_data_->object);
					continue;
				}
				_data_->_tmp30_ = _data_->object;
				_data_->_tmp31_ = json_object_get_string_member (_data_->_tmp30_, "status");
				_data_->_tmp32_ = g_strdup (_data_->_tmp31_);
				_data_->status = _data_->_tmp32_;
				_data_->_tmp33_ = _data_->name;
				_data_->_tmp34_ = _data_->status;
				_data_->_tmp35_ = proton_plus_models_games_steam_awacy_game_new (_data_->appid, _data_->_tmp33_, _data_->_tmp34_);
				_data_->game = _data_->_tmp35_;
				_data_->_tmp36_ = _data_->game;
				_data_->_tmp37_ = _proton_plus_models_games_steam_awacy_game_ref0 (_data_->_tmp36_);
				_data_->games = g_list_append (_data_->games, _data_->_tmp37_);
				_proton_plus_models_games_steam_awacy_game_unref0 (_data_->game);
				_g_free0 (_data_->status);
				_g_free0 (_data_->name);
				_json_object_unref0 (_data_->storeids_object);
				_json_object_unref0 (_data_->object);
			}
		}
	}
	_data_->result = _data_->games;
	_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;
}

gint
proton_plus_models_games_steam_awacy_game_get_appid (ProtonPlusModelsGamesSteamAwacyGame* self)
{
	gint result;
	g_return_val_if_fail (self != NULL, -1);
	result = self->priv->_appid;
	return result;
}

void
proton_plus_models_games_steam_awacy_game_set_appid (ProtonPlusModelsGamesSteamAwacyGame* self,
                                                     gint value)
{
	g_return_if_fail (self != NULL);
	self->priv->_appid = value;
}

const gchar*
proton_plus_models_games_steam_awacy_game_get_name (ProtonPlusModelsGamesSteamAwacyGame* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_name;
	result = _tmp0_;
	return result;
}

void
proton_plus_models_games_steam_awacy_game_set_name (ProtonPlusModelsGamesSteamAwacyGame* self,
                                                    const gchar* value)
{
	gchar* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = g_strdup (value);
	_g_free0 (self->priv->_name);
	self->priv->_name = _tmp0_;
}

const gchar*
proton_plus_models_games_steam_awacy_game_get_status (ProtonPlusModelsGamesSteamAwacyGame* self)
{
	const gchar* result;
	const gchar* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_status;
	result = _tmp0_;
	return result;
}

void
proton_plus_models_games_steam_awacy_game_set_status (ProtonPlusModelsGamesSteamAwacyGame* self,
                                                      const gchar* value)
{
	gchar* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = g_strdup (value);
	_g_free0 (self->priv->_status);
	self->priv->_status = _tmp0_;
}

static void
proton_plus_models_games_steam_value_awacy_game_init (GValue* value)
{
	value->data[0].v_pointer = NULL;
}

static void
proton_plus_models_games_steam_value_awacy_game_free_value (GValue* value)
{
	if (value->data[0].v_pointer) {
		proton_plus_models_games_steam_awacy_game_unref (value->data[0].v_pointer);
	}
}

static void
proton_plus_models_games_steam_value_awacy_game_copy_value (const GValue* src_value,
                                                            GValue* dest_value)
{
	if (src_value->data[0].v_pointer) {
		dest_value->data[0].v_pointer = proton_plus_models_games_steam_awacy_game_ref (src_value->data[0].v_pointer);
	} else {
		dest_value->data[0].v_pointer = NULL;
	}
}

static gpointer
proton_plus_models_games_steam_value_awacy_game_peek_pointer (const GValue* value)
{
	return value->data[0].v_pointer;
}

static gchar*
proton_plus_models_games_steam_value_awacy_game_collect_value (GValue* value,
                                                               guint n_collect_values,
                                                               GTypeCValue* collect_values,
                                                               guint collect_flags)
{
	if (collect_values[0].v_pointer) {
		ProtonPlusModelsGamesSteamAwacyGame * object;
		object = collect_values[0].v_pointer;
		if (object->parent_instance.g_class == NULL) {
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
			return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
		}
		value->data[0].v_pointer = proton_plus_models_games_steam_awacy_game_ref (object);
	} else {
		value->data[0].v_pointer = NULL;
	}
	return NULL;
}

static gchar*
proton_plus_models_games_steam_value_awacy_game_lcopy_value (const GValue* value,
                                                             guint n_collect_values,
                                                             GTypeCValue* collect_values,
                                                             guint collect_flags)
{
	ProtonPlusModelsGamesSteamAwacyGame ** object_p;
	object_p = collect_values[0].v_pointer;
	if (!object_p) {
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
	}
	if (!value->data[0].v_pointer) {
		*object_p = NULL;
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
		*object_p = value->data[0].v_pointer;
	} else {
		*object_p = proton_plus_models_games_steam_awacy_game_ref (value->data[0].v_pointer);
	}
	return NULL;
}

GParamSpec*
proton_plus_models_games_steam_param_spec_awacy_game (const gchar* name,
                                                      const gchar* nick,
                                                      const gchar* blurb,
                                                      GType object_type,
                                                      GParamFlags flags)
{
	ProtonPlusModelsGamesSteamParamSpecAwacyGame* spec;
	g_return_val_if_fail (g_type_is_a (object_type, PROTON_PLUS_MODELS_GAMES_STEAM_TYPE_AWACY_GAME), NULL);
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
	G_PARAM_SPEC (spec)->value_type = object_type;
	return G_PARAM_SPEC (spec);
}

gpointer
proton_plus_models_games_steam_value_get_awacy_game (const GValue* value)
{
	g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PROTON_PLUS_MODELS_GAMES_STEAM_TYPE_AWACY_GAME), NULL);
	return value->data[0].v_pointer;
}

void
proton_plus_models_games_steam_value_set_awacy_game (GValue* value,
                                                     gpointer v_object)
{
	ProtonPlusModelsGamesSteamAwacyGame * old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PROTON_PLUS_MODELS_GAMES_STEAM_TYPE_AWACY_GAME));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PROTON_PLUS_MODELS_GAMES_STEAM_TYPE_AWACY_GAME));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
		proton_plus_models_games_steam_awacy_game_ref (value->data[0].v_pointer);
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		proton_plus_models_games_steam_awacy_game_unref (old);
	}
}

void
proton_plus_models_games_steam_value_take_awacy_game (GValue* value,
                                                      gpointer v_object)
{
	ProtonPlusModelsGamesSteamAwacyGame * old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PROTON_PLUS_MODELS_GAMES_STEAM_TYPE_AWACY_GAME));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PROTON_PLUS_MODELS_GAMES_STEAM_TYPE_AWACY_GAME));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		proton_plus_models_games_steam_awacy_game_unref (old);
	}
}

static void
proton_plus_models_games_steam_awacy_game_class_init (ProtonPlusModelsGamesSteamAwacyGameClass * klass,
                                                      gpointer klass_data)
{
	proton_plus_models_games_steam_awacy_game_parent_class = g_type_class_peek_parent (klass);
	((ProtonPlusModelsGamesSteamAwacyGameClass *) klass)->finalize = proton_plus_models_games_steam_awacy_game_finalize;
	g_type_class_adjust_private_offset (klass, &ProtonPlusModelsGamesSteamAwacyGame_private_offset);
}

static void
proton_plus_models_games_steam_awacy_game_instance_init (ProtonPlusModelsGamesSteamAwacyGame * self,
                                                         gpointer klass)
{
	self->priv = proton_plus_models_games_steam_awacy_game_get_instance_private (self);
	self->ref_count = 1;
}

static void
proton_plus_models_games_steam_awacy_game_finalize (ProtonPlusModelsGamesSteamAwacyGame * obj)
{
	ProtonPlusModelsGamesSteamAwacyGame * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_MODELS_GAMES_STEAM_TYPE_AWACY_GAME, ProtonPlusModelsGamesSteamAwacyGame);
	g_signal_handlers_destroy (self);
	_g_free0 (self->priv->_name);
	_g_free0 (self->priv->_status);
}

static GType
proton_plus_models_games_steam_awacy_game_get_type_once (void)
{
	static const GTypeValueTable g_define_type_value_table = { proton_plus_models_games_steam_value_awacy_game_init, proton_plus_models_games_steam_value_awacy_game_free_value, proton_plus_models_games_steam_value_awacy_game_copy_value, proton_plus_models_games_steam_value_awacy_game_peek_pointer, "p", proton_plus_models_games_steam_value_awacy_game_collect_value, "p", proton_plus_models_games_steam_value_awacy_game_lcopy_value };
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusModelsGamesSteamAwacyGameClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_models_games_steam_awacy_game_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusModelsGamesSteamAwacyGame), 0, (GInstanceInitFunc) proton_plus_models_games_steam_awacy_game_instance_init, &g_define_type_value_table };
	static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
	GType proton_plus_models_games_steam_awacy_game_type_id;
	proton_plus_models_games_steam_awacy_game_type_id = g_type_register_fundamental (g_type_fundamental_next (), "ProtonPlusModelsGamesSteamAwacyGame", &g_define_type_info, &g_define_type_fundamental_info, 0);
	ProtonPlusModelsGamesSteamAwacyGame_private_offset = g_type_add_instance_private (proton_plus_models_games_steam_awacy_game_type_id, sizeof (ProtonPlusModelsGamesSteamAwacyGamePrivate));
	return proton_plus_models_games_steam_awacy_game_type_id;
}

GType
proton_plus_models_games_steam_awacy_game_get_type (void)
{
	static volatile gsize proton_plus_models_games_steam_awacy_game_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_models_games_steam_awacy_game_type_id__once)) {
		GType proton_plus_models_games_steam_awacy_game_type_id;
		proton_plus_models_games_steam_awacy_game_type_id = proton_plus_models_games_steam_awacy_game_get_type_once ();
		g_once_init_leave (&proton_plus_models_games_steam_awacy_game_type_id__once, proton_plus_models_games_steam_awacy_game_type_id);
	}
	return proton_plus_models_games_steam_awacy_game_type_id__once;
}

gpointer
proton_plus_models_games_steam_awacy_game_ref (gpointer instance)
{
	ProtonPlusModelsGamesSteamAwacyGame * self;
	self = instance;
	g_atomic_int_inc (&self->ref_count);
	return instance;
}

void
proton_plus_models_games_steam_awacy_game_unref (gpointer instance)
{
	ProtonPlusModelsGamesSteamAwacyGame * self;
	self = instance;
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
		PROTON_PLUS_MODELS_GAMES_STEAM_AWACY_GAME_GET_CLASS (self)->finalize (self);
		g_type_free_instance ((GTypeInstance *) self);
	}
}

static void
proton_plus_models_games_steam_class_init (ProtonPlusModelsGamesSteamClass * klass,
                                           gpointer klass_data)
{
	proton_plus_models_games_steam_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusModelsGamesSteam_private_offset);
	((ProtonPlusModelsGameClass *) klass)->change_compatibility_tool = (gboolean (*) (ProtonPlusModelsGame*, const gchar*)) proton_plus_models_games_steam_real_change_compatibility_tool;
	G_OBJECT_CLASS (klass)->get_property = _vala_proton_plus_models_games_steam_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_proton_plus_models_games_steam_set_property;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_models_games_steam_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_GAMES_STEAM_APPID_PROPERTY, proton_plus_models_games_steam_properties[PROTON_PLUS_MODELS_GAMES_STEAM_APPID_PROPERTY] = g_param_spec_uint ("appid", "appid", "appid", 0, G_MAXUINT, 0U, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_GAMES_STEAM_LIBRARY_FOLDER_ID_PROPERTY, proton_plus_models_games_steam_properties[PROTON_PLUS_MODELS_GAMES_STEAM_LIBRARY_FOLDER_ID_PROPERTY] = g_param_spec_int ("library-folder-id", "library-folder-id", "library-folder-id", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_GAMES_STEAM_LIBRARY_FOLDER_PATH_PROPERTY, proton_plus_models_games_steam_properties[PROTON_PLUS_MODELS_GAMES_STEAM_LIBRARY_FOLDER_PATH_PROPERTY] = g_param_spec_string ("library-folder-path", "library-folder-path", "library-folder-path", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_GAMES_STEAM_AWACY_NAME_PROPERTY, proton_plus_models_games_steam_properties[PROTON_PLUS_MODELS_GAMES_STEAM_AWACY_NAME_PROPERTY] = g_param_spec_string ("awacy-name", "awacy-name", "awacy-name", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_GAMES_STEAM_AWACY_STATUS_PROPERTY, proton_plus_models_games_steam_properties[PROTON_PLUS_MODELS_GAMES_STEAM_AWACY_STATUS_PROPERTY] = g_param_spec_string ("awacy-status", "awacy-status", "awacy-status", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_GAMES_STEAM_LAUNCH_OPTIONS_PROPERTY, proton_plus_models_games_steam_properties[PROTON_PLUS_MODELS_GAMES_STEAM_LAUNCH_OPTIONS_PROPERTY] = g_param_spec_string ("launch-options", "launch-options", "launch-options", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROTON_PLUS_MODELS_GAMES_STEAM_IS_NON_STEAM_PROPERTY, proton_plus_models_games_steam_properties[PROTON_PLUS_MODELS_GAMES_STEAM_IS_NON_STEAM_PROPERTY] = g_param_spec_boolean ("is-non-steam", "is-non-steam", "is-non-steam", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
}

static void
proton_plus_models_games_steam_instance_init (ProtonPlusModelsGamesSteam * self,
                                              gpointer klass)
{
	self->priv = proton_plus_models_games_steam_get_instance_private (self);
}

static void
proton_plus_models_games_steam_finalize (GObject * obj)
{
	ProtonPlusModelsGamesSteam * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_MODELS_GAMES_TYPE_STEAM, ProtonPlusModelsGamesSteam);
	_g_free0 (self->priv->_library_folder_path);
	_g_free0 (self->priv->_awacy_name);
	_g_free0 (self->priv->_awacy_status);
	_g_free0 (self->priv->_launch_options);
	G_OBJECT_CLASS (proton_plus_models_games_steam_parent_class)->finalize (obj);
}

static GType
proton_plus_models_games_steam_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusModelsGamesSteamClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_models_games_steam_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusModelsGamesSteam), 0, (GInstanceInitFunc) proton_plus_models_games_steam_instance_init, NULL };
	GType proton_plus_models_games_steam_type_id;
	proton_plus_models_games_steam_type_id = g_type_register_static (PROTON_PLUS_MODELS_TYPE_GAME, "ProtonPlusModelsGamesSteam", &g_define_type_info, 0);
	ProtonPlusModelsGamesSteam_private_offset = g_type_add_instance_private (proton_plus_models_games_steam_type_id, sizeof (ProtonPlusModelsGamesSteamPrivate));
	return proton_plus_models_games_steam_type_id;
}

GType
proton_plus_models_games_steam_get_type (void)
{
	static volatile gsize proton_plus_models_games_steam_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_models_games_steam_type_id__once)) {
		GType proton_plus_models_games_steam_type_id;
		proton_plus_models_games_steam_type_id = proton_plus_models_games_steam_get_type_once ();
		g_once_init_leave (&proton_plus_models_games_steam_type_id__once, proton_plus_models_games_steam_type_id);
	}
	return proton_plus_models_games_steam_type_id__once;
}

static void
_vala_proton_plus_models_games_steam_get_property (GObject * object,
                                                   guint property_id,
                                                   GValue * value,
                                                   GParamSpec * pspec)
{
	ProtonPlusModelsGamesSteam * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_MODELS_GAMES_TYPE_STEAM, ProtonPlusModelsGamesSteam);
	switch (property_id) {
		case PROTON_PLUS_MODELS_GAMES_STEAM_APPID_PROPERTY:
		g_value_set_uint (value, proton_plus_models_games_steam_get_appid (self));
		break;
		case PROTON_PLUS_MODELS_GAMES_STEAM_LIBRARY_FOLDER_ID_PROPERTY:
		g_value_set_int (value, proton_plus_models_games_steam_get_library_folder_id (self));
		break;
		case PROTON_PLUS_MODELS_GAMES_STEAM_LIBRARY_FOLDER_PATH_PROPERTY:
		g_value_set_string (value, proton_plus_models_games_steam_get_library_folder_path (self));
		break;
		case PROTON_PLUS_MODELS_GAMES_STEAM_AWACY_NAME_PROPERTY:
		g_value_set_string (value, proton_plus_models_games_steam_get_awacy_name (self));
		break;
		case PROTON_PLUS_MODELS_GAMES_STEAM_AWACY_STATUS_PROPERTY:
		g_value_set_string (value, proton_plus_models_games_steam_get_awacy_status (self));
		break;
		case PROTON_PLUS_MODELS_GAMES_STEAM_LAUNCH_OPTIONS_PROPERTY:
		g_value_set_string (value, proton_plus_models_games_steam_get_launch_options (self));
		break;
		case PROTON_PLUS_MODELS_GAMES_STEAM_IS_NON_STEAM_PROPERTY:
		g_value_set_boolean (value, proton_plus_models_games_steam_get_is_non_steam (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_proton_plus_models_games_steam_set_property (GObject * object,
                                                   guint property_id,
                                                   const GValue * value,
                                                   GParamSpec * pspec)
{
	ProtonPlusModelsGamesSteam * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_MODELS_GAMES_TYPE_STEAM, ProtonPlusModelsGamesSteam);
	switch (property_id) {
		case PROTON_PLUS_MODELS_GAMES_STEAM_APPID_PROPERTY:
		proton_plus_models_games_steam_set_appid (self, g_value_get_uint (value));
		break;
		case PROTON_PLUS_MODELS_GAMES_STEAM_LIBRARY_FOLDER_ID_PROPERTY:
		proton_plus_models_games_steam_set_library_folder_id (self, g_value_get_int (value));
		break;
		case PROTON_PLUS_MODELS_GAMES_STEAM_LIBRARY_FOLDER_PATH_PROPERTY:
		proton_plus_models_games_steam_set_library_folder_path (self, g_value_get_string (value));
		break;
		case PROTON_PLUS_MODELS_GAMES_STEAM_AWACY_NAME_PROPERTY:
		proton_plus_models_games_steam_set_awacy_name (self, g_value_get_string (value));
		break;
		case PROTON_PLUS_MODELS_GAMES_STEAM_AWACY_STATUS_PROPERTY:
		proton_plus_models_games_steam_set_awacy_status (self, g_value_get_string (value));
		break;
		case PROTON_PLUS_MODELS_GAMES_STEAM_LAUNCH_OPTIONS_PROPERTY:
		proton_plus_models_games_steam_set_launch_options (self, g_value_get_string (value));
		break;
		case PROTON_PLUS_MODELS_GAMES_STEAM_IS_NON_STEAM_PROPERTY:
		proton_plus_models_games_steam_set_is_non_steam (self, g_value_get_boolean (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

