Showing with 7,749 additions and 6,091 deletions.
  1. +3 −3 .gitattributes
  2. +19 −0 3rdparty/SDL/mac/SDLMain.m
  3. +957 −12 ChangeLog
  4. +9 −6 build_tools/autorevision.bat
  5. +2 −2 build_tools/autorevision.sh
  6. +4 −3 configure.ac
  7. +37 −0 data/base/script/rules.js
  8. +3 −0 data/base/wrf/basic.wrf
  9. +1 −2 data/mp/multiplay/script/scavfact.js
  10. +3 −1 data/mp/multiplay/skirmish/semperfi.js
  11. +14 −2 doc/javascript.tex
  12. +4 −1 lib/exceptionhandler/exchndl.cpp
  13. +11 −0 lib/framework/frame.h
  14. +5 −5 lib/gamelib/gtime.cpp
  15. +60 −37 lib/netplay/netplay.cpp
  16. +2 −0 lib/sdl/main_sdl.cpp
  17. +1 −1 lib/sound/Makefile.am
  18. +34 −0 macosx/Resources/WarzoneHelp/Info.plist
  19. +23 −75 macosx/Warzone.xcodeproj/project.pbxproj
  20. +2 −2 macosx/configs/FetchPrebuilt.sh
  21. +2 −2 macosx/configs/Project-All.xcconfig
  22. +1 −1 macosx/configs/Warzone-All.xcconfig
  23. +10 −0 macosx/configs/fetchscripts/Fribidi-FetchSource.sh
  24. +10 −0 macosx/configs/fetchscripts/GLExtensionWrangler-FetchSource.sh
  25. +10 −0 macosx/configs/fetchscripts/Gettext-FetchSource.sh
  26. +10 −0 macosx/configs/fetchscripts/Ogg-FetchSource.sh
  27. +10 −0 macosx/configs/fetchscripts/PhysFS-FetchSource.sh
  28. +10 −0 macosx/configs/fetchscripts/Png-FetchSource.sh
  29. +10 −0 macosx/configs/fetchscripts/SetupPrebuiltComponents-Docs.sh
  30. +12 −0 macosx/configs/fetchscripts/SetupPrebuiltComponents-Fonts.sh
  31. +12 −0 macosx/configs/fetchscripts/SetupPrebuiltComponents-QT.sh
  32. +12 −0 macosx/configs/fetchscripts/SetupPrebuiltComponents-SDL.sh
  33. +10 −0 macosx/configs/fetchscripts/SetupPrebuiltComponents-fontconfig.sh
  34. +10 −0 macosx/configs/fetchscripts/SetupPrebuiltComponents-freetype.sh
  35. +38 −0 macosx/configs/fetchscripts/SetupPrebuiltComponents-msgfmt.sh
  36. +10 −0 macosx/configs/fetchscripts/Theora-FetchSource.sh
  37. +10 −0 macosx/configs/fetchscripts/Vorbis-FetchSource.sh
  38. +10 −0 macosx/configs/fetchscripts/Zlib-FetchSource.sh
  39. +2 −2 macosx/configs/mkdmgs.sh
  40. +203 −192 po/ca_ES.po
  41. +202 −193 po/cs.po
  42. +203 −192 po/da.po
  43. +203 −192 po/de.po
  44. +202 −192 po/en_GB.po
  45. +203 −192 po/es.po
  46. +203 −192 po/et_EE.po
  47. +200 −191 po/fi.po
  48. +203 −192 po/fr.po
  49. +202 −193 po/fy.po
  50. +202 −193 po/ga.po
  51. +203 −192 po/hr.po
  52. +203 −192 po/hu.po
  53. +203 −192 po/it.po
  54. +204 −192 po/ko.po
  55. +199 −191 po/la.po
  56. +202 −193 po/lt.po
  57. +202 −192 po/nb.po
  58. +203 −192 po/nl.po
  59. +203 −192 po/pl.po
  60. +203 −192 po/pt.po
  61. +203 −192 po/pt_BR.po
  62. +203 −192 po/ro.po
  63. +203 −192 po/ru.po
  64. +203 −193 po/sk.po
  65. +203 −192 po/sl.po
  66. +203 −192 po/tr.po
  67. +203 −192 po/uk_UA.po
  68. +202 −192 po/zh_CN.po
  69. +202 −192 po/zh_TW.po
  70. +2 −4 src/Makefile.am
  71. +1 −2 src/astar.cpp
  72. +2 −0 src/console.cpp
  73. +8 −6 src/display3d.cpp
  74. +1 −1 src/frontend.cpp
  75. +7 −8 src/game.cpp
  76. +33 −14 src/hci.cpp
  77. +5 −2 src/hci.h
  78. +0 −5 src/init.cpp
  79. +6 −1 src/levels.cpp
  80. +8 −12 src/main.cpp
  81. +3 −6 src/multigifts.cpp
  82. +33 −45 src/multiint.cpp
  83. +42 −6 src/multijoin.cpp
  84. +12 −2 src/multiplay.cpp
  85. +31 −22 src/qtscript.cpp
  86. +37 −3 src/qtscriptfuncs.cpp
  87. +5 −17 src/research.cpp
  88. +34 −5 src/structure.cpp
  89. +5 −5 src/template.cpp
  90. +1 −1 src/version.cpp
  91. +4 −4 win32/warzone2100.rc
6 changes: 3 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
*.pbxproj -crlf -merge
*.xcworkspacedata -crlf -merge
*.xcscheme -crlf -merge
*.pbxproj -crlf merge=ours
*.xcworkspacedata -crlf merge=ours
*.xcscheme -crlf merge=ours
19 changes: 19 additions & 0 deletions 3rdparty/SDL/mac/SDLMain.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "SDLMain.h"
#include <sys/param.h> /* for MAXPATHLEN */
#include <unistd.h>
#include <Carbon/Carbon.h>

/* For some reaon, Apple removed setAppleMenu from the headers in 10.4,
but the method still is there and works. To avoid warnings, we declare
Expand Down Expand Up @@ -123,6 +124,22 @@ - (void)fixMenu:(NSMenu *)aMenu withAppName:(NSString *)appName

#else

void openHelpPage(NSString *pagePath, NSString *anchorName)
{
NSString *helpBookName = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleHelpBookName"];
AHGotoPage((CFStringRef)helpBookName, (CFStringRef)pagePath, (CFStringRef)anchorName);
}

- (void)openManPage
{
openHelpPage(@"warzone2100.6.html", nil);
}

- (void)openScriptingDocs
{
openHelpPage(@"javascript.pdf", nil);
}

static void setupWindowMenu(void);

static void setApplicationMenu(void)
Expand Down Expand Up @@ -171,6 +188,8 @@ static void setApplicationMenu(void)
title = [appName stringByAppendingString:@" Help"];
menuItem = [helpMenu addItemWithTitle:title action:@selector(showHelp:) keyEquivalent:@"?"];
[menuItem setKeyEquivalentModifierMask:NSCommandKeyMask];
[helpMenu addItemWithTitle:@"Man Page" action:@selector(openManPage) keyEquivalent:@""];
[helpMenu addItemWithTitle:@"Scripting Documentation" action:@selector(openScriptingDocs) keyEquivalent:@""];
menuItem = [[NSMenuItem alloc] initWithTitle:@"Help" action:nil keyEquivalent:@""];
[menuItem setSubmenu:helpMenu];
[[NSApp mainMenu] addItem:menuItem];
Expand Down
Loading