added file copy tree for the game packs - lists supported games
authorTTimo <ttimo@ttimo.net>
Mon, 25 Feb 2008 04:17:23 +0000 (04:17 +0000)
committerTTimo <ttimo@ttimo.net>
Mon, 25 Feb 2008 04:17:23 +0000 (04:17 +0000)
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/ZeroRadiant@197 8a3a26a2-13c4-0310-b231-cf6edde360e5

107 files changed:
config.py
install/bitmaps/brush_flipx.bmp [new file with mode: 0644]
install/bitmaps/brush_flipy.bmp [new file with mode: 0644]
install/bitmaps/brush_flipz.bmp [new file with mode: 0644]
install/bitmaps/brush_rotatex.bmp [new file with mode: 0644]
install/bitmaps/brush_rotatey.bmp [new file with mode: 0644]
install/bitmaps/brush_rotatez.bmp [new file with mode: 0644]
install/bitmaps/cap_bevel.bmp [new file with mode: 0644]
install/bitmaps/cap_endcap.bmp [new file with mode: 0644]
install/bitmaps/cap_ibevel.bmp [new file with mode: 0644]
install/bitmaps/cap_iendcap.bmp [new file with mode: 0644]
install/bitmaps/curve_cap.bmp [new file with mode: 0644]
install/bitmaps/dontselectcurve.bmp [new file with mode: 0644]
install/bitmaps/dontselectmodel.bmp [new file with mode: 0644]
install/bitmaps/file_open.bmp [new file with mode: 0644]
install/bitmaps/file_save.bmp [new file with mode: 0644]
install/bitmaps/icon.bmp [new file with mode: 0644]
install/bitmaps/logo.bmp [new file with mode: 0644]
install/bitmaps/patch_bend.bmp [new file with mode: 0644]
install/bitmaps/patch_drilldown.bmp [new file with mode: 0644]
install/bitmaps/patch_insdel.bmp [new file with mode: 0644]
install/bitmaps/patch_showboundingbox.bmp [new file with mode: 0644]
install/bitmaps/patch_weld.bmp [new file with mode: 0644]
install/bitmaps/patch_wireframe.bmp [new file with mode: 0644]
install/bitmaps/popup_selection.bmp [new file with mode: 0644]
install/bitmaps/scalelockx.bmp [new file with mode: 0644]
install/bitmaps/scalelocky.bmp [new file with mode: 0644]
install/bitmaps/scalelockz.bmp [new file with mode: 0644]
install/bitmaps/select_mouserotate.bmp [new file with mode: 0644]
install/bitmaps/select_mousescale.bmp [new file with mode: 0644]
install/bitmaps/selection_csgmerge.bmp [new file with mode: 0644]
install/bitmaps/selection_csgsubtract.bmp [new file with mode: 0644]
install/bitmaps/selection_makehollow.bmp [new file with mode: 0644]
install/bitmaps/selection_selectcompletetall.bmp [new file with mode: 0644]
install/bitmaps/selection_selectinside.bmp [new file with mode: 0644]
install/bitmaps/selection_selectpartialtall.bmp [new file with mode: 0644]
install/bitmaps/selection_selecttouching.bmp [new file with mode: 0644]
install/bitmaps/show_entities.bmp [new file with mode: 0644]
install/bitmaps/splash.bmp [new file with mode: 0644]
install/bitmaps/textures_popup.bmp [new file with mode: 0644]
install/bitmaps/view_cameratoggle.bmp [new file with mode: 0644]
install/bitmaps/view_cameraupdate.bmp [new file with mode: 0644]
install/bitmaps/view_change.bmp [new file with mode: 0644]
install/bitmaps/view_clipper.bmp [new file with mode: 0644]
install/bitmaps/view_cubicclipping.bmp [new file with mode: 0644]
install/bitmaps/view_entity.bmp [new file with mode: 0644]
install/bitmaps/window1.bmp [new file with mode: 0644]
install/bitmaps/window2.bmp [new file with mode: 0644]
install/bitmaps/window3.bmp [new file with mode: 0644]
install/bitmaps/window4.bmp [new file with mode: 0644]
libs/missing.h
radiant/bitmaps/brush_flipx.bmp [deleted file]
radiant/bitmaps/brush_flipy.bmp [deleted file]
radiant/bitmaps/brush_flipz.bmp [deleted file]
radiant/bitmaps/brush_rotatex.bmp [deleted file]
radiant/bitmaps/brush_rotatey.bmp [deleted file]
radiant/bitmaps/brush_rotatez.bmp [deleted file]
radiant/bitmaps/cap_bevel.bmp [deleted file]
radiant/bitmaps/cap_endcap.bmp [deleted file]
radiant/bitmaps/cap_ibevel.bmp [deleted file]
radiant/bitmaps/cap_iendcap.bmp [deleted file]
radiant/bitmaps/curve_cap.bmp [deleted file]
radiant/bitmaps/dontselectcurve.bmp [deleted file]
radiant/bitmaps/dontselectmodel.bmp [deleted file]
radiant/bitmaps/file_open.bmp [deleted file]
radiant/bitmaps/file_save.bmp [deleted file]
radiant/bitmaps/icon.bmp [deleted file]
radiant/bitmaps/logo.bmp [deleted file]
radiant/bitmaps/patch_bend.bmp [deleted file]
radiant/bitmaps/patch_drilldown.bmp [deleted file]
radiant/bitmaps/patch_insdel.bmp [deleted file]
radiant/bitmaps/patch_showboundingbox.bmp [deleted file]
radiant/bitmaps/patch_weld.bmp [deleted file]
radiant/bitmaps/patch_wireframe.bmp [deleted file]
radiant/bitmaps/popup_selection.bmp [deleted file]
radiant/bitmaps/scalelockx.bmp [deleted file]
radiant/bitmaps/scalelocky.bmp [deleted file]
radiant/bitmaps/scalelockz.bmp [deleted file]
radiant/bitmaps/select_mouserotate.bmp [deleted file]
radiant/bitmaps/select_mousescale.bmp [deleted file]
radiant/bitmaps/selection_csgmerge.bmp [deleted file]
radiant/bitmaps/selection_csgsubtract.bmp [deleted file]
radiant/bitmaps/selection_makehollow.bmp [deleted file]
radiant/bitmaps/selection_selectcompletetall.bmp [deleted file]
radiant/bitmaps/selection_selectinside.bmp [deleted file]
radiant/bitmaps/selection_selectpartialtall.bmp [deleted file]
radiant/bitmaps/selection_selecttouching.bmp [deleted file]
radiant/bitmaps/show_entities.bmp [deleted file]
radiant/bitmaps/splash.bmp [deleted file]
radiant/bitmaps/textures_popup.bmp [deleted file]
radiant/bitmaps/view_cameratoggle.bmp [deleted file]
radiant/bitmaps/view_cameraupdate.bmp [deleted file]
radiant/bitmaps/view_change.bmp [deleted file]
radiant/bitmaps/view_clipper.bmp [deleted file]
radiant/bitmaps/view_cubicclipping.bmp [deleted file]
radiant/bitmaps/view_entity.bmp [deleted file]
radiant/bitmaps/window1.bmp [deleted file]
radiant/bitmaps/window2.bmp [deleted file]
radiant/bitmaps/window3.bmp [deleted file]
radiant/bitmaps/window4.bmp [deleted file]
radiant/brush.cpp
radiant/camwindow.cpp
radiant/dialog.cpp
radiant/filters.cpp
radiant/missing.cpp
radiant/preferences.cpp
radiant/preferences.h

