What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Anywhere in the API to know RB's version at runtime?

Neverdyne

Community Developer
Joined
Sep 12, 2014
Messages
649
Is there any way to know if RB is the English or Chinese version at runtime?
 
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.
 
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.

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.
 
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.
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.
 
The example I provided would allow a check to be done at runtime due to the compile time conditionals.
 
Back
Top