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

#include "protonplus_core.h"
#include <adwaita.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include <gee.h>
#include <gtk/gtk.h>
#include <glib/gi18n-lib.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_WRAPPERS_NONE_0_PROPERTY,
	PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_WRAPPERS_NONE_NUM_PROPERTIES
};
static GParamSpec* proton_plus_widgets_games_launch_options_editor_wrappers_none_properties[PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_WRAPPERS_NONE_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

struct _ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNonePrivate {
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _dxvk_hdr_tile;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _legacy_proton_hdr_tile;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _dxvk_no_hdr_tile;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _nvidia_hdr_wsi_tile;
};

static gint ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone_private_offset;
static gpointer proton_plus_widgets_games_launch_options_editor_wrappers_none_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_wrappers_base_create_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase* self,
                                                                                                                                      const gchar* title,
                                                                                                                                      const gchar* subtitle,
                                                                                                                                      gchar** tokens,
                                                                                                                                      gint tokens_length1,
                                                                                                                                      gboolean is_advanced,
                                                                                                                                      ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchLineType type,
                                                                                                                                      const gchar* id);
static void proton_plus_widgets_games_launch_options_editor_wrappers_none_set_dxvk_hdr_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* self,
                                                                                      ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value);
static void proton_plus_widgets_games_launch_options_editor_wrappers_none_set_legacy_proton_hdr_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* self,
                                                                                               ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value);
static void proton_plus_widgets_games_launch_options_editor_wrappers_none_set_dxvk_no_hdr_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* self,
                                                                                         ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value);
static void proton_plus_widgets_games_launch_options_editor_wrappers_none_set_nvidia_hdr_wsi_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* self,
                                                                                            ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value);
static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* proton_plus_widgets_games_launch_options_editor_wrappers_none_get_dxvk_hdr_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* self);
static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* proton_plus_widgets_games_launch_options_editor_wrappers_none_get_legacy_proton_hdr_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* self);
static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* proton_plus_widgets_games_launch_options_editor_wrappers_none_get_dxvk_no_hdr_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* self);
static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* proton_plus_widgets_games_launch_options_editor_wrappers_none_get_nvidia_hdr_wsi_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* self);
static void proton_plus_widgets_games_launch_options_editor_wrappers_none_real_clear (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase* base);
static void proton_plus_widgets_games_launch_options_editor_wrappers_none_real_parse_tokens (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase* base,
                                                                                      gchar** tokens,
                                                                                      gint tokens_length1,
                                                                                      gboolean* consumed,
                                                                                      gint consumed_length1);
static void proton_plus_widgets_games_launch_options_editor_wrappers_none_real_append_command_segments (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase* base,
                                                                                                 GeeLinkedList* segments);
static void proton_plus_widgets_games_launch_options_editor_wrappers_none_finalize (GObject * obj);
static GType proton_plus_widgets_games_launch_options_editor_wrappers_none_get_type_once (void);
static void _vala_proton_plus_widgets_games_launch_options_editor_wrappers_none_get_property (GObject * object,
                                                                                       guint property_id,
                                                                                       GValue * value,
                                                                                       GParamSpec * pspec);
static void _vala_proton_plus_widgets_games_launch_options_editor_wrappers_none_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_wrappers_none_get_instance_private (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* self)
{
	return G_STRUCT_MEMBER_P (self, ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone_private_offset);
}

ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone*
proton_plus_widgets_games_launch_options_editor_wrappers_none_construct (GType object_type,
                                                                         ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionsList* launch_option_handlers,
                                                                         ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionPresentationRegistry* presentation_registry)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone * self = NULL;
	g_return_val_if_fail (launch_option_handlers != NULL, NULL);
	self = (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone*) proton_plus_widgets_games_launch_options_editor_wrappers_base_construct (object_type, launch_option_handlers, presentation_registry);
	return self;
}

ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone*
proton_plus_widgets_games_launch_options_editor_wrappers_none_new (ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionsList* launch_option_handlers,
                                                                   ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionPresentationRegistry* presentation_registry)
{
	return proton_plus_widgets_games_launch_options_editor_wrappers_none_construct (PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_WRAPPERS_TYPE_NONE, launch_option_handlers, presentation_registry);
}