index 21cfb7a35aaf81b0a0b1ed8ee2eeed444013f806..cdf869db3977e2cac1c929e702d1012a7b33ead5 100644 (file)
--- a/config.py
+++ b/config.py
@@ -231,8 +231,8 @@ class Config:
                        env.Append( CXXFLAGS = [ '-g' ] )
                        env.Append( CPPDEFINES = [ '_DEBUG' ] )                         
                else:
-                       env.Append( CFLAGS = [ '-O3', '-Winline', '-ffast-math', '-fno-unsafe-math-optimizations' ] )
-                       env.Append( CXXFLAGS = [ '-O3', '-Winline', '-ffast-math', '-fno-unsafe-math-optimizations' ] )
+                       env.Append( CFLAGS = [ '-O3', '-Winline', '-ffast-math', '-fno-unsafe-math-optimizations', '-fno-strict-aliasing' ] )
+                       env.Append( CXXFLAGS = [ '-O3', '-Winline', '-ffast-math', '-fno-unsafe-math-optimizations','-fno-strict-aliasing' ] )
                        #env.Append( CFLAGS = [ '-march=pentium3' ] )
 
 #              env.Append( LINKFLAGS = [ '-m32' ] )
diff --git a/install/bitmaps/brush_flipx.bmp b/install/bitmaps/brush_flipx.bmp
new file mode 100644 (file)
index 0000000..91f3d66
Binary files /dev/null and b/install/bitmaps/brush_flipx.bmp differ
diff --git a/install/bitmaps/brush_flipy.bmp b/install/bitmaps/brush_flipy.bmp
new file mode 100644 (file)
index 0000000..0f8e65c
Binary files /dev/null and b/install/bitmaps/brush_flipy.bmp differ
diff --git a/install/bitmaps/brush_flipz.bmp b/install/bitmaps/brush_flipz.bmp
new file mode 100644 (file)
index 0000000..38c20ff
Binary files /dev/null and b/install/bitmaps/brush_flipz.bmp differ
diff --git a/install/bitmaps/brush_rotatex.bmp b/install/bitmaps/brush_rotatex.bmp
new file mode 100644 (file)
index 0000000..b079071
Binary files /dev/null and b/install/bitmaps/brush_rotatex.bmp differ
diff --git a/install/bitmaps/brush_rotatey.bmp b/install/bitmaps/brush_rotatey.bmp
new file mode 100644 (file)
index 0000000..efcfec2
Binary files /dev/null and b/install/bitmaps/brush_rotatey.bmp differ
diff --git a/install/bitmaps/brush_rotatez.bmp b/install/bitmaps/brush_rotatez.bmp
new file mode 100644 (file)
index 0000000..fcea081
Binary files /dev/null and b/install/bitmaps/brush_rotatez.bmp differ
diff --git a/install/bitmaps/cap_bevel.bmp b/install/bitmaps/cap_bevel.bmp
new file mode 100644 (file)
index 0000000..0de3244
Binary files /dev/null and b/install/bitmaps/cap_bevel.bmp differ
diff --git a/install/bitmaps/cap_endcap.bmp b/install/bitmaps/cap_endcap.bmp
new file mode 100644 (file)
index 0000000..8e6c7f2
Binary files /dev/null and b/install/bitmaps/cap_endcap.bmp differ
diff --git a/install/bitmaps/cap_ibevel.bmp b/install/bitmaps/cap_ibevel.bmp
new file mode 100644 (file)
index 0000000..ccab98d
Binary files /dev/null and b/install/bitmaps/cap_ibevel.bmp differ
diff --git a/install/bitmaps/cap_iendcap.bmp b/install/bitmaps/cap_iendcap.bmp
new file mode 100644 (file)
index 0000000..9640c9a
Binary files /dev/null and b/install/bitmaps/cap_iendcap.bmp differ
diff --git a/install/bitmaps/curve_cap.bmp b/install/bitmaps/curve_cap.bmp
new file mode 100644 (file)
index 0000000..e9d00a2
Binary files /dev/null and b/install/bitmaps/curve_cap.bmp differ
diff --git a/install/bitmaps/dontselectcurve.bmp b/install/bitmaps/dontselectcurve.bmp
new file mode 100644 (file)
index 0000000..a7b9795
Binary files /dev/null and b/install/bitmaps/dontselectcurve.bmp differ
diff --git a/install/bitmaps/dontselectmodel.bmp b/install/bitmaps/dontselectmodel.bmp
new file mode 100644 (file)
index 0000000..e81b118
Binary files /dev/null and b/install/bitmaps/dontselectmodel.bmp differ
diff --git a/install/bitmaps/file_open.bmp b/install/bitmaps/file_open.bmp
new file mode 100644 (file)
index 0000000..1f1770c
Binary files /dev/null and b/install/bitmaps/file_open.bmp differ
diff --git a/install/bitmaps/file_save.bmp b/install/bitmaps/file_save.bmp
new file mode 100644 (file)
index 0000000..651afb6
Binary files /dev/null and b/install/bitmaps/file_save.bmp differ
diff --git a/install/bitmaps/icon.bmp b/install/bitmaps/icon.bmp
new file mode 100644 (file)
index 0000000..4224da8
Binary files /dev/null and b/install/bitmaps/icon.bmp differ
diff --git a/install/bitmaps/logo.bmp b/install/bitmaps/logo.bmp
new file mode 100644 (file)
index 0000000..759b87c
Binary files /dev/null and b/install/bitmaps/logo.bmp differ
diff --git a/install/bitmaps/patch_bend.bmp b/install/bitmaps/patch_bend.bmp
new file mode 100644 (file)
index 0000000..af4fc94
Binary files /dev/null and b/install/bitmaps/patch_bend.bmp differ
diff --git a/install/bitmaps/patch_drilldown.bmp b/install/bitmaps/patch_drilldown.bmp
new file mode 100644 (file)
index 0000000..01ebcf3
Binary files /dev/null and b/install/bitmaps/patch_drilldown.bmp differ
diff --git a/install/bitmaps/patch_insdel.bmp b/install/bitmaps/patch_insdel.bmp
new file mode 100644 (file)
index 0000000..b60b76b
Binary files /dev/null and b/install/bitmaps/patch_insdel.bmp differ
diff --git a/install/bitmaps/patch_showboundingbox.bmp b/install/bitmaps/patch_showboundingbox.bmp
new file mode 100644 (file)
index 0000000..357cfaf
Binary files /dev/null and b/install/bitmaps/patch_showboundingbox.bmp differ
diff --git a/install/bitmaps/patch_weld.bmp b/install/bitmaps/patch_weld.bmp
new file mode 100644 (file)
index 0000000..a0c9973
Binary files /dev/null and b/install/bitmaps/patch_weld.bmp differ
diff --git a/install/bitmaps/patch_wireframe.bmp b/install/bitmaps/patch_wireframe.bmp
new file mode 100644 (file)
index 0000000..9804274
Binary files /dev/null and b/install/bitmaps/patch_wireframe.bmp differ
diff --git a/install/bitmaps/popup_selection.bmp b/install/bitmaps/popup_selection.bmp
new file mode 100644 (file)
index 0000000..676c4d9
Binary files /dev/null and b/install/bitmaps/popup_selection.bmp differ
diff --git a/install/bitmaps/scalelockx.bmp b/install/bitmaps/scalelockx.bmp
new file mode 100644 (file)
index 0000000..61363da
Binary files /dev/null and b/install/bitmaps/scalelockx.bmp differ
diff --git a/install/bitmaps/scalelocky.bmp b/install/bitmaps/scalelocky.bmp
new file mode 100644 (file)
index 0000000..812394d
Binary files /dev/null and b/install/bitmaps/scalelocky.bmp differ
diff --git a/install/bitmaps/scalelockz.bmp b/install/bitmaps/scalelockz.bmp
new file mode 100644 (file)
index 0000000..5692e4a
Binary files /dev/null and b/install/bitmaps/scalelockz.bmp differ
diff --git a/install/bitmaps/select_mouserotate.bmp b/install/bitmaps/select_mouserotate.bmp
new file mode 100644 (file)
index 0000000..0139fd5
Binary files /dev/null and b/install/bitmaps/select_mouserotate.bmp differ
diff --git a/install/bitmaps/select_mousescale.bmp b/install/bitmaps/select_mousescale.bmp
new file mode 100644 (file)
index 0000000..7cac288
Binary files /dev/null and b/install/bitmaps/select_mousescale.bmp differ
diff --git a/install/bitmaps/selection_csgmerge.bmp b/install/bitmaps/selection_csgmerge.bmp
new file mode 100644 (file)
index 0000000..a77eba1
Binary files /dev/null and b/install/bitmaps/selection_csgmerge.bmp differ
diff --git a/install/bitmaps/selection_csgsubtract.bmp b/install/bitmaps/selection_csgsubtract.bmp
new file mode 100644 (file)
index 0000000..902f32f
Binary files /dev/null and b/install/bitmaps/selection_csgsubtract.bmp differ
diff --git a/install/bitmaps/selection_makehollow.bmp b/install/bitmaps/selection_makehollow.bmp
new file mode 100644 (file)
index 0000000..1b62f22
Binary files /dev/null and b/install/bitmaps/selection_makehollow.bmp differ
diff --git a/install/bitmaps/selection_selectcompletetall.bmp b/install/bitmaps/selection_selectcompletetall.bmp
new file mode 100644 (file)
index 0000000..1f911e8
Binary files /dev/null and b/install/bitmaps/selection_selectcompletetall.bmp differ
diff --git a/install/bitmaps/selection_selectinside.bmp b/install/bitmaps/selection_selectinside.bmp
new file mode 100644 (file)
index 0000000..5670d3a
Binary files /dev/null and b/install/bitmaps/selection_selectinside.bmp differ
diff --git a/install/bitmaps/selection_selectpartialtall.bmp b/install/bitmaps/selection_selectpartialtall.bmp
new file mode 100644 (file)
index 0000000..77b418b
Binary files /dev/null and b/install/bitmaps/selection_selectpartialtall.bmp differ
diff --git a/install/bitmaps/selection_selecttouching.bmp b/install/bitmaps/selection_selecttouching.bmp
new file mode 100644 (file)
index 0000000..9a60815
Binary files /dev/null and b/install/bitmaps/selection_selecttouching.bmp differ
diff --git a/install/bitmaps/show_entities.bmp b/install/bitmaps/show_entities.bmp
new file mode 100644 (file)
index 0000000..9188bee
Binary files /dev/null and b/install/bitmaps/show_entities.bmp differ
diff --git a/install/bitmaps/splash.bmp b/install/bitmaps/splash.bmp
new file mode 100644 (file)
index 0000000..f9e7cc1
Binary files /dev/null and b/install/bitmaps/splash.bmp differ
diff --git a/install/bitmaps/textures_popup.bmp b/install/bitmaps/textures_popup.bmp
new file mode 100644 (file)
index 0000000..5333382
Binary files /dev/null and b/install/bitmaps/textures_popup.bmp differ
diff --git a/install/bitmaps/view_cameratoggle.bmp b/install/bitmaps/view_cameratoggle.bmp
new file mode 100644 (file)
index 0000000..4ec79ed
Binary files /dev/null and b/install/bitmaps/view_cameratoggle.bmp differ
diff --git a/install/bitmaps/view_cameraupdate.bmp b/install/bitmaps/view_cameraupdate.bmp
new file mode 100644 (file)
index 0000000..dbb1195
Binary files /dev/null and b/install/bitmaps/view_cameraupdate.bmp differ
diff --git a/install/bitmaps/view_change.bmp b/install/bitmaps/view_change.bmp
new file mode 100644 (file)
index 0000000..31b609e
Binary files /dev/null and b/install/bitmaps/view_change.bmp differ
diff --git a/install/bitmaps/view_clipper.bmp b/install/bitmaps/view_clipper.bmp
new file mode 100644 (file)
index 0000000..4ef2056
Binary files /dev/null and b/install/bitmaps/view_clipper.bmp differ
diff --git a/install/bitmaps/view_cubicclipping.bmp b/install/bitmaps/view_cubicclipping.bmp
new file mode 100644 (file)
index 0000000..7c6d23c
Binary files /dev/null and b/install/bitmaps/view_cubicclipping.bmp differ
diff --git a/install/bitmaps/view_entity.bmp b/install/bitmaps/view_entity.bmp
new file mode 100644 (file)
index 0000000..851ec2c
Binary files /dev/null and b/install/bitmaps/view_entity.bmp differ
diff --git a/install/bitmaps/window1.bmp b/install/bitmaps/window1.bmp
new file mode 100644 (file)
index 0000000..f308f6e
Binary files /dev/null and b/install/bitmaps/window1.bmp differ
diff --git a/install/bitmaps/window2.bmp b/install/bitmaps/window2.bmp
new file mode 100644 (file)
index 0000000..b98b869
Binary files /dev/null and b/install/bitmaps/window2.bmp differ
diff --git a/install/bitmaps/window3.bmp b/install/bitmaps/window3.bmp
new file mode 100644 (file)
index 0000000..2ea6feb
Binary files /dev/null and b/install/bitmaps/window3.bmp differ
diff --git a/install/bitmaps/window4.bmp b/install/bitmaps/window4.bmp
new file mode 100644 (file)
index 0000000..5b9df33
Binary files /dev/null and b/install/bitmaps/window4.bmp differ
index f374d1ac20ee688089b560b6241caa08fe7eb69c..298ef605b6bf3c99949e7e37c3734090c26c3125 100644 (file)
@@ -67,6 +67,7 @@ inline int GetPrivateProfileInt(char* a, char* b, int i, char* c) { return i; };
 #define VERIFY(a) a;
 int GetFullPathName(const char *lpFileName, int nBufferLength, char *lpBuffer, char **lpFilePart);
 bool CopyFile(const char *lpExistingFileName, const char *lpNewFileName);
