From: timo Date: Mon, 25 Feb 2008 04:17:23 +0000 (+0000) Subject: added file copy tree for the game packs - lists supported games X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0ea249e0e328c9ce4bf0cff93e8bfb298313cc88;p=xonotic%2Fnetradiant.git added file copy tree for the game packs - lists supported games git-svn-id: https://zerowing.idsoftware.com/svn/radiant/GtkRadiant/branches/ZeroRadiant@197 8a3a26a2-13c4-0310-b231-cf6edde360e5 --- diff --git a/config.py b/config.py index 21cfb7a3..cdf869db 100644 --- 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 index 00000000..91f3d669 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 index 00000000..0f8e65c6 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 index 00000000..38c20ff2 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 index 00000000..b079071e 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 index 00000000..efcfec24 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 index 00000000..fcea0814 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 index 00000000..0de32442 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 index 00000000..8e6c7f2a 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 index 00000000..ccab98da 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 index 00000000..9640c9ae 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 index 00000000..e9d00a21 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 index 00000000..a7b97954 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 index 00000000..e81b1189 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 index 00000000..1f1770c3 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 index 00000000..651afb68 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 index 00000000..4224da83 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 index 00000000..759b87cb 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 index 00000000..af4fc94c 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 index 00000000..01ebcf39 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 index 00000000..b60b76b0 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 index 00000000..357cfaf1 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 index 00000000..a0c99730 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 index 00000000..9804274f 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 index 00000000..676c4d98 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 index 00000000..61363da2 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 index 00000000..812394db 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 index 00000000..5692e4a7 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 index 00000000..0139fd55 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 index 00000000..7cac2881 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 index 00000000..a77eba14 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 index 00000000..902f32f5 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 index 00000000..1b62f223 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 index 00000000..1f911e8c 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 index 00000000..5670d3ad 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 index 00000000..77b418be 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 index 00000000..9a60815d 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 index 00000000..9188bee6 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 index 00000000..f9e7cc1d 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 index 00000000..5333382f 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 index 00000000..4ec79ed6 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 index 00000000..dbb11956 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 index 00000000..31b609e5 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 index 00000000..4ef20566 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 index 00000000..7c6d23c1 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 index 00000000..851ec2c3 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 index 00000000..f308f6ef 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 index 00000000..b98b8691 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 index 00000000..2ea6feb8 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 index 00000000..5b9df336 Binary files /dev/null and b/install/bitmaps/window4.bmp differ diff --git a/libs/missing.h b/libs/missing.h index f374d1ac..298ef605 100644 --- a/libs/missing.h +++ b/libs/missing.h @@ -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 index 91f3d669..00000000 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 index 0f8e65c6..00000000 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 index 38c20ff2..00000000 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 index b079071e..00000000 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 index efcfec24..00000000 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 index fcea0814..00000000 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 index 0de32442..00000000 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 index 8e6c7f2a..00000000 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 index ccab98da..00000000 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 index 9640c9ae..00000000 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 index e9d00a21..00000000 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 index a7b97954..00000000 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 index e81b1189..00000000 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 index 1f1770c3..00000000 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 index 651afb68..00000000 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 index 4224da83..00000000 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 index 759b87cb..00000000 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 index af4fc94c..00000000 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 index 01ebcf39..00000000 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 index b60b76b0..00000000 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 index 357cfaf1..00000000 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 index a0c99730..00000000 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 index 9804274f..00000000 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 index 676c4d98..00000000 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 index 61363da2..00000000 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 index 812394db..00000000 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 index 5692e4a7..00000000 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 index 0139fd55..00000000 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 index 7cac2881..00000000 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 index a77eba14..00000000 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 index 902f32f5..00000000 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 index 1b62f223..00000000 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 index 1f911e8c..00000000 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 index 5670d3ad..00000000 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 index 77b418be..00000000 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 index 9a60815d..00000000 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 index 9188bee6..00000000 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 index f9e7cc1d..00000000 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 index 5333382f..00000000 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 index 4ec79ed6..00000000 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 index dbb11956..00000000 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 index 31b609e5..00000000 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 index 4ef20566..00000000 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 index 7c6d23c1..00000000 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 index 851ec2c3..00000000 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 index f308f6ef..00000000 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 index b98b8691..00000000 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 index 2ea6feb8..00000000 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 index 5b9df336..00000000 Binary files a/radiant/bitmaps/window4.bmp and /dev/null differ diff --git a/radiant/brush.cpp b/radiant/brush.cpp index d6d1b95c..18866b4f 100644 --- a/radiant/brush.cpp +++ b/radiant/brush.cpp @@ -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; diff --git a/radiant/camwindow.cpp b/radiant/camwindow.cpp index 42a569b3..85cdccc6 100644 --- a/radiant/camwindow.cpp +++ b/radiant/camwindow.cpp @@ -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) diff --git a/radiant/dialog.cpp b/radiant/dialog.cpp index a2c37ec3..4f71d41b 100644 --- a/radiant/dialog.cpp +++ b/radiant/dialog.cpp @@ -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; } } diff --git a/radiant/filters.cpp b/radiant/filters.cpp index 9bd85035..f4dd1ba3 100644 --- a/radiant/filters.cpp +++ b/radiant/filters.cpp @@ -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; diff --git a/radiant/missing.cpp b/radiant/missing.cpp index cf7c820f..522980cd 100644 --- a/radiant/missing.cpp +++ b/radiant/missing.cpp @@ -39,27 +39,32 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include #include #include +#include +#include #include +#include #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 diff --git a/radiant/preferences.cpp b/radiant/preferences.cpp index 8fdb419b..2e59e0f9 100644 --- a/radiant/preferences.cpp +++ b/radiant/preferences.cpp @@ -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 ); + } +} diff --git a/radiant/preferences.h b/radiant/preferences.h index 908616ad..dfc1be5c 100644 --- a/radiant/preferences.h +++ b/radiant/preferences.h @@ -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]; }; /*!