mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-26 02:12:27 +01:00
repair the include reordering
The previous pass dropped imports into the middle of HR_RETURN's line continuations, breaking nvrenderer_d3d12.cpp, and its scan gave up on the first line of any file with a BOM - which is why nvtexture.cpp still had five includes sitting after its imports. Rewritten to skip macro continuations, tolerate a BOM, and insert only immediately before the first import.
This commit is contained in:
@@ -11,20 +11,20 @@
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <fmt/format.h>
|
||||
#include "utilities/utilities_macros.h"
|
||||
#include "nvrendererbackend.h"
|
||||
#include "stbi/stb_image.h"
|
||||
#include "stbi/stb_image_resize2.h"
|
||||
import eu07.utilities.globals;
|
||||
import eu07.scripting.pyint;
|
||||
import eu07.application.application;
|
||||
import eu07.utilities.dictionary;
|
||||
#include <fmt/format.h>
|
||||
#include "utilities/utilities_macros.h"
|
||||
import eu07.utilities.utilities;
|
||||
|
||||
import eu07.utilities.logs;
|
||||
// #include "Texture.h"
|
||||
#include "nvrendererbackend.h"
|
||||
#include "stbi/stb_image.h"
|
||||
#define STB_IMAGE_RESIZE2_IMPLEMENTATION
|
||||
#include "stbi/stb_image_resize2.h"
|
||||
import eu07.model.texture;
|
||||
#undef STB_IMAGE_RESIZE2_IMPLEMENTATION
|
||||
|
||||
|
||||
Reference in New Issue
Block a user