//Pascal &or the FreePascal use of nintendo 2ds, 3ds regime // // Copyright (c) 2013, 2015, 2017 Kenneth Dwayne Lee Bsc. // all rights reserved // {* * @file env.h * @brief Homebrew environment information. } {/ System run-flags. } {/< Use APT workaround. } {/< Reinitialize APT. } type CTRU_RUNFLAG = (RUNFLAG_APTWORKAROUND := 1 shl 0, RUNFLAG_APTREINIT := 1 shl 1); {* * @brief Gets whether the application was launched from a homebrew environment. * @return Whether the application was launched from a homebrew environment. } function envIsHomebrew:boolean;cdecl;external; {* * @brief Retrieves a handle from the environment handle list. * @param name Name of the handle. * @return The retrieved handle. } function envGetHandle(name:pchar):Handle;cdecl;external; {* * @brief Gets the environment-recommended app ID to use with APT. * @return The APT app ID. } function envGetAptAppId:u32;cdecl;external; {* * @brief Gets the size of the application heap. * @return The application heap size. } function envGetHeapSize:u32;cdecl;external; {* * @brief Gets the size of the linear heap. * @return The linear heap size. } function envGetLinearHeapSize:u32;cdecl;external; {* * @brief Gets the environment argument list. * @return The argument list. } function envGetSystemArgList:pchar;cdecl;external; {* * @brief Gets the environment run flags. * @return The run flags. } function envGetSystemRunFlags:u32;cdecl;external;