/* game-arguments-group.c generated by valac 0.56.19, the Vala compiler
 * generated from game-arguments-group.vala, do not modify */

#include "protonplus_core.h"
#include <adwaita.h>
#include <glib-object.h>
#include <glib.h>
#include <glib/gi18n-lib.h>
#include <stdlib.h>
#include <string.h>
#include <gtk/gtk.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

#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_TILE (proton_plus_widgets_games_launch_options_editor_launch_option_tile_get_type ())
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_OPTION_TILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_TILE, ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_OPTION_TILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_TILE, ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTileClass))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_IS_LAUNCH_OPTION_TILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_TILE))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_IS_LAUNCH_OPTION_TILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_TILE))
#define PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_OPTION_TILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_TYPE_LAUNCH_OPTION_TILE, ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTileClass))

typedef struct _ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile;
typedef struct _ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTileClass ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTileClass;
enum  {
	PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_GAME_ARGUMENTS_GROUP_0_PROPERTY,
	PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_GAME_ARGUMENTS_GROUP_NUM_PROPERTIES
};
static GParamSpec* proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_GAME_ARGUMENTS_GROUP_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

struct _ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroupPrivate {
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _skip_launcher_tile;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _vulkan_tile;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _dx11_tile;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _dx12_tile;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _console_tile;
};

static gint ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup_private_offset;
static gpointer proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_parent_class = NULL;

VALA_EXTERN GType proton_plus_widgets_games_launch_options_editor_launch_option_tile_get_type (void) G_GNUC_CONST ;
VALA_EXTERN ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* proton_plus_widgets_games_launch_options_editor_groups_base_options_group_create_game_argument_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsBaseOptionsGroup* self,
                                                                                                                                                                const gchar* title,
                                                                                                                                                                const gchar* subtitle,
                                                                                                                                                                gchar** tokens,
                                                                                                                                                                gint tokens_length1,
                                                                                                                                                                gboolean is_advanced,
                                                                                                                                                                const gchar* id);
static void proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_set_skip_launcher_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup* self,
                                                                                                         ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value);
static void proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_set_vulkan_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup* self,
                                                                                                  ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value);
static void proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_set_dx11_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup* self,
                                                                                                ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value);
static void proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_set_dx12_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup* self,
                                                                                                ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value);
static void proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_set_console_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup* self,
                                                                                                   ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value);
static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_get_skip_launcher_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup* self);
static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_get_vulkan_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup* self);
static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_get_dx11_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup* self);
static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_get_dx12_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup* self);
static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_get_console_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup* self);
static void proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_finalize (GObject * obj);
static GType proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_get_type_once (void);
static void _vala_proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_get_property (GObject * object,
                                                                                                     guint property_id,
                                                                                                     GValue * value,
                                                                                                     GParamSpec * pspec);
static void _vala_proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_set_property (GObject * object,
                                                                                                     guint property_id,
                                                                                                     const GValue * value,
                                                                                                     GParamSpec * pspec);
static void _vala_array_destroy (gpointer array,
                          gssize array_length,
                          GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array,
                       gssize array_length,
                       GDestroyNotify destroy_func);
static inline gpointer _vala_memdup2 (gconstpointer mem,
                        gsize byte_size);

