Helper to create heap-allocated loader inputs (thread will free it)
| 865 | |
| 866 | // Helper to create heap-allocated loader inputs (thread will free it) |
| 867 | static Loader_Thread_Inputs* create_loader_inputs(wchar_t *path, u32 id, File_Data* file_data, bool dropped) { |
| 868 | Loader_Thread_Inputs *inputs = (Loader_Thread_Inputs*)malloc(sizeof(Loader_Thread_Inputs)); |
| 869 | inputs->path = path; |
| 870 | inputs->id = id; |
| 871 | inputs->file_data = file_data; |
| 872 | inputs->dropped = dropped; |
| 873 | inputs->heap_allocated = true; |
| 874 | return inputs; |
| 875 | } |
| 876 | |
| 877 | static void reset_to_no_folder() { |
| 878 | if (G->loading_dropped_file) |
no outgoing calls
no test coverage detected