GtkWidget*
proton_plus_widgets_games_launch_options_editor_wrappers_none_create_page (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* self)
{
	AdwPreferencesGroup* group = NULL;
	AdwPreferencesGroup* _tmp0_;
	gchar* _tmp1_;
	gchar** _tmp2_;
	gchar** _tmp3_;
	gint _tmp3__length1;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp4_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp5_;
	gchar* _tmp6_;
	gchar** _tmp7_;
	gchar** _tmp8_;
	gint _tmp8__length1;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp9_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp10_;
	gchar* _tmp11_;
	gchar** _tmp12_;
	gchar** _tmp13_;
	gint _tmp13__length1;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp14_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp15_;
	gchar* _tmp16_;
	gchar** _tmp17_;
	gchar** _tmp18_;
	gint _tmp18__length1;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp19_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp20_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp21_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp22_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp23_;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp24_;
	GtkWidget* result;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = (AdwPreferencesGroup*) adw_preferences_group_new ();
	g_object_ref_sink (_tmp0_);
	group = _tmp0_;
	_tmp1_ = g_strdup ("DXVK_HDR=1");
	_tmp2_ = g_new0 (gchar*, 1 + 1);
	_tmp2_[0] = _tmp1_;
	_tmp3_ = _tmp2_;
	_tmp3__length1 = 1;
	_tmp4_ = proton_plus_widgets_games_launch_options_editor_wrappers_base_create_tile ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) self, _ ("DXVK HDR"), _ ("Advertises HDR10 to DXVK games. Requires an HDR-capable compositor, di" \
"splay, and driver."), _tmp3_, (gint) 1, FALSE, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_ENVIRONMENT, "dxvk-hdr");
	_tmp5_ = _tmp4_;
	proton_plus_widgets_games_launch_options_editor_wrappers_none_set_dxvk_hdr_tile (self, _tmp5_);
	_g_object_unref0 (_tmp5_);
	_tmp3_ = (_vala_array_free (_tmp3_, _tmp3__length1, (GDestroyNotify) g_free), NULL);
	_tmp6_ = g_strdup ("PROTON_ENABLE_HDR=1");
	_tmp7_ = g_new0 (gchar*, 1 + 1);
	_tmp7_[0] = _tmp6_;
	_tmp8_ = _tmp7_;
	_tmp8__length1 = 1;
	_tmp9_ = proton_plus_widgets_games_launch_options_editor_wrappers_base_create_tile ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) self, _ ("Legacy custom-Proton HDR"), _ ("Uses PROTON_ENABLE_HDR only in selected custom Proton builds that stil" \
"l advertise it."), _tmp8_, (gint) 1, FALSE, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_ENVIRONMENT, "proton-hdr");
	_tmp10_ = _tmp9_;
	proton_plus_widgets_games_launch_options_editor_wrappers_none_set_legacy_proton_hdr_tile (self, _tmp10_);
	_g_object_unref0 (_tmp10_);
	_tmp8_ = (_vala_array_free (_tmp8_, _tmp8__length1, (GDestroyNotify) g_free), NULL);
	_tmp11_ = g_strdup ("DXVK_NO_HDR=1");
	_tmp12_ = g_new0 (gchar*, 1 + 1);
	_tmp12_[0] = _tmp11_;
	_tmp13_ = _tmp12_;
	_tmp13__length1 = 1;
	_tmp14_ = proton_plus_widgets_games_launch_options_editor_wrappers_base_create_tile ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) self, _ ("Disable custom-Proton automatic HDR"), _ ("Uses DXVK_NO_HDR=1 only in custom Proton builds that advertise the aut" \
"omatic-HDR opt-out."), _tmp13_, (gint) 1, FALSE, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_ENVIRONMENT, "dxvk-no-hdr");
	_tmp15_ = _tmp14_;
	proton_plus_widgets_games_launch_options_editor_wrappers_none_set_dxvk_no_hdr_tile (self, _tmp15_);
	_g_object_unref0 (_tmp15_);
	_tmp13_ = (_vala_array_free (_tmp13_, _tmp13__length1, (GDestroyNotify) g_free), NULL);
	_tmp16_ = g_strdup ("ENABLE_HDR_WSI=1");
	_tmp17_ = g_new0 (gchar*, 1 + 1);
	_tmp17_[0] = _tmp16_;
	_tmp18_ = _tmp17_;
	_tmp18__length1 = 1;
	_tmp19_ = proton_plus_widgets_games_launch_options_editor_wrappers_base_create_tile ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) self, _ ("NVIDIA legacy HDR WSI"), _ ("Needed by NVIDIA proprietary drivers older than 595; do not enable on " \
"driver 595 or newer."), _tmp18_, (gint) 1, FALSE, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_LAUNCH_LINE_TYPE_ENVIRONMENT, "nvidia-hdr-wsi");
	_tmp20_ = _tmp19_;
	proton_plus_widgets_games_launch_options_editor_wrappers_none_set_nvidia_hdr_wsi_tile (self, _tmp20_);
	_g_object_unref0 (_tmp20_);
	_tmp18_ = (_vala_array_free (_tmp18_, _tmp18__length1, (GDestroyNotify) g_free), NULL);
	_tmp21_ = self->priv->_dxvk_hdr_tile;
	adw_preferences_group_add (group, (GtkWidget*) _tmp21_);
	_tmp22_ = self->priv->_legacy_proton_hdr_tile;
	adw_preferences_group_add (group, (GtkWidget*) _tmp22_);
	_tmp23_ = self->priv->_dxvk_no_hdr_tile;
	adw_preferences_group_add (group, (GtkWidget*) _tmp23_);
	_tmp24_ = self->priv->_nvidia_hdr_wsi_tile;
	adw_preferences_group_add (group, (GtkWidget*) _tmp24_);
	result = (GtkWidget*) group;
	return result;
}

