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 0000000..cbf3107 Binary files /dev/null and b/src/launcher.ico differ 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