2018-05-15 02:27:25 +02:00
|
|
|
/*
|
2019-08-03 19:43:48 +02:00
|
|
|
* This software is licensed under the terms of the MIT License.
|
2018-05-15 02:27:25 +02:00
|
|
|
* See COPYING for further information.
|
|
|
|
* ---
|
2024-05-16 23:30:41 +02:00
|
|
|
* Copyright (c) 2011-2024, Lukas Weber <laochailan@web.de>.
|
|
|
|
* Copyright (c) 2012-2024, Andrei Alexeyev <akari@taisei-project.org>.
|
2018-05-15 02:27:25 +02:00
|
|
|
*/
|
|
|
|
|
2021-08-12 23:09:01 +02:00
|
|
|
#pragma once
|
2018-05-15 02:27:25 +02:00
|
|
|
#include "taisei.h"
|
|
|
|
|
|
|
|
#include <SDL.h>
|
2019-03-18 05:41:12 +01:00
|
|
|
#include <stdio.h>
|
2018-05-15 02:27:25 +02:00
|
|
|
|
2020-08-15 13:51:12 +02:00
|
|
|
char *SDL_RWgets(SDL_RWops *rwops, char *buf, size_t bufsize) attr_nonnull_all;
|
|
|
|
char *SDL_RWgets_realloc(SDL_RWops *rwops, char **buf, size_t *bufsize) attr_nonnull_all;
|
|
|
|
size_t SDL_RWprintf(SDL_RWops *rwops, const char* fmt, ...) attr_printf(2, 3) attr_nonnull_all;
|
|
|
|
void *SDL_RWreadAll(SDL_RWops *rwops, size_t *out_size, size_t max_size) attr_nonnull_all;
|
2022-07-12 00:31:47 +02:00
|
|
|
void SDL_RWsync(SDL_RWops *rwops);
|
2018-05-15 02:27:25 +02:00
|
|
|
|
|
|
|
// This is for the very few legitimate uses for printf/fprintf that shouldn't be replaced with log_*
|
|
|
|
void tsfprintf(FILE *out, const char *restrict fmt, ...) attr_printf(2, 3);
|
|
|
|
|
2020-08-15 13:51:12 +02:00
|
|
|
char *try_path(const char *prefix, const char *name, const char *ext);
|