Detecting platform type in FCookModificationDele

I have some data tables that are referenced from within C code, there is a specific table for each platform type. As the datatables are referenced only from within C the packaging system doesn’t include them in a package build so I have implemented FCookModificationDelegate with which I can include the assets.

However I cannot seem to identify which platform the current package is being built for. I don’t want to include all the datatables in a package, only those specific to the platform.

Initially I tried used precompiler directives, but this doesn’t seem to work, I took a punt at using UGameplayStatics::GetPlatformName() but this doesn’t seem to work.

Is there a specific global variable, or static call I can make that will identify which platform the current packaging process is being run from within my code?

Thanks

Hello LinkoVitch,

You mention that you tried using UGameplayStatics::GetPlatformName(). What about this function doesn’t work? It returns a string that matches the name of the platform that you are currently running the application on. You could use this string as the condition for any conditional statements you need to use.

We haven’t heard from you in a while, LinkoVitch. Are you still experiencing this issue? If so, can you attempt what I suggested in my previous comment? In the meantime, I’ll be marking this issue as resolved for tracking purposes.