Now i need fix messegeboxes

This commit is contained in:
DepressedTWM 2026-05-20 11:35:44 +04:00
parent 2ebe78a1bd
commit 3f0e19c4df
9 changed files with 12 additions and 24 deletions

View file

@ -29,8 +29,7 @@
#endif
#include <SDL3/SDL.h>
namespace syswm {
}
namespace syswm {}
#define NIKO_X (320 - 16)
#define NIKO_Y ((13 * 16) * 2)

View file

@ -57,7 +57,6 @@ struct ALDataSource{
ALDataSource *createSDLSource(SDL_IOStream &ops, const char *extension, uint32_t maxBufSize, bool looped);
ALDataSource *createVorbisSource(SDL_IOStream &ops,
bool looped);
ALDataSource *createVorbisSource(SDL_IOStream &ops, bool looped);
#endif // ALDATASOURCE_H

View file

@ -33,8 +33,7 @@
#include <SDL3/SDL_thread.h>
#include <SDL3/SDL_timer.h>
ALStream::ALStream(LoopMode loopMode,
const std::string &threadId)
ALStream::ALStream(LoopMode loopMode, const std::string &threadId)
: looped(loopMode == Looped),
state(Closed),
source(0),

View file

@ -85,8 +85,7 @@ struct ALStream{
NotLooped
};
ALStream(LoopMode loopMode,
const std::string &threadId);
ALStream(LoopMode loopMode, const std::string &threadId);
~ALStream();
void close();

View file

@ -36,8 +36,7 @@ struct SDL_Surface;
struct BitmapPrivate;
// FIXME make this class use proper RGSS classes again
class Bitmap : public Disposable
{
class Bitmap : public Disposable{
public:
Bitmap(const char *filename);
Bitmap(int width, int height);
@ -84,8 +83,7 @@ public:
void hueChange(int hue);
enum TextAlign
{
enum TextAlign{
Left = 0,
Center = 1,
Right = 2

View file

@ -377,8 +377,7 @@ struct CacheEnumData{
}
};
static PHYSFS_EnumerateCallbackResult
cacheEnumCB(void *d, const char *origdir, const char *fname){
static PHYSFS_EnumerateCallbackResult cacheEnumCB(void *d, const char *origdir, const char *fname){
CacheEnumData &data = *static_cast<CacheEnumData*>(d);
char fullPath[512];
@ -433,8 +432,7 @@ struct FontSetsCBData{
SharedFontState *sfs;
};
static PHYSFS_EnumerateCallbackResult
fontSetEnumCB (void *data, const char *dir, const char *fname){
static PHYSFS_EnumerateCallbackResult fontSetEnumCB (void *data, const char *dir, const char *fname){
FontSetsCBData *d = static_cast<FontSetsCBData*>(data);
/* Only consider filenames with font extensions */

View file

@ -53,12 +53,10 @@ public:
virtual bool tryRead(SDL_IOStream* &ops, const char *ext) = 0;
};
void openRead(OpenHandler &handler,
const char *filename);
void openRead(OpenHandler &handler, const char *filename);
/* Circumvents extension supplementing */
void openReadRaw(SDL_IOStream* &ops,
const char *filename);
void openReadRaw(SDL_IOStream* &ops, const char *filename);
//bool freeOnClose = false);
/* Does not perform extension supplementing */

View file

@ -382,8 +382,7 @@ int main(int argc, char *argv[]){
if (!rtData.rgssErrorMsg.empty()){
Debug() << rtData.rgssErrorMsg;
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, conf.windowTitle.c_str(),
rtData.rgssErrorMsg.c_str(), win);
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, conf.windowTitle.c_str(), rtData.rgssErrorMsg.c_str(), win);
}
/* Clean up any remainin events */

View file

@ -120,8 +120,7 @@ private:
class SDLRWStream{
public:
SDLRWStream(const char *filename,
const char *mode)
SDLRWStream(const char *filename, const char *mode)
: ops(SDL_IOFromFile(filename, mode)),
buf(ops),
s(&buf)