Browse Source

add executable icon

master v1.0.1
Alexander Popov 2 years ago
parent
commit
b77a6729c9
  1. 6
      CMakeLists.txt
  2. BIN
      src/5.ico
  3. 6
      src/CMakeLists.txt
  4. 72
      src/Resource.rc
  5. 3
      src/XR_3DA.c
  6. 16
      src/resource.h

6
CMakeLists.txt

@ -0,0 +1,6 @@
cmake_minimum_required(VERSION 3.0)
project(ogsr_steam)
file(GLOB SOURCES "src/*")
add_executable(XR_3DA ${SOURCES})

BIN
src/5.ico

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

6
src/CMakeLists.txt

@ -1,6 +0,0 @@
project(ogsr_steam)
set(CMAKE_BINARY_DIR "../bin")
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})
add_executable(XR_3DA XR_3DA.c)

72
src/Resource.rc

@ -0,0 +1,72 @@
// Microsoft Visual C++ generated resource script.
//
#pragma code_page(65001)
#include "resource.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "winres.h"
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
// English (United States) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE
BEGIN
"resource.h\0"
END
2 TEXTINCLUDE
BEGIN
"#include ""winres.h""\r\n"
"\0"
END
3 TEXTINCLUDE
BEGIN
"\r\n"
"\0"
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Icon
//
// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_ICON1 ICON "D:\\Develop\\ogsr_steam\\src\\5.ico"
#endif // English (United States) resources
/////////////////////////////////////////////////////////////////////////////
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED

3
src/XR_3DA.c

@ -1,6 +1,8 @@
#include <stdio.h>
#include <windows.h>
#include "resource.h"
int main()
{
char CurrentPath[FILENAME_MAX];
@ -9,6 +11,7 @@ int main()
SetCurrentDirectory("bin_x64");
_getcwd(CurrentPath, sizeof(CurrentPath));
// Run S.T.A.L.K.E.R.
system("xrEngine.exe");
return 0;

16
src/resource.h

@ -0,0 +1,16 @@
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by Resource.rc
//
#define IDI_ICON1 101
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 102
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1001
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
Loading…
Cancel
Save