forked from Mirrors/openclonk
36 lines
1002 B
C
36 lines
1002 B
C
/**
|
|
Legacy.c
|
|
Contains legacy code that will be removed after some time.
|
|
|
|
@author Marky
|
|
*/
|
|
|
|
static const VERSION_10_0_OC = "10.0";
|
|
|
|
/* -- Scenario stuff -- */
|
|
|
|
global func GainMissionAccess(string password)
|
|
{
|
|
LogLegacyWarning("GainMissionAccess", "GainScenarioAccess", VERSION_10_0_OC);
|
|
return GainScenarioAccess(password);
|
|
}
|
|
|
|
global func GetMissionAccess(string password)
|
|
{
|
|
LogLegacyWarning("GetMissionAccess", "GetScenarioAccess", VERSION_10_0_OC);
|
|
return GetScenarioAccess(password);
|
|
}
|
|
|
|
global func SetNextMission(string filename, string title, string description)
|
|
{
|
|
LogLegacyWarning("SetNextMission", "SetNextScenario", VERSION_10_0_OC);
|
|
return SetNextScenario(filename, title, description);
|
|
}
|
|
|
|
/* -- Internal helpers -- */
|
|
|
|
global func LogLegacyWarning(string function_name, string replacement_name, string version)
|
|
{
|
|
Log("WARNING: Do not use the legacy function \"%s\" anymore; use \"%s\" instead (complete removal is planned for \"%s\").", function_name, replacement_name, version);
|
|
}
|