- Preparant la nova API

This commit is contained in:
2025-06-30 14:03:42 +02:00
parent becc33b88c
commit 28f4da9b26
16 changed files with 601 additions and 607 deletions

View File

@@ -99,14 +99,14 @@ namespace gamestate
} else if (command=="PLAYMUSIC") {
fscanf(sequence_file, " '%[^']'", text);
JA_LoadAndPlayMusic(text);
audio::loadAndPlayMusic(text);
} else if (command=="FADEOUT") {
draw::fadeout();
} else if (command=="FADEOUTMUSIC") {
draw::fadeout();
JA_FadeOutMusic(250);
audio::fadeOutMusic();
} else if (command=="END") {
fclose(sequence_file);
@@ -125,7 +125,7 @@ namespace gamestate
void drawPic(std::string filename)
{
draw::surface *pic = draw::loadSurface(filename, true);
draw::surface *pic = draw::loadSurface(filename.c_str(), true);
draw::draw(pic);
draw::freeSurface(pic);
}