From 7a572ff1f378cc71b0ae27a067dbdf6ee1f84cd8 Mon Sep 17 00:00:00 2001 From: gem <> Date: Mon, 17 Feb 2025 16:24:28 +0800 Subject: [PATCH] no message --- cocos_view_pod.podspec | 2 +- cocos_view_pod/Classes/dcocos_bridge.h | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/cocos_view_pod.podspec b/cocos_view_pod.podspec index f9c90fb..92bf30e 100644 --- a/cocos_view_pod.podspec +++ b/cocos_view_pod.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'cocos_view_pod' - s.version = '0.1.14' + s.version = '0.1.15' s.summary = 'A short description of cocos_view_pod.' # This description is used to generate tags and improve search results. diff --git a/cocos_view_pod/Classes/dcocos_bridge.h b/cocos_view_pod/Classes/dcocos_bridge.h index 6c61d47..2efdd1a 100644 --- a/cocos_view_pod/Classes/dcocos_bridge.h +++ b/cocos_view_pod/Classes/dcocos_bridge.h @@ -10,15 +10,26 @@ @interface dcocos_bridge : NSObject + (dcocos_bridge *)instance; +/** + Sets the custom resource directory path. + @param path The custom path string (e.g., @"/customFolder") that will be appended to the Documents directory. + */ +- (void)setCustomResourcePath:(NSString *)path; + +/** + Configures Cocos2d-x search paths by using the previously set custom resource path. + If no custom path has been set, it defaults to @"/hhhh". + */ +- (void)configureCocos2dSearchPaths; - (void)initPlatform; - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions; - (void)applicationWillResignActive:(UIApplication *)application; - (void)applicationDidBecomeActive:(UIApplication *)application; - (void)applicationWillTerminate:(UIApplication *)application; - (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id)coordinator; -- (UIView*)getCocosView; -- (void)setCocosView:(UIView*)view; +- (UIView *)getCocosView; +- (void)setCocosView:(UIView *)view; - (float)getCocosPixelRatio; + (void)callS:(NSString *)funcName args:(NSString *)args;