void
proton_plus_widgets_games_launch_options_editor_wrappers_none_selection_change (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* self)
{
	g_return_if_fail (self != NULL);
	{
		GeeList* _child_list = NULL;
		GeeList* _tmp0_;
		gint _child_size = 0;
		GeeList* _tmp1_;
		gint _tmp2_;
		gint _tmp3_;
		gint _child_index = 0;
		_tmp0_ = ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) self)->_children;
		_child_list = _tmp0_;
		_tmp1_ = _child_list;
		_tmp2_ = gee_collection_get_size ((GeeCollection*) _tmp1_);
		_tmp3_ = _tmp2_;
		_child_size = _tmp3_;
		_child_index = -1;
		while (TRUE) {
			gint _tmp4_;
			gint _tmp5_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption* child = NULL;
			GeeList* _tmp6_;
			gpointer _tmp7_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption* _tmp8_;
			_child_index = _child_index + 1;
			_tmp4_ = _child_index;
			_tmp5_ = _child_size;
			if (!(_tmp4_ < _tmp5_)) {
				break;
			}
			_tmp6_ = _child_list;
			_tmp7_ = gee_list_get (_tmp6_, _child_index);
			child = (ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption*) _tmp7_;
			_tmp8_ = child;
			proton_plus_widgets_games_launch_options_editor_ilaunch_option_clear (_tmp8_);
			_g_object_unref0 (child);
		}
	}
}

static void
proton_plus_widgets_games_launch_options_editor_wrappers_none_real_clear (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase* base)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone * self;
	self = (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone*) base;
	{
		GeeList* _child_list = NULL;
		GeeList* _tmp0_;
		gint _child_size = 0;
		GeeList* _tmp1_;
		gint _tmp2_;
		gint _tmp3_;
		gint _child_index = 0;
		_tmp0_ = ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) self)->_children;
		_child_list = _tmp0_;
		_tmp1_ = _child_list;
		_tmp2_ = gee_collection_get_size ((GeeCollection*) _tmp1_);
		_tmp3_ = _tmp2_;
		_child_size = _tmp3_;
		_child_index = -1;
		while (TRUE) {
			gint _tmp4_;
			gint _tmp5_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption* child = NULL;
			GeeList* _tmp6_;
			gpointer _tmp7_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption* _tmp8_;
			_child_index = _child_index + 1;
			_tmp4_ = _child_index;
			_tmp5_ = _child_size;
			if (!(_tmp4_ < _tmp5_)) {
				break;
			}
			_tmp6_ = _child_list;
			_tmp7_ = gee_list_get (_tmp6_, _child_index);
			child = (ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption*) _tmp7_;
			_tmp8_ = child;
			proton_plus_widgets_games_launch_options_editor_ilaunch_option_clear (_tmp8_);
			_g_object_unref0 (child);
		}
	}
}

