Change the data folder directory (SetDefaultUserStorage)
caution
Before calling InitSDK, game developers need to set the user data cache directory and shared data cache directory.
The Player Network SDK will automatically add the game ID and application name to the path set by this interface.
If the game does not call this interface, the default path for Player Network SDK cache data is %ProgramData%\INTL\{game id}\{application name}\.For example, if the game ID is 11 and the game application name is INTLSDKDemo, then the cache data is saved at C:\ProgramData\INTL\11\INTLSDKDemo\ when this interface is not called.
Function Definition
public static void SetSDKDefaultUserStorage(string dir);
Input Parameters
| Parameters | Type | Explanation |
|---|---|---|
| dir | string | Directory of the user data folder |
Code example
// For example, the game ID is 11 and the game application name is INTLSDKDemo.
// The game calls the following interface:
INTLAPI.SetSDKDefaultUserStorage("D:\game_data\");
// The Player Network SDK data cache directory is D:\game_data\11\INTLSDKDemo\.