-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathModloader.c
39 lines (35 loc) · 837 Bytes
/
Modloader.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include <stdio.h>
#include "Modloader.h"
#define MAX_TEXT_LENGTH 65536
void LoadMod(const char* path)
{
char* buf;
ModInfo* mod_info = malloc(sizeof(ModInfo));
FILE* test_file = fopen(path,"r");
//fgets()
// fgets(mod_info.author,MAX_TEXT_LENGTH,test_file);
//fgets(mod_info.client_version.major)
//fwrite(LoadMod,sizeof(LoadMod),sizeof(LoadMod),test_file);
// fputc(1.0f,test_file);
fclose(test_file);
/* HINSTANCE result = LoadLibrary(path);
if (result == NULL) {
printf("Failed to load DLL:%i",GetLastError());
}
else {
Draw_func* draw2 = (Draw_func*)GetProcAddress(result, "draw");
draw2();
}*/
}
void Test(){
printf("test");
}
void CreateEntity(const char* path)
{
}
void CreateSound(const char* path)
{
}
void CreateScript(const char* path)
{
}