Skip to content

Commit

Permalink
Merge branch 'master' into teenagentRefactor
Browse files Browse the repository at this point in the history
Conflicts:
	engines/teenagent/resources.cpp
  • Loading branch information
digitall committed Jul 16, 2012
2 parents 9669b73 + 1fffbe4 commit e73dffa
Show file tree
Hide file tree
Showing 179 changed files with 3,050 additions and 2,069 deletions.
4 changes: 2 additions & 2 deletions AUTHORS
Expand Up @@ -418,10 +418,10 @@ Other contributions
Matteo Angelino

Norwegian (Bokmaal):
Einar Johan T. Somaae
Einar Johan Somaaen

Norwegian (Nynorsk):
Einar Johan T. Somaae
Einar Johan Somaaen

Polish:
GrajPoPolsku.pl Team
Expand Down
10 changes: 4 additions & 6 deletions NEWS
Expand Up @@ -9,10 +9,7 @@ For a more comprehensive changelog of the latest experimental code, see:
- Added support for Dreamweb.
- Added support for Geisha.
- Added support for Gregory and the Hot Air Balloon.
- Added support for Magic Tales: Baba Yaga and the Magic Geese.
- Added support for Magic Tales: Imo and the King.
- Added support for Magic Tales: Liam Finds a Story.
- Added support for Magic Tales: The Little Samurai.
- Added support for Once Upon A Time: Little Red Riding Hood
- Added support for Sleeping Cub's Test of Courage.
- Added support for Soltys.
Expand All @@ -33,9 +30,6 @@ For a more comprehensive changelog of the latest experimental code, see:
- Improved predictive dialog look.
- Various GUI improvements.

SDL ports:
- Added support for OpenGL (GSoC Task).

Broken Sword 1:
- Fixed incorrect sound effects in the DOS/Windows demo.
- Added support for PlayStation videos.
Expand Down Expand Up @@ -68,6 +62,10 @@ For a more comprehensive changelog of the latest experimental code, see:
- Added aspect ratio correction feature.
- Implemented 16 bits per pixel support for games.

Maemo port:
- Added support for Nokia 770 running OS2008 HE.
- Added configurable keymap.

