mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-01 08:23:15 +00:00
use features so ihnm doesn't default to 1280x960, change over some of the timer stuff to osystem not yet finished
svn-id: r13728
This commit is contained in:
parent
6722103aa8
commit
64485a9314
@ -173,6 +173,7 @@ R_GAMEDESC GameDescs[] = {
|
|||||||
ARRAYSIZE(ITEDEMO_GameFonts),
|
ARRAYSIZE(ITEDEMO_GameFonts),
|
||||||
ITEDEMO_GameFonts,
|
ITEDEMO_GameFonts,
|
||||||
&ITEDEMO_GameSound,
|
&ITEDEMO_GameSound,
|
||||||
|
0,
|
||||||
0 // Game supported flag
|
0 // Game supported flag
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -191,6 +192,7 @@ R_GAMEDESC GameDescs[] = {
|
|||||||
ARRAYSIZE(ITECD_GameFonts),
|
ARRAYSIZE(ITECD_GameFonts),
|
||||||
ITECD_GameFonts,
|
ITECD_GameFonts,
|
||||||
&ITECD_GameSound,
|
&ITECD_GameSound,
|
||||||
|
0,
|
||||||
0
|
0
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -210,6 +212,7 @@ R_GAMEDESC GameDescs[] = {
|
|||||||
ARRAYSIZE(ITECD_GameFonts),
|
ARRAYSIZE(ITECD_GameFonts),
|
||||||
ITECD_GameFonts,
|
ITECD_GameFonts,
|
||||||
&ITECD_GameSound,
|
&ITECD_GameSound,
|
||||||
|
0,
|
||||||
1
|
1
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -228,6 +231,7 @@ R_GAMEDESC GameDescs[] = {
|
|||||||
ARRAYSIZE(ITEDISK_GameFonts),
|
ARRAYSIZE(ITEDISK_GameFonts),
|
||||||
ITEDISK_GameFonts,
|
ITEDISK_GameFonts,
|
||||||
&ITE_GameSound,
|
&ITE_GameSound,
|
||||||
|
0,
|
||||||
1
|
1
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -246,6 +250,7 @@ R_GAMEDESC GameDescs[] = {
|
|||||||
0,
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
&IHNM_GameSound,
|
&IHNM_GameSound,
|
||||||
|
GF_DEFAULT_TO_1X_SCALER,
|
||||||
0
|
0
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -257,19 +262,14 @@ R_GAMEDESC GameDescs[] = {
|
|||||||
"I Have No Mouth and I Must Scream (DOS)",
|
"I Have No Mouth and I Must Scream (DOS)",
|
||||||
640, 480,
|
640, 480,
|
||||||
304,
|
304,
|
||||||
|
|
||||||
1,
|
1,
|
||||||
|
|
||||||
&IHNM_Resources,
|
&IHNM_Resources,
|
||||||
|
|
||||||
ARRAYSIZE(IHNMCD_GameFiles),
|
ARRAYSIZE(IHNMCD_GameFiles),
|
||||||
IHNMCD_GameFiles,
|
IHNMCD_GameFiles,
|
||||||
|
|
||||||
ARRAYSIZE(IHNMCD_GameFonts),
|
ARRAYSIZE(IHNMCD_GameFonts),
|
||||||
IHNMCD_GameFonts,
|
IHNMCD_GameFonts,
|
||||||
|
|
||||||
&IHNM_GameSound,
|
&IHNM_GameSound,
|
||||||
|
GF_DEFAULT_TO_1X_SCALER,
|
||||||
1
|
1
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -60,10 +60,11 @@ struct R_GAMEDESC {
|
|||||||
int gd_fontct;
|
int gd_fontct;
|
||||||
R_GAME_FONTDESC *gd_fontdescs;
|
R_GAME_FONTDESC *gd_fontdescs;
|
||||||
R_GAME_SOUNDINFO *gd_soundinfo;
|
R_GAME_SOUNDINFO *gd_soundinfo;
|
||||||
|
uint32 features;
|
||||||
int gd_supported;
|
int gd_supported;
|
||||||
|
|
||||||
GameSettings toGameSettings() const {
|
GameSettings toGameSettings() const {
|
||||||
GameSettings dummy = { name, gd_title, gd_game_id };
|
GameSettings dummy = { name, gd_title, features };
|
||||||
return dummy;
|
return dummy;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -53,7 +53,7 @@ int SYSTIMER_InitMSCounter() {
|
|||||||
return R_FAILURE;
|
return R_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
R_TimerData.t_previous_ticks = SDL_GetTicks();
|
R_TimerData.t_previous_ticks = g_system->get_msecs();
|
||||||
R_TimerData.initialized = 1;
|
R_TimerData.initialized = 1;
|
||||||
|
|
||||||
return R_SUCCESS;
|
return R_SUCCESS;
|
||||||
@ -66,7 +66,7 @@ unsigned long SYSTIMER_ReadMSCounter() {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
R_TimerData.t_current_ticks = SDL_GetTicks();
|
R_TimerData.t_current_ticks = g_system->get_msecs();
|
||||||
|
|
||||||
if (R_TimerData.t_current_ticks < R_TimerData.t_previous_ticks) {
|
if (R_TimerData.t_current_ticks < R_TimerData.t_previous_ticks) {
|
||||||
// Timer has rolled over after 49 days
|
// Timer has rolled over after 49 days
|
||||||
@ -83,13 +83,13 @@ int SYSTIMER_ResetMSCounter() {
|
|||||||
return R_FAILURE;
|
return R_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
R_TimerData.t_previous_ticks = SDL_GetTicks();
|
R_TimerData.t_previous_ticks = g_system->get_msecs();
|
||||||
|
|
||||||
return R_SUCCESS;
|
return R_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
int SYSTIMER_Sleep(uint16 msec) {
|
int SYSTIMER_Sleep(uint16 msec) {
|
||||||
SDL_Delay(msec);
|
g_system->delay_msecs(msec);
|
||||||
|
|
||||||
return R_SUCCESS;
|
return R_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user