mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-21 14:44:57 -04:00
prepare launcher for UGC
This commit is contained in:
parent
86d0919905
commit
4ed39ec344
11 changed files with 342 additions and 121 deletions
|
@ -12,7 +12,7 @@ SET(files basicobj.c
|
|||
mgifplaya.c
|
||||
pcx.c
|
||||
wav_mem.c
|
||||
strlite.c
|
||||
strlists.c
|
||||
cztable.c
|
||||
minimp3.c
|
||||
music.cpp
|
||||
|
|
|
@ -131,7 +131,7 @@ typedef struct ddlmap_info {
|
|||
char *path;
|
||||
} TDDLMAP_INFO;
|
||||
|
||||
#define MAX_PATCHES 4
|
||||
#define MAX_PATCHES 8
|
||||
|
||||
static TDDLMAP_INFO ddlmap[MAX_PATCHES];
|
||||
|
||||
|
@ -201,7 +201,8 @@ char get_file_entry(int group,const char *name, THANDLE_DATA *h) {
|
|||
|
||||
ex=mman_patch && test_file_exist_DOS(group,name);
|
||||
if (!ex) {
|
||||
for (int i = 0; i < MAX_PATCHES; ++i) {
|
||||
for (int i = MAX_PATCHES; i >0 ; ) {
|
||||
--i;
|
||||
const TDDLMAP_INFO *nfo = &ddlmap[i];
|
||||
if (nfo->ptr) {
|
||||
int sk = get_file_entry_in_table(&nfo->nametable, name);
|
||||
|
@ -329,6 +330,7 @@ void reload_ddls(void) {
|
|||
}
|
||||
h->status = BK_NOT_LOADED;
|
||||
h->blockdata = NULL;
|
||||
get_file_entry(h->path,h->src_file,h);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -275,16 +275,4 @@ void listbox(OBJREC *o)
|
|||
//o->done=string_list_done;
|
||||
}
|
||||
|
||||
/*void main()
|
||||
{
|
||||
TSTR_LIST test;
|
||||
int i,j;
|
||||
|
||||
test=read_directory("c:\\windows\\system\\*.*",DIR_BREIF,_A_NORMAL);
|
||||
j=str_count(test);
|
||||
for(i=0;i<j;i++)
|
||||
if (test[i]!=NULL) printf("%s\n",test[i]);
|
||||
printf("%d souboru.\n",j);
|
||||
release_list(test);
|
||||
}
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue