void fTemp_Test(string sRaceGender)
{
resourece rCutscene = R"this_cutscene_is_for_" + sRaceGender + "_you_see.cut";
CS_LoadCutscene(rCutscene);
}
Modifié par JackFuzz, 25 février 2010 - 10:25 .
Modifié par JackFuzz, 25 février 2010 - 10:25 .
thebigMuh wrote...
AFAIK there is currently no function that generates a resource out of a string at runtime.
R is a macro and as such gets resolved during compilation.
Ciao, muh!
Modifié par JackFuzz, 25 février 2010 - 06:21 .
I dare you to find me one programmer who has kept this promiseJackFuzz wrote...
...I promised myself years ago that I would never write sloppy code. *sigh*
Modifié par Challseus, 25 février 2010 - 06:29 .
Challseus wrote...
I dare you to find me one programmer who has kept this promiseJackFuzz wrote...
...I promised myself years ago that I would never write sloppy code. *sigh*
CID-78 wrote...
can't you use a .Get2MDAResource() for that and keep the list in a .2da instead of in the code.
Modifié par JackFuzz, 25 février 2010 - 08:30 .
CID-78 wrote...
well you can switch .2da the same way that you would build the resource. but your right that the logic must be there, like it would if you had a StringToResource() function.