CN118193083A - Software resource loading method and device, computer equipment and storage medium - Google Patents

Software resource loading method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN118193083A
CN118193083A CN202410395536.1A CN202410395536A CN118193083A CN 118193083 A CN118193083 A CN 118193083A CN 202410395536 A CN202410395536 A CN 202410395536A CN 118193083 A CN118193083 A CN 118193083A
Authority
CN
China
Prior art keywords
target
file
application
resource
loading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410395536.1A
Other languages
Chinese (zh)
Inventor
刘志付
乔乐毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Lilith Interactive Entertainment Network Technology Co ltd
Original Assignee
Shanghai Lilith Interactive Entertainment Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Lilith Interactive Entertainment Network Technology Co ltd filed Critical Shanghai Lilith Interactive Entertainment Network Technology Co ltd
Priority to CN202410395536.1A priority Critical patent/CN118193083A/en
Publication of CN118193083A publication Critical patent/CN118193083A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/77Game security or game management aspects involving data related to game devices or game servers, e.g. configuration data, software version or amount of memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • General Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The present application relates to the field of software development, and in particular, to a method, an apparatus, a computer device, a storage medium, and a computer program product for loading a software resource. The method comprises the following steps: in response to the launching of a target application, obtaining a file list, the file list generated based on application resources associated with the target application; generating proxy resources corresponding to the application resources based on the file list; determining a target proxy resource associated with a target file in the application resource in response to an access request to the target file; and acquiring the target file through the target agent resource, and loading the target file in the target application. The method can improve the starting and loading efficiency of the software, shorten the starting flow of the application, improve the starting speed of the target application and meet the use requirement of a user through proxy resources.

Description