Windows port:
- Changed default savegames location for Windows NT4/2000/XP/Vista/7.
(The migration batch file can be used to copy savegames from the old
Expand Down
13 changes: 12 additions & 1 deletion backends/platform/android/android.mk
Expand Up @@ -130,7 +130,18 @@ $(PATH_STAGE_PREFIX).%/res/drawable/scummvm.png: $(PATH_RESOURCES)/drawable/scum
$(FILE_RESOURCES_MAIN): $(FILE_MANIFEST) $(RESOURCES) $(ANDROID_JAR8) $(DIST_FILES_THEMES) $(DIST_FILES_ENGINEDATA)
$(INSTALL) -d $(PATH_BUILD_ASSETS)
$(INSTALL) -c -m 644 $(DIST_FILES_THEMES) $(DIST_FILES_ENGINEDATA) $(PATH_BUILD_ASSETS)/
$(AAPT) package -f -M $< -S $(PATH_RESOURCES) -A $(PATH_BUILD_ASSETS) -I $(ANDROID_JAR8) -F $@
work_dir=`pwd`; \
for i in $(PATH_BUILD_ASSETS)/*.zip; do \
echo "recompress $$i"; \
cd $$work_dir; \
$(RM) -rf $(PATH_BUILD_ASSETS)/tmp; \
$(MKDIR) $(PATH_BUILD_ASSETS)/tmp; \
unzip -q $$i -d $(PATH_BUILD_ASSETS)/tmp; \
cd $(PATH_BUILD_ASSETS)/tmp; \
zip -r ../`basename $$i` *; \
done
@$(RM) -rf $(PATH_BUILD_ASSETS)/tmp
$(AAPT) package -f -0 zip -M $< -S $(PATH_RESOURCES) -A $(PATH_BUILD_ASSETS) -I $(ANDROID_JAR8) -F $@

$(PATH_BUILD)/%/$(FILE_RESOURCES): $(PATH_BUILD)/%/AndroidManifest.xml $(PATH_STAGE_PREFIX).%/res/values/strings.xml $(PATH_STAGE_PREFIX).%/res/drawable/scummvm.png plugins/lib%.so $(ANDROID_JAR8)
$(AAPT) package -f -M $< -S $(PATH_STAGE_PREFIX).$*/res -I $(ANDROID_JAR8) -F $@
Expand Down
16 changes: 14 additions & 2 deletions backends/platform/maemo/debian/changelog
@@ -1,8 +1,20 @@
scummvm (1.5.0~git) unstable; urgency=low
scummvm (1.6.0~git) unstable; urgency=low

* Development snapshot

-- Tarek Soliman <tsoliman@scummvm.org> Tue, 15 Nov 2011 14:56:57 -0600
-- Tarek Soliman <tsoliman@scummvm.org> Tue, 10 Jul 2012 23:02:00 -0500

scummvm (1.5.0) unstable; urgency=low

* 1.5.0 release

-- Tarek Soliman <tsoliman@scummvm.org> Tue, 10 Jul 2012 22:57:32 -0500

scummvm (1.4.1) unstable; urgency=low

* 1.4.1 release

-- Tarek Soliman <tsoliman@scummvm.org> Wed, 11 Jan 2012 17:17:26 -0600

scummvm (1.4.0) unstable; urgency=low

Expand Down
6 changes: 5 additions & 1 deletion backends/platform/maemo/maemo.cpp
Expand Up @@ -43,6 +43,7 @@ namespace Maemo {

OSystem_SDL_Maemo::OSystem_SDL_Maemo()
:
_eventObserver(0),
OSystem_POSIX() {
}

Expand Down Expand Up @@ -84,6 +85,9 @@ static void registerDefaultKeyBindings(Common::KeymapperDefaultBindings *_keymap
#endif

void OSystem_SDL_Maemo::initBackend() {
ConfMan.registerDefault("fullscreen", true);
ConfMan.registerDefault("aspect_ratio", true);

// Create the events manager
if (_eventSource == 0)
_eventSource = new MaemoSdlEventSource();
Expand Down Expand Up @@ -180,6 +184,7 @@ void OSystem_SDL_Maemo::setupIcon() {
// http://bugzilla.libsdl.org/show_bug.cgi?id=586
}

#ifdef ENABLE_KEYMAPPER
static const Common::KeyTableEntry maemoKeys[] = {
// Function keys
{"MENU", Common::KEYCODE_F11, 0, "Menu", false},
Expand All @@ -191,7 +196,6 @@ static const Common::KeyTableEntry maemoKeys[] = {
{0, Common::KEYCODE_INVALID, 0, 0, false}
};

#ifdef ENABLE_KEYMAPPER
Common::HardwareInputSet *OSystem_SDL_Maemo::getHardwareInputSet() {
return new Common::HardwareInputSet(true, maemoKeys);
}
Expand Down
2 changes: 1 addition & 1 deletion backends/platform/psp/README.PSP
@@ -1,4 +1,4 @@
ScummVM-PSP 1.5.0git README
ScummVM-PSP 1.6.0git README
==============================================================================

Installation
Expand Down
4 changes: 4 additions & 0 deletions backends/saves/windows/windows-saves.cpp
Expand Up @@ -26,8 +26,12 @@

#if defined(WIN32) && !defined(_WIN32_WCE) && !defined(DISABLE_DEFAULT_SAVEFILEMANAGER)

#if defined(ARRAYSIZE)
#undef ARRAYSIZE
#endif
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#undef ARRAYSIZE // winnt.h defines ARRAYSIZE, but we want our own one...

#include "common/config-manager.h"
#include "common/savefile.h"
Expand Down
2 changes: 1 addition & 1 deletion base/internal_version.h
Expand Up @@ -16,4 +16,4 @@
#define SCUMMVM_REVISION
#endif

#define SCUMMVM_VERSION "1.5.0git" SCUMMVM_REVISION
#define SCUMMVM_VERSION "1.6.0git" SCUMMVM_REVISION
2 changes: 1 addition & 1 deletion devtools/README
Expand Up @@ -65,7 +65,7 @@ create_lure (dreammaster)

create_project (LordHoto, Littleboy)
--------------
Creates project files for Visual Studio 2005, 2008, 2010, Xcode and
Creates project files for Visual Studio 2005, 2008, 2010, 2012, Xcode and
Code::Blocks out of the configure / Makefile based build system.
It also offers a way to enable or disable certain engines and the use
of external libraries similar to configure. Run the tool without
Expand Down
29 changes: 11 additions & 18 deletions devtools/create_project/create_project.cpp
Expand Up @@ -75,14 +75,6 @@ namespace {
*/
std::string unifyPath(const std::string &path);

/**
* Returns the last path component.
*
* @param path Path string.
* @return Last path component.
*/
std::string getLastPathComponent(const std::string &path);

/**
* Display the help text for the program.
*
Expand Down Expand Up @@ -221,7 +213,7 @@ int main(int argc, char *argv[]) {

msvcVersion = atoi(argv[++i]);

if (msvcVersion != 8 && msvcVersion != 9 && msvcVersion != 10) {
if (msvcVersion != 8 && msvcVersion != 9 && msvcVersion != 10 && msvcVersion != 11) {
std::cerr << "ERROR: Unsupported version: \"" << msvcVersion << "\" passed to \"--msvc-version\"!\n";
return -1;
}
Expand Down Expand Up @@ -606,14 +598,6 @@ std::string unifyPath(const std::string &path) {
return result;
}

std::string getLastPathComponent(const std::string &path) {
std::string::size_type pos = path.find_last_of('/');
if (pos == std::string::npos)
return path;
else
return path.substr(pos + 1);
}

void displayHelp(const char *exe) {
using std::cout;

Expand Down Expand Up @@ -643,6 +627,7 @@ void displayHelp(const char *exe) {
" 8 stands for \"Visual Studio 2005\"\n"
" 9 stands for \"Visual Studio 2008\"\n"
" 10 stands for \"Visual Studio 2010\"\n"
" 11 stands for \"Visual Studio 2012\"\n"
" The default is \"9\", thus \"Visual Studio 2008\"\n"
" --build-events Run custom build events as part of the build\n"
" (default: false)\n"
Expand Down Expand Up @@ -1000,7 +985,7 @@ bool isInList(const std::string &dir, const std::string &fileName, const StringL
continue;
}

const std::string lastPathComponent = getLastPathComponent(*i);
const std::string lastPathComponent = ProjectProvider::getLastPathComponent(*i);
if (extensionName == "o") {
return false;
} else if (!producesObjectFile(fileName) && extensionName != "h") {
Expand Down Expand Up @@ -1303,6 +1288,14 @@ std::string ProjectProvider::createUUID() const {
#endif
}

std::string ProjectProvider::getLastPathComponent(const std::string &path) {
std::string::size_type pos = path.find_last_of('/');
if (pos == std::string::npos)
return path;
else
return path.substr(pos + 1);
}

void ProjectProvider::addFilesToProject(const std::string &dir, std::ofstream &projectFile,
const StringList &includeList, const StringList &excludeList,
const std::string &filePrefix) {
Expand Down
8 changes: 8 additions & 0 deletions devtools/create_project/create_project.h
Expand Up @@ -317,6 +317,14 @@ class ProjectProvider {
*/
void createProject(const BuildSetup &setup);

/**
* Returns the last path component.
*
* @param path Path string.
* @return Last path component.
*/
static std::string getLastPathComponent(const std::string &path);

protected:
const int _version; ///< Target project version
StringList &_globalWarnings; ///< Global warnings
Expand Down
33 changes: 21 additions & 12 deletions devtools/create_project/msbuild.cpp
Expand Up @@ -46,7 +46,13 @@ const char *MSBuildProvider::getPropertiesExtension() {
}

int MSBuildProvider::getVisualStudioVersion() {
return 2010;
if (_version == 10)
return 2010;

if (_version == 11)
return 2012;

error("Unsupported version passed to getVisualStudioVersion");
}

namespace {
Expand All @@ -58,9 +64,10 @@ inline void outputConfiguration(std::ostream &project, const std::string &config
"\t\t</ProjectConfiguration>\n";
}

inline void outputConfigurationType(const BuildSetup &setup, std::ostream &project, const std::string &name, const std::string &config) {
inline void outputConfigurationType(const BuildSetup &setup, std::ostream &project, const std::string &name, const std::string &config, int version) {
project << "\t<PropertyGroup Condition=\"'$(Configuration)|$(Platform)'=='" << config << "'\" Label=\"Configuration\">\n"
"\t\t<ConfigurationType>" << ((name == setup.projectName || setup.devTools) ? "Application" : "StaticLibrary") << "</ConfigurationType>\n"
"\t\t<PlatformToolset>v" << version << "0</PlatformToolset>\n"
"\t</PropertyGroup>\n";
}

Expand Down Expand Up @@ -98,17 +105,18 @@ void MSBuildProvider::createProjectFile(const std::string &name, const std::stri
"\t\t<ProjectGuid>{" << uuid << "}</ProjectGuid>\n"
"\t\t<RootNamespace>" << name << "</RootNamespace>\n"
"\t\t<Keyword>Win32Proj</Keyword>\n"
"\t\t<VCTargetsPath Condition=\"'$(VCTargetsPath11)' != '' and '$(VSVersion)' == '' and $(VisualStudioVersion) == ''\">$(VCTargetsPath11)</VCTargetsPath>\n"
"\t</PropertyGroup>\n";

// Shared configuration
project << "\t<Import Project=\"$(VCTargetsPath)\\Microsoft.Cpp.Default.props\" />\n";

outputConfigurationType(setup, project, name, "Release|Win32");
outputConfigurationType(setup, project, name, "Analysis|Win32");
outputConfigurationType(setup, project, name, "Debug|Win32");
outputConfigurationType(setup, project, name, "Release|x64");
outputConfigurationType(setup, project, name, "Analysis|x64");
outputConfigurationType(setup, project, name, "Debug|x64");
outputConfigurationType(setup, project, name, "Release|Win32", _version);
outputConfigurationType(setup, project, name, "Analysis|Win32", _version);
outputConfigurationType(setup, project, name, "Debug|Win32", _version);
outputConfigurationType(setup, project, name, "Release|x64", _version);
outputConfigurationType(setup, project, name, "Analysis|x64", _version);
outputConfigurationType(setup, project, name, "Debug|x64", _version);

project << "\t<Import Project=\"$(VCTargetsPath)\\Microsoft.Cpp.props\" />\n"
"\t<ImportGroup Label=\"ExtensionSettings\">\n"
Expand Down Expand Up @@ -249,11 +257,11 @@ void MSBuildProvider::outputProjectSettings(std::ofstream &project, const std::s
// Compile configuration
if (setup.devTools || name == setup.projectName || name == "sword25" || name == "grim") {
project << "\t\t\t<DisableLanguageExtensions>false</DisableLanguageExtensions>\n";
} else {
if (name == "scummvm" && !isRelease)
project << "\t\t\t<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>\n";

if (warningsIterator != _projectWarnings.end())
if (name == setup.projectName && !isRelease)
project << "\t\t\t<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>\n";
} else {
if (warningsIterator != _projectWarnings.end())
project << "\t\t\t<DisableSpecificWarnings>" << warnings << ";%(DisableSpecificWarnings)</DisableSpecificWarnings>\n";
}

Expand Down Expand Up @@ -395,6 +403,7 @@ void MSBuildProvider::createBuildProp(const BuildSetup &setup, bool isRelease, b
"\t\t</ClCompile>\n"
"\t\t<Link>\n"
"\t\t\t<GenerateDebugInformation>true</GenerateDebugInformation>\n"
"\t\t\t<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>\n"
"\t\t\t<IgnoreSpecificDefaultLibraries>libcmt.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>\n";
}

Expand Down
20 changes: 20 additions & 0 deletions devtools/create_project/msvc11/create_project.sln
@@ -0,0 +1,20 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2012
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "create_project", "create_project.vcxproj", "{CF177559-077D-4A08-AABE-BE0FD35F6C63}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{CF177559-077D-4A08-AABE-BE0FD35F6C63}.Debug|Win32.ActiveCfg = Debug|Win32
{CF177559-077D-4A08-AABE-BE0FD35F6C63}.Debug|Win32.Build.0 = Debug|Win32
{CF177559-077D-4A08-AABE-BE0FD35F6C63}.Release|Win32.ActiveCfg = Release|Win32
{CF177559-077D-4A08-AABE-BE0FD35F6C63}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

0 comments on commit e73dffa

Please sign in to comment.