mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-22 05:59:10 +00:00
(svn r22913) -Fix [OSX]: make splash work again and make it work without needing to bundle it first
This commit is contained in:
@@ -253,6 +253,9 @@ $(BIN_DIR)/$(TTD): $(TTD)
|
|||||||
ifeq ($(OS), UNIX)
|
ifeq ($(OS), UNIX)
|
||||||
$(Q)cp $(MEDIA_DIR)/openttd.32.bmp $(BIN_DIR)/data/
|
$(Q)cp $(MEDIA_DIR)/openttd.32.bmp $(BIN_DIR)/data/
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(OS), OSX)
|
||||||
|
$(Q)cp $(ROOT_DIR)/os/macosx/splash.png $(BIN_DIR)/data/
|
||||||
|
endif
|
||||||
|
|
||||||
$(TTD): $(OBJS) $(CONFIG_CACHE_LINKER)
|
$(TTD): $(OBJS) $(CONFIG_CACHE_LINKER)
|
||||||
$(E) '$(STAGE) Linking $@'
|
$(E) '$(STAGE) Linking $@'
|
||||||
|
@@ -51,7 +51,7 @@ static void PNGAPI png_my_warning(png_structp png_ptr, png_const_charp message)
|
|||||||
*/
|
*/
|
||||||
void DisplaySplashImage()
|
void DisplaySplashImage()
|
||||||
{
|
{
|
||||||
FILE *f = FioFOpenFile(SPLASH_IMAGE_FILE, "r", BASE_DIR);
|
FILE *f = FioFOpenFile(SPLASH_IMAGE_FILE, "r", BASESET_DIR);
|
||||||
if (f == NULL) return;
|
if (f == NULL) return;
|
||||||
|
|
||||||
png_byte header[8];
|
png_byte header[8];
|
||||||
|
@@ -14,14 +14,6 @@
|
|||||||
|
|
||||||
#define SPLASH_IMAGE_FILE "splash.png"
|
#define SPLASH_IMAGE_FILE "splash.png"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif //__cplusplus
|
|
||||||
|
|
||||||
void DisplaySplashImage();
|
void DisplaySplashImage();
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif //__cplusplus
|
|
||||||
|
|
||||||
#endif /* SPLASH_H */
|
#endif /* SPLASH_H */
|
||||||
|
Reference in New Issue
Block a user