static inline gpointer
proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_get_instance_private (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup_private_offset);
}

ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup*
proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_construct (GType object_type,
                                                                                       ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionsList* launch_option_handlers,
                                                                                       ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionPresentationRegistry* presentation_registry)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup * self = NULL;
	gchar* _tmp0_;
	gchar** _tmp1_;
	gchar** _tmp2_;
	gint _tmp2__length1;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp3_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp4_;
	gchar* _tmp5_;
	gchar** _tmp6_;
	gchar** _tmp7_;
	gint _tmp7__length1;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp8_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp9_;
	gchar* _tmp10_;
	gchar** _tmp11_;
	gchar** _tmp12_;
	gint _tmp12__length1;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp13_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp14_;
	gchar* _tmp15_;
	gchar** _tmp16_;
	gchar** _tmp17_;
	gint _tmp17__length1;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp18_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp19_;
	gchar* _tmp20_;
	gchar** _tmp21_;
	gchar** _tmp22_;
	gint _tmp22__length1;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp23_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp24_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp25_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp26_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp27_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp28_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp29_;
	g_return_val_if_fail (launch_option_handlers != NULL, NULL);
	self = (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup*) proton_plus_widgets_games_launch_options_editor_groups_base_options_group_construct (object_type, launch_option_handlers, FALSE, presentation_registry, TRUE);
	adw_preferences_group_set_title ((AdwPreferencesGroup*) self, _ ("Game arguments"));
	adw_preferences_group_set_description ((AdwPreferencesGroup*) self, _ ("Flags passed directly to the game."));
	_tmp0_ = g_strdup ("-skip-launcher");
	_tmp1_ = g_new0 (gchar*, 1 + 1);
	_tmp1_[0] = _tmp0_;
	_tmp2_ = _tmp1_;
	_tmp2__length1 = 1;
	_tmp3_ = proton_plus_widgets_games_launch_options_editor_groups_base_options_group_create_game_argument_tile ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsBaseOptionsGroup*) self, _ ("Skip launcher"), _ ("Adds -skip-launcher to bypass launchers in games that support it."), _tmp2_, (gint) 1, FALSE, "skip-launcher");
	_tmp4_ = _tmp3_;
	proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_set_skip_launcher_tile (self, _tmp4_);
	_g_object_unref0 (_tmp4_);
	_tmp2_ = (_vala_array_free (_tmp2_, _tmp2__length1, (GDestroyNotify) g_free), NULL);
	_tmp5_ = g_strdup ("-vulkan");
	_tmp6_ = g_new0 (gchar*, 1 + 1);
	_tmp6_[0] = _tmp5_;
	_tmp7_ = _tmp6_;
	_tmp7__length1 = 1;
	_tmp8_ = proton_plus_widgets_games_launch_options_editor_groups_base_options_group_create_game_argument_tile ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsBaseOptionsGroup*) self, _ ("Vulkan renderer"), _ ("Adds -vulkan to make the game use its Vulkan renderer."), _tmp7_, (gint) 1, FALSE, "renderer-vulkan");
	_tmp9_ = _tmp8_;
	proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_set_vulkan_tile (self, _tmp9_);
	_g_object_unref0 (_tmp9_);
	_tmp7_ = (_vala_array_free (_tmp7_, _tmp7__length1, (GDestroyNotify) g_free), NULL);
	_tmp10_ = g_strdup ("-dx11");
	_tmp11_ = g_new0 (gchar*, 1 + 1);
	_tmp11_[0] = _tmp10_;
	_tmp12_ = _tmp11_;
	_tmp12__length1 = 1;
	_tmp13_ = proton_plus_widgets_games_launch_options_editor_groups_base_options_group_create_game_argument_tile ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsBaseOptionsGroup*) self, _ ("DirectX 11 renderer"), _ ("Adds -dx11 to make the game use its DirectX 11 renderer."), _tmp12_, (gint) 1, FALSE, "renderer-dx11");
	_tmp14_ = _tmp13_;
	proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_set_dx11_tile (self, _tmp14_);
	_g_object_unref0 (_tmp14_);
	_tmp12_ = (_vala_array_free (_tmp12_, _tmp12__length1, (GDestroyNotify) g_free), NULL);
	_tmp15_ = g_strdup ("-dx12");
	_tmp16_ = g_new0 (gchar*, 1 + 1);
	_tmp16_[0] = _tmp15_;
	_tmp17_ = _tmp16_;
	_tmp17__length1 = 1;
	_tmp18_ = proton_plus_widgets_games_launch_options_editor_groups_base_options_group_create_game_argument_tile ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsBaseOptionsGroup*) self, _ ("DirectX 12 renderer"), _ ("Adds -dx12 to make the game use its DirectX 12 renderer."), _tmp17_, (gint) 1, FALSE, "renderer-dx12");
	_tmp19_ = _tmp18_;
	proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_set_dx12_tile (self, _tmp19_);
	_g_object_unref0 (_tmp19_);
	_tmp17_ = (_vala_array_free (_tmp17_, _tmp17__length1, (GDestroyNotify) g_free), NULL);
	_tmp20_ = g_strdup ("-console");
	_tmp21_ = g_new0 (gchar*, 1 + 1);
	_tmp21_[0] = _tmp20_;
	_tmp22_ = _tmp21_;
	_tmp22__length1 = 1;
	_tmp23_ = proton_plus_widgets_games_launch_options_editor_groups_base_options_group_create_game_argument_tile ((ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsBaseOptionsGroup*) self, _ ("Developer console"), _ ("Adds -console to open the game's developer console when supported."), _tmp22_, (gint) 1, FALSE, "developer-console");
	_tmp24_ = _tmp23_;
	proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_set_console_tile (self, _tmp24_);
	_g_object_unref0 (_tmp24_);
	_tmp22_ = (_vala_array_free (_tmp22_, _tmp22__length1, (GDestroyNotify) g_free), NULL);
	_tmp25_ = self->priv->_skip_launcher_tile;
	adw_preferences_group_add ((AdwPreferencesGroup*) self, (GtkWidget*) _tmp25_);
	_tmp26_ = self->priv->_vulkan_tile;
	adw_preferences_group_add ((AdwPreferencesGroup*) self, (GtkWidget*) _tmp26_);
	_tmp27_ = self->priv->_dx11_tile;
	adw_preferences_group_add ((AdwPreferencesGroup*) self, (GtkWidget*) _tmp27_);
	_tmp28_ = self->priv->_dx12_tile;
	adw_preferences_group_add ((AdwPreferencesGroup*) self, (GtkWidget*) _tmp28_);
	_tmp29_ = self->priv->_console_tile;
	adw_preferences_group_add ((AdwPreferencesGroup*) self, (GtkWidget*) _tmp29_);
	return self;
}

ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup*
proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_new (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionsList* launch_option_handlers,
                                                                                 ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionPresentationRegistry* presentation_registry)
{
	return proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_construct (PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_TYPE_GAME_ARGUMENTS_GROUP, launch_option_handlers, presentation_registry);
}

