chore: fopen_s for building on linux

This commit is contained in:
2025-11-14 09:18:10 +13:00
parent 601f6640dc
commit 4380b92516
5 changed files with 18 additions and 16 deletions

View File

@@ -10,20 +10,20 @@ Collapsed=0
[Window][DockSpaceHost]
Pos=0,0
Size=800,600
Size=1280,720
Collapsed=0
[Window][Left Panel]
Pos=8,31
Size=359,561
Pos=292,567
Size=980,145
Collapsed=0
DockId=0x00000001,0
DockId=0x00000002,0
[Window][Right Panel]
Pos=403,31
Size=389,561
Pos=8,27
Size=282,685
Collapsed=0
DockId=0x00000004,0
DockId=0x00000003,0
[Window][##TOAST2]
Pos=548,314
@@ -56,9 +56,9 @@ Size=232,82
Collapsed=0
[Docking][Data]
DockSpace ID=0x9076BACA Window=0x34F970D7 Pos=8,31 Size=784,561 Split=X
DockNode ID=0x00000003 Parent=0x9076BACA SizeRef=393,561 Split=X
DockNode ID=0x00000001 Parent=0x00000003 SizeRef=389,561 Selected=0x995FC207
DockNode ID=0x00000002 Parent=0x00000003 SizeRef=393,561 CentralNode=1
DockNode ID=0x00000004 Parent=0x9076BACA SizeRef=389,561 Selected=0x6D1308E5
DockSpace ID=0x9076BACA Window=0x34F970D7 Pos=8,27 Size=1264,685 Split=X Selected=0x6D1308E5
DockNode ID=0x00000003 Parent=0x9076BACA SizeRef=282,685 Selected=0x6D1308E5
DockNode ID=0x00000004 Parent=0x9076BACA SizeRef=980,685 Split=Y
DockNode ID=0x00000001 Parent=0x00000004 SizeRef=1264,538 CentralNode=1 Selected=0x6D1308E5
DockNode ID=0x00000002 Parent=0x00000004 SizeRef=1264,145 Selected=0x995FC207

View File

@@ -19,8 +19,8 @@ private:
FILE* logFile;
GuiManager guiManager;
static const int WINDOW_WIDTH = 800;
static const int WINDOW_HEIGHT = 600;
static const int WINDOW_WIDTH = 1280;
static const int WINDOW_HEIGHT = 720;
static const int TARGET_FPS = 60;
static const char* WINDOW_TITLE;
static const char* SCRIPT_FILE;

View File

@@ -489,7 +489,7 @@ namespace ImGui
float height = 0.f;
for (int i = 0; i < notifications.size();)
for (size_t i = 0; i < notifications.size();)
{
ImGuiToast *currentToast = &notifications[i];

View File

@@ -13,4 +13,4 @@ int main() {
app.Shutdown();
return 0;
}
}

View File

@@ -11,6 +11,8 @@
#include "gui/ImGuiNotify.hpp"
#include "GuiManager.h"
#endif
#define fopen_s(pFile, filename, mode) ((*(pFile) = fopen((filename), (mode))) == NULL)
const char *Application::WINDOW_TITLE = "Raylib + AngelScript";
const char *Application::SCRIPT_FILE = "scripts/test.as";