static void
proton_plus_widgets_games_launch_options_editor_wrappers_none_real_parse_tokens (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase* base,
                                                                                 gchar** tokens,
                                                                                 gint tokens_length1,
                                                                                 gboolean* consumed,
                                                                                 gint consumed_length1)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone * self;
	self = (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone*) base;
	{
		GeeList* _child_list = NULL;
		GeeList* _tmp0_;
		gint _child_size = 0;
		GeeList* _tmp1_;
		gint _tmp2_;
		gint _tmp3_;
		gint _child_index = 0;
		_tmp0_ = ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) self)->_children;
		_child_list = _tmp0_;
		_tmp1_ = _child_list;
		_tmp2_ = gee_collection_get_size ((GeeCollection*) _tmp1_);
		_tmp3_ = _tmp2_;
		_child_size = _tmp3_;
		_child_index = -1;
		while (TRUE) {
			gint _tmp4_;
			gint _tmp5_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption* child = NULL;
			GeeList* _tmp6_;
			gpointer _tmp7_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption* _tmp8_;
			_child_index = _child_index + 1;
			_tmp4_ = _child_index;
			_tmp5_ = _child_size;
			if (!(_tmp4_ < _tmp5_)) {
				break;
			}
			_tmp6_ = _child_list;
			_tmp7_ = gee_list_get (_tmp6_, _child_index);
			child = (ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption*) _tmp7_;
			_tmp8_ = child;
			proton_plus_widgets_games_launch_options_editor_ilaunch_option_parse_tokens (_tmp8_, tokens, (gint) tokens_length1, consumed, (gint) consumed_length1);
			_g_object_unref0 (child);
		}
	}
}

static void
proton_plus_widgets_games_launch_options_editor_wrappers_none_real_append_command_segments (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase* base,
                                                                                            GeeLinkedList* segments)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone * self;
	self = (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone*) base;
	g_return_if_fail (segments != NULL);
	{
		GeeList* _child_list = NULL;
		GeeList* _tmp0_;
		gint _child_size = 0;
		GeeList* _tmp1_;
		gint _tmp2_;
		gint _tmp3_;
		gint _child_index = 0;
		_tmp0_ = ((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*) self)->_children;
		_child_list = _tmp0_;
		_tmp1_ = _child_list;
		_tmp2_ = gee_collection_get_size ((GeeCollection*) _tmp1_);
		_tmp3_ = _tmp2_;
		_child_size = _tmp3_;
		_child_index = -1;
		while (TRUE) {
			gint _tmp4_;
			gint _tmp5_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption* child = NULL;
			GeeList* _tmp6_;
			gpointer _tmp7_;
			ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption* _tmp8_;
			_child_index = _child_index + 1;
			_tmp4_ = _child_index;
			_tmp5_ = _child_size;
			if (!(_tmp4_ < _tmp5_)) {
				break;
			}
			_tmp6_ = _child_list;
			_tmp7_ = gee_list_get (_tmp6_, _child_index);
			child = (ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption*) _tmp7_;
			_tmp8_ = child;
			if (proton_plus_widgets_games_launch_options_editor_ilaunch_option_is_active (_tmp8_)) {
				ProtonPlusWidgetsGamesLaunchOptionsEditorILaunchOption* _tmp9_;
				_tmp9_ = child;
				proton_plus_widgets_games_launch_options_editor_ilaunch_option_append_command_segments (_tmp9_, segments);
			}
			_g_object_unref0 (child);
		}
	}
}

static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile*
proton_plus_widgets_games_launch_options_editor_wrappers_none_get_dxvk_hdr_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_dxvk_hdr_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_wrappers_none_set_dxvk_hdr_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* self,
                                                                                 ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_dxvk_hdr_tile);
	self->priv->_dxvk_hdr_tile = _tmp0_;
}

static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile*
proton_plus_widgets_games_launch_options_editor_wrappers_none_get_legacy_proton_hdr_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_legacy_proton_hdr_tile;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_wrappers_none_set_legacy_proton_hdr_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* self,
                                                                                          ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_legacy_proton_hdr_tile);
	self->priv->_legacy_proton_hdr_tile = _tmp0_;
}

static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile*
proton_plus_widgets_games_launch_options_editor_wrappers_none_get_dxvk_no_hdr_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_dxvk_no_hdr_tile;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_wrappers_none_set_dxvk_no_hdr_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* self,
                                                                                    ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_dxvk_no_hdr_tile);
	self->priv->_dxvk_no_hdr_tile = _tmp0_;
}

static ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile*
proton_plus_widgets_games_launch_options_editor_wrappers_none_get_nvidia_hdr_wsi_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* self)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* result;
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_nvidia_hdr_wsi_tile;
	result = _tmp0_;
	return result;
}

static void
proton_plus_widgets_games_launch_options_editor_wrappers_none_set_nvidia_hdr_wsi_tile (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone* self,
                                                                                       ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* value)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorLaunchOptionTile* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = _g_object_ref0 (value);
	_g_object_unref0 (self->priv->_nvidia_hdr_wsi_tile);
	self->priv->_nvidia_hdr_wsi_tile = _tmp0_;
}

