Browse Source

segv patch fix, new icon for NT

master
despair 4 years ago
parent
commit
3a487d0811
5 changed files with 84 additions and 2 deletions
  1. 4
    1
      NTMakefile
  2. BIN
      netrunner.ico
  3. 63
    0
      netrunner.rc
  4. 16
    0
      resource.h
  5. 1
    1
      src/main.cpp

+ 4
- 1
NTMakefile View File

@@ -78,7 +78,10 @@ OBJECTS = $(subst $(SRCDIR),$(OBJDIR),$(SOURCES:.cpp=.o))
all: $(SOURCES) netrunner
netrunner: $(OBJECTS) $(OBJDIR)/tlsf.o
netrunner.res.o: netrunner.rc
windres $^ -o $@
netrunner: $(OBJECTS) $(OBJDIR)/tlsf.o netrunner.res.o
$(LINK) $(LDFLAGS) -o $@ $^ $(LIBS)
shaders:

BIN
netrunner.ico View File


+ 63
- 0
netrunner.rc View File

@@ -0,0 +1,63 @@
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE
BEGIN
"resource.h\0"
END
2 TEXTINCLUDE
BEGIN
"\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 "netrunner.ico"
/////////////////////////////////////////////////////////////////////////////
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED

+ 16
- 0
resource.h View File

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

+ 1
- 1
src/main.cpp View File

@@ -79,7 +79,7 @@ bool fileExists(const std::string s) {

int main(int argc, char *argv[]) {
// show help msg when "--help" appears
if (strcmp(argv[1], "--help")==0) {
if (argv[1] && (strcmp(argv[1], "--help")==0)) {
std::cout << "./netrunner [http://host.tld/|/path/to/file.html] [-log <error|warning|notice|info|debug>]" << std::endl;
return 1;
}

Loading…
Cancel
Save