# HG changeset patch # User Periklis Ntanasis # Date 1371002307 -10800 # Node ID b0d16164dfa042628173adf202b6349e1c91382b # Parent 8bf450fe6cc8dddaabddfe27e74fc06bc4050d4d# Parent a15ea245adf9f805f2c1a5b22bf01e9cc0e37a72 merge my campaign page changes with default diff -r 8bf450fe6cc8 -r b0d16164dfa0 QTfrontend/game.cpp --- a/QTfrontend/game.cpp Wed Jun 12 04:53:04 2013 +0300 +++ b/QTfrontend/game.cpp Wed Jun 12 04:58:27 2013 +0300 @@ -153,7 +153,7 @@ HWProto::addStringToBuffer(teamscfg, "TL"); HWProto::addStringToBuffer(teamscfg, QString("etheme %1") - .arg((themeModel->rowCount() > 0) ? themeModel->index(rand() % themeModel->rowCount()).data().toString() : "steel")); + .arg((themeModel->rowCount() > 0) ? themeModel->index(rand() % themeModel->rowCount()).data(ThemeModel::ActualNameRole).toString() : "steel")); HWProto::addStringToBuffer(teamscfg, "eseed " + QUuid::createUuid().toString()); HWProto::addStringToBuffer(teamscfg, "e$template_filter 2"); diff -r 8bf450fe6cc8 -r b0d16164dfa0 cmake_modules/cpackvars.cmake --- a/cmake_modules/cpackvars.cmake Wed Jun 12 04:53:04 2013 +0300 +++ b/cmake_modules/cpackvars.cmake Wed Jun 12 04:58:27 2013 +0300 @@ -58,6 +58,7 @@ "\\\\.db$" "\\\\.dof$" "\\\\.or$" + "\\\\.stackdump$" #archives "\\\\.zip$" "\\\\.gz$" diff -r 8bf450fe6cc8 -r b0d16164dfa0 misc/libphysfs/CMakeLists.txt --- a/misc/libphysfs/CMakeLists.txt Wed Jun 12 04:53:04 2013 +0300 +++ b/misc/libphysfs/CMakeLists.txt Wed Jun 12 04:58:27 2013 +0300 @@ -48,11 +48,13 @@ # Fallback to older OS X on PowerPC to support wider range of systems... if(CMAKE_OSX_ARCHITECTURES MATCHES ppc) add_definitions(-DMAC_OS_X_VERSION_MIN_REQUIRED=1020) - set(OTHER_LDFLAGS ${OTHER_LDFLAGS} " -mmacosx-version-min=10.2") + list(APPEND OTHER_LDFLAGS "-mmacosx-version-min=10.2") endif(CMAKE_OSX_ARCHITECTURES MATCHES ppc) # Need these everywhere... add_definitions(-fno-common) + find_library(foundation_framework NAMES Foundation) + list(APPEND OTHER_LDFLAGS ${foundation_framework}) find_library(iokit_framework NAMES IOKit) list(APPEND OTHER_LDFLAGS ${iokit_framework}) endif(MACOSX) diff -r 8bf450fe6cc8 -r b0d16164dfa0 misc/libphysfs/platform_macosx.c --- a/misc/libphysfs/platform_macosx.c Wed Jun 12 04:53:04 2013 +0300 +++ b/misc/libphysfs/platform_macosx.c Wed Jun 12 04:58:27 2013 +0300 @@ -44,6 +44,31 @@ fflush(stderr); abort(); } + + +/* apparently libssp is missing from 10.4 SDK + code from http://wiki.osdev.org/GCC_Stack_Smashing_Protector */ +void * __stack_chk_guard = NULL; + +void __stack_chk_guard_setup() +{ + unsigned char * p; + p = (unsigned char *) &__stack_chk_guard; + + /* If you have the ability to generate random numbers in your kernel then use them, + otherwise for 32-bit code: *p = 0x00000aff; */ + *p = random(); +} + +void __attribute__((noreturn)) __stack_chk_fail() +{ + /* put your panic function or similar in here */ + unsigned char * vid = (unsigned char *)0xB8000; + vid[1] = 7; + for(;;) + vid[0]++; +} + #endif #endif /* __APPLE__ */