aws / aws-gamekit-unreal

The AWS GameKit Plugin for Unreal
https://docs.aws.amazon.com/gamekit/latest/DevGuide/getting-started.html
Apache License 2.0
68 stars 18 forks source link

awsGameKitClientConfig.yml in shipping package #20

Closed 1123581321345589144233377 closed 2 years ago

1123581321345589144233377 commented 2 years ago

Hello Gamekit Team,

I built windows shipping package. And there was "awsGameKitClientConfig.yml"(WindowsNoEditor{ProjectName}\Content\GameKitConfig\awsGameKitClientConfig.yml) config file. I don't want this file to be easily accessible for clients. Is there a way to read these config properties from source code? Or is it ok to be visible to the client?

thanks

amzn-adrian commented 2 years ago

Hi,

An option is to hard code the properties as a newline-separated, null-terminated string that has the same contents as the config file and pass it to AwsGameKitSessionManagerWrapper::GameKitSessionManagerReloadConfigContents() inside AwsGameKitSessionManagerWrapper::ReloadConfig(). Both functions are in AwsGameKitSessionManagerWrapper.cpp.