static void
proton_plus_widgets_games_launch_options_editor_wrappers_none_class_init (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNoneClass * klass,
                                                                          gpointer klass_data)
{
	proton_plus_widgets_games_launch_options_editor_wrappers_none_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone_private_offset);
	((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBaseClass *) klass)->clear = (void (*) (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*)) proton_plus_widgets_games_launch_options_editor_wrappers_none_real_clear;
	((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBaseClass *) klass)->parse_tokens = (void (*) (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*, gchar**, gint, gboolean*, gint)) proton_plus_widgets_games_launch_options_editor_wrappers_none_real_parse_tokens;
	((ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBaseClass *) klass)->append_command_segments = (void (*) (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersBase*, GeeLinkedList*)) proton_plus_widgets_games_launch_options_editor_wrappers_none_real_append_command_segments;
	G_OBJECT_CLASS (klass)->get_property = _vala_proton_plus_widgets_games_launch_options_editor_wrappers_none_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_proton_plus_widgets_games_launch_options_editor_wrappers_none_set_property;
	G_OBJECT_CLASS (klass)->finalize = proton_plus_widgets_games_launch_options_editor_wrappers_none_finalize;
}

static void
proton_plus_widgets_games_launch_options_editor_wrappers_none_instance_init (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone * self,
                                                                             gpointer klass)
{
	self->priv = proton_plus_widgets_games_launch_options_editor_wrappers_none_get_instance_private (self);
}

static void
proton_plus_widgets_games_launch_options_editor_wrappers_none_finalize (GObject * obj)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_WRAPPERS_TYPE_NONE, ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone);
	_g_object_unref0 (self->priv->_dxvk_hdr_tile);
	_g_object_unref0 (self->priv->_legacy_proton_hdr_tile);
	_g_object_unref0 (self->priv->_dxvk_no_hdr_tile);
	_g_object_unref0 (self->priv->_nvidia_hdr_wsi_tile);
	G_OBJECT_CLASS (proton_plus_widgets_games_launch_options_editor_wrappers_none_parent_class)->finalize (obj);
}

static GType
proton_plus_widgets_games_launch_options_editor_wrappers_none_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNoneClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) proton_plus_widgets_games_launch_options_editor_wrappers_none_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone), 0, (GInstanceInitFunc) proton_plus_widgets_games_launch_options_editor_wrappers_none_instance_init, NULL };
	GType proton_plus_widgets_games_launch_options_editor_wrappers_none_type_id;
	proton_plus_widgets_games_launch_options_editor_wrappers_none_type_id = g_type_register_static (PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_WRAPPERS_TYPE_BASE, "ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone", &g_define_type_info, 0);
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone_private_offset = g_type_add_instance_private (proton_plus_widgets_games_launch_options_editor_wrappers_none_type_id, sizeof (ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNonePrivate));
	return proton_plus_widgets_games_launch_options_editor_wrappers_none_type_id;
}

GType
proton_plus_widgets_games_launch_options_editor_wrappers_none_get_type (void)
{
	static volatile gsize proton_plus_widgets_games_launch_options_editor_wrappers_none_type_id__once = 0;
	if (g_once_init_enter (&proton_plus_widgets_games_launch_options_editor_wrappers_none_type_id__once)) {
		GType proton_plus_widgets_games_launch_options_editor_wrappers_none_type_id;
		proton_plus_widgets_games_launch_options_editor_wrappers_none_type_id = proton_plus_widgets_games_launch_options_editor_wrappers_none_get_type_once ();
		g_once_init_leave (&proton_plus_widgets_games_launch_options_editor_wrappers_none_type_id__once, proton_plus_widgets_games_launch_options_editor_wrappers_none_type_id);
	}
	return proton_plus_widgets_games_launch_options_editor_wrappers_none_type_id__once;
}

static void
_vala_proton_plus_widgets_games_launch_options_editor_wrappers_none_get_property (GObject * object,
                                                                                  guint property_id,
                                                                                  GValue * value,
                                                                                  GParamSpec * pspec)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_WRAPPERS_TYPE_NONE, ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone);
	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_wrappers_none_set_property (GObject * object,
                                                                                  guint property_id,
                                                                                  const GValue * value,
                                                                                  GParamSpec * pspec)
{
	ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, PROTON_PLUS_WIDGETS_GAMES_LAUNCH_OPTIONS_EDITOR_WRAPPERS_TYPE_NONE, ProtonPlusWidgetsGamesLaunchOptionsEditorWrappersNone);
	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;
}

