Cleanup credits.h

This commit is contained in:
Alexander Batalov 2022-06-18 16:05:07 +03:00
parent fac4d57b3d
commit 8cce0db5bb
2 changed files with 13 additions and 19 deletions

View File

@ -4,6 +4,7 @@
#include "color.h" #include "color.h"
#include "core.h" #include "core.h"
#include "cycle.h" #include "cycle.h"
#include "db.h"
#include "debug.h" #include "debug.h"
#include "draw.h" #include "draw.h"
#include "game_mouse.h" #include "game_mouse.h"
@ -17,20 +18,26 @@
#include <string.h> #include <string.h>
#define CREDITS_WINDOW_WIDTH (640)
#define CREDITS_WINDOW_HEIGHT (480)
#define CREDITS_WINDOW_SCROLLING_DELAY (38)
static bool creditsFileParseNextLine(char* dest, int* font, int* color);
// 0x56D740 // 0x56D740
File* gCreditsFile; static File* gCreditsFile;
// 0x56D744 // 0x56D744
int gCreditsWindowNameColor; static int gCreditsWindowNameColor;
// 0x56D748 // 0x56D748
int gCreditsWindowTitleFont; static int gCreditsWindowTitleFont;
// 0x56D74C // 0x56D74C
int gCreditsWindowNameFont; static int gCreditsWindowNameFont;
// 0x56D750 // 0x56D750
int gCreditsWindowTitleColor; static int gCreditsWindowTitleColor;
// 0x42C860 // 0x42C860
void creditsOpen(const char* filePath, int backgroundFid, bool useReversedStyle) void creditsOpen(const char* filePath, int backgroundFid, bool useReversedStyle)
@ -239,7 +246,7 @@ void creditsOpen(const char* filePath, int backgroundFid, bool useReversedStyle)
} }
// 0x42CE6C // 0x42CE6C
bool creditsFileParseNextLine(char* dest, int* font, int* color) static bool creditsFileParseNextLine(char* dest, int* font, int* color)
{ {
char string[256]; char string[256];
while (fileReadString(string, 256, gCreditsFile)) { while (fileReadString(string, 256, gCreditsFile)) {

View File

@ -1,19 +1,6 @@
#ifndef CREDITS_H #ifndef CREDITS_H
#define CREDITS_H #define CREDITS_H
#include "db.h"
#define CREDITS_WINDOW_WIDTH (640)
#define CREDITS_WINDOW_HEIGHT (480)
#define CREDITS_WINDOW_SCROLLING_DELAY (38)
extern File* gCreditsFile;
extern int gCreditsWindowNameColor;
extern int gCreditsWindowTitleFont;
extern int gCreditsWindowNameFont;
extern int gCreditsWindowTitleColor;
void creditsOpen(const char* path, int fid, bool useReversedStyle); void creditsOpen(const char* path, int fid, bool useReversedStyle);
bool creditsFileParseNextLine(char* dest, int* font, int* color);
#endif /* CREDITS_H */ #endif /* CREDITS_H */