From 007b11a874606eb8cc562b006a8548fee473b5da Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Sun, 5 Feb 2023 01:04:33 +0300 Subject: [PATCH] preparing --- .editorconfig | 27 +++++++++++++++++++++++++++ README.md | 3 +-- src/app.rc | 1 + src/launcher.c | 24 ++++++++++++++++++++++++ src/launcher.ico | Bin 0 -> 67646 bytes src/make.bat | 2 ++ src/resource.h | 2 ++ 7 files changed, 57 insertions(+), 2 deletions(-) create mode 100644 .editorconfig create mode 100644 src/app.rc create mode 100644 src/launcher.c create mode 100644 src/launcher.ico create mode 100644 src/make.bat create mode 100644 src/resource.h diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..466007a --- /dev/null +++ b/.editorconfig @@ -0,0 +1,27 @@ +root = true + +[*] +indent_style = space +indent_size = 4 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[{*.c,*.h}] +indent_style = space +indent_size = 4 + +[*.md] +trim_trailing_whitespace = false + +[make.bat] +end_of_line = crlf + +[Makefile] +indent_style = tab +indent_size = 4 + +[.gitconfig] +indent_style = tab +indent_size = 4 diff --git a/README.md b/README.md index c249875..96d222a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1 @@ -# StalkerUniModSteam - +# Универсальный лаунчер для запуска модов STALKER в Steam diff --git a/src/app.rc b/src/app.rc new file mode 100644 index 0000000..1a7acb3 --- /dev/null +++ b/src/app.rc @@ -0,0 +1 @@ +IDI_ICON1 ICON launcher.ico diff --git a/src/launcher.c b/src/launcher.c new file mode 100644 index 0000000..418d145 --- /dev/null +++ b/src/launcher.c @@ -0,0 +1,24 @@ +#include +#include +#include +#include + +int main() +{ + char CurrentPath[FILENAME_MAX]; + + _getcwd(CurrentPath, sizeof(CurrentPath)); + // Change mod binary directory Oblivion Lost REMAKE + SetCurrentDirectory("_bin_olr_"); + // Change mod binary directory OGSR + // SetCurrentDirectory("bin_x64"); + + _getcwd(CurrentPath, sizeof(CurrentPath)); + + // Run S.T.A.L.K.E.R.: Oblivion Lost REMAKE + system("XR_3DA.exe -smap4096"); + // Run S.T.A.L.K.E.R.: OGSR + // system("xrEngine.exe"); + + return 0; +} diff --git a/src/launcher.ico b/src/launcher.ico new file mode 100644 index 0000000000000000000000000000000000000000..cbf31075217306f95562267ead43e9413656d58d GIT binary patch literal 67646 zcmeI52fP&3y~pQ(0)lb{sVZI-6hyHBidevcSQAA}Ytg#?Pv2Ya?EKkLPMno*w zViLp>v2tSyqR-@m;uFmiQDct{^(A@lCFlLVvpX<5?B1Q3o!y;X?t$Okot-o1{L88T z^FL=C$LL>ElcTVyGoXWUdg$8#p-Ip!{oj;t3c9H8&`#|25_S|06UGZS3y%m3g*Sx{ zg)fEggui9McYfpETf&RNqrwbfqHu&TMCdJ$M{7uj1Uib0{=yjHGGVT;SolOhxBn7s zi69Nq`c!yLm?vBzP$sq#Iti_zG7_Kx>n@BErU=gp)Y<?iaT z+6b*7SqXGia>#eOK>hx2A*#O09iKL0i9nxmkkCzN4e=$gmLA!%U?P6>qi{BLilE0F8Gam#3Al`_c`|UnT}m>jbrZ~Z|tO_js5;` zV+Ztc?7HhDPk&Y>U+D7+0UK961^W5Ngv9E68{^m>>pOPTU}KwpWbEUY8@u#Q$9^W= zdHQvAI@hsZ3FtKnc;;)tpVnW0;n=rkJNC&djh%A5vHPo?=+)J+ZPeC?x1>N@@Qg52 zsP)iR46qKvx=SMRS$|!}?z5w@*PLwZ!s(9v_@RuB&{G^eM=2A;B@gmiq4wjGpF8%Y zn;d)nX_-EwYv*Km%*yH=eI6^+s_lsR{6v9uwUTsC{pz=&W6wU+*k`UX_M-)3G`Tl7~S!T6(8zV$qFgiD3>gjxz4h}c_%e+aSVfDE_Y+_6(n zF!t4-t*U!pMQqEH)_I}yD3A0RuixR=YfmwDu*Q&Ul|FW4ooTkfx^^vuJ|gmAfqpEO z?&;gNZglL`YUAHjpYF-EklfSuyEkt5ue%+4!|BFu-?!v30ygl+h0TRDhrS|iz7R|A z-gC!j4)&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g3dd%;M7a`3rONu5+8 zuP?@RF4wD#!|LP`StEbRkl+m8}X7U(nX66Omp2}=dWWFHII z9RPM$^vfO!+Hid9C`(rgrwF5kfdciruKIH8hUMZa^UeKBiFZb<`a!o<%vW7=se0uF zH@fcuCh-al-u-6xa#aqQ%asXaA77aO?W!9ZGYKruUV0QXd)HZ#o4o4`MGU#KVKND< zOg@{z%H-8@a6d~ekGK>s&pxaVm*wVF*KUSQtF8^tuex+O@@4NhlXJ3n3Gij_5)i!h zk>e7y+@HP(YW81?px||r|Go&!xt4_dw?%Lcxgt1t?UNo)jtE}okS~UU*E#Hnp<>s| zbLneexKX^Y_pMuxH z`WUl5qkFUyL uMCN)WN7+kH#M$Ilig0Crnx)WtJWElQ8WM3?&gRaw%fe*7WrHGQZ~s4l#lHXm literal 0 HcmV?d00001 diff --git a/src/make.bat b/src/make.bat new file mode 100644 index 0000000..58d473f --- /dev/null +++ b/src/make.bat @@ -0,0 +1,2 @@ +rem windres -O coff app.rc -o appres.o +tcc.exe launcher.c -o XR_3DA.exe diff --git a/src/resource.h b/src/resource.h new file mode 100644 index 0000000..07433a8 --- /dev/null +++ b/src/resource.h @@ -0,0 +1,2 @@ +//{{NO_DEPENDENCIES}} +#define IDI_ICON1 101