[XAM] Fallback to config license_mask in case of old header version

This commit is contained in:
Gliniak 2024-10-07 18:31:41 +02:00
parent 5696d55575
commit 06dc06b8ca
2 changed files with 3 additions and 2 deletions

View File

@ -22,6 +22,8 @@
#include "xenia/kernel/xobject.h"
#include "xenia/vfs/devices/host_path_device.h"
DECLARE_int32(license_mask);
namespace xe {
namespace kernel {
namespace xam {
@ -55,7 +57,7 @@ ContentPackage::~ContentPackage() {
void ContentPackage::LoadPackageLicenseMask(
const std::filesystem::path header_path) {
license_ = 0;
license_ = cvars::license_mask;
if (!std::filesystem::exists(header_path)) {
return;

View File

@ -139,7 +139,6 @@ class ContentPackage {
std::string device_path_;
XCONTENT_AGGREGATE_DATA content_data_;
uint32_t license_;
;
};
class ContentManager {