Random changes here and there, preparation to make libSDL aware of Menu key - this won't work yet!

This commit is contained in:
pelya
2010-09-03 18:42:10 +03:00
parent 59e15688fc
commit 84b7ba606d
20 changed files with 62 additions and 38 deletions

View File

@@ -18,6 +18,7 @@ LOCAL_CFLAGS := $(foreach D, $(APP_SUBDIRS), -I$(LOCAL_PATH)/$(D)) \
-I$(LOCAL_PATH)/../png \
-I$(LOCAL_PATH)/../jpeg \
-I$(LOCAL_PATH)/../intl \
-I$(LOCAL_PATH)/../freetype/include \
-I$(LOCAL_PATH)/..

View File

@@ -14,8 +14,8 @@ RedefinedKeys="RETURN RSHIFT KP_PLUS KP_MINUS ESCAPE F10"
AppTouchscreenKeyboardKeysAmount=2
AppTouchscreenKeyboardKeysAmountAutoFire=2
MultiABI=n
AppVersionCode=1006
AppVersionName="1.0.06"
AppVersionCode=1007
AppVersionName="1.0.07"
CompiledLibraries="sdl_image"
AppCflags='-O0 -DTHREADLIB_SDL=1 -DTIMELIB=SDL -DOVCODEC_TREMOR=1 -DNETPLAY=1 -DHAVE_REGEX=1 -DHAVE_GETOPT_LONG=1 -DHAVE_ZIP=1'
AppLdflags='-Lbin/ndk/local/armeabi -ltremor'

View File

@@ -11,19 +11,19 @@
#define _CONFIG_UNIX_H
/* Directory where the UQM game data is located */
#define CONTENTDIR "."
#define CONTENTDIR "./"
/* Directory where game data will be stored */
#define USERDIR "."
#define USERDIR "./config/"
/* Directory where config files will be stored */
#define CONFIGDIR USERDIR
/* Directory where supermelee teams will be stored */
#define MELEEDIR "${UQM_CONFIG_DIR}/teams/"
#define MELEEDIR "./teams/"
/* Directory where save games will be stored */
#define SAVEDIR "${UQM_CONFIG_DIR}/save/"
#define SAVEDIR "./save/"
/* Defined if words are stored with the most significant byte first */
#ifdef __ARMEL__

View File

@@ -26,6 +26,7 @@
#include "port.h"
#include "resintrn.h"
#include "libs/uio.h"
#include "libs/log.h"
uio_Stream *
res_OpenResFile (uio_DirHandle *dir, const char *filename, const char *mode)
@@ -34,7 +35,10 @@ res_OpenResFile (uio_DirHandle *dir, const char *filename, const char *mode)
struct stat sb;
if (uio_stat (dir, filename, &sb) == 0 && S_ISDIR(sb.st_mode))
{
log_add (log_Debug, "res_OpenResFile('%s', '%s') - cannot open dir as file", filename, mode);
return ((uio_Stream *) ~0);
}
fp = uio_fopen (dir, filename, mode);

View File

@@ -707,6 +707,7 @@ uio_open(uio_DirHandle *dir, const char *path, int flags, mode_t mode) {
&readMountInfo, &readPDirHandle, NULL,
&writeMountInfo, &writePDirHandle, NULL, &name) == -1) {
// errno is set
log_add (log_Info, "uio_open: uio_getPhysicalAccess failed for '%s'", path);
return NULL;
}
@@ -733,6 +734,7 @@ uio_open(uio_DirHandle *dir, const char *path, int flags, mode_t mode) {
uio_PDirHandle_unref(readPDirHandle);
uio_PDirHandle_unref(writePDirHandle);
errno = EEXIST;
log_add (log_Info, "uio_open: O_CREAT | O_EXCL: file already exists '%s'", name);
return NULL;
}
if ((flags & O_TRUNC) == O_TRUNC) {
@@ -749,6 +751,7 @@ uio_open(uio_DirHandle *dir, const char *path, int flags, mode_t mode) {
uio_PDirHandle_unref(readPDirHandle);
uio_PDirHandle_unref(writePDirHandle);
errno = savedErrno;
log_add (log_Info, "uio_open: uio_copyFilePhysical failed '%s'", name);
return NULL;
}
}
@@ -770,6 +773,7 @@ uio_open(uio_DirHandle *dir, const char *path, int flags, mode_t mode) {
handle = (pDirHandle->pRoot->handler->open)(pDirHandle, name, flags, mode);
// Also adds a new entry to the physical dir if appropriate.
if (handle == NULL) {
log_add (log_Info, "uio_open: open file failed '%s'", name);
int savedErrno = errno;
uio_free(name);
uio_PDirHandle_unref(pDirHandle);

View File

@@ -33,9 +33,13 @@
#include "libs/threadlib.h"
#ifdef ANDROID
#define ACCELERATION_INCREMENT (ONE_SECOND)
#define MENU_REPEAT_DELAY (ONE_SECOND)
#else
#define ACCELERATION_INCREMENT (ONE_SECOND / 12)
#define MENU_REPEAT_DELAY (ONE_SECOND / 2)
#endif
typedef struct
{

View File

@@ -1 +1 @@
opentyrian
teeworlds