mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-22 23:29:18 -05:00
Update rexm.c
This commit is contained in:
@ -660,7 +660,8 @@ int main(int argc, char *argv[])
|
|||||||
// we must store provided file paths because pointers will be overwriten
|
// we must store provided file paths because pointers will be overwriten
|
||||||
// TODO: It seems projects are added to solution BUT not to required solution folder,
|
// TODO: It seems projects are added to solution BUT not to required solution folder,
|
||||||
// that process still requires to be done manually
|
// that process still requires to be done manually
|
||||||
LOG("INFO: [%s] Adding project to raylib solution (.sln)\n", TextFormat("%s/../projects/VS2022/examples/%s.vcxproj", exBasePath, exName));
|
LOG("INFO: [%s] Adding project to raylib solution (.sln)\n",
|
||||||
|
TextFormat("%s/../projects/VS2022/examples/%s.vcxproj", exBasePath, exName));
|
||||||
AddVSProjectToSolution(exVSProjectSolutionFile,
|
AddVSProjectToSolution(exVSProjectSolutionFile,
|
||||||
TextFormat("%s/../projects/VS2022/examples/%s.vcxproj", exBasePath, exName), exCategory);
|
TextFormat("%s/../projects/VS2022/examples/%s.vcxproj", exBasePath, exName), exCategory);
|
||||||
//------------------------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------------------------
|
||||||
@ -2613,7 +2614,7 @@ static int AddVSProjectToSolution(const char *slnFile, const char *projFile, con
|
|||||||
int result = 0;
|
int result = 0;
|
||||||
|
|
||||||
// WARNING: Function uses extensively TextFormat(),
|
// WARNING: Function uses extensively TextFormat(),
|
||||||
// *projFile ptr will be overwriten after a while
|
// *projFile ptr could be overwriten after a while -> Use copied string
|
||||||
|
|
||||||
// Generate unique UUID
|
// Generate unique UUID
|
||||||
const char *uuid = GenerateUUIDv4();
|
const char *uuid = GenerateUUIDv4();
|
||||||
@ -2697,14 +2698,22 @@ static int AddVSProjectToSolution(const char *slnFile, const char *projFile, con
|
|||||||
|
|
||||||
// Add project folder line
|
// Add project folder line
|
||||||
// NOTE: Folder uuid depends on category
|
// NOTE: Folder uuid depends on category
|
||||||
if (strcmp(category, "core") == 0) offsetIndex += sprintf(slnTextUpdated + offsetIndex, TextFormat("\t\t{%s} = {6C82BAAE-BDDF-457D-8FA8-7E2490B07035}\n", uuid));
|
if (strcmp(category, "core") == 0) offsetIndex += sprintf(slnTextUpdated + offsetIndex,
|
||||||
else if (strcmp(category, "shapes") == 0) offsetIndex += sprintf(slnTextUpdated + offsetIndex, TextFormat("\t\t{%s} = {278D8859-20B1-428F-8448-064F46E1F021}\n", uuid));
|
TextFormat("\t\t{%s} = {6C82BAAE-BDDF-457D-8FA8-7E2490B07035}\n", uuid));
|
||||||
else if (strcmp(category, "textures") == 0) offsetIndex += sprintf(slnTextUpdated + offsetIndex, TextFormat("\t\t{%s} = {DA049009-21FF-4AC0-84E4-830DD1BCD0CE}\n", uuid));
|
else if (strcmp(category, "shapes") == 0) offsetIndex += sprintf(slnTextUpdated + offsetIndex,
|
||||||
else if (strcmp(category, "text") == 0) offsetIndex += sprintf(slnTextUpdated + offsetIndex, TextFormat("\t\t{%s} = {8D3C83B7-F1E0-4C2E-9E34-EE5F6AB2502A}\n", uuid));
|
TextFormat("\t\t{%s} = {278D8859-20B1-428F-8448-064F46E1F021}\n", uuid));
|
||||||
else if (strcmp(category, "models") == 0) offsetIndex += sprintf(slnTextUpdated + offsetIndex, TextFormat("\t\t{%s} = {AF5BEC5C-1F2B-4DA8-B12D-D09FE569237C}\n", uuid));
|
else if (strcmp(category, "textures") == 0) offsetIndex += sprintf(slnTextUpdated + offsetIndex,
|
||||||
else if (strcmp(category, "shaders") == 0) offsetIndex += sprintf(slnTextUpdated + offsetIndex, TextFormat("\t\t{%s} = {5317807F-61D4-4E0F-B6DC-2D9F12621ED9}\n", uuid));
|
TextFormat("\t\t{%s} = {DA049009-21FF-4AC0-84E4-830DD1BCD0CE}\n", uuid));
|
||||||
else if (strcmp(category, "audio") == 0) offsetIndex += sprintf(slnTextUpdated + offsetIndex, TextFormat("\t\t{%s} = {CC132A4D-D081-4C26-BFB9-AB11984054F8}\n", uuid));
|
else if (strcmp(category, "text") == 0) offsetIndex += sprintf(slnTextUpdated + offsetIndex,
|
||||||
else if (strcmp(category, "other") == 0) offsetIndex += sprintf(slnTextUpdated + offsetIndex, TextFormat("\t\t{%s} = {E9D708A5-9C1F-4B84-A795-C5F191801762}\n", uuid));
|
TextFormat("\t\t{%s} = {8D3C83B7-F1E0-4C2E-9E34-EE5F6AB2502A}\n", uuid));
|
||||||
|
else if (strcmp(category, "models") == 0) offsetIndex += sprintf(slnTextUpdated + offsetIndex,
|
||||||
|
TextFormat("\t\t{%s} = {AF5BEC5C-1F2B-4DA8-B12D-D09FE569237C}\n", uuid));
|
||||||
|
else if (strcmp(category, "shaders") == 0) offsetIndex += sprintf(slnTextUpdated + offsetIndex,
|
||||||
|
TextFormat("\t\t{%s} = {5317807F-61D4-4E0F-B6DC-2D9F12621ED9}\n", uuid));
|
||||||
|
else if (strcmp(category, "audio") == 0) offsetIndex += sprintf(slnTextUpdated + offsetIndex,
|
||||||
|
TextFormat("\t\t{%s} = {CC132A4D-D081-4C26-BFB9-AB11984054F8}\n", uuid));
|
||||||
|
else if (strcmp(category, "other") == 0) offsetIndex += sprintf(slnTextUpdated + offsetIndex,
|
||||||
|
TextFormat("\t\t{%s} = {E9D708A5-9C1F-4B84-A795-C5F191801762}\n", uuid));
|
||||||
else LOG("WARNING: Provided category is not valid: %s\n", category);
|
else LOG("WARNING: Provided category is not valid: %s\n", category);
|
||||||
//----------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user