static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile*
proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_get_skip_launcher_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_skip_launcher_tile;
	result = _tmp0_;
	return result;
}

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

static void
proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_set_skip_launcher_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup* self,
                                                                                                    ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_skip_launcher_tile);
	self->priv->_skip_launcher_tile = _tmp0_;
}

static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile*
proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_get_vulkan_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_vulkan_tile;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_set_vulkan_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup* self,
                                                                                             ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_vulkan_tile);
	self->priv->_vulkan_tile = _tmp0_;
}

static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile*
proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_get_dx11_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_dx11_tile;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_set_dx11_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup* self,
                                                                                           ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_dx11_tile);
	self->priv->_dx11_tile = _tmp0_;
}

static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile*
proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_get_dx12_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_dx12_tile;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_set_dx12_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup* self,
                                                                                           ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_dx12_tile);
	self->priv->_dx12_tile = _tmp0_;
}

static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile*
proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_get_console_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_console_tile;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_set_console_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup* self,
                                                                                              ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_console_tile);
	self->priv->_console_tile = _tmp0_;
}

static void
proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_class_init (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroupClass * klass,
                                                                                        gpointer klass_data)
{
	proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_set_property;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_finalize;
}

static void
proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_instance_init (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup * self,
                                                                                           gpointer klass)
{
	self->priv = proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_get_instance_private (self);
}

static void
proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_finalize (GObject * obj)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_TYPE_GAME_ARGUMENTS_GROUP, ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup);
	_g_object_unref0 (self->priv->_skip_launcher_tile);
	_g_object_unref0 (self->priv->_vulkan_tile);
	_g_object_unref0 (self->priv->_dx11_tile);
	_g_object_unref0 (self->priv->_dx12_tile);
	_g_object_unref0 (self->priv->_console_tile);
	G_OBJECT_CLASS (proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_parent_class)->finalize (obj);
}

static GType
proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroupClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup), 0, (GInstanceInitFunc) proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_instance_init, NULL };
	GType proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_type_id;
	proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_type_id = g_type_register_static (PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_TYPE_BASE_OPTIONS_GROUP, "ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup", &g_define_type_info, 0);
	ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup_private_offset = g_type_add_instance_private (proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_type_id, sizeof (ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroupPrivate));
	return proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_type_id;
}

GType
proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_get_type (void)
{
	static volatile gsize proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_type_id__once)) {
		GType proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_type_id;
		proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_type_id = proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_get_type_once ();
		g_once_init_leave (&proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_type_id__once, proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_type_id);
	}
	return proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_type_id__once;
}

static void
_vala_proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_get_property (GObject * object,
                                                                                                guint property_id,
                                                                                                GValue * value,
                                                                                                GParamSpec * pspec)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_TYPE_GAME_ARGUMENTS_GROUP, ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup);
	switch (property_id) {
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_proton_plus_widgets_games_launch_options_editor_groups_game_arguments_group_set_property (GObject * object,
                                                                                                guint property_id,
                                                                                                const GValue * value,
                                                                                                GParamSpec * pspec)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_GROUPS_TYPE_GAME_ARGUMENTS_GROUP, ProtonPlusWidgetsGamesLaunchOptionsEditorGroupsGameArgumentsGroup);
	switch (property_id) {
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

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

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

static inline gpointer
_vala_memdup2 (gconstpointer mem,
               gsize byte_size)
{
	gpointer new_mem;
	if (mem && byte_size != 0) {
		new_mem = g_malloc (byte_size);
		memcpy (new_mem, mem, byte_size);
	} else {
		new_mem = NULL;
	}
	return new_mem;
}

