diff options
| -rw-r--r-- | engines/sci/detection.cpp | 34 | ||||
| -rw-r--r-- | engines/sci/engine/game.cpp | 4 | ||||
| -rw-r--r-- | engines/sci/engine/kernel.cpp | 2 | ||||
| -rw-r--r-- | engines/sci/engine/ksound.cpp | 2 | ||||
| -rw-r--r-- | engines/sci/engine/savegame.cpp | 2 | ||||
| -rw-r--r-- | engines/sci/engine/script.cpp | 2 | ||||
| -rw-r--r-- | engines/sci/gfx/gfx_resmgr.cpp | 4 | ||||
| -rw-r--r-- | engines/sci/resource.cpp | 4 | ||||
| -rw-r--r-- | engines/sci/sci.h | 2 | 
9 files changed, 28 insertions, 28 deletions
| diff --git a/engines/sci/detection.cpp b/engines/sci/detection.cpp index 9e73435977..f86810e6b9 100644 --- a/engines/sci/detection.cpp +++ b/engines/sci/detection.cpp @@ -949,8 +949,8 @@ static const struct SciGameDescription SciGameDescriptions[] = {  		{"resource.004", 0, "9ae2a13708d691cd42f9129173c4b39d", 820443},  		{NULL, 0, NULL, 0}}, Common::EN_ANY, Common::kPlatformAmiga, 0, GUIO_NOSPEECH},  		0, -		SCI_VERSION_01, -		SCI_VERSION_01 +		SCI_VERSION_01_EGA, +		SCI_VERSION_01_EGA  	},  	// King's Quest 1 SCI Remake - English DOS Non-Interactive Demo @@ -2066,8 +2066,8 @@ static const struct SciGameDescription SciGameDescriptions[] = {  		{"resource.001", 0, "9e33566515b18bee7915db448063bba2", 871853},  		{NULL, 0, NULL, 0}}, Common::EN_ANY, Common::kPlatformPC, ADGF_DEMO, GUIO_NOSPEECH},  		0, -		SCI_VERSION_01, -		SCI_VERSION_01 +		SCI_VERSION_01_EGA, +		SCI_VERSION_01_EGA  	},  	// Mixed-Up Fairy Tales v1.000 - English DOS (supplied by markcoolio in bug report #2723791) @@ -2081,8 +2081,8 @@ static const struct SciGameDescription SciGameDescriptions[] = {  		{"resource.004", 0, "f79daa70390d73746742ffcfc3dc4471", 937580},  		{NULL, 0, NULL, 0}}, Common::EN_ANY, Common::kPlatformPC, 0, GUIO_NOSPEECH},  		0, -		SCI_VERSION_01, -		SCI_VERSION_01 +		SCI_VERSION_01_EGA, +		SCI_VERSION_01_EGA  	},  	// Mixed-Up Fairy Tales - English DOS Floppy (from jvprat) @@ -2095,8 +2095,8 @@ static const struct SciGameDescription SciGameDescriptions[] = {  		{"resource.003", 0, "dd6cef0c592eadb7e6be9a25307c57a2", 1344719},  		{NULL, 0, NULL, 0}}, Common::EN_ANY, Common::kPlatformPC, 0, GUIO_NOSPEECH},  		0, -		SCI_VERSION_01, -		SCI_VERSION_01 +		SCI_VERSION_01_EGA, +		SCI_VERSION_01_EGA  	},  	// Mixed-Up Mother Goose - English Amiga (from www.back2roots.org) @@ -2108,8 +2108,8 @@ static const struct SciGameDescription SciGameDescriptions[] = {  		{"resource.002", 0, "fb552ae550ca1dac19ed8f6a3767612d", 817191},  		{NULL, 0, NULL, 0}}, Common::EN_ANY, Common::kPlatformAmiga, 0, GUIO_NOSPEECH},  		0, -		SCI_VERSION_01, -		SCI_VERSION_01 +		SCI_VERSION_01_EGA, +		SCI_VERSION_01_EGA  	},  	// Mixed-Up Mother Goose v2.000 - English DOS Floppy (supplied by markcoolio in bug report #2723795) @@ -2119,8 +2119,8 @@ static const struct SciGameDescription SciGameDescriptions[] = {  		{"resource.000", 0, "b7ecd8ae9e254e80310b5a668b276e6e", 2948975},  		{NULL, 0, NULL, 0}}, Common::EN_ANY, Common::kPlatformPC, 0, GUIO_NOSPEECH},  		0, -		SCI_VERSION_01, -		SCI_VERSION_01 +		SCI_VERSION_01_EGA, +		SCI_VERSION_01_EGA  	},  	// Mixed-Up Mother Goose - English DOS CD (from jvprat) @@ -2520,7 +2520,7 @@ static const struct SciGameDescription SciGameDescriptions[] = {  		{NULL, 0, NULL, 0}}, Common::JA_JPN, Common::kPlatformPC98, 0, GUIO_NOSPEECH},  		0,  		SCI_VERSION_AUTODETECT, -		SCI_VERSION_01 +		SCI_VERSION_01_EGA  	},  	// Quest for Glory 1 - Japanese PC-98 5.25" Floppy @@ -2533,7 +2533,7 @@ static const struct SciGameDescription SciGameDescriptions[] = {  		{NULL, 0, NULL, 0}}, Common::JA_JPN, Common::kPlatformPC98, 0, GUIO_NOSPEECH},  		0,  		SCI_VERSION_AUTODETECT, -		SCI_VERSION_01 +		SCI_VERSION_01_EGA  	},  	// Quest for Glory 1 - English Amiga @@ -2606,7 +2606,7 @@ static const struct SciGameDescription SciGameDescriptions[] = {  		{NULL, 0, NULL, 0}}, Common::EN_ANY, Common::kPlatformAmiga, 0, GUIO_NOSPEECH},  		0,  		SCI_VERSION_AUTODETECT, -		SCI_VERSION_01 +		SCI_VERSION_01_EGA  	},  	// Quest for Glory 2 - English (from FRG) @@ -2621,7 +2621,7 @@ static const struct SciGameDescription SciGameDescriptions[] = {  		{NULL, 0, NULL, 0}}, Common::EN_ANY, Common::kPlatformPC, 0, GUIO_NOSPEECH},  		0,  		SCI_VERSION_AUTODETECT, -		SCI_VERSION_01 +		SCI_VERSION_01_EGA  	},  	// Quest for Glory 2 - English DOS @@ -2639,7 +2639,7 @@ static const struct SciGameDescription SciGameDescriptions[] = {  		{NULL, 0, NULL, 0}}, Common::EN_ANY, Common::kPlatformPC, 0, GUIO_NOSPEECH},  		0,  		SCI_VERSION_AUTODETECT, -		SCI_VERSION_01 +		SCI_VERSION_01_EGA  	},  	// Quest for Glory 3 - English DOS Non-Interactive Demo (from FRG) diff --git a/engines/sci/engine/game.cpp b/engines/sci/engine/game.cpp index a1e7569967..7eb4c6731a 100644 --- a/engines/sci/engine/game.cpp +++ b/engines/sci/engine/game.cpp @@ -43,7 +43,7 @@ int _reset_graphics_input(EngineState *s) {  	gfx_color_t transparent = { PaletteEntry(), 0, -1, -1, 0 };  	debug(2, "Initializing graphics"); -	if (s->resmgr->_sciVersion <= SCI_VERSION_01 || (s->_flags & GF_SCI1_EGA)) { +	if (s->resmgr->_sciVersion <= SCI_VERSION_01_EGA || (s->_flags & GF_SCI1_EGA)) {  		int i;  		for (i = 0; i < 16; i++) { @@ -181,7 +181,7 @@ static void _free_graphics_input(EngineState *s) {  }  int game_init_sound(EngineState *s, int sound_flags) { -	if (s->resmgr->_sciVersion >= SCI_VERSION_01) +	if (s->resmgr->_sciVersion >= SCI_VERSION_01_EGA)  		sound_flags |= SFX_STATE_FLAG_MULTIPLAY;  	s->sfx_init_flags = sound_flags; diff --git a/engines/sci/engine/kernel.cpp b/engines/sci/engine/kernel.cpp index e2e13aea27..80071b2847 100644 --- a/engines/sci/engine/kernel.cpp +++ b/engines/sci/engine/kernel.cpp @@ -832,7 +832,7 @@ bool Kernel::loadKernelNames() {  	switch (_resmgr->_sciVersion) {  	case SCI_VERSION_0: -	case SCI_VERSION_01: +	case SCI_VERSION_01_EGA:  	case SCI_VERSION_01_VGA:  	case SCI_VERSION_01_VGA_ODD:  	case SCI_VERSION_1: diff --git a/engines/sci/engine/ksound.cpp b/engines/sci/engine/ksound.cpp index f1584bf975..ef02f8ee21 100644 --- a/engines/sci/engine/ksound.cpp +++ b/engines/sci/engine/ksound.cpp @@ -154,7 +154,7 @@ void process_sound_events(EngineState *s) { /* Get all sound events, apply their  	SongHandle handle;  	int cue; -	if (s->_version >= SCI_VERSION_01) +	if (s->_version >= SCI_VERSION_01_EGA)  		return;  	/* SCI01 and later explicitly poll for everything */ diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp index bfff828745..ade0304683 100644 --- a/engines/sci/engine/savegame.cpp +++ b/engines/sci/engine/savegame.cpp @@ -693,7 +693,7 @@ int _reset_graphics_input(EngineState *s);  static void reconstruct_sounds(EngineState *s) {  	Song *seeker; -	SongIteratorType it_type = s->resmgr->_sciVersion >= SCI_VERSION_01 ? SCI_SONG_ITERATOR_TYPE_SCI1 : SCI_SONG_ITERATOR_TYPE_SCI0; +	SongIteratorType it_type = s->resmgr->_sciVersion >= SCI_VERSION_01_EGA ? SCI_SONG_ITERATOR_TYPE_SCI1 : SCI_SONG_ITERATOR_TYPE_SCI0;  	seeker = s->_sound._songlib._lib; diff --git a/engines/sci/engine/script.cpp b/engines/sci/engine/script.cpp index 2939c6a646..7db151148a 100644 --- a/engines/sci/engine/script.cpp +++ b/engines/sci/engine/script.cpp @@ -93,7 +93,7 @@ opcode_format g_opcode_formats[128][4] = {  void script_adjust_opcode_formats(int res_version) {  	switch (res_version) {  	case SCI_VERSION_0: -	case SCI_VERSION_01: +	case SCI_VERSION_01_EGA:  		break;  	case SCI_VERSION_01_VGA:  	case SCI_VERSION_01_VGA_ODD: diff --git a/engines/sci/gfx/gfx_resmgr.cpp b/engines/sci/gfx/gfx_resmgr.cpp index bece7b234d..523a1e6ac4 100644 --- a/engines/sci/gfx/gfx_resmgr.cpp +++ b/engines/sci/gfx/gfx_resmgr.cpp @@ -530,9 +530,9 @@ gfxr_view_t *GfxResManager::getView(int nr, int *loop, int *cel, int palette) {  		int resid = GFXR_RES_ID(GFX_RESOURCE_TYPE_VIEW, nr); -		if (_version < SCI_VERSION_01) +		if (_version < SCI_VERSION_01_EGA)  			view = gfxr_draw_view0(resid, viewRes->data, viewRes->size, -1); -		else if (_version == SCI_VERSION_01 || !_isVGA) +		else if (_version == SCI_VERSION_01_EGA || !_isVGA)  			view = gfxr_draw_view0(resid, viewRes->data, viewRes->size, palette);  		else if (_version >= SCI_VERSION_01_VGA && _version <= SCI_VERSION_1)  			view = gfxr_draw_view1(resid, viewRes->data, viewRes->size, _staticPalette, false); diff --git a/engines/sci/resource.cpp b/engines/sci/resource.cpp index 121def5949..15e05ea656 100644 --- a/engines/sci/resource.cpp +++ b/engines/sci/resource.cpp @@ -499,7 +499,7 @@ ResourceManager::ResourceManager(int version, int maxMemory) {  			} else if (testResource(ResourceId(kResourceTypeVocab, VOCAB_RESOURCE_SCI1_MAIN_VOCAB))) {  				version = guessSciVersion();  				if (version != SCI_VERSION_01_VGA) { -					version = testResource(ResourceId(kResourceTypeVocab, 912)) ? SCI_VERSION_0 : SCI_VERSION_01; +					version = testResource(ResourceId(kResourceTypeVocab, 912)) ? SCI_VERSION_0 : SCI_VERSION_01_EGA;  				}  			} else {  				version = guessSciVersion() ? SCI_VERSION_01_VGA : SCI_VERSION_0; @@ -525,7 +525,7 @@ ResourceManager::ResourceManager(int version, int maxMemory) {  	case SCI_VERSION_0:  		debug("Resmgr: Detected SCI0");  		break; -	case SCI_VERSION_01: +	case SCI_VERSION_01_EGA:  		debug("Resmgr: Detected SCI01");  		break;  	case SCI_VERSION_01_VGA: diff --git a/engines/sci/sci.h b/engines/sci/sci.h index 1fa9221fa7..4404165c53 100644 --- a/engines/sci/sci.h +++ b/engines/sci/sci.h @@ -71,7 +71,7 @@ struct SciGameDescription {  enum SciGameVersions {  	SCI_VERSION_AUTODETECT = 0,  	SCI_VERSION_0 = 1, -	SCI_VERSION_01 = 2, +	SCI_VERSION_01_EGA = 2,  	SCI_VERSION_01_VGA = 3,  	SCI_VERSION_01_VGA_ODD = 4,  	SCI_VERSION_1 = 5, | 
