- Updated MSVC8 project files
- Renamed base/options.cpp to base/commandLine.cpp because of conflict with gui/options.cpp which sit in same directory in MSVC builds - Moved AudioCDManager singleton declaration outside of Audio namespace - Fixed numerous MSVC warning of potentially uninitialized variables and int <-> bool conversions. svn-id: r22397
This commit is contained in:
parent
4c67122463
commit
d2546e3979
18 changed files with 144 additions and 33 deletions
|
@ -35,7 +35,7 @@
|
||||||
#if !defined(_WIN32_WCE) && !defined(__MAEMO__)
|
#if !defined(_WIN32_WCE) && !defined(__MAEMO__)
|
||||||
|
|
||||||
#if defined (WIN32)
|
#if defined (WIN32)
|
||||||
int WinMain(HINSTANCE /*hInst*/, HINSTANCE /*hPrevInst*/, LPSTR /*lpCmdLine*/, int /*iShowCmd*/) {
|
int __stdcall WinMain(HINSTANCE /*hInst*/, HINSTANCE /*hPrevInst*/, LPSTR /*lpCmdLine*/, int /*iShowCmd*/) {
|
||||||
SDL_SetModuleHandle(GetModuleHandle(NULL));
|
SDL_SetModuleHandle(GetModuleHandle(NULL));
|
||||||
return main(__argc, __argv);
|
return main(__argc, __argv);
|
||||||
}
|
}
|
||||||
|
@ -102,7 +102,6 @@ int main(int argc, char *argv[]) {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
void OSystem_SDL::initBackend() {
|
void OSystem_SDL::initBackend() {
|
||||||
assert(!_inited);
|
assert(!_inited);
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
#include "common/stdafx.h"
|
#include "common/stdafx.h"
|
||||||
|
|
||||||
#include "base/engine.h"
|
#include "base/engine.h"
|
||||||
#include "base/options.h"
|
#include "base/commandLine.h"
|
||||||
#include "base/plugins.h"
|
#include "base/plugins.h"
|
||||||
#include "base/version.h"
|
#include "base/version.h"
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
#include "common/stdafx.h"
|
#include "common/stdafx.h"
|
||||||
#include "backends/fs/fs.h"
|
#include "backends/fs/fs.h"
|
||||||
#include "base/engine.h"
|
#include "base/engine.h"
|
||||||
#include "base/options.h"
|
#include "base/commandLine.h"
|
||||||
#include "base/plugins.h"
|
#include "base/plugins.h"
|
||||||
#include "base/version.h"
|
#include "base/version.h"
|
||||||
#include "common/config-manager.h"
|
#include "common/config-manager.h"
|
||||||
|
|
|
@ -3,7 +3,7 @@ MODULE := base
|
||||||
MODULE_OBJS := \
|
MODULE_OBJS := \
|
||||||
engine.o \
|
engine.o \
|
||||||
main.o \
|
main.o \
|
||||||
options.o \
|
commandLine.o \
|
||||||
plugins.o \
|
plugins.o \
|
||||||
version.o
|
version.o
|
||||||
|
|
||||||
|
|
|
@ -190,6 +190,14 @@
|
||||||
RelativePath="..\..\engines\gob\draw.h"
|
RelativePath="..\..\engines\gob\draw.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\engines\gob\draw_v1.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\engines\gob\draw_v2.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\engines\gob\driver_vga.cpp"
|
RelativePath="..\..\engines\gob\driver_vga.cpp"
|
||||||
>
|
>
|
||||||
|
@ -206,6 +214,14 @@
|
||||||
RelativePath="..\..\engines\gob\game.h"
|
RelativePath="..\..\engines\gob\game.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\engines\gob\game_v1.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\engines\gob\game_v2.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\engines\gob\global.cpp"
|
RelativePath="..\..\engines\gob\global.cpp"
|
||||||
>
|
>
|
||||||
|
@ -238,6 +254,14 @@
|
||||||
RelativePath="..\..\engines\gob\init.h"
|
RelativePath="..\..\engines\gob\init.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\engines\gob\init_v1.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\engines\gob\init_v2.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\engines\gob\inter.cpp"
|
RelativePath="..\..\engines\gob\inter.cpp"
|
||||||
>
|
>
|
||||||
|
@ -358,6 +382,14 @@
|
||||||
RelativePath="..\..\engines\gob\video.h"
|
RelativePath="..\..\engines\gob\video.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\engines\gob\video_v1.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\engines\gob\video_v2.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
</Files>
|
</Files>
|
||||||
<Globals>
|
<Globals>
|
||||||
</Globals>
|
</Globals>
|
||||||
|
|
|
@ -190,6 +190,10 @@
|
||||||
RelativePath="..\..\engines\kyra\kyra.h"
|
RelativePath="..\..\engines\kyra\kyra.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\engines\kyra\plugin.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\engines\kyra\resource.cpp"
|
RelativePath="..\..\engines\kyra\resource.cpp"
|
||||||
>
|
>
|
||||||
|
|
|
@ -310,6 +310,14 @@
|
||||||
<Filter
|
<Filter
|
||||||
Name="he"
|
Name="he"
|
||||||
>
|
>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\engines\scumm\he\animation_he.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\engines\scumm\he\animation_he.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\engines\scumm\he\floodfill_he.cpp"
|
RelativePath="..\..\engines\scumm\he\floodfill_he.cpp"
|
||||||
>
|
>
|
||||||
|
@ -418,6 +426,18 @@
|
||||||
RelativePath="..\..\engines\scumm\imuse\instrument.h"
|
RelativePath="..\..\engines\scumm\imuse\instrument.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\engines\scumm\imuse\sysex.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\engines\scumm\imuse\sysex_samnmax.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\engines\scumm\imuse\sysex_scumm.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
</Filter>
|
</Filter>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\engines\scumm\actor.cpp"
|
RelativePath="..\..\engines\scumm\actor.cpp"
|
||||||
|
|
|
@ -70,10 +70,10 @@
|
||||||
AdditionalDependencies="winmm.lib sdl.lib zdll.lib libmad.lib vorbisfile_static.lib vorbis_static.lib ogg_static.lib libmpeg2.lib sword1_debug/sword1.lib sword2_debug/sword2.lib lure_debug/lure.lib cine_debug/cine.lib kyra_debug/kyra.lib gob_debug/gob.lib queen_debug/queen.lib saga_debug/saga.lib scumm_debug/scumm.lib simon_debug/simon.lib sky_debug/sky.lib"
|
AdditionalDependencies="winmm.lib sdl.lib zdll.lib libmad.lib vorbisfile_static.lib vorbis_static.lib ogg_static.lib libmpeg2.lib sword1_debug/sword1.lib sword2_debug/sword2.lib lure_debug/lure.lib cine_debug/cine.lib kyra_debug/kyra.lib gob_debug/gob.lib queen_debug/queen.lib saga_debug/saga.lib scumm_debug/scumm.lib simon_debug/simon.lib sky_debug/sky.lib"
|
||||||
OutputFile="$(OutDir)/scummvm.exe"
|
OutputFile="$(OutDir)/scummvm.exe"
|
||||||
LinkIncremental="2"
|
LinkIncremental="2"
|
||||||
IgnoreDefaultLibraryNames="libc.lib"
|
IgnoreDefaultLibraryNames="libc.lib;libcmt.lib"
|
||||||
GenerateDebugInformation="true"
|
GenerateDebugInformation="true"
|
||||||
ProgramDatabaseFile="$(OutDir)/scummvm.pdb"
|
ProgramDatabaseFile="$(OutDir)/scummvm.pdb"
|
||||||
SubSystem="1"
|
SubSystem="2"
|
||||||
TargetMachine="1"
|
TargetMachine="1"
|
||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
|
@ -161,7 +161,7 @@
|
||||||
SuppressStartupBanner="true"
|
SuppressStartupBanner="true"
|
||||||
IgnoreDefaultLibraryNames="libc.lib"
|
IgnoreDefaultLibraryNames="libc.lib"
|
||||||
GenerateDebugInformation="false"
|
GenerateDebugInformation="false"
|
||||||
SubSystem="1"
|
SubSystem="2"
|
||||||
OptimizeReferences="2"
|
OptimizeReferences="2"
|
||||||
EnableCOMDATFolding="2"
|
EnableCOMDATFolding="2"
|
||||||
TargetMachine="1"
|
TargetMachine="1"
|
||||||
|
@ -198,6 +198,14 @@
|
||||||
<Filter
|
<Filter
|
||||||
Name="base"
|
Name="base"
|
||||||
>
|
>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\base\commandLine.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\base\commandLine.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\base\engine.cpp"
|
RelativePath="..\..\base\engine.cpp"
|
||||||
>
|
>
|
||||||
|
@ -207,17 +215,21 @@
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\base\options.cpp"
|
RelativePath="..\..\base\game.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\base\options.h"
|
RelativePath="..\..\base\internal_version.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\base\main.cpp"
|
RelativePath="..\..\base\main.cpp"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\base\main.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\base\plugins.cpp"
|
RelativePath="..\..\base\plugins.cpp"
|
||||||
>
|
>
|
||||||
|
@ -226,6 +238,10 @@
|
||||||
RelativePath="..\..\base\plugins.h"
|
RelativePath="..\..\base\plugins.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\base\version.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\base\version.h"
|
RelativePath="..\..\base\version.h"
|
||||||
>
|
>
|
||||||
|
@ -275,11 +291,15 @@
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\common\list.h"
|
RelativePath="..\..\common\hashmap.cpp"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\common\map.h"
|
RelativePath="..\..\common\hashmap.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\common\list.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
|
@ -813,6 +833,14 @@
|
||||||
RelativePath="..\..\gui\EditTextWidget.h"
|
RelativePath="..\..\gui\EditTextWidget.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\gui\eval.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\gui\eval.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\gui\Key.cpp"
|
RelativePath="..\..\gui\Key.cpp"
|
||||||
>
|
>
|
||||||
|
@ -889,6 +917,10 @@
|
||||||
RelativePath="..\..\gui\TabWidget.h"
|
RelativePath="..\..\gui\TabWidget.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\gui\theme-config.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\gui\theme.cpp"
|
RelativePath="..\..\gui\theme.cpp"
|
||||||
>
|
>
|
||||||
|
@ -897,6 +929,10 @@
|
||||||
RelativePath="..\..\gui\theme.h"
|
RelativePath="..\..\gui\theme.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\gui\ThemeClassic.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\gui\ThemeNew.cpp"
|
RelativePath="..\..\gui\ThemeNew.cpp"
|
||||||
>
|
>
|
||||||
|
|
|
@ -159,6 +159,14 @@
|
||||||
<References>
|
<References>
|
||||||
</References>
|
</References>
|
||||||
<Files>
|
<Files>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\engines\simon\animation.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\engines\simon\animation.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\engines\simon\charset.cpp"
|
RelativePath="..\..\engines\simon\charset.cpp"
|
||||||
>
|
>
|
||||||
|
@ -183,6 +191,14 @@
|
||||||
RelativePath="..\..\engines\simon\debugger.h"
|
RelativePath="..\..\engines\simon\debugger.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\engines\simon\draw.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\engines\simon\event.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\engines\simon\game.cpp"
|
RelativePath="..\..\engines\simon\game.cpp"
|
||||||
>
|
>
|
||||||
|
@ -239,6 +255,14 @@
|
||||||
RelativePath="..\..\engines\simon\sound.h"
|
RelativePath="..\..\engines\simon\sound.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\engines\simon\string.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\engines\simon\subroutine.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\engines\simon\verb.cpp"
|
RelativePath="..\..\engines\simon\verb.cpp"
|
||||||
>
|
>
|
||||||
|
@ -251,6 +275,10 @@
|
||||||
RelativePath="..\..\engines\simon\vga.h"
|
RelativePath="..\..\engines\simon\vga.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\engines\simon\window.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
</Files>
|
</Files>
|
||||||
<Globals>
|
<Globals>
|
||||||
</Globals>
|
</Globals>
|
||||||
|
|
|
@ -186,10 +186,6 @@
|
||||||
RelativePath="..\..\engines\sword2\controls.h"
|
RelativePath="..\..\engines\sword2\controls.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
|
||||||
RelativePath="..\..\engines\sword2\d_draw.cpp"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\engines\sword2\debug.cpp"
|
RelativePath="..\..\engines\sword2\debug.cpp"
|
||||||
>
|
>
|
||||||
|
@ -282,10 +278,6 @@
|
||||||
RelativePath="..\..\engines\sword2\protocol.cpp"
|
RelativePath="..\..\engines\sword2\protocol.cpp"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
|
||||||
RelativePath="..\..\engines\sword2\rdwin.cpp"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\engines\sword2\render.cpp"
|
RelativePath="..\..\engines\sword2\render.cpp"
|
||||||
>
|
>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include "winresrc.h"
|
#include "winresrc.h"
|
||||||
|
|
||||||
IDI_ICON ICON DISCARDABLE "icons/scummvm.ico"
|
IDI_ICON ICON DISCARDABLE "../../icons/scummvm.ico"
|
||||||
|
|
||||||
VS_VERSION_INFO VERSIONINFO
|
VS_VERSION_INFO VERSIONINFO
|
||||||
FILEVERSION 0,9,0,0
|
FILEVERSION 0,9,0,0
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include "winresrc.h"
|
#include "winresrc.h"
|
||||||
|
|
||||||
IDI_ICON ICON DISCARDABLE "icons/scummvm.ico"
|
IDI_ICON ICON DISCARDABLE "../../icons/scummvm.ico"
|
||||||
|
|
||||||
VS_VERSION_INFO VERSIONINFO
|
VS_VERSION_INFO VERSIONINFO
|
||||||
FILEVERSION @VER_MAJOR@,@VER_MINOR@,@VER_PATCH@,0
|
FILEVERSION @VER_MAJOR@,@VER_MINOR@,@VER_PATCH@,0
|
||||||
|
|
|
@ -1201,7 +1201,7 @@ void CharsetRendererCommon::enableShadow(bool enable) {
|
||||||
|
|
||||||
void CharsetRendererV3::printChar(int chr, bool ignoreCharsetMask) {
|
void CharsetRendererV3::printChar(int chr, bool ignoreCharsetMask) {
|
||||||
// Indy3 / Zak256 / Loom
|
// Indy3 / Zak256 / Loom
|
||||||
int width, height, origWidth, origHeight;
|
int width, height, origWidth = 0, origHeight;
|
||||||
VirtScreen *vs;
|
VirtScreen *vs;
|
||||||
byte *charPtr, *dst;
|
byte *charPtr, *dst;
|
||||||
int is2byte = (chr >= 0x80 && _vm->_useCJKMode) ? 1 : 0;
|
int is2byte = (chr >= 0x80 && _vm->_useCJKMode) ? 1 : 0;
|
||||||
|
|
|
@ -606,7 +606,7 @@ void ScummEngine::writeVar(uint var, int value) {
|
||||||
if (_game.heversion <= 73 && vm.slot[_currentScript].number == 1)
|
if (_game.heversion <= 73 && vm.slot[_currentScript].number == 1)
|
||||||
return;
|
return;
|
||||||
assert(value == 0 || value == 1);
|
assert(value == 0 || value == 1);
|
||||||
ConfMan.setBool("subtitles", value);
|
ConfMan.setBool("subtitles", (value != 0));
|
||||||
}
|
}
|
||||||
if (VAR_NOSUBTITLES != 0xFF && var == VAR_NOSUBTITLES) {
|
if (VAR_NOSUBTITLES != 0xFF && var == VAR_NOSUBTITLES) {
|
||||||
// Ignore default setting in HE60-71 games
|
// Ignore default setting in HE60-71 games
|
||||||
|
|
|
@ -386,7 +386,7 @@ void SimonEngine::saveUserGame(int slot) {
|
||||||
}
|
}
|
||||||
if (_keyPressed == 10 || _keyPressed == 13) {
|
if (_keyPressed == 10 || _keyPressed == 13) {
|
||||||
if (!saveGame(readVariable(55), name))
|
if (!saveGame(readVariable(55), name))
|
||||||
_variableArray[55] = 0xFFFF;
|
_variableArray[55] = (int16)0xFFFF;
|
||||||
else
|
else
|
||||||
_variableArray[55] = 0;
|
_variableArray[55] = 0;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -172,8 +172,8 @@ NewFontData* bdf_read_font(Common::SeekableReadStream &fp) {
|
||||||
|
|
||||||
/* read bdf font header information, return 0 on error*/
|
/* read bdf font header information, return 0 on error*/
|
||||||
int bdf_read_header(Common::SeekableReadStream &fp, NewFontData* pf) {
|
int bdf_read_header(Common::SeekableReadStream &fp, NewFontData* pf) {
|
||||||
int encoding;
|
int encoding = 0;
|
||||||
int nchars, maxwidth;
|
int nchars = 0, maxwidth;
|
||||||
int firstchar = 65535;
|
int firstchar = 65535;
|
||||||
int lastchar = -1;
|
int lastchar = -1;
|
||||||
char buf[256];
|
char buf[256];
|
||||||
|
@ -308,8 +308,8 @@ int bdf_read_header(Common::SeekableReadStream &fp, NewFontData* pf) {
|
||||||
int bdf_read_bitmaps(Common::SeekableReadStream &fp, NewFontData* pf) {
|
int bdf_read_bitmaps(Common::SeekableReadStream &fp, NewFontData* pf) {
|
||||||
long ofs = 0;
|
long ofs = 0;
|
||||||
int maxwidth = 0;
|
int maxwidth = 0;
|
||||||
int i, k, encoding, width;
|
int i, k, encoding = 0, width = 0;
|
||||||
int bbw, bbh, bbx, bby;
|
int bbw, bbh = 0, bbx = 0, bby = 0;
|
||||||
int proportional = 0;
|
int proportional = 0;
|
||||||
int encodetable = 0;
|
int encodetable = 0;
|
||||||
long l;
|
long l;
|
||||||
|
@ -627,7 +627,7 @@ NewFont *NewFont::loadFromCache(Common::SeekableReadStream &stream) {
|
||||||
data->bits[i] = stream.readUint16BE();
|
data->bits[i] = stream.readUint16BE();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool hasOffsetTable = stream.readByte();
|
bool hasOffsetTable = (stream.readByte() != 0);
|
||||||
if (hasOffsetTable) {
|
if (hasOffsetTable) {
|
||||||
data->offset = (unsigned long*)malloc(sizeof(unsigned long)*data->size);
|
data->offset = (unsigned long*)malloc(sizeof(unsigned long)*data->size);
|
||||||
if (!data->offset) {
|
if (!data->offset) {
|
||||||
|
@ -641,7 +641,7 @@ NewFont *NewFont::loadFromCache(Common::SeekableReadStream &stream) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool hasWidthTable = stream.readByte();
|
bool hasWidthTable = (stream.readByte() != 0);
|
||||||
if (hasWidthTable) {
|
if (hasWidthTable) {
|
||||||
data->width = (unsigned char*)malloc(sizeof(unsigned char)*data->size);
|
data->width = (unsigned char*)malloc(sizeof(unsigned char)*data->size);
|
||||||
if (!data->width) {
|
if (!data->width) {
|
||||||
|
|
|
@ -31,6 +31,8 @@
|
||||||
#include "common/util.h"
|
#include "common/util.h"
|
||||||
#include "common/system.h"
|
#include "common/system.h"
|
||||||
|
|
||||||
|
DECLARE_SINGLETON(Audio::AudioCDManager);
|
||||||
|
|
||||||
namespace Audio {
|
namespace Audio {
|
||||||
|
|
||||||
struct TrackFormat {
|
struct TrackFormat {
|
||||||
|
@ -61,8 +63,6 @@ static const TrackFormat TRACK_FORMATS[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
DECLARE_SINGLETON(AudioCDManager);
|
|
||||||
|
|
||||||
AudioCDManager::AudioCDManager() {
|
AudioCDManager::AudioCDManager() {
|
||||||
memset(&_cd, 0, sizeof(_cd));
|
memset(&_cd, 0, sizeof(_cd));
|
||||||
memset(_cachedTracks, 0, sizeof(_cachedTracks));
|
memset(_cachedTracks, 0, sizeof(_cachedTracks));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue