mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 14:52:01 +00:00
git-svn-id: https://svn.eduke32.com/eduke32@132 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
106f0efd24
commit
c0f4fd552b
2 changed files with 18 additions and 17 deletions
|
@ -160,7 +160,7 @@ endif
|
|||
all: eduke32$(EXESUFFIX) mapster32$(EXESUFFIX)
|
||||
|
||||
eduke32$(EXESUFFIX): $(GAMEOBJS) $(EOBJ)$(ENGINELIB)
|
||||
$(CC) $(CFLAGS) $(OURCFLAGS) -o $@ $^ $(JFAUDLIBS) $(LIBS) $(STDCPPLIB) -Wl,-Map=$@.map
|
||||
$(CC) -o $@ $^ $(JFAUDLIBS) $(LIBS) $(STDCPPLIB) -Wl,-Map=$@.map
|
||||
-rm eduke32.sym$(EXESUFFIX)
|
||||
cp eduke32$(EXESUFFIX) eduke32.sym$(EXESUFFIX)
|
||||
strip eduke32$(EXESUFFIX)
|
||||
|
@ -171,6 +171,10 @@ mapster32$(EXESUFFIX): $(EDITOROBJS) $(EOBJ)$(EDITORLIB) $(EOBJ)$(ENGINELIB)
|
|||
cp mapster32$(EXESUFFIX) mapster32.sym$(EXESUFFIX)
|
||||
strip mapster32$(EXESUFFIX)
|
||||
|
||||
duke3d_w32$(EXESUFFIX): $(OBJ)wrapper.$o
|
||||
$(CC) $(CFLAGS) $(OURCFLAGS) -o $@ $^ -Wl
|
||||
strip duke3d_w32$(EXESUFFIX)
|
||||
|
||||
include Makefile.deps
|
||||
|
||||
.PHONY: enginelib editorlib
|
||||
|
@ -222,7 +226,7 @@ clean:
|
|||
ifeq ($(PLATFORM),DARWIN)
|
||||
cd osx && xcodebuild -target All clean
|
||||
else
|
||||
-rm -f $(OBJ)* eduke32$(EXESUFFIX) eduke32.sym$(EXESUFFIX) mapster32$(EXESUFFIX) mapster32.sym$(EXESUFFIX) core*
|
||||
-rm -f $(OBJ)* eduke32$(EXESUFFIX) eduke32.sym$(EXESUFFIX) mapster32$(EXESUFFIX) mapster32.sym$(EXESUFFIX) core* duke3d_w32$(EXESUFFIX)
|
||||
endif
|
||||
|
||||
veryclean: clean
|
||||
|
|
|
@ -21,24 +21,22 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInst, LPSTR lpCmdLine, in
|
|||
PROCESS_INFORMATION pi;
|
||||
|
||||
ZeroMemory(&szFileName,sizeof(szFileName));
|
||||
|
||||
for(i=0;i<strlen(lpCmdLine);i++)
|
||||
strcpy(sCmdLine,lpCmdLine);
|
||||
for(i=0;i<(signed)strlen(sCmdLine);i++)
|
||||
{
|
||||
if(lpCmdLine[i] == '-' && lpCmdLine[i+1] == 'n' && lpCmdLine[i+2] == 'e' && lpCmdLine[i+3] == 't')
|
||||
if(sCmdLine[i] == '-' && sCmdLine[i+1] == 'n' && sCmdLine[i+2] == 'e' && sCmdLine[i+3] == 't')
|
||||
{
|
||||
i += 5;
|
||||
j = 0;
|
||||
while(!ISWS(lpCmdLine[i]) && i<strlen(lpCmdLine))
|
||||
j = 0,i += 5;
|
||||
while(!sCmdLine[i] != ' ' && i<(signed)strlen(sCmdLine))
|
||||
{
|
||||
szFileName[j] = lpCmdLine[i];
|
||||
fprintf(fp,"%d %d\n",j,i);
|
||||
if(lpCmdLine[i+1] == ' ' || lpCmdLine[i+1] == '\n' || lpCmdLine[i+1] == '\r')
|
||||
szFileName[j] = sCmdLine[i];
|
||||
if(sCmdLine[i+1] == ' ')
|
||||
break;
|
||||
j++,i++;
|
||||
}
|
||||
break;
|
||||
}
|
||||
else CmdLine[i] = lpCmdLine[i];
|
||||
else CmdLine[i] = sCmdLine[i];
|
||||
}
|
||||
|
||||
if(szFileName[0])
|
||||
|
@ -47,11 +45,10 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInst, LPSTR lpCmdLine, in
|
|||
|
||||
szCmdLine = sCmdLine;
|
||||
|
||||
fprintf(fp,"EDuke32 wrapper for Dukester X v0.01\
|
||||
\nCopyright (c) 2006 EDuke32 team\n\
|
||||
\nArgs passed to wrapper: %s\
|
||||
\nRancidmeat net filename: %s\
|
||||
\nFinal command line: %s\n",lpCmdLine,szFileName,szCmdLine);
|
||||
fprintf(fp,"EDuke32 wrapper for Dukester X v0.01\n");
|
||||
fprintf(fp,"Copyright (c) 2006 EDuke32 team\n\n");
|
||||
fprintf(fp,"Args passed to wrapper: %s\n",lpCmdLine);
|
||||
fprintf(fp,"Final command line: %s",szCmdLine);
|
||||
|
||||
fclose(fp);
|
||||
|
||||
|
|
Loading…
Reference in a new issue