Function calling method and device, electronic equipment and storage medium
A function call and function technology, applied in the direction of program control device, program control design, electrical digital data processing, etc., can solve the problems of waste of memory space, limited memory space, affecting user experience, etc., to optimize the startup process and improve startup efficiency Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0029] figure 1 It is a schematic flowchart of a function calling method provided by Embodiment 1 of the present invention. This embodiment is applicable to the case of selectively calling a function during the startup process of the target project, and the method can be executed by a function calling device , the device can be implemented by software and / or hardware, and can be configured in a terminal and / or server to implement the function calling method in the embodiment of the present invention.
[0030] Such as figure 1 As shown, the method in this embodiment may specifically include:
[0031] S110. During the startup process of the target project, load a pre-built function loading hook file.
[0032] As mentioned above, the target project may be a project that needs to be started at the current moment. Optionally, the target item may be an application program installed on a smart terminal. Typically, the smart terminal may be a mobile phone, a tablet computer, or a p...
Embodiment 2
[0060] figure 2 It is a schematic flowchart of a function calling method provided by Embodiment 2 of the present invention. On the basis of the above technical solution, this embodiment further refines the technical solution. In this embodiment, on the basis of any optional technical solution in the embodiments of the present invention, optionally, the function invocation method further includes: obtaining the pre-set A callable function list is stored in the local storage space corresponding to the client that starts the target project.
[0061] In this embodiment, on the basis of any optional technical solution in the embodiments of the present invention, optionally, determining whether the target function is callable based on the function loading hook file and the pre-created callable function list Before the function, it also includes: based on the version number of the callable function list, it is determined whether the callable function list is the latest callable fun...
Embodiment 3
[0091] In order for those skilled in the art to further understand the technical solutions of the embodiments of the present invention, the following examples take the target project as a game and the target terminal for starting the game as a client installed on a mobile phone as an example to give specific examples of application scenarios. Taking the target item as an example of a mobile game application, the method in the embodiment of the present invention may include the following steps:
[0092] Before the mobile client starts the game, the pre-built function loads the hook file;
[0093] Specifically, the dll generation method of c# in the native code library is used to pre-build a project EnginePreEntryHook that loads a hook file with a function, and generates a file EnginePreEntryHook.dll in a dynamic link database format. And the confirmation of whether the target function is in the callable function list is realized in EnginePreEntryHook.
[0094] During the start...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com