+bool CopyTree( const char* source, const char* dest );
 
 #ifndef APIENTRY
 #define APIENTRY
diff --git a/radiant/bitmaps/brush_flipx.bmp b/radiant/bitmaps/brush_flipx.bmp
deleted file mode 100644 (file)
index 91f3d66..0000000
Binary files a/radiant/bitmaps/brush_flipx.bmp and /dev/null differ
diff --git a/radiant/bitmaps/brush_flipy.bmp b/radiant/bitmaps/brush_flipy.bmp
deleted file mode 100644 (file)
index 0f8e65c..0000000
Binary files a/radiant/bitmaps/brush_flipy.bmp and /dev/null differ
diff --git a/radiant/bitmaps/brush_flipz.bmp b/radiant/bitmaps/brush_flipz.bmp
deleted file mode 100644 (file)
index 38c20ff..0000000
Binary files a/radiant/bitmaps/brush_flipz.bmp and /dev/null differ
diff --git a/radiant/bitmaps/brush_rotatex.bmp b/radiant/bitmaps/brush_rotatex.bmp
deleted file mode 100644 (file)
index b079071..0000000
Binary files a/radiant/bitmaps/brush_rotatex.bmp and /dev/null differ
diff --git a/radiant/bitmaps/brush_rotatey.bmp b/radiant/bitmaps/brush_rotatey.bmp
deleted file mode 100644 (file)
index efcfec2..0000000
Binary files a/radiant/bitmaps/brush_rotatey.bmp and /dev/null differ
diff --git a/radiant/bitmaps/brush_rotatez.bmp b/radiant/bitmaps/brush_rotatez.bmp
deleted file mode 100644 (file)
index fcea081..0000000
Binary files a/radiant/bitmaps/brush_rotatez.bmp and /dev/null differ
diff --git a/radiant/bitmaps/cap_bevel.bmp b/radiant/bitmaps/cap_bevel.bmp
deleted file mode 100644 (file)
index 0de3244..0000000
Binary files a/radiant/bitmaps/cap_bevel.bmp and /dev/null differ
diff --git a/radiant/bitmaps/cap_endcap.bmp b/radiant/bitmaps/cap_endcap.bmp
deleted file mode 100644 (file)
index 8e6c7f2..0000000
Binary files a/radiant/bitmaps/cap_endcap.bmp and /dev/null differ
diff --git a/radiant/bitmaps/cap_ibevel.bmp b/radiant/bitmaps/cap_ibevel.bmp
deleted file mode 100644 (file)
index ccab98d..0000000
Binary files a/radiant/bitmaps/cap_ibevel.bmp and /dev/null differ
diff --git a/radiant/bitmaps/cap_iendcap.bmp b/radiant/bitmaps/cap_iendcap.bmp
deleted file mode 100644 (file)
index 9640c9a..0000000
Binary files a/radiant/bitmaps/cap_iendcap.bmp and /dev/null differ
diff --git a/radiant/bitmaps/curve_cap.bmp b/radiant/bitmaps/curve_cap.bmp
deleted file mode 100644 (file)
index e9d00a2..0000000
Binary files a/radiant/bitmaps/curve_cap.bmp and /dev/null differ
diff --git a/radiant/bitmaps/dontselectcurve.bmp b/radiant/bitmaps/dontselectcurve.bmp
deleted file mode 100644 (file)
index a7b9795..0000000
Binary files a/radiant/bitmaps/dontselectcurve.bmp and /dev/null differ
diff --git a/radiant/bitmaps/dontselectmodel.bmp b/radiant/bitmaps/dontselectmodel.bmp
deleted file mode 100644 (file)
index e81b118..0000000
Binary files a/radiant/bitmaps/dontselectmodel.bmp and /dev/null differ
diff --git a/radiant/bitmaps/file_open.bmp b/radiant/bitmaps/file_open.bmp
deleted file mode 100644 (file)
index 1f1770c..0000000
Binary files a/radiant/bitmaps/file_open.bmp and /dev/null differ
diff --git a/radiant/bitmaps/file_save.bmp b/radiant/bitmaps/file_save.bmp
deleted file mode 100644 (file)
index 651afb6..0000000
Binary files a/radiant/bitmaps/file_save.bmp and /dev/null differ
diff --git a/radiant/bitmaps/icon.bmp b/radiant/bitmaps/icon.bmp
deleted file mode 100644 (file)
index 4224da8..0000000
Binary files a/radiant/bitmaps/icon.bmp and /dev/null differ
diff --git a/radiant/bitmaps/logo.bmp b/radiant/bitmaps/logo.bmp
deleted file mode 100644 (file)
index 759b87c..0000000
Binary files a/radiant/bitmaps/logo.bmp and /dev/null differ
diff --git a/radiant/bitmaps/patch_bend.bmp b/radiant/bitmaps/patch_bend.bmp
deleted file mode 100644 (file)
index af4fc94..0000000
Binary files a/radiant/bitmaps/patch_bend.bmp and /dev/null differ
diff --git a/radiant/bitmaps/patch_drilldown.bmp b/radiant/bitmaps/patch_drilldown.bmp
deleted file mode 100644 (file)
index 01ebcf3..0000000
Binary files a/radiant/bitmaps/patch_drilldown.bmp and /dev/null differ
diff --git a/radiant/bitmaps/patch_insdel.bmp b/radiant/bitmaps/patch_insdel.bmp
deleted file mode 100644 (file)
index b60b76b..0000000
Binary files a/radiant/bitmaps/patch_insdel.bmp and /dev/null differ
diff --git a/radiant/bitmaps/patch_showboundingbox.bmp b/radiant/bitmaps/patch_showboundingbox.bmp
deleted file mode 100644 (file)
index 357cfaf..0000000
Binary files a/radiant/bitmaps/patch_showboundingbox.bmp and /dev/null differ
diff --git a/radiant/bitmaps/patch_weld.bmp b/radiant/bitmaps/patch_weld.bmp
deleted file mode 100644 (file)
index a0c9973..0000000
Binary files a/radiant/bitmaps/patch_weld.bmp and /dev/null differ
diff --git a/radiant/bitmaps/patch_wireframe.bmp b/radiant/bitmaps/patch_wireframe.bmp
deleted file mode 100644 (file)
index 9804274..0000000
Binary files a/radiant/bitmaps/patch_wireframe.bmp and /dev/null differ
diff --git a/radiant/bitmaps/popup_selection.bmp b/radiant/bitmaps/popup_selection.bmp
deleted file mode 100644 (file)
index 676c4d9..0000000
Binary files a/radiant/bitmaps/popup_selection.bmp and /dev/null differ
diff --git a/radiant/bitmaps/scalelockx.bmp b/radiant/bitmaps/scalelockx.bmp
deleted file mode 100644 (file)
index 61363da..0000000
Binary files a/radiant/bitmaps/scalelockx.bmp and /dev/null differ
diff --git a/radiant/bitmaps/scalelocky.bmp b/radiant/bitmaps/scalelocky.bmp
deleted file mode 100644 (file)
index 812394d..0000000
Binary files a/radiant/bitmaps/scalelocky.bmp and /dev/null differ
diff --git a/radiant/bitmaps/scalelockz.bmp b/radiant/bitmaps/scalelockz.bmp
deleted file mode 100644 (file)
index 5692e4a..0000000
Binary files a/radiant/bitmaps/scalelockz.bmp and /dev/null differ
diff --git a/radiant/bitmaps/select_mouserotate.bmp b/radiant/bitmaps/select_mouserotate.bmp
deleted file mode 100644 (file)
index 0139fd5..0000000
Binary files a/radiant/bitmaps/select_mouserotate.bmp and /dev/null differ
diff --git a/radiant/bitmaps/select_mousescale.bmp b/radiant/bitmaps/select_mousescale.bmp
deleted file mode 100644 (file)
index 7cac288..0000000
Binary files a/radiant/bitmaps/select_mousescale.bmp and /dev/null differ
diff --git a/radiant/bitmaps/selection_csgmerge.bmp b/radiant/bitmaps/selection_csgmerge.bmp
deleted file mode 100644 (file)
index a77eba1..0000000
Binary files a/radiant/bitmaps/selection_csgmerge.bmp and /dev/null differ
diff --git a/radiant/bitmaps/selection_csgsubtract.bmp b/radiant/bitmaps/selection_csgsubtract.bmp
deleted file mode 100644 (file)
index 902f32f..0000000
Binary files a/radiant/bitmaps/selection_csgsubtract.bmp and /dev/null differ
diff --git a/radiant/bitmaps/selection_makehollow.bmp b/radiant/bitmaps/selection_makehollow.bmp
deleted file mode 100644 (file)
index 1b62f22..0000000
Binary files a/radiant/bitmaps/selection_makehollow.bmp and /dev/null differ
diff --git a/radiant/bitmaps/selection_selectcompletetall.bmp b/radiant/bitmaps/selection_selectcompletetall.bmp
deleted file mode 100644 (file)
index 1f911e8..0000000
Binary files a/radiant/bitmaps/selection_selectcompletetall.bmp and /dev/null differ
diff --git a/radiant/bitmaps/selection_selectinside.bmp b/radiant/bitmaps/selection_selectinside.bmp
deleted file mode 100644 (file)
index 5670d3a..0000000
Binary files a/radiant/bitmaps/selection_selectinside.bmp and /dev/null differ
diff --git a/radiant/bitmaps/selection_selectpartialtall.bmp b/radiant/bitmaps/selection_selectpartialtall.bmp
deleted file mode 100644 (file)
index 77b418b..0000000
Binary files a/radiant/bitmaps/selection_selectpartialtall.bmp and /dev/null differ
diff --git a/radiant/bitmaps/selection_selecttouching.bmp b/radiant/bitmaps/selection_selecttouching.bmp
deleted file mode 100644 (file)
index 9a60815..0000000
Binary files a/radiant/bitmaps/selection_selecttouching.bmp and /dev/null differ
diff --git a/radiant/bitmaps/show_entities.bmp b/radiant/bitmaps/show_entities.bmp
deleted file mode 100644 (file)
index 9188bee..0000000
Binary files a/radiant/bitmaps/show_entities.bmp and /dev/null differ
diff --git a/radiant/bitmaps/splash.bmp b/radiant/bitmaps/splash.bmp
deleted file mode 100644 (file)
index f9e7cc1..0000000
Binary files a/radiant/bitmaps/splash.bmp and /dev/null differ
diff --git a/radiant/bitmaps/textures_popup.bmp b/radiant/bitmaps/textures_popup.bmp
deleted file mode 100644 (file)
index 5333382..0000000
Binary files a/radiant/bitmaps/textures_popup.bmp and /dev/null differ
diff --git a/radiant/bitmaps/view_cameratoggle.bmp b/radiant/bitmaps/view_cameratoggle.bmp
deleted file mode 100644 (file)
index 4ec79ed..0000000
Binary files a/radiant/bitmaps/view_cameratoggle.bmp and /dev/null differ
diff --git a/radiant/bitmaps/view_cameraupdate.bmp b/radiant/bitmaps/view_cameraupdate.bmp
deleted file mode 100644 (file)
index dbb1195..0000000
Binary files a/radiant/bitmaps/view_cameraupdate.bmp and /dev/null differ
diff --git a/radiant/bitmaps/view_change.bmp b/radiant/bitmaps/view_change.bmp
deleted file mode 100644 (file)
index 31b609e..0000000
Binary files a/radiant/bitmaps/view_change.bmp and /dev/null differ
diff --git a/radiant/bitmaps/view_clipper.bmp b/radiant/bitmaps/view_clipper.bmp
deleted file mode 100644 (file)
index 4ef2056..0000000
Binary files a/radiant/bitmaps/view_clipper.bmp and /dev/null differ
diff --git a/radiant/bitmaps/view_cubicclipping.bmp b/radiant/bitmaps/view_cubicclipping.bmp
deleted file mode 100644 (file)
index 7c6d23c..0000000
Binary files a/radiant/bitmaps/view_cubicclipping.bmp and /dev/null differ
diff --git a/radiant/bitmaps/view_entity.bmp b/radiant/bitmaps/view_entity.bmp
deleted file mode 100644 (file)
index 851ec2c..0000000
Binary files a/radiant/bitmaps/view_entity.bmp and /dev/null differ
diff --git a/radiant/bitmaps/window1.bmp b/radiant/bitmaps/window1.bmp
deleted file mode 100644 (file)
index f308f6e..0000000
Binary files a/radiant/bitmaps/window1.bmp and /dev/null differ
diff --git a/radiant/bitmaps/window2.bmp b/radiant/bitmaps/window2.bmp
deleted file mode 100644 (file)
index b98b869..0000000
Binary files a/radiant/bitmaps/window2.bmp and /dev/null differ
diff --git a/radiant/bitmaps/window3.bmp b/radiant/bitmaps/window3.bmp
deleted file mode 100644 (file)
index 2ea6feb..0000000
Binary files a/radiant/bitmaps/window3.bmp and /dev/null differ
diff --git a/radiant/bitmaps/window4.bmp b/radiant/bitmaps/window4.bmp
deleted file mode 100644 (file)
index 5b9df33..0000000
Binary files a/radiant/bitmaps/window4.bmp and /dev/null differ
index d6d1b95ca11a1df2ab55bdfabd924916c5bccc06..18866b4fc25b96a40b9d0ac6e6a8f217f090a7f0 100644 (file)
@@ -1534,7 +1534,7 @@ Makes the current brush have the given number of 2d sides
 */
 void Brush_MakeSided (int sides)
 {
-       int             i, axis;
+       int             i, axis = 0;
        vec3_t  mins, maxs;
        brush_t *b;
        texdef_t        *texdef;
index 42a569b3e056b6314be27ee175509923fade96dd..85cdccc65a780a1e3bd083da0375487580a304d5 100644 (file)
@@ -1271,7 +1271,7 @@ void CamWnd::Cam_Draw()
   face_t       *face;
   float        screenaspect;
   float        yfov;
-  double       start, end;
+  double       start = 0.0, end;
   int          i;
 
   if (!active_brushes.next)
index a2c37ec350ab10417af9ef017332343503fab9eb..4f71d41b2bfb65fc8c49670c26c365415b0c7648 100644 (file)
@@ -94,7 +94,7 @@ void Dialog::Create ()
     g_object_set_data (G_OBJECT (m_pWidget), "loop", &m_nLoop);
     g_object_set_data (G_OBJECT (m_pWidget), "ret", &m_nReturn);
 
-    BuildDialog ();
+    BuildDialog();
     m_bNeedBuild = false;
   }
 }