Software resource loading method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of software development, and in particular, to a method, an apparatus, a computer device, a storage medium, and a computer program product for loading a software resource.
Background
The loading of the software file refers to loading various files required by the program into the memory in the running process of the software, so that the program can normally run and perform corresponding operations. The loading of the software file is an indispensable loop for the running of the software, and the software can acquire required resources and data by loading various files so as to realize various functions and operations. The reasonable file loading mechanism can improve the performance and user experience of the software, ensure that the software can normally run and meet the user requirements.
In specific applications, game file loading is an important link in game development, and during the development and running of game software, a large number of game files need to be read to realize the functions of software design, and the game files can include resource files, configuration files and the like, for example, in the game field, the numerical values and control variables of various functions and playing methods of the game are configured through CSV, json files and the like, and mainly relate to loading various resource files such as pictures, audio and video and the like required by the game. The main process of game file loading generally includes: initializing a resource manager; configuring a resource path; a file loading request; file loading processing; file loading callback; releasing resources; error handling; and (5) optimizing performance. Through the flow, the game can efficiently load various resource files, ensure the normal running of the game and promote the user experience. In actual game development, a developer can customize a resource loading flow according to specific requirements, and a more flexible and efficient game file loading mechanism is realized.
In the related art, for online game software products, all corresponding configuration files are generally loaded in the process of starting the software, so as to realize the functional configuration of the software.
However, the applicant finds that the present software resource loading method has the following technical problems:
with the continuous version update of game software, more and more game contents are added, the number of files to be read by the software loading becomes larger, the data amount becomes larger, the starting speed of the software is influenced, the starting time is too long, and the use experience of a user is negatively influenced.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a software resource loading method, apparatus, computer device, computer readable storage medium, and computer program product that can improve the boot loading efficiency of software.
In a first aspect, the present application provides a method for loading software resources. The method comprises the following steps:
In response to the launching of a target application, obtaining a file list, the file list generated based on application resources associated with the target application;
generating proxy resources corresponding to the application resources based on the file list;
Determining a target proxy resource associated with a target file in the application resource in response to an access request to the target file;
And acquiring the target file through the target agent resource, and loading the target file in the target application.
In one embodiment, the obtaining, by the target proxy resource, the target file, and loading the target file in the target application includes:
acquiring the target file, and responding to the access request based on the target file;
And loading the target file in the target application.
In one embodiment, the loading the target file in the target application includes:
And if the access request is the first request pointing to the target file, covering the target proxy resource with the target file.
In one embodiment, the loading the target file in the target application includes:
if the access request does not point to the first request of the target file, the access request is directly responded by the target file.
In one embodiment, the responding to the starting of the target application obtains a file list, and before the file list is generated based on the application resource associated with the target application, the method further comprises:
determining the application resource associated with the target application, and generating a unique identifier associated with a resource file in the application resource;
The file list associated with the target application is obtained based on the unique identification.
In one embodiment, the obtaining, by the target proxy resource, the target file, and loading the target file in the target application includes:
And acquiring the target file, and storing the target file to an address associated with the target proxy resource.
In a second aspect, the application also provides a software resource loading device. The device comprises:
The starting response module is used for responding to the starting of the target application and acquiring a file list, wherein the file list is generated based on application resources associated with the target application;
the agent generation module is used for generating agent resources corresponding to the application resources based on the file list;
An access response module for determining a target proxy resource associated with a target file in the application resource in response to an access request for the target file;
And the agent loading module is used for acquiring the target file through the target agent resource and loading the target file in the target application.
In one embodiment, the proxy loading module includes:
The target file acquisition module is used for acquiring the target file and responding to the access request based on the target file;
And the target file loading module is used for loading the target file in the target application.
In one embodiment, the target file loading module includes:
and the first request module is used for covering the target proxy resource with the target file if the access request is the first request pointing to the target file.
In one embodiment, the target file loading module includes:
And the repeated request module is used for directly responding to the access request by the target file if the access request does not point to the first request of the target file.
In one embodiment, before the start response module, the method further includes:
A unique identification module for determining the application resource associated with the target application, generating a unique identification associated with a resource file in the application resource;
And the file list module is used for obtaining the file list associated with the target application based on the unique identification.
In one embodiment, the proxy loading module includes:
And the associated address storage module is used for acquiring the target file and storing the target file to an address associated with the target proxy resource.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the steps of a software resource loading method according to any one of the embodiments of the first aspect when the processor executes the computer program.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of a software resource loading method according to any one of the embodiments of the first aspect.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of a method for loading software resources according to any one of the embodiments of the first aspect.
The software resource loading method, the device, the computer equipment, the storage medium and the computer program product can achieve the following beneficial effects corresponding to the technical problems in the background art through the technical characteristics in the claims:
The application provides a software resource loading method, which mainly comprises the following steps: upon receiving a start operation of the target application, in response to the start of the target application, a file list is acquired, the file list being generated based on application resources associated with the target application, and then proxy resources corresponding to the application resources may be generated based on the file list, at which time the start of the target application may be achieved. When an access request of a target file in the application resource is received, determining a target agent resource associated with the target file, and finally obtaining the target file through the target agent resource, thereby loading the target file in the target application. In the implementation, when the software is started, a file list of files to be loaded is firstly obtained, and proxy resources are generated for each file in the file list, so that the addition of proxy objects is realized, and then the software is started. The method is beneficial to shortening the starting flow of the application and improving the starting speed of the target application. When an access request for a file is received, the target file is accessed through the proxy object, and then the proxy object is replaced by the accessed target file, so that the use requirement of a user can be met through proxy resources, and the purposes of improving the software starting efficiency and the resource response stability are achieved at the same time.
Drawings
FIG. 1 is an application environment diagram of a software resource loading method in one embodiment;
FIG. 2 is a first flow chart of a method for loading software resources according to one embodiment;
FIG. 3 is a second flow chart of a method for loading software resources according to another embodiment;
FIG. 4 is a third flow chart of a method for loading software resources according to another embodiment;
FIG. 5 is a fourth flowchart of a software resource loading method according to another embodiment;
FIG. 6 is a fifth flowchart of a software resource loading method according to another embodiment;
FIG. 7 is a sixth flowchart of a software resource loading method according to another embodiment;
FIG. 8 is a block diagram of a software resource loading device in one embodiment;
fig. 9 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
In specific applications, game file loading is an important link in game development, and during the development and running of game software, a large number of game files need to be read to realize the functions of software design, and the game files can include resource files, configuration files and the like, for example, in the game field, the numerical values and control variables of various functions and playing methods of the game are configured through CSV, json files and the like, and mainly relate to loading various resource files such as pictures, audio and video and the like required by the game. The main process of game file loading generally includes: initializing a resource manager; configuring a resource path; a file loading request; file loading processing; file loading callback; releasing resources; error handling; and (5) optimizing performance. Through the flow, the game can efficiently load various resource files, ensure the normal running of the game and promote the user experience. In actual game development, a developer can customize a resource loading flow according to specific requirements, and a more flexible and efficient game file loading mechanism is realized.
In the related art, for online game software products, all corresponding configuration files are generally loaded in the process of starting the software, so as to realize the functional configuration of the software.
However, the applicant finds that the present software resource loading method has the following technical problems:
with the continuous version update of game software, more and more game contents are added, the number of files to be read by the software loading becomes larger, the data amount becomes larger, the starting speed of the software is influenced, the starting time is too long, and the use experience of a user is negatively influenced.
Based on the above problems, the method for loading software resources provided by the embodiment of the application can be applied to an application environment as shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104 or may be located on a cloud or other network server. Specifically, the terminal 102 may be used as a carrier for starting an application, and the starting of the application and the loading and displaying of the resource are realized through the terminal 102. The application resources may be stored locally at the terminal 102 or in the form of cloud resources in the server 104. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and portable wearable devices, where the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart vehicle devices, and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
In one embodiment, as shown in fig. 2, a method for loading software resources is provided, and the method is applied to the terminal in fig. 1 for illustration, and includes the following steps:
Step 202: in response to launching of a target application, a file list is obtained, the file list generated based on application resources associated with the target application.
Where the file list may refer to being generated based on application resources associated with the target application. Resources may refer broadly to various resources required in the use and development of game software, and may include development tools, programming libraries, frameworks, test tools, third party services, graphics resources, data resources, security resources, and the like. Resource files may refer to files used to store various resources required by game software in the local files of the software, which are typically stored separately from the software source code to reduce the coupling of the code.
For example, the terminal may acquire the file list in response to the start of the target application when the target application is started.
Step 204: and generating proxy resources corresponding to the application resources based on the file list.
Where a proxy resource may refer to a support resource of a structural design model, with the purpose of providing a proxy or placeholder for other objects to control access to the object, the proxy may provide additional functionality such as access control, caching, deferred loading, etc., without changing the original object.
For example, the terminal may generate proxy resources corresponding to the application resources based on the file list.
Step 206: in response to an access request to a target file in the application resource, a target proxy resource associated with the target file is determined.
Wherein the target proxy resource may refer to a particular proxy resource corresponding to the target file to which the access request refers.
Illustratively, the terminal may determine a target proxy resource associated with a target file in the application resource in response to an access request for the target file.
Step 208: and acquiring the target file through the target agent resource, and loading the target file in the target application.
The object file may refer to a software resource file configured by a software application in development, and may be a non-code file stored in an application program, which is used for storing configuration information, text content, images, audio, video and other resources.
The terminal can acquire the target file through the target agent resource, and load the target file in the target application.
In the software resource loading method, the technical characteristics in the embodiment are combined to carry out reasonable deduction, so that the following beneficial effects of solving the technical problems in the background technology can be achieved:
The application provides a software resource loading method, which mainly comprises the following steps: upon receiving a start operation of the target application, in response to the start of the target application, a file list is acquired, the file list being generated based on application resources associated with the target application, and then proxy resources corresponding to the application resources may be generated based on the file list, at which time the start of the target application may be achieved. When an access request of a target file in the application resource is received, determining a target agent resource associated with the target file, and finally obtaining the target file through the target agent resource, thereby loading the target file in the target application. In the implementation, when the software is started, a file list of files to be loaded is firstly obtained, and proxy resources are generated for each file in the file list, so that the addition of proxy objects is realized, and then the software is started. The method is beneficial to shortening the starting flow of the application and improving the starting speed of the target application. When an access request for a file is received, the target file is accessed through the proxy object, and then the proxy object is replaced by the accessed target file, so that the use requirement of a user can be met through proxy resources, and the purposes of improving the software starting efficiency and the resource response stability are achieved at the same time.
In one embodiment, as shown in FIG. 3, step 208 includes:
step 208-1: and acquiring the target file, and responding to the access request based on the target file.
The terminal may implement access control and management of the proxy mode through the target proxy resource, thereby acquiring the target file, and responding to the access request based on the target file.
Step 208-2: and loading the target file in the target application.
For example, the terminal may load the target file in the target application after acquiring the target file.
In this embodiment, the target Proxy resource exists as a Proxy Object, which is an Object that acts as an interface to another Object (the target file that is actually needed to be loaded). Proxy objects are typically used to control access to real objects and to perform additional operations before or after accessing real objects. In the process of responding to the request through the target proxy resource, the terminal can interact with the target file through the proxy object to achieve the purposes of delaying access and loading, so that the file reading and the file loading become two independent steps, and the method is different from the scheme of directly and completely reading all files in the loading in the prior art, and can improve the file loading efficiency.
In one embodiment, as shown in FIG. 4, step 208-2 includes:
step 208-2a: and if the access request is the first request pointing to the target file, covering the target proxy resource with the target file.
For example, if the access request is the first request directed to the target file, the terminal may cover the target proxy resource with the target file, so that in the subsequent access request, the target proxy resource is directly responded, and processing in the proxy mode is not required, which is helpful to improve the subsequent resource response efficiency.
In this embodiment, after the first access, the target file to be loaded is used to replace the proxy resource, which can further improve the loading efficiency.
In one embodiment, as shown in FIG. 5, step 208-2 includes:
step 208-2b: if the access request does not point to the first request of the target file, the access request is directly responded by the target file.
For example, if the access request does not point to the first request of the target file, the terminal may directly respond to the access request with the target file.
In this embodiment, after the proxy resource is replaced, the second or subsequent request can directly respond, and the proxy resource is not required to be processed, so that the response efficiency can be improved.
In one embodiment, as shown in fig. 6, before step 202, the method further includes:
step 602: determining the application resource associated with the target application, and generating a unique identifier associated with a resource file in the application resource.
The unique identifier may refer to identification information for uniquely identifying a certain entity or object, and may be a character string or a number, which has global uniqueness.
For example, the terminal may determine the application resource associated with the target application, generate a unique identification associated with a resource file in the application resource.
Step 604: the file list associated with the target application is obtained based on the unique identification.
For example, the terminal may obtain the file list associated with the target application based on the unique identification.
In this embodiment, the elements associated with the resource file in the file list are unique identifiers, which is helpful to improve the stability of file loading.
In one embodiment, as shown in FIG. 7, step 208 includes:
Step 208-3: and acquiring the target file, and storing the target file to an address associated with the target proxy resource.
For example, the terminal may obtain the target file, and store the target file to an address associated with the target proxy resource.
In this embodiment, the proxy resource is used to start software and store the corresponding file in the corresponding address, so that the response efficiency of the subsequent request can be improved.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a software resource loading device for realizing the above related software resource loading method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation of one or more embodiments of the software resource loading device provided below may refer to the limitation of a software resource loading method hereinabove, and will not be repeated herein.
In one embodiment, as shown in fig. 8, there is provided a software resource loading apparatus, including: the system comprises a start response module, an agent generation module, an access response module and an agent loading module, wherein:
The starting response module is used for responding to the starting of the target application and acquiring a file list, wherein the file list is generated based on application resources associated with the target application;
the agent generation module is used for generating agent resources corresponding to the application resources based on the file list;
An access response module for determining a target proxy resource associated with a target file in the application resource in response to an access request for the target file;
And the agent loading module is used for acquiring the target file through the target agent resource and loading the target file in the target application.
In one embodiment, the proxy loading module includes:
The target file acquisition module is used for acquiring the target file and responding to the access request based on the target file;
And the target file loading module is used for loading the target file in the target application.
In one embodiment, the target file loading module includes:
and the first request module is used for covering the target proxy resource with the target file if the access request is the first request pointing to the target file.
In one embodiment, the target file loading module includes:
And the repeated request module is used for directly responding to the access request by the target file if the access request does not point to the first request of the target file.
In one embodiment, before the start response module, the method further includes:
A unique identification module for determining the application resource associated with the target application, generating a unique identification associated with a resource file in the application resource;
And the file list module is used for obtaining the file list associated with the target application based on the unique identification.
In one embodiment, the proxy loading module includes:
And the associated address storage module is used for acquiring the target file and storing the target file to an address associated with the target proxy resource.
Each module in the above-described software resource loading device may be implemented in whole or in part by software, hardware, and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure thereof may be as shown in fig. 9. The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input means. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a method of loading software resources. The display unit of the computer device is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by persons skilled in the art that the architecture shown in fig. 9 is merely a block diagram of some of the architecture relevant to the present inventive arrangements and is not limiting as to the computer device to which the present inventive arrangements are applicable, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In an embodiment, there is also provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, carries out the steps of the method embodiments described above.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data need to comply with the related laws and regulations and standards of the related country and region.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magneto-resistive random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (PHASE CHANGE Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in various forms such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (10)

1. A method for loading a software resource, the method comprising:
In response to the launching of a target application, obtaining a file list, the file list generated based on application resources associated with the target application;
generating proxy resources corresponding to the application resources based on the file list;
Determining a target proxy resource associated with a target file in the application resource in response to an access request to the target file;
And acquiring the target file through the target agent resource, and loading the target file in the target application.
2. The method of claim 1, wherein the obtaining the target file through the target proxy resource, loading the target file in the target application comprises:
acquiring the target file, and responding to the access request based on the target file;
And loading the target file in the target application.
3. The method of claim 2, wherein loading the target file in the target application comprises:
And if the access request is the first request pointing to the target file, covering the target proxy resource with the target file.
4. The method of claim 3, wherein loading the target file in the target application comprises:
if the access request does not point to the first request of the target file, the access request is directly responded by the target file.
5. The method of any one of claims 1 to 4, wherein the obtaining, in response to the launching of the target application, a file list, the file list further comprising, prior to the generating based on the application resources associated with the target application:
determining the application resource associated with the target application, and generating a unique identifier associated with a resource file in the application resource;
The file list associated with the target application is obtained based on the unique identification.
6. The method of claim 1, wherein the obtaining the target file through the target proxy resource, loading the target file in the target application comprises:
And acquiring the target file, and storing the target file to an address associated with the target proxy resource.
7. A software resource loading apparatus, the apparatus comprising:
The starting response module is used for responding to the starting of the target application and acquiring a file list, wherein the file list is generated based on application resources associated with the target application;
the agent generation module is used for generating agent resources corresponding to the application resources based on the file list;
An access response module for determining a target proxy resource associated with a target file in the application resource in response to an access request for the target file;
And the agent loading module is used for acquiring the target file through the target agent resource and loading the target file in the target application.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202410395536.1A 2024-04-02 2024-04-02 Software resource loading method and device, computer equipment and storage medium Pending CN118193083A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410395536.1A CN118193083A (en) 2024-04-02 2024-04-02 Software resource loading method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410395536.1A CN118193083A (en) 2024-04-02 2024-04-02 Software resource loading method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN118193083A true CN118193083A (en) 2024-06-14

Family

ID=91403412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410395536.1A Pending CN118193083A (en) 2024-04-02 2024-04-02 Software resource loading method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN118193083A (en)

Similar Documents

Publication Publication Date Title
CN111389014A (en) Game resource data monitoring method and device, computer equipment and storage medium
CN110888972A (en) Sensitive content identification method and device based on Spark Streaming
CN116258597A (en) Document processing method, device, computer equipment and storage medium
US9146720B1 (en) Binary file application processing
CN118193083A (en) Software resource loading method and device, computer equipment and storage medium
CN114692056A (en) Target page generation method and device, computer equipment and storage medium
CN116662143A (en) Test method, apparatus, device, storage medium and computer program product
US11768693B2 (en) System and method for configurable device management
CN114528045B (en) Plug-in operation method, device, computer equipment and storage medium
CN116701234B (en) Application program debugging method and device, computer equipment and storage medium
CN116226187A (en) Data caching method, device, computer equipment and storage medium
CN117389989A (en) Data synchronization method, apparatus, computer device, storage medium, and program product
CN116737140A (en) Business component construction method, device, computer equipment and storage medium
CN117056220A (en) Batch job testing method and device, computer equipment and storage medium
CN116915976A (en) Method, apparatus, device and computer readable medium for testing platform
CN115407974A (en) Business pushing method, device, computer equipment, storage medium and program product
CN115834953A (en) Special effect resource rendering method and device, live broadcast system, equipment and storage medium
CN117331625A (en) Page resource loading method and device, computer equipment and storage medium
CN117235318A (en) Data processing method, device, electronic equipment and readable storage medium
CN117290251A (en) Test data acquisition method, device, computer equipment and storage medium
CN116400922A (en) Interface guide schematic diagram generation method, device, computer equipment and storage medium
CN116431286A (en) Virtual machine system, method of controlling virtual machine, computer device, and storage medium
CN116166417A (en) Application program reorganization method, device, computer equipment and storage medium
CN117807334A (en) First screen page display method and device, computer equipment and storage medium
CN117435651A (en) Test data processing method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination