commit 6d850da61459b7b3a7866fca4080a62f2d180fe3 Author: Alexander Popov Date: Mon Oct 5 01:47:53 2020 +0300 Init diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e660fd9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +bin/ diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..cf1ab25 --- /dev/null +++ b/LICENSE @@ -0,0 +1,24 @@ +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +For more information, please refer to diff --git a/README.md b/README.md new file mode 100644 index 0000000..fc506e8 --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +Инструкция по запуску OGSR Mod в Steam +================================================== +[![https://img.shields.io/badge/Download-this-lightgrey?style=for-the-badge](https://img.shields.io/badge/Download-this-lightgrey?style=for-the-badge)](https://github.com/iiiypuk/ogsr_steam/releases/latest) ![Latest release](https://img.shields.io/github/v/release/iiiypuk/ogsr_steam?style=for-the-badge) ![Total downloads](https://img.shields.io/github/downloads/iiiypuk/ogsr_steam/total?style=for-the-badge) + +**Установка:** +- Скачиваем и устанавливаем мод по [инструкции](https://vk.com/ogsr_mod?w=page-9551243_48936200). +- Скачиваем [архив с бинарником](https://github.com/iiiypuk/ogsr_steam/releases/latest) и кладём в директорию с игрой. +- Всё! :blush:. + +[Страница мода в Vk](https://vk.com/ogsr_mod). +[Страница мода на форуме AMK TEAM](https://www.amk-team.ru/forum/topic/14062-ogsr-mod/). diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..4ced6aa --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,6 @@ +project(ogsr_steam) + +set(CMAKE_BINARY_DIR "../bin") +set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}) + +add_executable(XR_3DA XR_3DA.c) diff --git a/src/XR_3DA.c b/src/XR_3DA.c new file mode 100644 index 0000000..5751309 --- /dev/null +++ b/src/XR_3DA.c @@ -0,0 +1,15 @@ +#include +#include + +int main() +{ + char CurrentPath[FILENAME_MAX]; + + _getcwd(CurrentPath, sizeof(CurrentPath)); + SetCurrentDirectory("bin_x64"); + _getcwd(CurrentPath, sizeof(CurrentPath)); + + system("xrEngine.exe"); + + return 0; +}