shithub: choc

Download patch

ref: 33ebb6ea9d5d6d67eaedf1ea47b2d77b508b6ae0
parent: 587a9702634a405b95a6e317db9ce0f8ec326155
author: Russell Rice <rtc_marine@hotmail.com>
date: Thu Sep 21 00:25:49 EDT 2006

Code::Blocks project and workspace.
* Rename workspace appropriately in editor.
* Update project files for new spin control and fix compilation of
  certain projects caused by it.
* Create virtual targets (Debug/Release) for textscreen project.
Code:
* Fix the include in multiplayer.c, hopefully this does not break
  anything.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 639

--- a/codeblocks/chocolate-doom.cbp
+++ b/codeblocks/chocolate-doom.cbp
@@ -1242,6 +1242,18 @@
 			<Option target="Debug" />
 			<Option target="Release" />
 		</Unit>
+		<Unit filename="..\textscreen\txt_spinctrl.c">
+			<Option compilerVar="CC" />
+			<Option target="Debug" />
+			<Option target="Release" />
+		</Unit>
+		<Unit filename="..\textscreen\txt_spinctrl.h">
+			<Option compilerVar="CPP" />
+			<Option compile="0" />
+			<Option link="0" />
+			<Option target="Debug" />
+			<Option target="Release" />
+		</Unit>
 		<Unit filename="..\textscreen\txt_strut.c">
 			<Option compilerVar="CC" />
 			<Option target="Debug" />
--- a/codeblocks/chocolate-doom.workspace
+++ b/codeblocks/chocolate-doom.workspace
@@ -1,9 +1,9 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
 <CodeBlocks_workspace_file>
-	<Workspace title="Workspace">
+	<Workspace title="chocolate-doom">
 		<Project filename="chocolate-doom.cbp" />
 		<Project filename="chocolate-server.cbp" />
-		<Project filename="textscreen.cbp" active="1" />
-		<Project filename="chocolate-setup.cbp" />
+		<Project filename="textscreen.cbp" />
+		<Project filename="chocolate-setup.cbp" active="1" />
 	</Workspace>
 </CodeBlocks_workspace_file>
\ No newline at end of file
--- a/codeblocks/chocolate-setup.cbp
+++ b/codeblocks/chocolate-setup.cbp
@@ -73,6 +73,11 @@
 			<Option target="Debug" />
 			<Option target="Release" />
 		</Unit>
+		<Unit filename="..\setup\sound.c">
+			<Option compilerVar="CC" />
+			<Option target="Debug" />
+			<Option target="Release" />
+		</Unit>
 		<Unit filename="..\setup\txt_keyinput.c">
 			<Option compilerVar="CC" />
 			<Option target="Debug" />
@@ -237,6 +242,18 @@
 			<Option target="Release" />
 		</Unit>
 		<Unit filename="..\textscreen\txt_separator.h">
+			<Option compilerVar="CPP" />
+			<Option compile="0" />
+			<Option link="0" />
+			<Option target="Debug" />
+			<Option target="Release" />
+		</Unit>
+		<Unit filename="..\textscreen\txt_spinctrl.c">
+			<Option compilerVar="CC" />
+			<Option target="Debug" />
+			<Option target="Release" />
+		</Unit>
+		<Unit filename="..\textscreen\txt_spinctrl.h">
 			<Option compilerVar="CPP" />
 			<Option compile="0" />
 			<Option link="0" />
--- a/codeblocks/textscreen.cbp
+++ b/codeblocks/textscreen.cbp
@@ -65,6 +65,8 @@
 		</Build>
 		<VirtualTargets>
 			<Add alias="All" targets="Debug-dyn;Release-dyn;Debug-stc;Release-stc;" />
+			<Add alias="Debug" targets="Debug-dyn;Debug-stc;" />
+			<Add alias="Release" targets="Release-dyn;Release-stc;" />
 		</VirtualTargets>
 		<Compiler>
 			<Add directory="..\src" />
@@ -265,6 +267,22 @@
 			<Option target="Release-dyn" />
 			<Option target="Release-stc" />
 			<Option target="Debug-stc" />
+		</Unit>
+		<Unit filename="..\textscreen\txt_spinctrl.c">
+			<Option compilerVar="CC" />
+			<Option target="Debug-dyn" />
+			<Option target="Release-dyn" />
+			<Option target="Debug-stc" />
+			<Option target="Release-stc" />
+		</Unit>
+		<Unit filename="..\textscreen\txt_spinctrl.h">
+			<Option compilerVar="CPP" />
+			<Option compile="0" />
+			<Option link="0" />
+			<Option target="Debug-dyn" />
+			<Option target="Release-dyn" />
+			<Option target="Debug-stc" />
+			<Option target="Release-stc" />
 		</Unit>
 		<Unit filename="..\textscreen\txt_strut.c">
 			<Option compilerVar="CC" />
--- a/setup/multiplayer.c
+++ b/setup/multiplayer.c
@@ -22,7 +22,7 @@
 #include <stdlib.h>
 #include <string.h>
 
-#include "src/d_englsh.h"
+#include "d_englsh.h"
 #include "textscreen.h"
 
 #define NUM_WADS 10