#if RB_CN
public static readonly string Locale = "CN";
#else
public static readonly string Locale = "EN";
#endif
You could set your own value in a constant and use the compile condition
Code:#if RB_CN public static readonly string Locale = "CN"; #else public static readonly string Locale = "EN"; #endif
I'm not sure if there is a place that mastahg is already storing this, but I do know it displays a log value at startup.
I'm not trying to be rude, but that doesn't really answer the question. I think most community developers know about the Conditional Compilation Symbols for RB_CN and RB_KR. I think that Neverdyne is asking if there's a way to know what client the customer is using at RUNTIME not compile time.RB_CN is defined for the Chinese client and RB_KR for the Korean client. You can just use #if (!RB_CN && !RB_KR) or #elseif.






