MCPcopy Create free account
hub / github.com/Wassimulator/CactusViewer / create_loader_inputs

Function create_loader_inputs

src/source.cpp:867–875  ·  view source on GitHub ↗

Helper to create heap-allocated loader inputs (thread will free it)

Source from the content-addressed store, hash-verified

865
866// Helper to create heap-allocated loader inputs (thread will free it)
867static 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
877static void reset_to_no_folder() {
878 if (G->loading_dropped_file)

Callers 2

load_image_immediateFunction · 0.85
wmainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected