Permalink
Browse files

Revert "Added the Linux and Mac OS X source release."

This reverts commit 22af434.
  • Loading branch information...
1 parent 22af434 commit 070cb20700d0bbcf0a4ffd508f0ce1a954fee89a @sjthompson sjthompson committed May 24, 2011
Showing with 0 additions and 46,059 deletions.
  1. 0 {Windows → }/LICENSE.txt
  2. +0 −76 Linux-MacOSX/LICENSE_LinuxMac.txt
  3. +0 −12 Linux-MacOSX/claw/binaries/Makefile
  4. +0 −82 Linux-MacOSX/claw/binaries/example.mk
  5. +0 −1,711 Linux-MacOSX/claw/claw_proto/claw_proto.cpp
  6. BIN Linux-MacOSX/claw/claw_proto/claw_proto.icns
  7. +0 −126 Linux-MacOSX/claw/claw_proto/claw_proto.sln
  8. +0 −23,683 Linux-MacOSX/claw/claw_proto/claw_proto.vcproj
  9. +0 −30 Linux-MacOSX/claw/claw_proto/claw_proto/claw-Info.plist
  10. +0 −4,755 Linux-MacOSX/claw/claw_proto/claw_proto/claw_proto.xcodeproj/project.pbxproj
  11. +0 −30 Linux-MacOSX/claw/claw_proto/claw_proto/launcher-Info.plist
  12. +0 −67 Linux-MacOSX/claw/claw_proto/configuration.h
  13. +0 −111 Linux-MacOSX/claw/claw_proto/dh_icon.rc
  14. +0 −19 Linux-MacOSX/claw/claw_proto/gui_configuration.h
  15. BIN Linux-MacOSX/claw/claw_proto/icon3.ico
  16. BIN Linux-MacOSX/claw/claw_proto/icon3.png
  17. +0 −33 Linux-MacOSX/claw/claw_proto/module.mk
  18. +0 −4 Linux-MacOSX/claw/claw_proto/precompiled.cpp
  19. +0 −42 Linux-MacOSX/claw/claw_proto/precompiled.h
  20. +0 −18 Linux-MacOSX/claw/claw_proto/resource.h
  21. +0 −14 Linux-MacOSX/claw/claw_proto/resource1.h
  22. +0 −20 Linux-MacOSX/claw/claw_proto/ui_credits_text.cpp
  23. +0 −43 Linux-MacOSX/claw/claw_proto/version.cpp
  24. +0 −11 Linux-MacOSX/claw/claw_proto/version.h
  25. +0 −13 Linux-MacOSX/claw/container/EmptyIteratorException.h
  26. +0 −14 Linux-MacOSX/claw/container/EmptyLinkedListException.h
  27. +0 −532 Linux-MacOSX/claw/container/LinkedList.cpp
  28. +0 −166 Linux-MacOSX/claw/container/LinkedList.h
  29. +0 −53 Linux-MacOSX/claw/container/Stack.cpp
  30. +0 −53 Linux-MacOSX/claw/container/Stack.h
  31. +0 −9 Linux-MacOSX/claw/container/StackEmptyException.h
  32. +0 −31 Linux-MacOSX/claw/container/module.mk
  33. +0 −95 Linux-MacOSX/claw/convert/int64_to_hex.cpp
  34. +0 −20 Linux-MacOSX/claw/convert/int64_to_hex.h
  35. +0 −32 Linux-MacOSX/claw/convert/module.mk
  36. +0 −147 Linux-MacOSX/claw/convert/str2int.cpp
  37. +0 −10 Linux-MacOSX/claw/convert/str2int.h
  38. +0 −233 Linux-MacOSX/claw/editor/FindFileWrapper.h
  39. +0 −22 Linux-MacOSX/claw/editor/UniqueEditorObjectHandle.h
  40. +0 −231 Linux-MacOSX/claw/editor/UniqueEditorObjectHandleManager.cpp
  41. +0 −33 Linux-MacOSX/claw/editor/UniqueEditorObjectHandleManager.h
  42. +0 −283 Linux-MacOSX/claw/editor/align_units.cpp
  43. +0 −97 Linux-MacOSX/claw/editor/align_units.h
  44. +0 −1,196 Linux-MacOSX/claw/editor/application.cpp
  45. +0 −30 Linux-MacOSX/claw/editor/application.h
  46. +0 −523 Linux-MacOSX/claw/editor/building_mode.cpp
  47. +0 −51 Linux-MacOSX/claw/editor/building_mode.h
  48. +0 −535 Linux-MacOSX/claw/editor/camera.cpp
  49. +0 −48 Linux-MacOSX/claw/editor/camera.h
  50. +0 −422 Linux-MacOSX/claw/editor/collision_model.cpp
  51. +0 −79 Linux-MacOSX/claw/editor/collision_model.h
  52. +0 −132 Linux-MacOSX/claw/editor/color_component.cpp
  53. +0 −35 Linux-MacOSX/claw/editor/color_component.h
  54. +0 −223 Linux-MacOSX/claw/editor/color_picker.cpp
  55. +0 −39 Linux-MacOSX/claw/editor/color_picker.h
  56. +0 −53 Linux-MacOSX/claw/editor/command_list.cpp
  57. +0 −32 Linux-MacOSX/claw/editor/command_list.h
  58. +0 −205 Linux-MacOSX/claw/editor/common_dialog.cpp
  59. +0 −25 Linux-MacOSX/claw/editor/common_dialog.h
  60. +0 −272 Linux-MacOSX/claw/editor/decorator_mode.cpp
  61. +0 −52 Linux-MacOSX/claw/editor/decorator_mode.h
  62. +0 −386 Linux-MacOSX/claw/editor/dialog.cpp
  63. +0 −67 Linux-MacOSX/claw/editor/dialog.h
  64. +0 −125 Linux-MacOSX/claw/editor/dialog_utils.cpp
  65. +0 −40 Linux-MacOSX/claw/editor/dialog_utils.h
  66. +0 −59 Linux-MacOSX/claw/editor/editor_main.cpp
  67. +0 −38 Linux-MacOSX/claw/editor/editor_object_state.cpp
  68. +0 −25 Linux-MacOSX/claw/editor/editor_object_state.h
  69. +0 −507 Linux-MacOSX/claw/editor/editor_state.cpp
  70. +0 −98 Linux-MacOSX/claw/editor/editor_state.h
  71. +0 −275 Linux-MacOSX/claw/editor/explosion_scripts.cpp
  72. +0 −105 Linux-MacOSX/claw/editor/explosion_scripts.h
  73. +0 −335 Linux-MacOSX/claw/editor/export_dialog.cpp
  74. +0 −35 Linux-MacOSX/claw/editor/export_dialog.h
  75. +0 −43 Linux-MacOSX/claw/editor/export_options.h
  76. +0 −117 Linux-MacOSX/claw/editor/exporter.cpp
  77. +0 −46 Linux-MacOSX/claw/editor/exporter.h
  78. +0 −203 Linux-MacOSX/claw/editor/exporter_lights.cpp
  79. +0 −48 Linux-MacOSX/claw/editor/exporter_lights.h
  80. +0 −400 Linux-MacOSX/claw/editor/exporter_objects.cpp
  81. +0 −68 Linux-MacOSX/claw/editor/exporter_objects.h
  82. +0 −371 Linux-MacOSX/claw/editor/exporter_scene.cpp
  83. +0 −61 Linux-MacOSX/claw/editor/exporter_scene.h
  84. +0 −258 Linux-MacOSX/claw/editor/exporter_scripts.cpp
  85. +0 −66 Linux-MacOSX/claw/editor/exporter_scripts.h
  86. +0 −398 Linux-MacOSX/claw/editor/exporter_units.cpp
  87. +0 −48 Linux-MacOSX/claw/editor/exporter_units.h
  88. +0 −56 Linux-MacOSX/claw/editor/file_iterator.cpp
  89. +0 −27 Linux-MacOSX/claw/editor/file_iterator.h
  90. +0 −533 Linux-MacOSX/claw/editor/file_wrapper.cpp
  91. +0 −49 Linux-MacOSX/claw/editor/file_wrapper.h
  92. +0 −1 Linux-MacOSX/claw/editor/foo.c
  93. +0 −709 Linux-MacOSX/claw/editor/graph.cpp
  94. +0 −37 Linux-MacOSX/claw/editor/graph.h
  95. +0 −333 Linux-MacOSX/claw/editor/group_list.cpp
  96. +0 −52 Linux-MacOSX/claw/editor/group_list.h
  97. +0 −102 Linux-MacOSX/claw/editor/group_list_utils.cpp
  98. +0 −36 Linux-MacOSX/claw/editor/group_list_utils.h
  99. +0 −173 Linux-MacOSX/claw/editor/group_save_dialog.cpp
  100. +0 −31 Linux-MacOSX/claw/editor/group_save_dialog.h
  101. +0 −332 Linux-MacOSX/claw/editor/gui.cpp
  102. +0 −56 Linux-MacOSX/claw/editor/gui.h
  103. +0 −277 Linux-MacOSX/claw/editor/height_modifier.cpp
  104. +0 −36 Linux-MacOSX/claw/editor/height_modifier.h
  105. +0 −128 Linux-MacOSX/claw/editor/helper_visualization.cpp
  106. +0 −37 Linux-MacOSX/claw/editor/helper_visualization.h
  107. +0 −258 Linux-MacOSX/claw/editor/hmap_loader.cpp
  108. +0 −75 Linux-MacOSX/claw/editor/hmap_loader.h
  109. +0 −19 Linux-MacOSX/claw/editor/icommand.h
  110. +0 −22 Linux-MacOSX/claw/editor/idlg_handler.h
  111. +0 −64 Linux-MacOSX/claw/editor/ieditor_state.h
  112. +0 −43 Linux-MacOSX/claw/editor/imode.h
  113. +0 −917 Linux-MacOSX/claw/editor/light_mode.cpp
  114. +0 −51 Linux-MacOSX/claw/editor/light_mode.h
  115. +0 −28 Linux-MacOSX/claw/editor/mapped_object.cpp
  116. +0 −34 Linux-MacOSX/claw/editor/mapped_object.h
  117. +0 −34 Linux-MacOSX/claw/editor/module.mk
  118. +0 −200 Linux-MacOSX/claw/editor/mouse.cpp
  119. +0 −68 Linux-MacOSX/claw/editor/mouse.h
  120. +0 −90 Linux-MacOSX/claw/editor/name_dialog.cpp
  121. +0 −16 Linux-MacOSX/claw/editor/name_dialog.h
Sorry, we could not display the entire diff because too many files (4,916) changed.
View
0 Windows/LICENSE.txt → LICENSE.txt
File renamed without changes.
View
76 Linux-MacOSX/LICENSE_LinuxMac.txt
@@ -1,76 +0,0 @@
-JACK CLAW SOURCE CODE LICENSE
-
-THE COMPUTER CODE ("SOURCE CODE") CONTAINED HEREIN IS THE SOLE PROPERTY OF FROZENBYTE LTD. ("FROZENBYTE").
-FROZENBYTE GRANTS TO END-USERS A ROYALTY-FREE, PERPETUAL LICENSE TO USE, DISPLAY, MODIFY, DISTRIBUTE AND
-CREATE DERIVATIVE WORKS OF THE SOURCE CODE, SO LONG AS SUCH ACTION IS FOR NON-COMMERCIAL, ROYALTY-FREE
-AND REVENUE-FREE PURPOSES. IN NO EVENT SHALL THE END-USER TAKE ANY ACTION WHEREBY THE SOURCE CODE CONTAINED
-HEREIN WOULD BE USED FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS AND AGREES TO THE TERMS HEREIN
-AND ACCEPTS THE SAME BY USING THE SOURCE CODE IN ANY WAY.
-
-THE SOURCE CODE IS PROVIDED AS-IS AND FROZENBYTE MAKES NO WARRANTY AS TO THE USABILITY OR CORRECTNESS
-OF THE SOURCE CODE. ANY USE IS AT YOUR OWN RISK.
-
-FROZENBYTE RETAINS THE RIGHT TO ALTER THESE LICENSE TERMS AT ANY TIME FOR ANY REASON.
-
-
-
-SOURCE CODE README AND FURTHER LICENSE NOTES
---------------------------------------------
-Last update to this file: 12th of April 2011
-
-Jack Claw was a project in development at Frozenbyte during the years 2006-2008. It was a big-budget multiplatform game for next-gen consoles and PC. The project was canned in 2008 and the team set to work on Trine ( http://www.trine-thegame.com ) instead. More history on the project can be found at Frozenbyte's website or on the Jack Claw website, and more info on the transition from Jack Claw to Trine can be found in the Gamasutra postmortem:
-http://www.gamasutra.com/view/feature/5826/postmortem_frozenbytes_trine.php
-
-This source code package allows you to compile the game and develop it further if you wish (for non-commercial purposes). All other Jack Claw files, including the art assets and the level editor, remain the sole property and copyright of Frozenbyte. You may not distribute any of the files not included in the source code package. Should the source code include any 3rd party files or software, the copyright remains with the original owner and you are not allowed to distribute or modify such files or software. It is also forbidden to distribute Jack Claw or any direct derivative, in any way (e.g. not even for free), in any "app stores" such as the Mac App Store or similar, or in any distribution channel that has authorization control by a third party.
-
-If you have a question about the license or a specific file, please don't hesitate to contact us. We're mostly just covering our legal base with this stuff.
-
-Please note that we cannot provide any official support for this source code release, although we will try to help where we can.
-
-If you are interested in developing Jack Claw, please get in touch with us or join the community - we are not actively developing the game on our own anymore but we are generally open to ideas, and our main interest is to just get the game out there and see what happens, and support the community with their ideas.
-
-
-WHAT YOU NEED
--------------
-
-The source code as it is packaged may not compile properly. This is the Linux/Mac version of the source code.
-
-You also needs the assets - the Jack Claw files, essentially the JackClaw_Editor_and_Assets.zip package, is available with the Humble Frozenbyte Bundle, or following the closure of the bundle, directly from Frozenbyte.
-
-Please go to the Jack Claw forums at http://frozenbyte.com/board/ for help.
-
-
-SPECIAL NOTES
--------------
-
-The Jack Claw source is based on the same code that we have used in all of our games so far. This will finally change with Trine 2 which uses a completely rewritten game engine. You will find a lot of code related to Shadowgrounds (2005) and Shadowgrounds Survivor (2007). There may also be references to older projects, such as "Disposable" or "DH", which mean our very first game, an (RTS) prototype from 2001-2003.
-
-It's also worth noting that the source code has a lot of "hacks" and "todos". It is in many ways messy and could be hard to understand.
-
-We haven't had a commercial name for the game engine, but internally it's been called "Storm3D". Storm3D is partially based on work by the awesome Finnish programmer Sebastian Aaltonen, from whom we bought the original code in 2000/2001.
-
-The Linux/Mac version of Jack Claw has been developed by Alternative Games so that the community can develop the game a bit further on all platforms.
-
-That's it. We'll be discussing Jack Claw much more in the future on our websites and in the community, so be sure to check them out.
-
-Good luck! :)
-
-
-
-THANKS
-------
-
-Thanks to all of the Frozenbyte / Jack Claw team - feel free to use the game in your public portfolios! :)
-
-Thanks to Alternative Games for the Linux/Mac versions.
-
-Thanks to Parallax Software for license inspiration.
-
-
-
-Frozenbyte team - 2011
-http://www.frozenbyte.com/
-http://www.frozenbyte.com/jackclaw/
-http://www.frozenbyte.com/board/
-
-
View
12 Linux-MacOSX/claw/binaries/Makefile
@@ -1,12 +0,0 @@
-## DO NOT TOUCH THIS FILE
-# copy example.mk to local.mk and change that
-
-# load defaults
-include example.mk
-
-# load customizations if exist
--include local.mk
-
-
-VPATH=$(TOPDIR)
-include $(TOPDIR)/module.mk
View
82 Linux-MacOSX/claw/binaries/example.mk
@@ -1,82 +0,0 @@
-# example of local configuration
-# copy to local.mk
-
-
-# location of source
-TOPDIR:=..
-
-
-# compiler options etc
-CXX:=g++
-
-# link time optimization, gcc >4.6 required
-LTO:=n
-
-
-DIRECT3D:=n
-OPENGL:=y
-LIBAVCODEC:=y
-# null fmod openal
-SOUND:=openal
-
-
-# optimization options
-OPTFLAGS:=-Os -ffast-math
-OPTFLAGS+=-fno-strict-aliasing
-
-
-CXXFLAGS:=-g
-CXXFLAGS+=-I$(TOPDIR) -I$(TOPDIR)/claw_proto -I$(TOPDIR)/storm/include -I$(TOPDIR)/storm/keyb3
-CXXFLAGS+=$(shell sdl-config --cflags)
-CXXFLAGS+=-include $(TOPDIR)/claw_proto/configuration.h
-CXXFLAGS+=-DLIGHT_MAX_AMOUNT=5
-#CXXFLAGS+=-D_DEBUG
-CXXFLAGS+=-DNDEBUG
-# in a perfect world...
-#CXXFLAGS:=-Wall -Wextra -Werror
-# in the real world...
-CXXFLAGS+=-w
-
-
-# linker settings
-LDFLAGS:=-g -Wl,-rpath,\$$$$ORIGIN/lib32
-LDLIBS:=$(shell sdl-config --libs)
-LDLIBS+=-lGLEW -lGL -lGLU
-LDLIBS+=-lSDL_image -lSDL_ttf -lSDL_sound
-#LDLIBS+=-L/usr/local/lib -lfmod-3.75
-LDLIBS+=-L. -lunzip -lz
-LDLIBS+=-lpthread
-
-LDLIBS_fmod:=-lfmod
-LDLIBS_openal:=-lopenal -lvorbisfile -lboost_thread
-LDLIBS_avcodec:=-lavcodec -lavformat -lswscale -lavutil
-
-OBJSUFFIX:=.o
-EXESUFFIX:=-bin
-
-
-# NX32 or NX64 depending on your OS
-# PhysX apparently can't pick for itself
-CXXFLAGS+=-DNX32
-CXXFLAGS+=-DLINUX
-
-
-PHYSX_VERSION:=2.8.3
-PHYSX_LIBDIR:=/usr/lib/PhysX
-PHYSX_INCDIR:=/usr/include/PhysX
-
-PHYSX_PARTS:=Physics Cooking NxExtensions NxCharacter Foundation PhysXLoader
-
-PHYSX_INCLUDE_DIRS:=$(foreach dir,$(PHYSX_PARTS), $(PHYSX_INCDIR)/v$(PHYSX_VERSION)/SDKs/$(dir)/include)
-LPHYSX:=-L$(PHYSX_LIBDIR)/v$(PHYSX_VERSION) -lPhysXLoader -ldl
-
-# physx fluids on linux are broken
-# fuck ageia and nvidia
-# only on old version of PhysX
-ifeq ($(PHYSX_VERSION),2.8.1)
-
-CXXFLAGS+=-DNX_DISABLE_FLUIDS
-
-endif
-
-IPHYSX:=$(foreach dir,$(PHYSX_INCLUDE_DIRS),-I$(dir))
View
1,711 Linux-MacOSX/claw/claw_proto/claw_proto.cpp
@@ -1,1711 +0,0 @@
-
-//
-// Dha super hyper Storm3D programming test
-//
-// (Now known as the gpdemo dev version ;)
-//
-
-#include "precompiled.h"
-
-#ifdef CHANGE_TO_PARENT_DIR
-#include <direct.h>
-#endif
-
-#include <string.h>
-#include <time.h>
-#include <stdio.h>
-#include <Storm3D_UI.h>
-#include <keyb3.h>
-
-#ifndef _WIN32
-#include <SDL.h>
-#include "SDL_sound.h"
-#endif
-
-#include "version.h"
-#include "configuration.h"
-
-#include "../system/Logger.h"
-//#include "../util/Parser.h"
-#include "../editor/parser.h"
-#include "../util/Checksummer.h"
-#include "../sound/SoundLib.h"
-#include "../sound/SoundMixer.h"
-#include "../sound/MusicPlaylist.h"
-
-#include "../ogui/Ogui.h"
-#include "../ogui/OguiStormDriver.h"
-
-#include "../ui/uidefaults.h"
-#include "../ui/Visual2D.h"
-#include "../ui/VisualObjectModel.h"
-#include "../ui/Animator.h"
-#include "../ui/ErrorWindow.h"
-#include "../ui/SelectionBox.h"
-#include "../ui/cursordefs.h"
-#include "../ui/GameVideoPlayer.h"
-#include "../ui/LoadingMessage.h"
-#include "../ui/DebugDataView.h"
-
-#include "../convert/str2int.h"
-
-#include "../game/Game.h"
-#include "../game/createparts.h"
-#include "../game/unittypes.h"
-#include "../game/GameOptionManager.h"
-#include "../game/SimpleOptions.h"
-#include "../game/options/options_all.h"
-#include "../game/PlayerWeaponry.h"
-
-// TEMP
-//#include "../game/CoverMap.h"
-#include "../game/DHLocaleManager.h"
-
-#include "../game/GameRandom.h"
-#include "../game/GameUI.h"
-#include "../ui/GameController.h"
-#include "../ui/GameCamera.h"
-#include "../ui/UIEffects.h"
-#include "../util/ScriptManager.h"
-#include "../game/OptionApplier.h"
-
-#include "../system/Timer.h"
-#include "../system/SystemRandom.h"
-#include <IStorm3D_Logger.h>
-
-#ifdef SCRIPT_DEBUG
-#include "../game/ScriptDebugger.h"
-#endif
-
-#include "../util/procedural_properties.h"
-#include "../util/procedural_applier.h"
-#include "../util/assert.h"
-#include "../util/Debug_MemoryManager.h"
-
-#ifndef USE_DSOUND
-#pragma comment(lib, "fmodvc.lib")
-#endif
-
-//#include "../filesystem/zip_package.h"
-//#include "../filesystem/input_stream.h"
-#include "../filesystem/ifile_package.h"
-#include "../filesystem/standard_package.h"
-#include "../filesystem/zip_package.h"
-#include "../filesystem/file_package_manager.h"
-#include "../filesystem/file_list.h"
-
-#include "../util/mod_selector.h"
-
-#include "../project_common/configuration_post_check.h"
-
-#include "../game/userdata.h"
-
-using namespace game;
-using namespace ui;
-using namespace sfx;
-using namespace frozenbyte;
-
-// TEMP!!!
-/*
-namespace ui
-{
-extern int visual_object_allocations;
-extern int visual_object_model_allocations;
-}
-*/
-
-int interface_generation_counter = 0;
-bool next_interface_generation_request = false;
-bool apply_options_request = false;
-IStorm3D_Scene *disposable_scene = NULL;
-
-// for perf stats..
-int disposable_frames_since_last_clear = 0;
-int disposable_ticks_since_last_clear = 0;
-
-GameUI *msgproc_gameUI = NULL;
-
-extern const char *version_branch_name;
-
-
-int scr_width = 0;
-int scr_height = 0;
-
-float mouse_sensitivity = 1.0f;
-
-bool lostFocusPause = false;
-
-// TEMP
-IStorm3D *disposable_s3d = NULL;
-
-
-int renderfunc(IStorm3D_Scene *scene)
-{
- return scene->RenderScene();
-}
-
-
-#ifdef _WIN32
-// FIXME: this code is required for console and input text boxes
-// this functionality should be moved to keyb
-
-LRESULT WINAPI customMessageProc(HWND hWnd,UINT msg,WPARAM wParam,LPARAM lParam)
-{
- if(msg == WM_ACTIVATE)
- {
- int active = LOWORD(wParam);
- int minimized = HIWORD(wParam);
-
- if(active == WA_INACTIVE)
- {
- //ShowWindow(hWnd, SW_MINIMIZE);
- }
- else
- {
- //if(minimized)
- // ShowWindow(hWnd, SW_RESTORE);
- }
-
- if(active == WA_INACTIVE || minimized)
- lostFocusPause = true;
- else
- lostFocusPause = false;
- }
-
- if(msg == WM_KEYDOWN)
- {
- int key = int(wParam);
-
- if (msgproc_gameUI != NULL
- && msgproc_gameUI->getController(0) != NULL)
- {
- if(key == VK_LEFT)
- msgproc_gameUI->getController(0)->addReadKey(0, KEYCODE_LEFT_ARROW);
- else if(key == VK_RIGHT)
- msgproc_gameUI->getController(0)->addReadKey(0, KEYCODE_RIGHT_ARROW);
- else if(key == VK_UP)
- msgproc_gameUI->getController(0)->addReadKey(0, KEYCODE_UP_ARROW);
- else if(key == VK_DOWN)
- msgproc_gameUI->getController(0)->addReadKey(0, KEYCODE_DOWN_ARROW);
- else if(key == VK_DELETE)
- msgproc_gameUI->getController(0)->addReadKey(0, KEYCODE_DELETE);
- }
- }
- else if(msg == WM_CHAR)
- {
- char c = (TCHAR) wParam;
- if (msgproc_gameUI != NULL
- && msgproc_gameUI->getController(0) != NULL)
- {
- msgproc_gameUI->getController(0)->addReadKey(c, 0);
- }
- //std::string str;
- //str += c;
- //str += "\r\n";
- //OutputDebugString(str.c_str());
- }
-
- return 0;
-}
-
-#endif // _WIN32
-
-void set_mouse_borders()
-{
- bool force_given_boundary = false;
- if (SimpleOptions::getBool(DH_OPT_B_MOUSE_FORCE_GIVEN_BOUNDARY))
- {
- force_given_boundary = true;
- }
-
- if (force_given_boundary)
- {
- Keyb3_SetMouseBorders((int)(scr_width / mouse_sensitivity),
- (int)(scr_height / mouse_sensitivity));
- Keyb3_SetMousePos((int)(scr_width / mouse_sensitivity) / 2,
- (int)(scr_height / mouse_sensitivity) / 2);
- } else {
- Storm3D_SurfaceInfo screenInfo = disposable_s3d->GetScreenSize();
- Keyb3_SetMouseBorders((int)(screenInfo.width / mouse_sensitivity),
- (int)(screenInfo.height / mouse_sensitivity));
- Keyb3_SetMousePos((int)(screenInfo.width / mouse_sensitivity) / 2,
- (int)(screenInfo.height / mouse_sensitivity) / 2);
- }
-}
-
-namespace {
- class StormLogger: public IStorm3D_Logger
- {
- Logger &logger;
-
- public:
- StormLogger(Logger &logger_)
- : logger(logger_)
-
- {
- }
-
- void debug(const char *msg)
- {
- logger.debug(msg);
- }
-
- void info(const char *msg)
- {
- logger.info(msg);
- }
-
- void warning(const char *msg)
- {
- logger.warning(msg);
- }
-
- void error(const char *msg)
- {
- logger.error(msg);
- }
- };
-
-} // unnamed
-
-/* --------------------------------------------------------- */
-
-void parse_commandline(const char *cmdline, bool *windowed, bool *compile)
-{
- if (cmdline != NULL)
- {
- // TODO: proper command line parsing
- // (parse -option=value pairs?)
- int cmdlineLen = strlen(cmdline);
- char *parseBuf = new char[cmdlineLen + 1];
- strcpy(parseBuf, cmdline);
- int i;
-
- for (i = 0; i < cmdlineLen; i++)
- {
- if (parseBuf[i] == '=')
- parseBuf[i] = '\0';
- if (parseBuf[i] == ' ')
- parseBuf[i] = '\0';
- }
-
- for (i = 0; i < cmdlineLen; i++)
- {
- if (parseBuf[i] == '-')
- {
- i++;
- if (strcmp(&parseBuf[i], "windowed") == 0)
- {
- Logger::getInstance()->info("Windowed mode command line parameter given.");
- *windowed = true;
- }
- if (strcmp(&parseBuf[i], "compileonly") == 0)
- {
- Logger::getInstance()->info("Compileonly command line parameter given.");
- *windowed = true;
- *compile = true;
- }
- GameOption *opt = GameOptionManager::getInstance()->getOptionByName(&parseBuf[i]);
- if (opt != NULL)
- {
- int j = i + strlen(&parseBuf[i]);
- j += 1;
- if (j > cmdlineLen)
- j = cmdlineLen;
-
- Logger::getInstance()->debug("Option value given at command line.");
- Logger::getInstance()->debug(&parseBuf[i]);
- Logger::getInstance()->debug(&parseBuf[j]);
-
- if (opt->getVariableType() == IScriptVariable::VARTYPE_STRING)
- {
- opt->setStringValue(&parseBuf[j]);
- }
- else if (opt->getVariableType() == IScriptVariable::VARTYPE_INT)
- {
- opt->setIntValue(str2int(&parseBuf[j]));
- }
- else if (opt->getVariableType() == IScriptVariable::VARTYPE_FLOAT)
- {
- opt->setFloatValue((float)atof(&parseBuf[j]));
- }
- else if (opt->getVariableType() == IScriptVariable::VARTYPE_BOOLEAN)
- {
- if (parseBuf[j] == '\0'
- || str2int(&parseBuf[j]) != 0)
- opt->setBooleanValue(true);
- else
- opt->setBooleanValue(false);
- }
- }
- }
- }
-
- delete [] parseBuf;
- }
-}
-
-
-void error_whine()
-{
- bool foundErrors = false;
- FILE *fo = NULL;
-
-#ifdef LEGACY_FILES
- std::string path = getUserDataPrefix() + "log.txt";
-#else
- std::string path = getUserDataPrefix() + "logs/log.txt";
-#endif
-
- FILE *f = fopen(path.c_str(), "rb");
- if (f != NULL)
- {
- fseek(f, 0, SEEK_END);
- int flen = ftell(f);
- fseek(f, 0, SEEK_SET);
-
- char *buf = new char[flen + 1];
-
- fread(buf, flen, 1, f);
- buf[flen] = '\0';
-
- fclose(f);
-
- bool stillInError = false;
-
- for (int i = 0; i < flen; i++)
- {
- if (buf[i] == '\r')
- {
- buf[i] = ' ';
- }
- if (buf[i] == '\n' || buf[i] == '\0')
- {
- buf[i] = '\0';
- int skipErr = 0;
- if (strncmp(&buf[i + 1], "INFO: ", 6) == 0
- || strncmp(&buf[i + 1], "DEBUG: ", 7) == 0)
- {
- stillInError = false;
- }
- if (strncmp(&buf[i + 1], "ERROR: ", 7) == 0
- || strncmp(&buf[i + 1], "WARNING: ", 9) == 0
- || stillInError)
- {
- if (strncmp(&buf[i + 1], "ERROR: ", 7) == 0)
- skipErr = 7;
- if (strncmp(&buf[i + 1], "WARNING: ", 9) == 0)
- skipErr = 9;
- stillInError = true;
-
- bool hadFileOrLine = false;
- foundErrors = true;
- if (fo == NULL)
- {
-#ifdef LEGACY_FILES
- fo = fopen("log_errors.txt", "wb");
-#else
- fo = fopen("logs/log_errors.txt", "wb");
-#endif
- fprintf(fo, "\r\n*** Errors/warnings found - See \"log.txt\" for details. ***\r\n\r\n");
- }
- for (int j = i+1; j < flen+1; j++)
- {
- if (strncmp(&buf[j], "(file ", 6) == 0)
- {
- //buf[j - 1] = '\0';
- buf[j] = '\0';
- for (int k = j; k < flen; k++)
- {
- if (buf[k] == ',' || buf[k] == ')')
- {
- buf[k] = '\0';
- char *filename = &buf[j + 6];
- char *dhpsext = strstr(filename, ".dhps");
- if (dhpsext != NULL)
- {
- dhpsext[3] = 's';
- dhpsext[4] = '\0';
- if (fo != NULL)
- fprintf(fo, "%s:", filename);
- dhpsext[3] = 'p';
- dhpsext[4] = 's';
- } else {
- if (fo != NULL)
- fprintf(fo, "%s:", filename);
- }
- j = k;
- hadFileOrLine = true;
- break;
- }
- }
- }
- if (strncmp(&buf[j], "line ", 5) == 0)
- {
- for (int k = j; k < flen; k++)
- {
- if (buf[k] == ',' || buf[k] == ')')
- {
- buf[k] = '\0';
- if (str2int(&buf[j + 5]) == 0)
- {
- if (fo != NULL)
- fprintf(fo, "1: ", &buf[j + 5]);
- } else {
- if (fo != NULL)
- fprintf(fo, "%s: ", &buf[j + 5]);
- }
- j = k;
- hadFileOrLine = true;
- break;
- }
- }
- }
- if (buf[j] == '\r')
- {
- buf[j] = ' ';
- }
- if (buf[j] == '\n' || j == flen)
- {
- buf[j] = '\0';
- //if (hadFileOrLine)
- //{
- // if (fo != NULL)
- // fprintf(fo, "%s\n", &buf[i+1+skipErr]);
- //} else {
- //}
- if (fo != NULL)
- fprintf(fo, "%s\r\n", &buf[i+1+skipErr]);
- if (i < j-1)
- i = j-1;
- break;
- }
- }
- }
- }
- }
- }
-
- if (fo != NULL)
- {
- fclose(fo);
- }
-
- if (foundErrors)
- {
- system("start devhtml\\htmllogview.bat");
- }
-}
-
-
-/* --------------------------------------------------------- */
-
-std::string get_path(const std::string &file)
-{
- std::string::size_type pos = file.find_last_of('/');
- if (pos != std::string::npos) return file.substr(0, pos + 1);
- return "";
-}
-
-#ifdef __GLIBC__
-
-#ifndef __USE_GNU
-#define __USE_GNU
-#endif
-
-#include <execinfo.h>
-#include <ucontext.h>
-
-static void sighandler(int sig, siginfo_t *info, void *secret) {
- ucontext_t *uc = (ucontext_t *) secret;
-
- if (sig == SIGSEGV)
-#ifdef __x86_64__
- printf("Got signal %d at %p from %p\n", sig, info->si_addr, (void *) uc->uc_mcontext.gregs[REG_RIP]);
-#else
- printf("Got signal %d at %p from %p\n", sig, info->si_addr, (void *) uc->uc_mcontext.gregs[REG_EIP]);
-#endif
- else
- printf("Got signal %d\n", sig);
-
- exit(0);
-}
-#endif
-
-// need this so we can call exit in the case of segfault
-static void setsighandler(void) {
-#ifdef __GLIBC__
- struct sigaction sa;
-
- sa.sa_sigaction = sighandler;
- sigemptyset (&sa.sa_mask);
- sa.sa_flags = SA_RESTART | SA_SIGINFO;
-
- sigaction(SIGSEGV, &sa, NULL);
- sigaction(SIGUSR1, &sa, NULL);
-#endif
-}
-
-#ifdef _WIN32
-int WINAPI WinMain(HINSTANCE hInstance,
- HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
-{
- if(FindWindow(get_application_classname_string(), get_application_name_string()))
- {
- Sleep(3000);
-
- if(FindWindow(get_application_classname_string(), get_application_name_string()))
- return 0;
- }
-
-#else // _WIN32
-
-int main(int argc, char * argv[])
-{
-try {
- setsighandler();
- {
- // change working dir to the directory where the binary is located in
- std::string path = get_path(argv[0]);
- if (path != "" && path != "./") {
- char wd[256];
- if (getcwd(wd, 256) == wd) {
- std::string cwd = wd + std::string("/") + path;
- chdir(cwd.c_str());
- } else {
- fprintf(stderr, "Couldn't get current working directory.\n");
- return -1;
- }
- }
- }
-
- // FIXME: this is pretty inefficient
- // we build this string and parse_commandline just takes it apart again
- std::string cmdLine;
- for (int i = 1; i < argc; i++)
- {
- cmdLine.append(argv[i]);
- cmdLine.push_back(' ');
- }
- const char *lpCmdLine = cmdLine.c_str();
-
-
- // create log file in correct place
-#ifdef LEGACY_FILES
- std::string path = getUserDataPrefix() + "log.txt";
-#else
- std::string path = getUserDataPrefix() + "logs/log.txt";
-#endif
-
- Logger::createInstanceForLogfile(path.c_str());
-
-#endif // _WIN32
-
- {
- using namespace frozenbyte::filesystem;
- boost::shared_ptr<IFilePackage> standardPackage(new StandardPackage());
-
- boost::shared_ptr<IFilePackage> zipPackage1(new ZipPackage("data1.fbz"));
- boost::shared_ptr<IFilePackage> zipPackage2(new ZipPackage("data2.fbz"));
- boost::shared_ptr<IFilePackage> zipPackage3(new ZipPackage("data3.fbz"));
- boost::shared_ptr<IFilePackage> zipPackage4(new ZipPackage("data4.fbz"));
-
- FilePackageManager &manager = FilePackageManager::getInstance();
- manager.addPackage(standardPackage, 999);
-
- manager.addPackage(zipPackage1, 1);
- manager.addPackage(zipPackage2, 2);
- manager.addPackage(zipPackage3, 3);
- manager.addPackage(zipPackage4, 4);
- }
-
- // initialize...
-
- frozenbyte::util::ModSelector modSelector;
- modSelector.changeDir();
-
-#ifdef CHANGE_TO_PARENT_DIR
- // for profiling
-// int chdirfail = _chdir("..\\..\\..\\Snapshot");
-// if (chdirfail != 0) abort();
- //char curdir[256 + 1];
- //char *foo = _getcwd(curdir, 256);
- //if (foo == NULL) abort();
- //printf(curdir);
-#endif
-
- bool checksumfailure = false;
- bool version_branch_failure = false;
-
- bool show_fps = false;
- bool show_polys = false;
- bool show_terrain_mem_info = false;
- int loglevel = 1;
- int showloglevel = 1;
-
-#ifndef _WIN32
- if (Sound_Init() == 0)
- Logger::getInstance()->error("SDL_Sound initialization failure.");
-#endif
-
- Timer::init();
-
- /*
- {
-#ifdef LEGACY_FILES
- FILE *vbf = fopen("Data/Version/version_branch.txt", "rb");
-#else
- FILE *vbf = fopen("data/version/version_branch.txt", "rb");
-#endif
- if (vbf != NULL)
- {
- fseek(vbf, 0, SEEK_END);
- int vbf_size = ftell(vbf);
- fseek(vbf, 0, SEEK_SET);
-
- char *vbf_buf = new char[vbf_size + 1];
- int vbf_got = fread(vbf_buf, vbf_size, 1, vbf);
- if (vbf_got == 1)
- {
- vbf_buf[vbf_size] = '\0';
- if (strncmp(vbf_buf, version_branch_name, strlen(version_branch_name)) != 0)
- {
- version_branch_failure = true;
- }
- } else {
- version_branch_failure = true;
- }
- delete [] vbf_buf;
- fclose(vbf);
- } else {
- version_branch_failure = true;
- }
- }
-
- {
- char fname_buf[256];
-#ifdef LEGACY_FILES
- strcpy(fname_buf, "Data/Version/");
- strcat(fname_buf, version_branch_name);
- strcat(fname_buf, ".txt");
-#else
- strcpy(fname_buf, "data/version/");
- strcat(fname_buf, version_branch_name);
- strcat(fname_buf, ".txt");
-#endif
- FILE *vbf = fopen(fname_buf, "rb");
- if (vbf != NULL)
- {
- fclose(vbf);
- } else {
- version_branch_failure = true;
- }
- }
- */
-
- /*
- int chksum1 = 3019411528;
- int chksize1 = 22357374;
- chksum1 ^= 1300166741;
- chksize1 ^= 21000334;
- if (!util::Checksummer::doesChecksumAndSizeMatchFile(chksum1, chksize1, "Data/GUI/Windows/command.dds"))
- {
- checksumfailure = true;
- }
- */
-
- editor::Parser main_config;
-#ifdef LEGACY_FILES
- filesystem::InputStream configFile = filesystem::FilePackageManager::getInstance().getFile("config/main.txt");
-#else
- filesystem::InputStream configFile = filesystem::FilePackageManager::getInstance().getFile("config/startup.txt");
-#endif
- configFile >> main_config;
-
- GameOptionManager::getInstance()->load();
-
- /*
- if (checksumfailure)
- {
- Logger::getInstance()->error("Checksum mismatch.");
- MessageBox(0,"Checksum mismatch or required data missing.\nMake sure you have all the application files properly installed.\n\nContact Frozenbyte for more info.","Error",MB_OK);
- assert(!"Checksum mismatch");
- return 0;
- }
- */
-
- if (version_branch_failure)
- {
- Logger::getInstance()->error("Version data incorrect.");
-#ifdef _WIN32
- MessageBox(0,"Required data missing.\nMake sure you have all the application files properly installed.\n\nSee game website for more info.","Error",MB_OK);
-#endif // _WIN32
- assert(!"Version data incorrect");
- abort();
- return 0;
- }
-
- bool windowedMode = false;
- bool compileOnly = false;
-
- parse_commandline(lpCmdLine, &windowedMode, &compileOnly);
-
- if (SimpleOptions::getBool(DH_OPT_B_WINDOWED))
- windowedMode = true;
-
- //if (!windowedMode)
- //{
- // new behaviour: disable script preprocess if fullscreen
- // game::SimpleOptions::setBool(DH_OPT_B_AUTO_SCRIPT_PREPROCESS, false);
- //}
-
- StormLogger logger(*Logger::getInstance());
- IStorm3D *s3d = IStorm3D::Create_Storm3D_Interface(true, &filesystem::FilePackageManager::getInstance(), &logger);
-
- disposable_s3d = s3d;
-
-#if defined _WIN32
- // FIXME: this is important but should be implemented differently
- // console is broken without this
- s3d->SetUserWindowMessageProc(&customMessageProc);
-#endif // _WIN32
-
- s3d->SetApplicationName(get_application_classname_string(), get_application_name_string());
-
- // set lighting / shadow texture qualities now (must be set
- // before storm3d creation)
- if (SimpleOptions::getInt(DH_OPT_I_SHADOWS_LEVEL) >= 50)
- {
- s3d->SetFakeShadowQuality(SimpleOptions::getInt(DH_OPT_I_FAKESHADOWS_TEXTURE_QUALITY));
- } else {
- s3d->SetFakeShadowQuality(-1);
- }
-
- s3d->SetShadowQuality(SimpleOptions::getInt(DH_OPT_I_SHADOWS_TEXTURE_QUALITY));
- s3d->SetLightingQuality(SimpleOptions::getInt(DH_OPT_I_LIGHTING_TEXTURE_QUALITY));
- s3d->EnableGlow(SimpleOptions::getBool(DH_OPT_B_RENDER_GLOW));
-
- if(SimpleOptions::getBool(DH_OPT_B_RENDER_REFLECTION))
- s3d->SetReflectionQuality(50);
- else
- s3d->SetReflectionQuality(0);
-
- if(!SimpleOptions::getBool(DH_OPT_B_HIGH_QUALITY_VIDEO))
- {
- s3d->DownscaleVideos(true);
- //s3d->HigherColorRangeVideos(false);
- }
- /*
- // lipsync targets
- {
- std::string icon_xsize_conf("");
- std::string icon_ysize_conf("");
-
- icon_xsize_conf = std::string("gui_message_face1_size_x");
- icon_ysize_conf = std::string("gui_message_face1_size_y");
-
- int iconXSize = getLocaleGuiInt(icon_xsize_conf.c_str(), 0);
- int iconYSize = getLocaleGuiInt(icon_ysize_conf.c_str(), 0);
-
- float relativeSizeX = (float)iconXSize / 1024.0f;
- float relativeSizeY = (float)iconYSize / 768.0f;
-
- // NOTE: antialiased, thus size * 2
- s3d->addAdditionalRenderTargets(VC2(relativeSizeX * 2.0f, relativeSizeY * 2.0f), 2);
- }
- */
-
- ::util::ProceduralProperties proceduralProperties;
- ::util::applyStorm(*s3d, proceduralProperties);
-
- // some cursor configs
- bool no_mouse = false;
- bool no_keyboard = false;
- bool no_joystick = false;
- if (!SimpleOptions::getBool(DH_OPT_B_MOUSE_ENABLED))
- {
- no_mouse = true;
- }
- if (!SimpleOptions::getBool(DH_OPT_B_KEYBOARD_ENABLED))
- {
- no_keyboard = true;
- }
- if (!SimpleOptions::getBool(DH_OPT_B_JOYSTICK_ENABLED))
- {
- no_joystick = true;
- }
- bool force_given_boundary = false;
- if (SimpleOptions::getBool(DH_OPT_B_MOUSE_FORCE_GIVEN_BOUNDARY))
- {
- force_given_boundary = true;
- }
- float mouse_sensitivity = 1.0f;
- mouse_sensitivity = SimpleOptions::getFloat(DH_OPT_F_MOUSE_SENSITIVITY);
- if (mouse_sensitivity < 0.01f)
- mouse_sensitivity = 0.01f;
-
- // camera stuff
- bool disable_camera_timing = false;
- if (SimpleOptions::getBool(DH_OPT_B_CAMERA_DISABLE_TIMING))
- {
- disable_camera_timing = true;
- }
- bool no_delta_time_limit = false;
- if (SimpleOptions::getBool(DH_OPT_B_CAMERA_NO_DELTA_TIME_LIMIT))
- {
- no_delta_time_limit = true;
- }
- float camera_time_factor = 1.0f;
- if (SimpleOptions::getFloat(DH_OPT_F_CAMERA_TIME_FACTOR) > 0.0f)
- {
- camera_time_factor = SimpleOptions::getFloat(DH_OPT_F_CAMERA_TIME_FACTOR);
- }
- int camera_mode = 1;
- if(SimpleOptions::getInt(DH_OPT_I_CAMERA_MODE) > 0)
- camera_mode = SimpleOptions::getInt(DH_OPT_I_CAMERA_MODE);
- if (camera_mode < 1) camera_mode = 1;
- if (camera_mode > 4) camera_mode = 4;
-
- scr_width = SimpleOptions::getInt(DH_OPT_I_SCREEN_WIDTH);
- scr_height = SimpleOptions::getInt(DH_OPT_I_SCREEN_HEIGHT);
-
- bool vsync = SimpleOptions::getBool(DH_OPT_B_RENDER_USE_VSYNC);
- s3d->UseVSync(vsync);
- bool stormInitSucces = true;
-
- s3d->SetAntiAliasing(SimpleOptions::getInt(DH_OPT_I_ANTIALIAS_SAMPLES));
-
- // windowed mode?
- if (windowedMode)
- {
- // screen resolution
- if (compileOnly)
- {
- s3d->SetWindowedMode(32, 32);
- } else {
- if(!s3d->SetWindowedMode(scr_width, scr_height, SimpleOptions::getBool(DH_OPT_B_WINDOW_TITLEBAR)))
- stormInitSucces = false;
-#if defined _WIN32
- if(SimpleOptions::getBool(DH_OPT_B_MAXIMIZE_WINDOW))
- {
- ShowWindow(s3d->GetRenderWindow(), SW_MAXIMIZE);
- }
-#endif
- }
- } else {
- int bpp = SimpleOptions::getInt(DH_OPT_I_SCREEN_BPP);
-
- if(!s3d->SetFullScreenMode(scr_width, scr_height, bpp))
- stormInitSucces = false;
-
- Storm3D_SurfaceInfo surfinfo = s3d->GetCurrentDisplayMode();
- scr_width = surfinfo.width;
- scr_height = surfinfo.height;
- }
-
- if(!stormInitSucces)
- {
- std::string error = s3d->GetErrorString();
- delete s3d;
- s3d = 0;
-
-#ifdef _WIN32
- MSG msg = { 0 };
- while(PeekMessage(&msg, 0, 0, 0, PM_REMOVE))
- {
- TranslateMessage(&msg);
- DispatchMessage(&msg);
- }
-
- MessageBox(0, error.c_str(), "Renderer initialization failure.", MB_OK);
-#endif // _WIN32
- // TODO: should show error message to user on non-win32
-
- Logger::getInstance()->error("Failed to initialize renderer");
- Logger::getInstance()->error(error.c_str());
- return 0;
- }
-
- OptionApplier::applyGammaOptions(s3d);
- ::util::applyRenderer(*s3d, proceduralProperties);
-
- // keyb3 controller devices
- int ctrlinit = 0;
- if (!no_mouse) ctrlinit |= KEYB3_CAPS_MOUSE;
- if (!no_keyboard) ctrlinit |= KEYB3_CAPS_KEYBOARD;
- if (!no_joystick) ctrlinit |= (KEYB3_CAPS_JOYSTICK | KEYB3_CAPS_JOYSTICK2 | KEYB3_CAPS_JOYSTICK3 | KEYB3_CAPS_JOYSTICK4 );
- if (ctrlinit == 0)
- {
- Logger::getInstance()->warning("No control devices enabled, forcing mouse enable.");
- ctrlinit = KEYB3_CAPS_MOUSE;
- }
- Keyb3_Init(s3d->GetRenderWindow(), ctrlinit);
- Keyb3_SetActive(1);
-
- set_mouse_borders();
-
- Keyb3_UpdateDevices();
-
- if (SimpleOptions::getBool(DH_OPT_B_SHOW_TERRAIN_MEMORY_INFO))
- show_terrain_mem_info = true;
-
- int tex_detail_level = SimpleOptions::getInt(DH_OPT_I_TEXTURE_DETAIL_LEVEL);
- if (tex_detail_level < 0) tex_detail_level = 0;
- if (tex_detail_level > 100) tex_detail_level = 100;
- // convert level to 0 (high) - 1 (medium) - 2 (low)
- s3d->SetTextureLODLevel(2 - (tex_detail_level / 50));
-
- if (SimpleOptions::getBool(DH_OPT_B_HIGH_QUALITY_LIGHTMAP))
- s3d->EnableHighQualityTextures(true);
- else
- s3d->EnableHighQualityTextures(false);
-
- // make a scene
- COL bgCol = COL(0.0f, 0.0f, 0.0f);
- COL ambLight = COL(1.0f, 1.0f, 1.0f);
-
- disposable_scene = s3d->CreateNewScene();
- disposable_scene->SetBackgroundColor(bgCol);
- //scene->SetAmbientLight(ambLight);
-
- // show loadscreen...
- //std::string loadscr_str = Parser::GetString(main_config.GetProperties(), "load_screen");
- std::string loadscr_str = main_config.getGlobals().getValue("load_screen");
- char *load_fname = const_cast<char *> (loadscr_str.c_str());
- if(strlen(load_fname) > 3)
- {
- IStorm3D_Texture *t = s3d->CreateNewTexture(load_fname, TEXLOADFLAGS_NOCOMPRESS|TEXLOADFLAGS_NOLOD);
- IStorm3D_Material *m = s3d->CreateNewMaterial("Load screen");
- m->SetBaseTexture(t);
-
- Storm3D_SurfaceInfo surfinfo = s3d->GetScreenSize();
-
- disposable_scene->Render2D_Picture(m, Vector2D(0,0), Vector2D((float)surfinfo.width-1,(float)surfinfo.height-1));
- disposable_scene->RenderScene();
-
- delete m;
- }
-
-
- // camera visibility
- int visRange = SimpleOptions::getInt(DH_OPT_I_CAMERA_RANGE);
- disposable_scene->GetCamera()->SetVisibilityRange((float)visRange);
-
- if (SimpleOptions::getBool(DH_OPT_B_GAME_SIDEWAYS))
- {
- disposable_scene->GetCamera()->SetUpVec(VC3(0,0,1));
- } else {
- disposable_scene->GetCamera()->SetUpVec(VC3(0,1,0));
- }
-
- // create and initialize ogui
- Ogui *ogui = new Ogui();
- OguiStormDriver *ogdrv = new OguiStormDriver(s3d, disposable_scene);
- ogui->SetDriver(ogdrv);
- ogui->SetScale(OGUI_SCALE_MULTIPLIER * scr_width / 1024,
- OGUI_SCALE_MULTIPLIER * scr_height / 768);
- ogui->SetMouseSensitivity(mouse_sensitivity, mouse_sensitivity);
- ogui->Init();
-
- // set default font
-#ifdef LEGACY_FILES
- ogui->LoadDefaultFont("Data/Fonts/default.ogf");
-#else
- ogui->LoadDefaultFont("data/gui/font/common/default.ogf");
-#endif
-
- // set default ui (ogui and storm) for visual objects (pictures and models)
- ui::createUIDefaults(ogui);
- ui::Visual2D::setVisualOgui(ogui);
- ui::VisualObjectModel::setVisualStorm(s3d, disposable_scene);
-
- Animator::init(s3d);
-
- LoadingMessage::setManagers(s3d, disposable_scene, ogui);
-
- // error handling (forward logger messages to error window)
- ui::ErrorWindow *errorWin = new ui::ErrorWindow(ogui);
- (Logger::getInstance())->setListener(errorWin);
-
- // apply logger options
- OptionApplier::applyLoggerOptions();
-
- log_version();
-
- // font for fps and polycount
- /*
- IStorm3D_Font *fpsFont = NULL;
- if (show_fps || show_polys)
- {
- IStorm3D_Texture *texf = s3d->CreateNewTexture("Data/Fonts/fpsfont.dds", TEXLOADFLAGS_NOCOMPRESS|TEXLOADFLAGS_NOLOD);
- fpsFont = s3d->CreateNewFont();
- fpsFont->AddTexture(texf);
- fpsFont->SetTextureRowsAndColums(8, 8);
- fpsFont->SetColor(COL(1,1,1));
- BYTE chrsize[42];
- for (int i = 0; i < 41; i++) chrsize[i] = 64;
- chrsize[41] = '\0';
- fpsFont->SetCharacters("1234567890(),:ABCDEFGHIJKLMNOPQRSTUVWXYZ ", chrsize);
- }
- */
-
- // create cursors
- if (no_mouse && no_keyboard && no_joystick)
- {
- Logger::getInstance()->error("Mouse, keyboard and joystick disabled in config - forced keyboard.");
- }
- if (no_mouse)
- {
- if (!no_joystick)
- {
- ogui->SetCursorController(0, OGUI_CURSOR_CTRL_JOYSTICK1);
- } else {
- ogui->SetCursorController(0, OGUI_CURSOR_CTRL_KEYBOARD1);
- }
- } else {
- ogui->SetCursorController(0, OGUI_CURSOR_CTRL_MOUSE);
- }
-
- // cursors images for controller 0,1,2,3
- loadDHCursors(ogui, 0);
- loadDHCursors(ogui, 1);
- loadDHCursors(ogui, 2);
- loadDHCursors(ogui, 3);
-
- ogui->SetCursorImageState(0, DH_CURSOR_ARROW);
-
- // sounds
- SoundLib *soundLib = NULL;
- SoundMixer *soundMixer = NULL;
- if(SimpleOptions::getBool(DH_OPT_B_SOUNDS_ENABLED))
- {
- soundLib = new SoundLib();
-
- bool s_use_hardware = SimpleOptions::getBool(DH_OPT_B_SOUND_USE_HARDWARE);
- bool s_use_eax = SimpleOptions::getBool(DH_OPT_B_SOUND_USE_EAX);
- int s_mixrate = SimpleOptions::getInt(DH_OPT_I_SOUND_MIXRATE);
- int s_softchan = SimpleOptions::getInt(DH_OPT_I_SOUND_SOFTWARE_CHANNELS);
- int s_req_hardchan = SimpleOptions::getInt(DH_OPT_I_SOUND_REQUIRED_HARDWARE_CHANNELS);
- int s_max_hardchan = SimpleOptions::getInt(DH_OPT_I_SOUND_MAX_HARDWARE_CHANNELS);
-
- // TODO: speaker_type
-
- SoundLib::SpeakerType speakerType = SoundLib::StereoSpeakers;
- const char *speakerString = SimpleOptions::getString(DH_OPT_S_SOUND_SPEAKER_TYPE);
- if(speakerString)
- {
- if(strcmp(speakerString, "headphones") == 0)
- speakerType = SoundLib::HeadPhones;
- else if(strcmp(speakerString, "stereo") == 0)
- speakerType = SoundLib::StereoSpeakers;
- else if(strcmp(speakerString, "mono") == 0)
- speakerType = SoundLib::MonoSpeakers;
- else if(strcmp(speakerString, "quad") == 0)
- speakerType = SoundLib::QuadSpeakers;
- else if(strcmp(speakerString, "surround") == 0)
- speakerType = SoundLib::SurroundSpeakers;
- else if(strcmp(speakerString, "dolby") == 0)
- speakerType = SoundLib::DolbyDigital;
- }
-
- soundLib->setProperties(s_mixrate, s_softchan);
- //soundLib->setSpeakers(speakerType);
- soundLib->setAcceleration(s_use_hardware, s_use_eax, s_req_hardchan, s_max_hardchan);
-
- if(soundLib->initialize())
- {
- Logger::getInstance()->debug("Sound system initialized succesfully");
- soundMixer = new SoundMixer(soundLib);
- }
- else
- {
- Logger::getInstance()->warning("Failed to sound system - sounds disabled");
-
- delete soundLib;
- soundLib = 0;
- }
- }
-
- if (soundMixer != NULL)
- {
- bool fxMute = false;
- bool musicMute = false;
- bool speechMute = false;
- if (!SimpleOptions::getBool(DH_OPT_B_SPEECH_ENABLED))
- speechMute = true;
- if (!SimpleOptions::getBool(DH_OPT_B_MUSIC_ENABLED))
- musicMute = true;
- if (!SimpleOptions::getBool(DH_OPT_B_FX_ENABLED))
- fxMute = true;
- int masterVolume = SimpleOptions::getInt(DH_OPT_I_MASTER_VOLUME);
- int fxVolume = SimpleOptions::getInt(DH_OPT_I_FX_VOLUME);
- int musicVolume = SimpleOptions::getInt(DH_OPT_I_MUSIC_VOLUME);
- int speechVolume = SimpleOptions::getInt(DH_OPT_I_SPEECH_VOLUME);
-
- soundMixer->setVolume(masterVolume, fxVolume, speechVolume, musicVolume);
- soundMixer->setMute(fxMute, speechMute, musicMute);
- }
-
- // create part types (create base types and read data files)
- createPartTypes();
-
- // player weaponry init
- PlayerWeaponry::initWeaponry();
-
- // create game and game UI
- Game *game = new Game();
- GameUI *gameUI = new GameUI(ogui, game, s3d, disposable_scene, soundMixer);
- gameUI->setOguiStormDriver(ogdrv);
- game->setUI(gameUI);
- gameUI->setErrorWindow(errorWin);
-
- // add keyb3 callback
- GameController *gc = gameUI->getController(0);
- Keyb3_AddController(gc);
-
- msgproc_gameUI = gameUI;
-
- MusicPlaylist *musicPlaylist = gameUI->getMusicPlaylist(game->singlePlayerNumber);
-
- if (SimpleOptions::getBool(DH_OPT_B_MUSIC_SHUFFLE))
- {
- musicPlaylist->setSuffle(true);
- }
-
- // init unit actors for unit types
- createUnitActors(game);
- createUnitTypes();
-
- /*
- GameCamera::CAMERA_MODE cammod = GameCamera::CAMERA_MODE_ZOOM_CENTRIC;
- if (camera_mode == 2) cammod = GameCamera::CAMERA_MODE_CAMERA_CENTRIC;
- if (camera_mode == 3) cammod = GameCamera::CAMERA_MODE_TARGET_CENTRIC;
- if (camera_mode == 4) cammod = GameCamera::CAMERA_MODE_FLYING;
- gameUI->selectCamera(GAMEUI_CAMERA_TACTICAL);
- gameUI->getGameCamera()->setMode(cammod);
- gameUI->selectCamera(GAMEUI_CAMERA_NORMAL);
- gameUI->getGameCamera()->setMode(GameCamera::CAMERA_MODE_TARGET_CENTRIC);
- */
- gameUI->selectCamera(GAMEUI_CAMERA_NORMAL);
- gameUI->getGameCamera()->setMode(GameCamera::CAMERA_MODE_TARGET_CENTRIC);
-
- // set the initial camera time factor... may be changed by scripts
- // (however, should always be restored to original)
- gameUI->setCameraTimeFactor(camera_time_factor);
-
- // start a new single player game
- game->newGame(false);
-
- if (!compileOnly)
- {
- float masterVolume = SimpleOptions::getInt(DH_OPT_I_MASTER_VOLUME) / 100.f;
- float fxVolume = SimpleOptions::getInt(DH_OPT_I_FX_VOLUME) / 100.f;
- float volume = masterVolume * fxVolume;
- if(!soundMixer || !SimpleOptions::getBool(DH_OPT_B_FX_ENABLED))
- volume = 0;
-
- //ui::GameVideoPlayer::playVideo(disposable_scene, "Data\\Videos\\frozenbyte_logo.mpg", volume);
- //ui::GameVideoPlayer::playVideo(disposable_scene, "Data\\Videos\\frozenbyte_logo.wmv", volume);
- //ui::GameVideoPlayer::playVideo(disposable_scene, "Data\\Videos\\test.wmv", volume);
- //ui::GameVideoPlayer::playVideo(disposable_scene, "Data\\Videos\\introduction_final.wmv", volume);
- //ui::GameVideoPlayer::playVideo(disposable_scene, "Data\\Videos\\chicken.wmv", volume);
- //ui::GameVideoPlayer::playVideo(disposable_scene, "Data\\Videos\\ruby.avi", volume);
-
- IStorm3D_StreamBuilder *builder = 0;
- if(soundMixer)
- builder = soundMixer->getStreamBuilder();
-
- ui::GameVideoPlayer::playVideo(disposable_scene, "Data\\Videos\\logo.wmv", builder);
- ui::GameVideoPlayer::playVideo(disposable_scene, "Data\\Videos\\logo_pub.wmv", builder);
- }
-
- gameUI->startCommandWindow( 0 );
- // do the loop...
-
- Timer::update();
- DWORD startTime = Timer::getTime();
- DWORD curTime = startTime;
- DWORD movementTime = startTime;
- DWORD frameCountTime = startTime;
- DWORD gameCountTime = startTime;
- DWORD lastOguiUpdateTime = startTime;
- bool quitRequested = false;
-
- int frames = 0;
- int polys = 0;
- int fps = 0;
- int polysps = 0;
- int precount = 0;
-
-#ifdef SCRIPT_DEBUG
- ScriptDebugger::init();
-#endif
-
- Keyb3_UpdateDevices();
-
-
-
- while (!quitRequested)
- {
- ogui->UpdateCursorPositions();
-
- // quick hack, if in single player game, don't allow very big leaps.
- // if in multiplayer, naturally must allow them.
- if (!game->isMultiplayer())
- {
- // max 0.5 sec leap max.
- if (curTime > gameCountTime + 500)
- {
- int timediff = (curTime - 500 - gameCountTime);
- // round to game ticks
- timediff = (timediff / GAME_TICK_MSEC) * GAME_TICK_MSEC;
- gameCountTime += timediff;
- }
- }
-
- while (curTime > gameCountTime)
- {
- gameCountTime += GAME_TICK_MSEC;
- //gameCountTime += 17; // about 60Hz (actually about 59, gotta fix...)
- game->run();
-
- disposable_ticks_since_last_clear++;
-
-#ifdef SCRIPT_DEBUG
- ScriptDebugger::run(game->gameScripting);
-#endif
- }
-
- // read input
-
- Keyb3_UpdateDevices();
-
- // can't use curTime here, because game may have just
- // loaded a map, or something else alike -> curTime
- // would be badly behind... thus Timer::update and getTime.
- Timer::update();
-
- // psd: time hack
- int maxfps = SimpleOptions::getInt(DH_OPT_I_RENDER_MAX_FPS);
- if (maxfps > 0)
- {
- int maxfps_in_msec = 1000 / maxfps;
- while(int(Timer::getTime() - curTime) < maxfps_in_msec)
- {
-#ifdef _WIN32
- // FIXME: Sleep(0) does not do what you expect
- Sleep(0);
-#else // _WIN32
- usleep(0);
-#endif // _WIN32
-
- Timer::update();
- }
- }
-
- //while(Timer::getTime() - curTime < 33)
- // Timer::update();
-
- gameUI->runUI(Timer::getTime() - startTime);
-
- //int lastFrameTime = curTime;
-
- // current time
- Timer::update();
- curTime = Timer::getTime(); //- startTime;
-
- //disposable_frametime_msec = curTime - lastFrameTime;
- disposable_frames_since_last_clear++;
-
- // TODO: should be handled in the GameUI, using the gameController
- if (gameUI->isQuitRequested())
- {
- // need to end combat before quit, otherwise cannot delete gameUI,
- // because the game is still alive - thus projectiles may still
- // refer to visualeffects (which gameui would delete ;)
- if (game->inCombat)
- game->endCombat();
- quitRequested = true;
- // break; // why break here?
- }
-
-
- //int mouseDeltaX, mouseDeltaY;
- //Keyb3_ReadMouse(NULL, NULL, &mouseDeltaX, &mouseDeltaY);
-
-
- // movement every 20 ms (50 Hz)
- //while (curTime - movementTime > 20)
- //{
-
- if (curTime - movementTime > 0)
- {
- // VEEERY jerky...
- //doMovement(game->gameMap, curTime - movementTime);
- // attempt to fix that...
- float delta;
- if (disable_camera_timing)
- {
- delta = 20.0f;
- } else {
- delta = 100.0f;
- if (fps > 0) delta = 1000.0f/fps;
- if (!no_delta_time_limit)
- {
- if (delta < 1.0f) delta = 1.0f;
- if (delta > 100.0f) delta = 100.0f;
- }
- }
- camera_time_factor = gameUI->getCameraTimeFactor();
- delta = (delta * camera_time_factor);
- if (game->inCombat)
- {
- gameUI->getGameCamera()->doMovement(delta);
- }
-
- movementTime = curTime;
- }
- //}
-
- // frame/poly counting
- frames++;
- {
- if (curTime - frameCountTime >= 100)
- {
- float seconds = (curTime - frameCountTime) / 1000.0f;
- fps = (int)(frames / seconds);
- polysps = (int)(polys / seconds);
- frameCountTime = curTime;
- frames = 0;
- polys = 0;
- }
- }
-
- // added by Pete
- gameUI->updateCameraDependedElements();
-
- // error window to top
- if (errorWin->isVisible())
- {
- errorWin->raise();
- }
-
- // run the gui
- int oguiTimeDelta = curTime - lastOguiUpdateTime;
- // max 200ms warps
- // NOTE: this may cause inconsistency between game and ogui timing
- // (fadeout, etc. effects may not match)
- if (oguiTimeDelta > 200)
- oguiTimeDelta = 200;
-
- ogui->Run(oguiTimeDelta);
-
- lastOguiUpdateTime = curTime;
-
- // render stats
-
- if (SimpleOptions::getBool(DH_OPT_B_SHOW_FPS))
- show_fps = true;
- else
- show_fps = false;
- if (SimpleOptions::getBool(DH_OPT_B_SHOW_POLYS))
- show_polys = true;
- else
- show_polys = false;
-
- /*
- if (show_polys || show_fps)
- {
- char infobuf[150];
- int polyspf = 0;
- if (fps > 0) polyspf = polysps / fps;
- if (show_polys)
- {
- if (show_fps)
- sprintf(infobuf, "FPS:%d POLYS PER SEC:%d POLYS PER FRAME:%d", fps, polysps, polyspf);
- else
- sprintf(infobuf, "POLYS PER SEC:%d POLYS PER FRAME:%d", polysps, polyspf);
- } else {
- sprintf(infobuf, "FPS:%d", fps);
- }
- gameUI->gameMessage(infobuf, NULL, 1, 1000, GameUI::MESSAGE_TYPE_NORMAL);
- }
- */
-
- if (show_polys || show_fps)
- {
- // WARNING: unsafe cast!
- if (ui::defaultIngameFont != NULL)
- {
- IStorm3D_Font *fpsFont = ((OguiStormFont *)ui::defaultIngameFont)->fnt;
-
- float polyoffset = 0;
- float terroffset = 0;
- char polytextbuf[40];
- char polyframetextbuf[40];
- char fpstextbuf[40];
- if (show_fps)
- {
- polyoffset = 16;
- terroffset = 16;
- sprintf(fpstextbuf, "FPS:%d", fps);
- disposable_scene->Render2D_Text(fpsFont, VC2(0,0), VC2(16, 16), fpstextbuf);
- }
- if (show_polys)
- {
- terroffset += 32;
- sprintf(polytextbuf, "POLYS PER S:%d", polysps);
- int polyspf = 0;
- if (fps > 0) polyspf = polysps / fps;
- sprintf(polyframetextbuf, "POLYS PER F:%d", polyspf);
- disposable_scene->Render2D_Text(fpsFont, VC2(0,polyoffset), VC2(16, 16), polytextbuf);
- disposable_scene->Render2D_Text(fpsFont, VC2(0,polyoffset+16), VC2(16, 16), polyframetextbuf);
- }
- /*
- if (show_terrain_mem_info)
- {
- char terrtextbuf[80];
- if (game->gameUI->getTerrain() != NULL)
- {
- int t1 = 0; //game->gameUI->getTerrain()->GetTerrain()->getVisibleBlockCount();
- //if (game->gameUI->getTerrain()->GetTerrain()->getPrecachedBlockCount() > 0)
- // precount++;
- //else
- precount=0;
- int t3 = 0; //game->gameUI->getTerrain()->GetTerrain()->getTotalGeneratedBlockCount();
- sprintf(terrtextbuf, "TERRAIN:VIS %d, PRE %d, TOT %d", t1, precount, t3);
- disposable_scene->Render2D_Text(fpsFont, VC2(0,terroffset), VC2(16, 16), terrtextbuf);
- }
- }
- */
- }
- }
-
- // WARNING: assmuing that no thread is accessing storm3d's data structures at this moment
- // (should be true, as physics thread should not do that in any other way, that by calling
- // the logger, which itself is thread safe)
- Logger::getInstance()->syncListener();
-
- // Render scene
- polys += renderfunc(disposable_scene);
-
- SelectionBox *sbox = gameUI->getSelectionBox();
- if (sbox != NULL)
- sbox->render();
-
- // psd hack, get terrain colors!
- //if(Keyb3_IsKeyPressed(KEYCODE_F12))
- // game->gameUI->getTerrain()->GetTerrain()->SaveColorMap("terraincolors.raw");
-
- // jpk hack, get memory leaks! ;)
-#ifdef _DEBUG
- /*
- if(Keyb3_IsKeyPressed(KEYCODE_F12))
- {
- //fopen("foobar.txt", "rb");
- //fopen("foobar.txt", "wb");
- frozenbyte::debug::dumpLeakSnapshot();
- frozenbyte::debug::markLeakSnapshot();
- }
- */
-#endif
-
- DebugDataView::getInstance(game)->run();
-
- if (next_interface_generation_request)
- {
- DebugDataView::getInstance(game)->cleanup();
-
- // if quit requested, no point in creating a next generation...
- if (!quitRequested)
- {
- next_interface_generation_request = false;
- interface_generation_counter++;
- if (interface_generation_counter >= SimpleOptions::getInt(DH_OPT_I_CLEANUP_SKIP_RATE))
- {
- interface_generation_counter = 0;
- Logger::getInstance()->debug("About to create next interface generation.");
- gameUI->nextInterfaceGeneration();
- } else {
- Logger::getInstance()->debug("Skipping next interface generation due to cleanup skip rate.");
- }
- if (gameUI->getEffects() != NULL)
- {
- gameUI->getEffects()->startFadeIn(500);
- }
- }
- }
-
- if (!next_interface_generation_request)
- {
- game->advanceMissionStartState();
- }
-
- if (apply_options_request)
- {
- Logger::getInstance()->debug("About to apply game options...");
- apply_options_request = false;
- game::GameOptionManager *oman = game::GameOptionManager::getInstance();
- game::OptionApplier::applyOptions(game, oman, ogui);
- Logger::getInstance()->debug("Game options applied.");
- }
-
- if (compileOnly)
- {
- quitRequested = true;
-// exit(0);
- }
-
-#ifdef _WIN32
- // wait here if minimized...
- while (quitRequested == false)
- {
- // psd -- handle windows messages
- MSG msg = { 0 };
- while(PeekMessage(&msg, s3d->GetRenderWindow(), 0, 0, PM_NOREMOVE))
- {
- if(GetMessage(&msg, s3d->GetRenderWindow(), 0, 0) <= 0)
- {
- gameUI->setQuitRequested();
- //quitRequested = true;
- }
- else
- {
- TranslateMessage(&msg);
- DispatchMessage(&msg);
- }
- }
- if (lostFocusPause)
- {
- Sleep(500);
- } else {
- break;
- }
- }
-#endif // _WIN32
- }
-
-// TEMP: end splash screen.
-/*
-OguiWindow *win = ogui->CreateSimpleWindow(0,0,1024,768,"Data/Pictures/Cinematic/germany_demo_splash.tga");
-
-win->Raise();
-
-// HACK!
-ogui->SetCursorImageState(0, DH_CURSOR_INVISIBLE);
-ogui->Run(1);
-disposable_scene->RenderScene();
-
-bool quitSplashRequested = false;
-
-Timer::update();
-int splashStartTime = Timer::getTime();
-while (Timer::getTime() - splashStartTime < 30000)
-{
- Timer::update();
- Sleep(20);
-
- Keyb3_UpdateDevices();
- if (Keyb3_IsKeyPressed(KEYCODE_ESC)
- || (Keyb3_IsKeyPressed(KEYCODE_MOUSE_BUTTON1) && Timer::getTime() - splashStartTime > 1000)
- || Keyb3_IsKeyPressed(KEYCODE_SPACE)
- || Keyb3_IsKeyPressed(KEYCODE_ENTER))
- {
- quitSplashRequested = true;
- }
-
- if (Timer::getTime() - splashStartTime > 10000
- && quitSplashRequested)
- {
- break;
- }
-
-}
-
-delete win;
-*/
-
- // clean up
-
- bool errorWhine = SimpleOptions::getBool(DH_OPT_B_CREATE_ERROR_LOG);
-
- msgproc_gameUI = NULL;
-
- Logger::getInstance()->debug("Starting exit cleanup...");
-
- (Logger::getInstance())->setListener(NULL);
-
- DebugDataView::cleanInstance();
-
- Animator::uninit();
-
- unloadDHCursors(ogui, 0);
-
- delete gameUI;
- game->gameUI = 0;
- delete game;
-
- ::util::ScriptManager::cleanInstance();
-
- GameRandom::uninit();
-
- deleteUIDefaults();
-
- deleteUnitTypes();
- deleteUnitActors();
-
- PlayerWeaponry::uninitWeaponry();
-
- deletePartTypes();
-
- if (soundMixer != NULL)
- delete soundMixer;
- if (soundLib != NULL)
- delete soundLib;
-
- delete errorWin;
-
- ogui->Uninit();
- delete ogui;
- delete ogdrv;
-
- Keyb3_Free();
-
-#ifndef _WIN32
- Sound_Quit();
-#endif
-
- delete s3d;
-
- GameOptionManager::cleanInstance();
- GameConfigs::cleanInstance();
-
- SystemRandom::cleanInstance();
-
- uninitLinkedListNodePool();
-
- Timer::uninit();
-
- Logger::getInstance()->debug("Cleanup done, exiting.");
-
- Logger::cleanInstance();
-
- //assert(ui::visual_object_allocations == 0);
- //assert(ui::visual_object_model_allocations == 0);
-
- if (errorWhine)
- {
- error_whine();
- }
-
-
-#ifndef _WIN32
- } catch (const std::exception &e) {
- fprintf(stderr, "Caught std::exception %s.\n", e.what());
- } catch (...) {
- fprintf(stderr, "Caught unknown exception.\n");
- }
-#endif // _WIN32
-
- return 0;
-}
View
BIN Linux-MacOSX/claw/claw_proto/claw_proto.icns
Binary file not shown.
View
126 Linux-MacOSX/claw/claw_proto/claw_proto.sln
@@ -1,126 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 9.00
-# Visual C++ Express 2005
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "particle_editor", "..\particle_editor2\particle_editor.vcproj", "{8E67D288-FEA9-4C6D-B095-0C6F3725404C}"
- ProjectSection(ProjectDependencies) = postProject
- {E51E797B-E20E-476C-8206-7AA9CF270541} = {E51E797B-E20E-476C-8206-7AA9CF270541}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "scriptdev", "..\util\executables\scriptdev\scriptdev.vcproj", "{4C263DF5-39CC-4F01-9CC5-23F264196838}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "storm3dv2", "..\storm\storm3dv2\storm3dv2.vcproj", "{E51E797B-E20E-476C-8206-7AA9CF270541}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "claw_proto", "claw_proto.vcproj", "{5C78ED70-84DB-4568-AD42-A5142199F9F5}"
- ProjectSection(ProjectDependencies) = postProject
- {E51E797B-E20E-476C-8206-7AA9CF270541} = {E51E797B-E20E-476C-8206-7AA9CF270541}
- {26E40BBD-9460-46B8-B105-868C8D85C376} = {26E40BBD-9460-46B8-B105-868C8D85C376}
- {4C263DF5-39CC-4F01-9CC5-23F264196838} = {4C263DF5-39CC-4F01-9CC5-23F264196838}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "viewer", "..\editor\workspace\viewer\viewer.vcproj", "{1AF46AE6-AF6B-4F7B-BA1F-2D473A345F57}"
- ProjectSection(ProjectDependencies) = postProject
- {E51E797B-E20E-476C-8206-7AA9CF270541} = {E51E797B-E20E-476C-8206-7AA9CF270541}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "editor", "..\editor\workspace\claw_proto_editor.vcproj", "{E516F2AD-1AD2-4F07-B65C-178180CC05BE}"
- ProjectSection(ProjectDependencies) = postProject
- {E51E797B-E20E-476C-8206-7AA9CF270541} = {E51E797B-E20E-476C-8206-7AA9CF270541}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "storm3dv2-gl", "..\storm\stormgl\stormgl.vcproj", "{26E40BBD-9460-46B8-B105-868C8D85C376}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- claw_proto D3D Debug|Win32 = claw_proto D3D Debug|Win32
- claw_proto D3D Release|Win32 = claw_proto D3D Release|Win32
- claw_proto OpenGL Debug|Win32 = claw_proto OpenGL Debug|Win32
- claw_proto OpenGL Release|Win32 = claw_proto OpenGL Release|Win32
- Legacy debug|Win32 = Legacy debug|Win32
- Legacy release|Win32 = Legacy release|Win32
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {8E67D288-FEA9-4C6D-B095-0C6F3725404C}.claw_proto D3D Debug|Win32.ActiveCfg = Debug|Win32
- {8E67D288-FEA9-4C6D-B095-0C6F3725404C}.claw_proto D3D Debug|Win32.Build.0 = Debug|Win32
- {8E67D288-FEA9-4C6D-B095-0C6F3725404C}.claw_proto D3D Release|Win32.ActiveCfg = Release|Win32
- {8E67D288-FEA9-4C6D-B095-0C6F3725404C}.claw_proto D3D Release|Win32.Build.0 = Release|Win32
- {8E67D288-FEA9-4C6D-B095-0C6F3725404C}.claw_proto OpenGL Debug|Win32.ActiveCfg = Debug|Win32
- {8E67D288-FEA9-4C6D-B095-0C6F3725404C}.claw_proto OpenGL Debug|Win32.Build.0 = Debug|Win32
- {8E67D288-FEA9-4C6D-B095-0C6F3725404C}.claw_proto OpenGL Release|Win32.ActiveCfg = Release|Win32
- {8E67D288-FEA9-4C6D-B095-0C6F3725404C}.claw_proto OpenGL Release|Win32.Build.0 = Release|Win32
- {8E67D288-FEA9-4C6D-B095-0C6F3725404C}.Legacy debug|Win32.ActiveCfg = shadowground no physics|Win32
- {8E67D288-FEA9-4C6D-B095-0C6F3725404C}.Legacy debug|Win32.Build.0 = shadowground no physics|Win32
- {8E67D288-FEA9-4C6D-B095-0C6F3725404C}.Legacy release|Win32.ActiveCfg = shadowground no physics|Win32
- {8E67D288-FEA9-4C6D-B095-0C6F3725404C}.Legacy release|Win32.Build.0 = shadowground no physics|Win32
- {4C263DF5-39CC-4F01-9CC5-23F264196838}.claw_proto D3D Debug|Win32.ActiveCfg = Debug|Win32
- {4C263DF5-39CC-4F01-9CC5-23F264196838}.claw_proto D3D Debug|Win32.Build.0 = Debug|Win32
- {4C263DF5-39CC-4F01-9CC5-23F264196838}.claw_proto D3D Release|Win32.ActiveCfg = Release|Win32
- {4C263DF5-39CC-4F01-9CC5-23F264196838}.claw_proto D3D Release|Win32.Build.0 = Release|Win32
- {4C263DF5-39CC-4F01-9CC5-23F264196838}.claw_proto OpenGL Debug|Win32.ActiveCfg = Debug|Win32
- {4C263DF5-39CC-4F01-9CC5-23F264196838}.claw_proto OpenGL Debug|Win32.Build.0 = Debug|Win32
- {4C263DF5-39CC-4F01-9CC5-23F264196838}.claw_proto OpenGL Release|Win32.ActiveCfg = Release|Win32
- {4C263DF5-39CC-4F01-9CC5-23F264196838}.claw_proto OpenGL Release|Win32.Build.0 = Release|Win32
- {4C263DF5-39CC-4F01-9CC5-23F264196838}.Legacy debug|Win32.ActiveCfg = shadowground no physics|Win32
- {4C263DF5-39CC-4F01-9CC5-23F264196838}.Legacy debug|Win32.Build.0 = shadowground no physics|Win32
- {4C263DF5-39CC-4F01-9CC5-23F264196838}.Legacy release|Win32.ActiveCfg = shadowground no physics|Win32
- {4C263DF5-39CC-4F01-9CC5-23F264196838}.Legacy release|Win32.Build.0 = shadowground no physics|Win32
- {E51E797B-E20E-476C-8206-7AA9CF270541}.claw_proto D3D Debug|Win32.ActiveCfg = Legacy debug|Win32
- {E51E797B-E20E-476C-8206-7AA9CF270541}.claw_proto D3D Debug|Win32.Build.0 = Legacy debug|Win32
- {E51E797B-E20E-476C-8206-7AA9CF270541}.claw_proto D3D Release|Win32.ActiveCfg = Legacy release|Win32
- {E51E797B-E20E-476C-8206-7AA9CF270541}.claw_proto D3D Release|Win32.Build.0 = Legacy release|Win32
- {E51E797B-E20E-476C-8206-7AA9CF270541}.claw_proto OpenGL Debug|Win32.ActiveCfg = Legacy debug|Win32
- {E51E797B-E20E-476C-8206-7AA9CF270541}.claw_proto OpenGL Release|Win32.ActiveCfg = Legacy release|Win32
- {E51E797B-E20E-476C-8206-7AA9CF270541}.Legacy debug|Win32.ActiveCfg = Legacy debug|Win32
- {E51E797B-E20E-476C-8206-7AA9CF270541}.Legacy debug|Win32.Build.0 = Legacy debug|Win32
- {E51E797B-E20E-476C-8206-7AA9CF270541}.Legacy release|Win32.ActiveCfg = Legacy release|Win32
- {E51E797B-E20E-476C-8206-7AA9CF270541}.Legacy release|Win32.Build.0 = Legacy release|Win32
- {5C78ED70-84DB-4568-AD42-A5142199F9F5}.claw_proto D3D Debug|Win32.ActiveCfg = Debug|Win32
- {5C78ED70-84DB-4568-AD42-A5142199F9F5}.claw_proto D3D Debug|Win32.Build.0 = Debug|Win32
- {5C78ED70-84DB-4568-AD42-A5142199F9F5}.claw_proto D3D Release|Win32.ActiveCfg = Release|Win32
- {5C78ED70-84DB-4568-AD42-A5142199F9F5}.claw_proto D3D Release|Win32.Build.0 = Release|Win32
- {5C78ED70-84DB-4568-AD42-A5142199F9F5}.claw_proto OpenGL Debug|Win32.ActiveCfg = Debug OpenGL|Win32
- {5C78ED70-84DB-4568-AD42-A5142199F9F5}.claw_proto OpenGL Debug|Win32.Build.0 = Debug OpenGL|Win32
- {5C78ED70-84DB-4568-AD42-A5142199F9F5}.claw_proto OpenGL Release|Win32.ActiveCfg = Release OpenGL|Win32
- {5C78ED70-84DB-4568-AD42-A5142199F9F5}.claw_proto OpenGL Release|Win32.Build.0 = Release OpenGL|Win32
- {5C78ED70-84DB-4568-AD42-A5142199F9F5}.Legacy debug|Win32.ActiveCfg = Release|Win32
- {5C78ED70-84DB-4568-AD42-A5142199F9F5}.Legacy debug|Win32.Build.0 = Release|Win32
- {5C78ED70-84DB-4568-AD42-A5142199F9F5}.Legacy release|Win32.ActiveCfg = Release|Win32
- {5C78ED70-84DB-4568-AD42-A5142199F9F5}.Legacy release|Win32.Build.0 = Release|Win32
- {1AF46AE6-AF6B-4F7B-BA1F-2D473A345F57}.claw_proto D3D Debug|Win32.ActiveCfg = Debug|Win32
- {1AF46AE6-AF6B-4F7B-BA1F-2D473A345F57}.claw_proto D3D Debug|Win32.Build.0 = Debug|Win32
- {1AF46AE6-AF6B-4F7B-BA1F-2D473A345F57}.claw_proto D3D Release|Win32.ActiveCfg = Release|Win32
- {1AF46AE6-AF6B-4F7B-BA1F-2D473A345F57}.claw_proto D3D Release|Win32.Build.0 = Release|Win32
- {1AF46AE6-AF6B-4F7B-BA1F-2D473A345F57}.claw_proto OpenGL Debug|Win32.ActiveCfg = Debug|Win32
- {1AF46AE6-AF6B-4F7B-BA1F-2D473A345F57}.claw_proto OpenGL Debug|Win32.Build.0 = Debug|Win32
- {1AF46AE6-AF6B-4F7B-BA1F-2D473A345F57}.claw_proto OpenGL Release|Win32.ActiveCfg = Release|Win32
- {1AF46AE6-AF6B-4F7B-BA1F-2D473A345F57}.claw_proto OpenGL Release|Win32.Build.0 = Release|Win32
- {1AF46AE6-AF6B-4F7B-BA1F-2D473A345F57}.Legacy debug|Win32.ActiveCfg = shadowground no physics|Win32
- {1AF46AE6-AF6B-4F7B-BA1F-2D473A345F57}.Legacy debug|Win32.Build.0 = shadowground no physics|Win32
- {1AF46AE6-AF6B-4F7B-BA1F-2D473A345F57}.Legacy release|Win32.ActiveCfg = shadowground no physics|Win32
- {1AF46AE6-AF6B-4F7B-BA1F-2D473A345F57}.Legacy release|Win32.Build.0 = shadowground no physics|Win32
- {E516F2AD-1AD2-4F07-B65C-178180CC05BE}.claw_proto D3D Debug|Win32.ActiveCfg = Debug|Win32
- {E516F2AD-1AD2-4F07-B65C-178180CC05BE}.claw_proto D3D Debug|Win32.Build.0 = Debug|Win32
- {E516F2AD-1AD2-4F07-B65C-178180CC05BE}.claw_proto D3D Release|Win32.ActiveCfg = Release|Win32
- {E516F2AD-1AD2-4F07-B65C-178180CC05BE}.claw_proto D3D Release|Win32.Build.0 = Release|Win32
- {E516F2AD-1AD2-4F07-B65C-178180CC05BE}.claw_proto OpenGL Debug|Win32.ActiveCfg = Debug|Win32
- {E516F2AD-1AD2-4F07-B65C-178180CC05BE}.claw_proto OpenGL Debug|Win32.Build.0 = Debug|Win32
- {E516F2AD-1AD2-4F07-B65C-178180CC05BE}.claw_proto OpenGL Release|Win32.ActiveCfg = Release|Win32
- {E516F2AD-1AD2-4F07-B65C-178180CC05BE}.claw_proto OpenGL Release|Win32.Build.0 = Release|Win32
- {E516F2AD-1AD2-4F07-B65C-178180CC05BE}.Legacy debug|Win32.ActiveCfg = shadowground no physics|Win32
- {E516F2AD-1AD2-4F07-B65C-178180CC05BE}.Legacy debug|Win32.Build.0 = shadowground no physics|Win32
- {E516F2AD-1AD2-4F07-B65C-178180CC05BE}.Legacy release|Win32.ActiveCfg = shadowground no physics|Win32
- {E516F2AD-1AD2-4F07-B65C-178180CC05BE}.Legacy release|Win32.Build.0 = shadowground no physics|Win32
- {26E40BBD-9460-46B8-B105-868C8D85C376}.claw_proto D3D Debug|Win32.ActiveCfg = Legacy debug|Win32
- {26E40BBD-9460-46B8-B105-868C8D85C376}.claw_proto D3D Release|Win32.ActiveCfg = Legacy release|Win32
- {26E40BBD-9460-46B8-B105-868C8D85C376}.claw_proto OpenGL Debug|Win32.ActiveCfg = Legacy debug|Win32
- {26E40BBD-9460-46B8-B105-868C8D85C376}.claw_proto OpenGL Debug|Win32.Build.0 = Legacy debug|Win32
- {26E40BBD-9460-46B8-B105-868C8D85C376}.claw_proto OpenGL Release|Win32.ActiveCfg = Legacy release|Win32
- {26E40BBD-9460-46B8-B105-868C8D85C376}.claw_proto OpenGL Release|Win32.Build.0 = Legacy release|Win32
- {26E40BBD-9460-46B8-B105-868C8D85C376}.Legacy debug|Win32.ActiveCfg = Legacy debug|Win32
- {26E40BBD-9460-46B8-B105-868C8D85C376}.Legacy debug|Win32.Build.0 = Legacy debug|Win32
- {26E40BBD-9460-46B8-B105-868C8D85C376}.Legacy release|Win32.ActiveCfg = Legacy release|Win32
- {26E40BBD-9460-46B8-B105-868C8D85C376}.Legacy release|Win32.Build.0 = Legacy release|Win32
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
View
23,683 Linux-MacOSX/claw/claw_proto/claw_proto.vcproj
0 additions, 23,683 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
30 Linux-MacOSX/claw/claw_proto/claw_proto/claw-Info.plist
@@ -1,30 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>CFBundleDevelopmentRegion</key>
- <string>English</string>
- <key>CFBundleExecutable</key>
- <string>${EXECUTABLE_NAME}</string>
- <key>CFBundleIconFile</key>
- <string>claw_proto.icns</string>
- <key>CFBundleIdentifier</key>
- <string>com.Frozenbyte.Claw</string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>6.0</string>
- <key>CFBundlePackageType</key>
- <string>APPL</string>
- <key>CFBundleShortVersionString</key>
- <string>1.0</string>
- <key>CFBundleSignature</key>
- <string>????</string>
- <key>CFBundleVersion</key>
- <string>1</string>
- <key>LSMinimumSystemVersion</key>
- <string>${MACOSX_DEPLOYMENT_TARGET}</string>
- <key>NSMainNibFile</key>
- <string>MainMenu</string>
- <key>NSPrincipalClass</key>
- <string>NSApplication</string>
-</dict>
-</plist>
View
4,755 Linux-MacOSX/claw/claw_proto/claw_proto/claw_proto.xcodeproj/project.pbxproj
0 additions, 4,755 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
30 Linux-MacOSX/claw/claw_proto/claw_proto/launcher-Info.plist
@@ -1,30 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>CFBundleDevelopmentRegion</key>
- <string>English</string>
- <key>CFBundleExecutable</key>
- <string>${EXECUTABLE_NAME}</string>
- <key>CFBundleIconFile</key>
- <string>claw_proto.icns</string>
- <key>CFBundleIdentifier</key>
- <string>com.Frozenbyte.Claw</string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>6.0</string>
- <key>CFBundlePackageType</key>
- <string>APPL</string>
- <key>CFBundleShortVersionString</key>
- <string>1.0</string>
- <key>CFBundleSignature</key>
- <string>????</string>
- <key>CFBundleVersion</key>
- <string>1</string>
- <key>LSMinimumSystemVersion</key>
- <string>${MACOSX_DEPLOYMENT_TARGET}</string>
- <key>NSMainNibFile</key>
- <string>launcher</string>
- <key>NSPrincipalClass</key>
- <string>NSApplication</string>
-</dict>
-</plist>
View
67 Linux-MacOSX/claw/claw_proto/configuration.h
@@ -1,67 +0,0 @@
-
-#ifndef CONFIGURATION_H
-#define CONFIGURATION_H
-
-#pragma warning ( disable: 4786 )
-#pragma warning ( disable: 4103 )
-
-// the new file to include,
-// (in order to prevent getting too much command line defines)
-
-// keep linkedlist nodes in pool, less dynamic memory allocations
-#define LINKEDLIST_USE_NODE_POOL 1
-
-// the new non-rts, pure action game - "crimson mode"
-#define CRIMSON_MODE 1
-
-// show rebuilding binaries loading message for buildingmaps
-//#define BUILDINGMAP_SHOW_LOADINGMESSAGE 1
-
-// make buildingmap use game's options (force/auto recreate, etc.)
-#define BUILDINGMAP_USE_OPTIONS 1
-
-// allow script preprocessing - should be disabled for final release!!!
-#define SCRIPT_PREPROCESS 1
-
-#ifdef _DEBUG
-
- // enable memorymanager
- // #define FROZENBYTE_DEBUG_MEMORY 1
-
- // make memorymanager print extra data (string allocations' contents)
- // #define FROZENBYTE_DEBUG_MEMORY_PRINT_DATA 1
-
- // old external script debug console (?)
- //#define SCRIPT_DEBUG 1
-
- // dump gamescene statistics to log (raytraces, pathfinds, etc.)
- #define DUMP_GAMESCENE_STATS 1
-
-#endif
-
-// make debug view map of pathfinding
-// WARNING: greatly affects pathfind efficiency, under no
-// cicumstances leave this in the final product!!!
-//#define PATHFIND_DEBUG 1
-
-// use unicode version of sg
-//#define SHADOWGROUNDS_UNICODE 1
-
-#define PROJECT_CLAW_PROTO 1
-
-// physics selection
-//#define PHYSICS_NONE
-//#define PHYSICS_ODE
-//#define PHYSICS_ODE_BOTTOM_TRANSFORM
-#define PHYSICS_PHYSX
-#define PHYSICS_FEEDBACK
-
-// use sg directory/files structure instead of the new one
-#define LEGACY_FILES 1
-
-#define VERBOSE_BUILD 1
-
-#include "../project_common/configuration_auto.h"
-
-#endif
-
View
111 Linux-MacOSX/claw/claw_proto/dh_icon.rc
@@ -1,111 +0,0 @@
-// Microsoft Visual C++ generated resource script.
-//
-#include "resource.h"
-
-#define APSTUDIO_READONLY_SYMBOLS
-/////////////////////////////////////////////////////////////////////////////
-//
-// Generated from the TEXTINCLUDE 2 resource.
-//
-#include "afxres.h"
-
-/////////////////////////////////////////////////////////////////////////////
-#undef APSTUDIO_READONLY_SYMBOLS
-
-/////////////////////////////////////////////////////////////////////////////
-// Finnish resources
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_FIN)
-#ifdef _WIN32
-//LANGUAGE LANG_FINNISH, SUBLANG_DEFAULT
-#pragma code_page(1252)
-#endif //_WIN32
-
-#ifdef APSTUDIO_INVOKED
-/////////////////////////////////////////////////////////////////////////////
-//
-// TEXTINCLUDE
-//
-
-1 TEXTINCLUDE
-BEGIN
- "resource.h\0"
-END
-
-2 TEXTINCLUDE
-BEGIN
- "#include ""afxres.h""\r\n"
- "\0"
-END
-
-3 TEXTINCLUDE
-BEGIN
- "\r\n"
- "\0"
-END
-
-#endif // APSTUDIO_INVOKED
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Icon
-//
-
-// Icon with lowest ID value placed first to ensure application icon
-// remains consistent on all systems.
-IDI_ICON3 ICON "icon3.ico"
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Version
-//
-
-VS_VERSION_INFO VERSIONINFO
- FILEVERSION 1,0,0,1
- PRODUCTVERSION 1,0,0,1
- FILEFLAGSMASK 0x3fL
-#ifdef _DEBUG
- FILEFLAGS 0x1L
-#else
- FILEFLAGS 0x0L
-#endif
- FILEOS 0x40004L
- FILETYPE 0x1L
- FILESUBTYPE 0x0L
-BEGIN
- BLOCK "StringFileInfo"
- BEGIN
- BLOCK "040b04b0"
- BEGIN
- VALUE "CompanyName", "Frozenbyte"
- VALUE "FileDescription", "ClawProto"
- VALUE "FileVersion", "1, 0, 0, 1"
- VALUE "InternalName", "ClawProto"
- VALUE "LegalCopyright", "Copyright � 2006"
- VALUE "OriginalFilename", "shadowgrounds.exe"
- VALUE "ProductName", "Frozenbyte ClawProto"
- VALUE "ProductVersion", "1, 0, 0, 1"
- END
- END
- BLOCK "VarFileInfo"
- BEGIN
- VALUE "Translation", 0x40b, 1200
- END
-END
-
-#endif // Finnish resources
-/////////////////////////////////////////////////////////////////////////////
-
-
-
-#ifndef APSTUDIO_INVOKED
-/////////////////////////////////////////////////////////////////////////////
-//
-// Generated from the TEXTINCLUDE 3 resource.
-//
-
-
-/////////////////////////////////////////////////////////////////////////////
-#endif // not APSTUDIO_INVOKED
-
View
19 Linux-MacOSX/claw/claw_proto/gui_configuration.h
@@ -1,19 +0,0 @@
-
-#ifndef GUI_CONFIGURATION_H
-#define GUI_CONFIGURATION_H
-
-#define GUI_BUILD_UPGRADE_WINDOW 1
-#define GUI_BUILD_MAP_WINDOW 1
-#define GUI_BUILD_LOG_WINDOW 1
-#define GUI_BUILD_STORAGE_WINDOW 1
-//#define GUI_BUILD_INGAME_GUI 1
-#define GUI_BUILD_WEAPON_SELECTION_WINDOW 1
-
-#ifdef PROJECT_CLAW_PROTO
-// At least claw doesn't compile without this define after jukka's change.. survivor probably doesn't either,
-// but I leave this ifdeffed so that I won't break anything for sure -harri
-# define GUI_BUILD_INGAME_GUI_TABS
-#endif
-
-#endif
-
View
BIN Linux-MacOSX/claw/claw_proto/icon3.ico
Binary file not shown.
View
BIN Linux-MacOSX/claw/claw_proto/icon3.png
Deleted file not rendered
View
33 Linux-MacOSX/claw/claw_proto/module.mk
@@ -1,33 +0,0 @@
-sp := $(sp).x
-dirstack_$(sp) := $(d)
-d := $(dir)