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