Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified code/client/launcher/BackdropBrush.winmd
Binary file not shown.
21 changes: 13 additions & 8 deletions code/client/launcher/CitiLaunch/BackdropBrush.g.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.201201.7
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.250303.1

#pragma once
#include "winrt/CitiLaunch.h"
Expand All @@ -8,30 +8,33 @@
namespace winrt::CitiLaunch::implementation
{
template <typename D, typename... I>
struct __declspec(empty_bases) BackdropBrush_base : implements<D, CitiLaunch::BackdropBrush, composing, Windows::UI::Xaml::Media::IXamlCompositionBrushBaseOverrides, Windows::UI::Xaml::Media::IBrushOverrides2, I...>,
impl::require<D, Windows::UI::Xaml::Media::IXamlCompositionBrushBase, Windows::UI::Xaml::Media::IXamlCompositionBrushBaseProtected, Windows::UI::Xaml::Media::IBrush, Windows::UI::Composition::IAnimationObject, Windows::UI::Xaml::IDependencyObject, Windows::UI::Xaml::IDependencyObject2>,
impl::base<D, Windows::UI::Xaml::Media::XamlCompositionBrushBase, Windows::UI::Xaml::Media::Brush, Windows::UI::Xaml::DependencyObject>,
Windows::UI::Xaml::Media::IXamlCompositionBrushBaseOverridesT<D>, Windows::UI::Xaml::Media::IBrushOverrides2T<D>
struct WINRT_IMPL_EMPTY_BASES BackdropBrush_base : implements<D, CitiLaunch::BackdropBrush, composing, winrt::Windows::UI::Xaml::Media::IXamlCompositionBrushBaseOverrides, winrt::Windows::UI::Xaml::Media::IBrushOverrides2, I...>,
impl::require<D, winrt::Windows::UI::Xaml::Media::IXamlCompositionBrushBase, winrt::Windows::UI::Xaml::Media::IBrush, winrt::Windows::UI::Composition::IAnimationObject, winrt::Windows::UI::Xaml::IDependencyObject, winrt::Windows::UI::Xaml::IDependencyObject2>,
protected impl::require<D, winrt::Windows::UI::Xaml::Media::IXamlCompositionBrushBaseProtected>,
impl::base<D, winrt::Windows::UI::Xaml::Media::XamlCompositionBrushBase, winrt::Windows::UI::Xaml::Media::Brush, winrt::Windows::UI::Xaml::DependencyObject>,
winrt::Windows::UI::Xaml::Media::IXamlCompositionBrushBaseOverridesT<D>, winrt::Windows::UI::Xaml::Media::IBrushOverrides2T<D>
{
using base_type = BackdropBrush_base;
using class_type = CitiLaunch::BackdropBrush;
using implements_type = typename BackdropBrush_base::implements_type;
using implements_type::implements_type;
using composable_base = Windows::UI::Xaml::Media::XamlCompositionBrushBase;
using composable_base = winrt::Windows::UI::Xaml::Media::XamlCompositionBrushBase;
friend impl::consume_t<D, winrt::Windows::UI::Xaml::Media::IXamlCompositionBrushBaseProtected>;
friend impl::require_one<D, winrt::Windows::UI::Xaml::Media::IXamlCompositionBrushBaseProtected>;
hstring GetRuntimeClassName() const
{
return L"CitiLaunch.BackdropBrush";
}
BackdropBrush_base()
{
impl::call_factory<Windows::UI::Xaml::Media::XamlCompositionBrushBase, Windows::UI::Xaml::Media::IXamlCompositionBrushBaseFactory>([&](Windows::UI::Xaml::Media::IXamlCompositionBrushBaseFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); });
impl::call_factory<winrt::Windows::UI::Xaml::Media::XamlCompositionBrushBase, winrt::Windows::UI::Xaml::Media::IXamlCompositionBrushBaseFactory>([&](winrt::Windows::UI::Xaml::Media::IXamlCompositionBrushBaseFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); });
}
};
}
namespace winrt::CitiLaunch::factory_implementation
{
template <typename D, typename T, typename... I>
struct __declspec(empty_bases) BackdropBrushT : implements<D, Windows::Foundation::IActivationFactory, I...>
struct WINRT_IMPL_EMPTY_BASES BackdropBrushT : implements<D, winrt::Windows::Foundation::IActivationFactory, I...>
{
using instance_type = CitiLaunch::BackdropBrush;

Expand All @@ -47,7 +50,9 @@ namespace winrt::CitiLaunch::factory_implementation
}

#if defined(WINRT_FORCE_INCLUDE_BACKDROPBRUSH_XAML_G_H) || __has_include("CitiLaunch/BackdropBrush.xaml.g.h")

#include "CitiLaunch/BackdropBrush.xaml.g.h"

#else

namespace winrt::CitiLaunch::implementation
Expand Down
2 changes: 1 addition & 1 deletion code/client/launcher/build_winmd.cmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@echo off
midl /winrt /metadata_dir "%WindowsSdkDir%References\10.0.22000.0\windows.foundation.foundationcontract\4.0.0.0" /h "nul" /nomidl /reference "%WindowsSdkDir%References\10.0.22000.0\Windows.Foundation.FoundationContract\4.0.0.0\Windows.Foundation.FoundationContract.winmd" /reference "%WindowsSdkDir%References\10.0.22000.0\Windows.Foundation.UniversalApiContract\13.0.0.0\Windows.Foundation.UniversalApiContract.winmd" BackdropBrush.idl
midl /winrt /metadata_dir "%WindowsSdkDir%References\10.0.26100.0\windows.foundation.foundationcontract\4.0.0.0" /h "nul" /nomidl /reference "%WindowsSdkDir%References\10.0.26100.0\Windows.Foundation.FoundationContract\4.0.0.0\Windows.Foundation.FoundationContract.winmd" /reference "%WindowsSdkDir%References\10.0.26100.0\Windows.Foundation.UniversalApiContract\19.0.0.0\Windows.Foundation.UniversalApiContract.winmd" BackdropBrush.idl

cppwinrt -in BackdropBrush.winmd -c -r sdk -o .

Expand Down
13 changes: 8 additions & 5 deletions code/client/launcher/winrt/CitiLaunch.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 10 additions & 2 deletions code/client/launcher/winrt/fast_forward.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 11 additions & 10 deletions code/client/launcher/winrt/impl/CitiLaunch.0.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions code/client/launcher/winrt/impl/CitiLaunch.1.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions code/client/launcher/winrt/impl/CitiLaunch.2.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 44 additions & 0 deletions code/client/shared/CfxLegitimacyAPI.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#pragma once

#include <stdint.h>
#include <stddef.h>

#if defined(_WIN32)
#if defined(COMPILING_CFX_LEGITIMACY)
#define CFX_API __declspec(dllexport)
#else
#define CFX_API __declspec(dllimport)
#endif
#define CFX_CALL __stdcall
#else
#define CFX_API
#define CFX_CALL
#endif

#ifdef __cplusplus
extern "C" {
#endif

typedef void(CFX_CALL* cfx_auth_callback)(bool success, const char* data, size_t data_length);
typedef void(CFX_CALL* cfx_steam_ticket_callback)(const char* ticket, size_t ticket_len, const char* response, size_t response_len, void* user_data);

CFX_API void CFX_CALL cfx_discord_authenticate(const char* user_id, const char* code, cfx_auth_callback callback);
CFX_API void CFX_CALL cfx_discourse_authenticate(const char* client_id, const char* auth_token, cfx_auth_callback callback);

CFX_API bool CFX_CALL cfx_should_process_headers(const char* hostname);
CFX_API void CFX_CALL cfx_process_headers(char*, char*);

CFX_API void CFX_CALL cfx_steam_init(void);
CFX_API bool CFX_CALL cfx_steam_is_running(void);
CFX_API bool CFX_CALL cfx_steam_is_initialized(void);
CFX_API void CFX_CALL cfx_steam_get_auth_ticket(cfx_steam_ticket_callback callback, bool enforce_auth, void* user_data);
CFX_API uint64_t CFX_CALL cfx_steam_get_id(void);
CFX_API const char* CFX_CALL cfx_steam_get_username(void);
CFX_API void CFX_CALL cfx_steam_set_rich_presence(const char* key, const char* value);
CFX_API void CFX_CALL cfx_steam_reset_rich_presence(void);
CFX_API bool CFX_CALL cfx_steam_set_app_id(int legacy);
CFX_API void CFX_CALL cfx_steam_wait_for_app_switch(void);

#ifdef __cplusplus
}
#endif
Loading
Loading