@chiyou/minigame-framework 1.4.5 → 1.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -100,11 +100,11 @@ export abstract class AbsPlatformAdapter extends Component{
|
|
|
100
100
|
return { scene: this.warmStartScene, category: LaunchCategory.Other };
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
/**
|
|
103
|
+
/** 获取当前启动场景分类(热启动优先,未命中再查冷启动) */
|
|
104
104
|
public getLaunchCategory(): LaunchCategory {
|
|
105
|
-
const
|
|
106
|
-
if (
|
|
107
|
-
return this.
|
|
105
|
+
const warm = this.getWarmStartSceneInfo();
|
|
106
|
+
if (warm.category !== LaunchCategory.Other) return warm.category;
|
|
107
|
+
return this.getColdStartSceneInfo().category;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
/** 判断是否从指定分类启动(OR逻辑:冷启动或热启动任意匹配即返回true,兼容原 isLaunchFromXxx) */
|