summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 925644f)
raw | patch | inline | side by side (parent: 925644f)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Thu, 8 Apr 2021 12:27:17 +0000 (15:27 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Thu, 8 Apr 2021 12:27:17 +0000 (15:27 +0300) |
src/files.c | patch | blob | history | |
src/files.h | patch | blob | history | |
src/kos32/main.c | patch | blob | history | |
src/memory.c | patch | blob | history | |
src/memory.h | patch | blob | history | |
src/sdl/main.c | patch | blob | history | |
src/sdl2/main.c | patch | blob | history |
diff --git a/src/files.c b/src/files.c
index 2eab3a877e8a1cd07c4a1e82ada8ec1b6bf2b8a6..b46856d21fcc8eb63d3697dba10bf37b8d8a58ec 100644 (file)
--- a/src/files.c
+++ b/src/files.c
static int m_start, m_end;
static int s_start, s_end;
-void F_startup (void) {
- logo("F_startup: setup file system\n");
-}
-
void F_addwad (const char *fn) {
static int i = 0;
static FILE_Stream wadh[MAX_WADS];
if (!WADRES_rehash()) {
ERR_failinit("F_initwads: failed rehash");
}
-}
-
-void F_allocres (void) {
d_start = F_getresid("D_START");
d_end = F_getresid("D_END");
m_start = F_getresid("M_START");
s_end = F_getresid("S_END");
}
-void F_loadres (int r, void *p) {
- WADRES_getdata(r, p);
-}
-
int F_findres (const char n[8]) {
return WADRES_find(n);
}
return WADRES_getsize(r);
}
+/*
void F_nextmus (char *s) {
int i = F_findres(s);
if (i <= m_start || i >= m_end) {
F_nextmus(s);
}
}
+*/
void F_loadmap (char n[8]) {
int id = F_getresid(n);
diff --git a/src/files.h b/src/files.h
index 1fa7db86695d01cf5b96bee5d9e9b8caef36e639..5603209689f209514f8f61d06dc1f7454fffd977 100644 (file)
--- a/src/files.h
+++ b/src/files.h
extern char savok[SAVE_MAX];
extern int d_start, d_end;
-void F_startup (void);
void F_addwad (const char *fn);
void F_initwads (void);
-void F_allocres (void);
-void F_loadres (int r, void *p);
int F_findres (const char n[8]);
int F_getresid (const char n[8]);
void F_getresname (char n[8], int r);
int F_getsprid (const char n[4], int s, int d, char *dir);
int F_getreslen (int r);
-void F_nextmus (char *s);
-void F_randmus (char *s);
+// void F_nextmus (char *s);
+// void F_randmus (char *s);
void F_loadmap (char n[8]);
diff --git a/src/kos32/main.c b/src/kos32/main.c
index c9ebfffe31f0b4b22ba9f9d2e537b4700fb23012..dc29252ae4974231831827eb147977b634db2973 100644 (file)
--- a/src/kos32/main.c
+++ b/src/kos32/main.c
R_done();
MUS_done();
S_done();
- M_shutdown();
puts("\nCRITICAL ERROR:");
va_start(ap, s);
vprintf(s, ap);
pl2.kwr = KEY_2;
pl2.kp = KEY_E;
srand(GetIdleCount());
- F_startup();
CFG_load();
F_addwad("doom2d.wad");
F_initwads();
- M_startup();
- F_allocres();
S_init();
MUS_init();
R_init();
R_done();
MUS_done();
S_done();
- M_shutdown();
logo("system: halt\n");
return 0;
}
diff --git a/src/memory.c b/src/memory.c
index bd3c609b860a429a81d4b01b97a1a2b0db33ba63..9019586e75d866a11d339368f3f2f515e2a4bb52 100644 (file)
--- a/src/memory.c
+++ b/src/memory.c
#include "memory.h"
#include "common/wadres.h"
-void M_startup (void) {
- // stub
-}
-
-void M_shutdown (void) {
- // stub
-}
-
void *M_lock (int id) {
return WADRES_lock(id);
}
diff --git a/src/memory.h b/src/memory.h
index 90585d0f6a801ed1194a319199cc350b6dcfd1c2..4174f76732c995abd1dc8270a58097bd6443d8d0 100644 (file)
--- a/src/memory.h
+++ b/src/memory.h
#ifndef MEMORY_H_INCLULDED
#define MEMORY_H_INCLULDED
-void M_startup (void);
-void M_shutdown (void);
void *M_lock (int h);
void M_unlock (void *p);
int M_locked (int h);
diff --git a/src/sdl/main.c b/src/sdl/main.c
index 23f331175700a01b6a4522245248b166464d2b1c..2243ce07cdf74ecc3f545e29e7d4e22fda73c6e0 100644 (file)
--- a/src/sdl/main.c
+++ b/src/sdl/main.c
R_done();
MUS_done();
S_done();
- M_shutdown();
SDL_Quit();
puts("\nCRITICAL ERROR:");
va_start(ap, s);
pl2.kwr = KEY_2;
pl2.kp = KEY_E;
srand(SDL_GetTicks());
- F_startup();
F_addwad("doom2d.wad");
CFG_args(argc, argv);
CFG_load();
F_initwads();
- M_startup();
- F_allocres();
S_init();
MUS_init();
R_init();
R_done();
MUS_done();
S_done();
- M_shutdown();
SDL_Quit();
return 0;
}
diff --git a/src/sdl2/main.c b/src/sdl2/main.c
index 9533040a3454bf9ae127a4651619ece810a5f1a0..3f149b53302fc22e1722dccbb1c382d33470eef8 100644 (file)
--- a/src/sdl2/main.c
+++ b/src/sdl2/main.c
R_done();
MUS_done();
S_done();
- M_shutdown();
SDL_Quit();
puts("\nCRITICAL ERROR:");
va_start(ap, s);
pl2.kwr = KEY_2;
pl2.kp = KEY_E;
srand(SDL_GetTicks());
- F_startup();
CFG_load();
F_addwad("doom2d.wad");
F_initwads();
- M_startup();
- F_allocres();
S_init();
MUS_init();
R_init();
R_done();
MUS_done();
S_done();
- M_shutdown();
SDL_Quit();
return 0;
}