index 9bd8503575cc2409dd3dfa3b6bea376e7b4688d1..f4dd1ba3c58939e1d246fab48d393e479b85e512 100644 (file)
@@ -137,7 +137,7 @@ bool FilterBrush(brush_t *pb)
                || !strncmp( pb->owner->eclass->name, "func", 4)
                || !strncmp( pb->owner->eclass->name, "trigger", 7) ) && !pb->patchBrush )
        {
-               bool filterbrush;
+               bool filterbrush = false;
                for (face_t *f=pb->brush_faces;f!=NULL;f = f->next)
                {
                        filterbrush=false;
index cf7c820ff0a2ecc28549eca9f8f4fdc3978c869c..522980cdb470a24ee8ef8af1f2122ae6251b86c4 100644 (file)
@@ -39,27 +39,32 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #include <stdio.h>
 #include <unistd.h>
 #include <sys/time.h>
+#include <sys/types.h>
+#include <sys/stat.h>
 #include <stdlib.h>
+#include <dirent.h>
 #include "missing.h"
+#include "qsysprintf.h"
 
 bool CopyFile(const char *lpExistingFileName, const char *lpNewFileName)
 {
   FILE *src, *dst;
   void* buf;
-  int l, ret = 0;
+  int l;
+  bool ret = false;
   char realsrc[PATH_MAX], realdest[PATH_MAX];
 
   realpath (lpExistingFileName, realsrc);
   realpath (lpNewFileName, realdest);
 
   src = fopen (realsrc, "rb");
-  if (!src)
-    return 0;
+  if ( !src ) {
+    return false;
+  }
   dst = fopen (realdest, "wb");
-  if (!dst)
-  {
+  if (!dst) {
     fclose (src);
-    return 0;
+    return false;
   }
  
   fseek (src, 0, SEEK_END);
@@ -70,7 +75,7 @@ bool CopyFile(const char *lpExistingFileName, const char *lpNewFileName)
   if (buf != NULL)
     if (fread (buf, l, 1, src) == 1)
       if (fwrite (buf, l, 1, dst) == 1)
-       ret = 1;
+       ret = true;
 
   g_free (buf);
   fclose (src);
@@ -79,6 +84,61 @@ bool CopyFile(const char *lpExistingFileName, const char *lpNewFileName)
   return ret;
 }
 
+bool CreateDirectory( const char *directory ) {
+       if ( mkdir( directory, 0777 ) == -1 ) {
+               Sys_Printf( "mkdir %s failed\n", directory );
+               return false;
+       }
+       return true;
+}
+
+bool CopyTree( const char *source, const char *dest ) {
+       DIR                             *dir;
+       struct dirent   *dirlist;
+       struct stat             sbuf;
+       Str                             srcEntry;
+       Str                             dstEntry;
+
+       dir = opendir( source );
+       if ( dir != NULL ) {
+               while ( ( dirlist = readdir( dir ) ) != NULL ) {
+                       if ( strcmp( dirlist->d_name, "." ) == 0 || strcmp( dirlist->d_name, ".." ) == 0 ) {
+                               continue;
+                       }
+                       if ( strcmp( dirlist->d_name, ".svn" ) == 0 ) {
+                               continue;
+                       }
+                       srcEntry = source;
+                       srcEntry += "/";
+                       srcEntry += dirlist->d_name;
+                       dstEntry = dest;
+                       dstEntry += "/";
+                       dstEntry += dirlist->d_name;
+                       if ( stat( srcEntry.GetBuffer(), &sbuf ) == -1 ) {
+                               Sys_Printf( "stat %s failed\n", srcEntry.GetBuffer() );
+                       }
+                       if ( S_ISDIR( sbuf.st_mode ) ) {
+                               bool ret;
+                               if ( stat( dstEntry.GetBuffer(), &sbuf ) == -1 ) {
+                                       ret = CreateDirectory( dstEntry.GetBuffer() );
+                               }
+                               ret = CopyTree( srcEntry.GetBuffer(), dstEntry.GetBuffer() );
+                               if ( !ret ) {
+                                       return false;
+                               }
+                       } else {
+                               Sys_Printf( "copy %s -> %s\n", srcEntry.GetBuffer(), dstEntry.GetBuffer() );
+                               bool ret = CopyFile( srcEntry.GetBuffer(), dstEntry.GetBuffer() );
+                               if ( !ret ) {
+                                       return false;
+                               }
+                       }
+               }
+               closedir( dir );
+       }
+       return true;
+}
+
 int GetFullPathName(const char *lpFileName, int nBufferLength, char *lpBuffer, char **lpFilePart)
 {
   if (lpFileName[0] == '/')
@@ -116,88 +176,5 @@ int GetFullPathName(const char *lpFileName, int nBufferLength, char *lpBuffer, c
 
   return strlen (lpBuffer);
 }
-/*
-static void g_string_sprintfa_int (GString *string, const gchar *fmt, va_list args)
-{
-  gchar *buffer;
-
-  buffer = g_strdup_vprintf (fmt, args);
-  g_string_append (string, buffer);
-  g_free (buffer);
-}
-
-const CString& CString::operator=(const char* lpsz)
-{
-  g_string_assign (m_str, lpsz);
-  return *this;
-}
-
-const CString& CString::operator+=(const char* lpsz)
-{
-  g_string_append (m_str, lpsz);
-  return *this;
-}
-
-CString::operator char*() const
-{ 
-  return m_str->str;
-}
-
-void CString::Format(const char* fmt, ...)
-{
-  va_list args;
-  g_string_truncate (m_str, 0);
-  va_start (args, fmt);
-  g_string_sprintfa_int (m_str, fmt, args);
-  va_end (args);
-}
-
-CString CString::Right(int nCount) const
-{
-  if (nCount < 0)
-    nCount = 0;
-  else if (nCount > m_str->len)
-    nCount = m_str->len;
-
-  CString dest (&m_str->str[m_str->len-nCount]);
-  return dest;
-}
-
-CString CString::Left(int nCount) const
-{
-  if (nCount < 0)
-    nCount = 0;
-  else if (nCount > m_str->len)
-    nCount = m_str->len;
-
-  CString dest;
-  dest.m_str = g_string_sized_new (nCount);
-  memcpy (dest.m_str->str, m_str->str, nCount);
-  dest.m_str->str[nCount] = 0;
-  return dest;
-}
-
-void CString::SetAt(int nIndex, char ch)
-{
-  if (nIndex >= 0 && nIndex < m_str->len)
-    m_str->str[nIndex] = ch;
-}
-
-char CString::GetAt(int nIndex) const
-{
-  if (nIndex >= 0 && nIndex < m_str->len)
-    return m_str->str[nIndex];
-  return 0;
-}
-
-char CString::operator[](int nIndex) const
-{
-  if (nIndex >= 0 && nIndex < m_str->len)
-    return m_str->str[nIndex];
-  return 0;
-}
-*/
 
 #endif
index 8fdb419b1c6d865ca24fc7c7b680c0b2857a9382..2e59e0f98476e84ac1d767e52db0e65773a6d3e7 100644 (file)
@@ -3122,6 +3122,10 @@ CGameInstall
 ============================================================
 */
 
+CGameInstall::CGameInstall() {
+       memset( m_availGames, 0, sizeof( m_availGames ) );
+}
+
 void CGameInstall::BuildDialog() {
        GtkWidget *dlg, *vbox1, *button, *text, *combo, *entry;
        
@@ -3141,9 +3145,21 @@ void CGameInstall::BuildDialog() {
        gtk_box_pack_start( GTK_BOX( vbox1 ), combo, FALSE, FALSE, 0 );
 
        GList *combo_list = NULL;
-       combo_list = g_list_append( combo_list, "Quake III Arena and mods" );
-       combo_list = g_list_append( combo_list, "Urban Terror standalone" );
-       combo_list = g_list_append( combo_list, "Warsaw" );
+       int iGame = 0;
+       while ( m_availGames[ iGame ] != GAME_NONE ) {
+               switch ( m_availGames[ iGame ] ) {
+               case GAME_Q3:
+                       combo_list = g_list_append( combo_list, "Quake III Arena (including mods)" );
+                       break;
+               case GAME_URT:
+                       combo_list = g_list_append( combo_list, "Urban Terror (standalone)" );
+                       break;
+               case GAME_WARSOW:
+                       combo_list = g_list_append( combo_list, "Warsow" );
+                       break;
+               }
+               iGame++;
+       }
        gtk_combo_set_popdown_strings( GTK_COMBO( combo ), combo_list );
        g_list_free( combo_list );
        AddDialogData( combo, &m_nComboSelect, DLG_COMBO_INT );
@@ -3187,6 +3203,7 @@ void CGameInstall::BuildDialog() {
 }
 
 void CGameInstall::Run() {
+       ScanGames();
        DoModal();
        Sys_Printf( "combo: %d name: %s engine: %s mod: %s\n", m_nComboSelect, m_strName.GetBuffer(), m_strEngine.GetBuffer(), m_strMod.GetBuffer() );
 
@@ -3205,13 +3222,25 @@ void CGameInstall::Run() {
        fprintf( fg, "  name=\"%s\"\n", m_strName.GetBuffer() );
        fprintf( fg, "  gametools=\"%sgames\"\n", g_strAppPath.GetBuffer() );
        fprintf( fg, "  enginepath=\"%s\"\n", m_strEngine.GetBuffer() );
-       switch ( m_nComboSelect ) {
-       case GAME_Q3:
+       switch ( m_availGames[ m_nComboSelect ] ) {
+       case GAME_Q3: {
+               Str source = g_strAppPath.GetBuffer();
+               source += "installs/";
+               source += Q3_PACK;
+               Str dest = m_strEngine.GetBuffer();
+               CopyTree( source.GetBuffer(), dest.GetBuffer() );
                fprintf( fg, "  basegame=\"baseq3\"\n" );
                break;
-       case GAME_URT:
+       }
+       case GAME_URT: {
+               Str source = g_strAppPath.GetBuffer();
+               source += "installs/";
+               source += URT_PACK;
+               Str dest = m_strEngine.GetBuffer();
+               CopyTree( source.GetBuffer(), dest.GetBuffer() );
                fprintf( fg, "  basegame=\"q3ut4\"\n" );
                break;
+       }
        case GAME_WARSOW:
                fprintf( fg, "  basegame=\"basewsw\"\n" );
                break;
@@ -3219,3 +3248,30 @@ void CGameInstall::Run() {
        fprintf( fg, "/>\n" );
        fclose( fg );
 }
+
+/*
+===============
+CGameInstall::ScanGames
+scan for active games that can be installed, based on the presence 
+===============
+*/
+void CGameInstall::ScanGames() {
+       Str                             pakPaths = g_strAppPath.GetBuffer();
+       DIR                             *dir;
+       struct dirent   *dirlist;
+       int                             iGame = 0;
+
+       pakPaths +=     "installs/";
+       dir = opendir( pakPaths.GetBuffer() );
+       if ( dir != NULL ) {
+               while ( ( dirlist = readdir( dir ) ) != NULL ) {
+                       if ( stricmp( dirlist->d_name, Q3_PACK ) == 0 ) {
+                               m_availGames[ iGame++ ] = GAME_Q3;
+                       }
+                       if ( stricmp( dirlist->d_name, URT_PACK ) == 0 ) {
+                               m_availGames[ iGame++ ] = GAME_URT;
+                       }
+               }
+               closedir( dir );
+       }
+}
index 908616adc5eea9bd889d0428daddd25fb8b97253..dfc1be5c7424b839f56b5b0edca517739123b15e 100644 (file)
@@ -196,22 +196,33 @@ public:
 /*!
 select games, copy editing assets and write out configuration files
  */
+
+#define Q3_PACK "Q3Pack"
+#define URT_PACK "UrTPack"
+
 class CGameInstall : public Dialog {
 public:
+       CGameInstall();
+       void ScanGames();
        void Run();
        void BuildDialog();
 
        enum gameType_e {
-               GAME_Q3,
+               GAME_NONE = 0,
+               GAME_Q3 = 1,
                GAME_URT,
-               GAME_WARSOW
+               GAME_WARSOW,
+               GAME_COUNT
        };
 
 protected:
-       Str m_strName;
-       Str     m_strMod;
-       Str m_strEngine;
-       int m_nComboSelect;
+       Str             m_strName;
+       Str             m_strMod;
+       Str             m_strEngine;
+       int             m_nComboSelect;
+
+       // maps from m_nComboSelect to the games
+       int     m_availGames[GAME_COUNT];
 };
 
 /*!