forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[3.5] Add platform-switch submodule #16
Draft
halotroop2288
wants to merge
1
commit into
Homebrodot:3.5
Choose a base branch
from
halotroop2288:pr/3.5
base: 3.5
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "platform/switch"] | ||
path = platform/switch | ||
url = https://github.com/Homebrodot/platform-switch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
/** | ||
* @file nacp.h | ||
* @brief Control.nacp structure / related code for nacp. | ||
* @copyright libnx Authors | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "thirdparty/libnx/types.h" | ||
|
||
/// Language entry. These strings are UTF-8. | ||
typedef struct { | ||
char name[0x200]; | ||
char author[0x100]; | ||
} NacpLanguageEntry; | ||
|
||
/// ApplicationNeighborDetectionGroupConfiguration | ||
typedef struct { | ||
u64 group_id; ///< GroupId | ||
u8 key[0x10]; | ||
} NacpApplicationNeighborDetectionGroupConfiguration; | ||
|
||
/// NeighborDetectionClientConfiguration | ||
typedef struct { | ||
NacpApplicationNeighborDetectionGroupConfiguration send_group_configuration; ///< SendGroupConfiguration | ||
NacpApplicationNeighborDetectionGroupConfiguration receivable_group_configurations[0x10]; ///< ReceivableGroupConfigurations | ||
} NacpNeighborDetectionClientConfiguration; | ||
|
||
/// ApplicationJitConfiguration | ||
typedef struct { | ||
u64 flags; ///< Flags | ||
u64 memory_size; ///< MemorySize | ||
} NacpApplicationJitConfiguration; | ||
|
||
/// ns ApplicationControlProperty | ||
typedef struct { | ||
NacpLanguageEntry lang[16]; ///< \ref NacpLanguageEntry | ||
u8 isbn[0x25]; ///< Isbn | ||
u8 startup_user_account; ///< StartupUserAccount | ||
u8 user_account_switch_lock; ///< UserAccountSwitchLock | ||
u8 add_on_content_registration_type; ///< AddOnContentRegistrationType | ||
u32 attribute_flag; ///< AttributeFlag | ||
u32 supported_language_flag; ///< SupportedLanguageFlag | ||
u32 parental_control_flag; ///< ParentalControlFlag | ||
u8 screenshot; ///< Screenshot | ||
u8 video_capture; ///< VideoCapture | ||
u8 data_loss_confirmation; ///< DataLossConfirmation | ||
u8 play_log_policy; ///< PlayLogPolicy | ||
u64 presence_group_id; ///< PresenceGroupId | ||
s8 rating_age[0x20]; ///< RatingAge | ||
char display_version[0x10]; ///< DisplayVersion | ||
u64 add_on_content_base_id; ///< AddOnContentBaseId | ||
u64 save_data_owner_id; ///< SaveDataOwnerId | ||
u64 user_account_save_data_size; ///< UserAccountSaveDataSize | ||
u64 user_account_save_data_journal_size; ///< UserAccountSaveDataJournalSize | ||
u64 device_save_data_size; ///< DeviceSaveDataSize | ||
u64 device_save_data_journal_size; ///< DeviceSaveDataJournalSize | ||
u64 bcat_delivery_cache_storage_size; ///< BcatDeliveryCacheStorageSize | ||
u64 application_error_code_category; ///< ApplicationErrorCodeCategory | ||
u64 local_communication_id[0x8]; ///< LocalCommunicationId | ||
u8 logo_type; ///< LogoType | ||
u8 logo_handling; ///< LogoHandling | ||
u8 runtime_add_on_content_install; ///< RuntimeAddOnContentInstall | ||
u8 runtime_parameter_delivery; ///< RuntimeParameterDelivery | ||
u8 reserved_x30f4[0x2]; ///< Reserved | ||
u8 crash_report; ///< CrashReport | ||
u8 hdcp; ///< Hdcp | ||
u64 pseudo_device_id_seed; ///< SeedForPseudoDeviceId | ||
char bcat_passphrase[0x41]; ///< BcatPassphrase | ||
u8 startup_user_account_option; ///< StartupUserAccountOption | ||
u8 reserved_for_user_account_save_data_operation[0x6]; ///< ReservedForUserAccountSaveDataOperation | ||
u64 user_account_save_data_size_max; ///< UserAccountSaveDataSizeMax | ||
u64 user_account_save_data_journal_size_max; ///< UserAccountSaveDataJournalSizeMax | ||
u64 device_save_data_size_max; ///< DeviceSaveDataSizeMax | ||
u64 device_save_data_journal_size_max; ///< DeviceSaveDataJournalSizeMax | ||
u64 temporary_storage_size; ///< TemporaryStorageSize | ||
u64 cache_storage_size; ///< CacheStorageSize | ||
u64 cache_storage_journal_size; ///< CacheStorageJournalSize | ||
u64 cache_storage_data_and_journal_size_max; ///< CacheStorageDataAndJournalSizeMax | ||
u16 cache_storage_index_max; ///< CacheStorageIndexMax | ||
u8 reserved_x318a[0x6]; ///< Reserved | ||
u64 play_log_queryable_application_id[0x10]; ///< PlayLogQueryableApplicationId | ||
u8 play_log_query_capability; ///< PlayLogQueryCapability | ||
u8 repair_flag; ///< RepairFlag | ||
u8 program_index; ///< ProgramIndex | ||
u8 required_network_service_license_on_launch; ///< RequiredNetworkServiceLicenseOnLaunchFlag | ||
u32 reserved_x3214; ///< Reserved | ||
NacpNeighborDetectionClientConfiguration neighbor_detection_client_configuration; ///< NeighborDetectionClientConfiguration | ||
NacpApplicationJitConfiguration jit_configuration; ///< JitConfiguration | ||
u8 reserved_x33c0[0xc40]; ///< Reserved | ||
} NacpStruct; | ||
|
||
/// Get the NacpLanguageEntry from the input nacp corresponding to the current system language (this may fallback to other languages when needed). Output langentry is NULL if none found / content of entry is empty. | ||
/// If you're using ns you may want to use \ref nsGetApplicationDesiredLanguage instead. | ||
Result nacpGetLanguageEntry(NacpStruct* nacp, NacpLanguageEntry** langentry); |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per discussion on the main/3.5 branch...
f950ebd#r138181091
...can potentially avoid having any modifications to this file at all to add in Switch in support if we override OS::get_resource_path for the switch
That'll be a change that'll need doing on the platform-switch submodule repo rather than here, but wanted a note to remain on this branch as reminder that we should be able to remove it in a future update.