Ejemplo n.º 1
0
 internal FModuleStatus(FModuleStatusNative native)
 {
     Name         = native.Name;
     FilePath     = native.FilePath;
     IsLoaded     = native.IsLoaded;
     IsGameModule = native.IsGameModule;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Queries information about a specific module name.
        /// </summary>
        /// <param name="moduleName">Module to query status for.</param>
        /// <param name="outModuleStatus">Status of the specified module.</param>
        /// <returns>true if the module was found and the OutModuleStatus is valid, false otherwise.</returns>
        public bool QueryModule(FName moduleName, out FModuleStatus outModuleStatus)
        {
            FModuleStatusNative outModuleStatusUnsafe = new FModuleStatusNative();
            bool result = Native_FModuleManager.QueryModule(Address, ref moduleName, ref outModuleStatusUnsafe);

            outModuleStatus = new FModuleStatus(outModuleStatusUnsafe);
            outModuleStatusUnsafe.Dispose();
            return(result);
        }