Skip to content

Build Configurations

Nanahira edited this page Feb 20, 2019 · 3 revisions

Build Configurations

Before premake5ing, you could set some environment variables to change some build configurations.

General

  • YGOPRO_DEFAULT_DUEL_RULE Will set the default duel rule to this the value of this variable.

Client

  • USE_IRRKLANG Apples on non-Windows. If defined, it will use the irrKlang sound library and enable sound.
  • irrklang_pro Apples on Windows. If defined, it will use the pro version of irrKlang. Overwrite the irrKlang.lib with your purchased pro version to build.
  • NO_IRRKLANG Applies on Windows. If defined, it will not use the irrKlang sound library and disable sound.
  • YGOPRO_NO_XP_TOOLSET Applies on Windows. If defined, it will not use the Windows XP Toolset. THhis may be useful when debugging on your own machine for non-release use. This
  • YGOPRO_LUA_SAFE If defined, it will disable the os and io lua libraries, to prevent harming your computer with dangerous lua scripts.
  • YGOPRO_COMPAT_MYCARD If defined, it will read user settings from system.conf rather than system_user.conf. This will make YGOPro compatitable with MyCard Client.

Server

  • YGOPRO_NO_LUA_SAFE If defined, it will enable the forbidden os and io lua libraries. Please run trusted lua scripts only if enabled, or it may cause security issues.
  • YGOPRO_USE_XP_TOOLSET Applies on Windows. If defined, it will use the Windows XP Toolset. This would be needed when building a server on Windows Server 2003.

Clone this wiki locally