Skip to content

Commit 430a17d

Browse files
author
nmlgc
committed
Specify project name in np2ver.h only
1 parent d8c2346 commit 430a17d

8 files changed

Lines changed: 18 additions & 21 deletions

File tree

common/strres.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "compiler.h"
22
#include "strres.h"
3+
#include "np2ver.h"
34

45

56
const UINT8 str_utf8[3] = {0xef, 0xbb, 0xbf};
@@ -43,7 +44,7 @@ const OEMCHAR str_posy[] = OEMTEXT("posy");
4344
const OEMCHAR str_width[] = OEMTEXT("width");
4445
const OEMCHAR str_height[] = OEMTEXT("height");
4546

46-
const OEMCHAR str_np2[] = OEMTEXT("Neko Project II");
47+
const OEMCHAR str_np2[] = PROJECTNAME;
4748
const OEMCHAR str_resume[] = OEMTEXT("Resume");
4849

4950
const OEMCHAR str_VM[] = OEMTEXT("VM");

np2ver.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
#if !defined(SUPPORT_PC9821)
2+
#define PROJECTNAME OEMTEXT("Neko Project II - Debug Edition")
3+
#else
4+
#define PROJECTNAME OEMTEXT("Neko Project 21 - Debug Edition")
5+
#endif
6+
#if !defined(_WIN64)
7+
#define PROJECTSUBNAME OEMTEXT("")
8+
#else
9+
#define PROJECTSUBNAME OEMTEXT(" x64")
10+
#endif
111

212
#define NP2VER_CORE "ver.0.83"
313

win9x/dialog/d_about.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
static SIZE s_szAbout;
1414

15-
static const OEMCHAR str_np2title[] = OEMTEXT(PROJECTNAME) \
16-
OEMTEXT(PROJECTSUBNAME) \
15+
static const OEMCHAR str_np2title[] = PROJECTNAME \
16+
PROJECTSUBNAME \
1717
OEMTEXT(" ");
1818
static const OEMCHAR np2infostr[] = OEMTEXT("CPU: %CPU% %CLOCK%\nMEM: %MEM1%\nGDC: %GDC%\n %GDC2%\nTEXT: %TEXT%\nGRPH: %GRPH%\nSOUND: %EXSND%\n\nBIOS: %BIOS%\nRHYTHM: %RHYTHM%\n\nSCREEN: %DISP%");
1919

win9x/np2.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
#if defined(SUPPORT_DCLOCK)
5959
#include "dclock.h"
6060
#endif
61+
#include "np2ver.h"
6162
#include "break.h"
6263

6364
#ifdef BETA_RELEASE
@@ -75,7 +76,7 @@ static TCHAR szClassName[] = _T("NP2-MainWindow");
7576
BOOL winui_en;
7677

7778
NP2OSCFG np2oscfg = {
78-
OEMTEXT(PROJECTNAME) OEMTEXT(PROJECTSUBNAME),
79+
PROJECTNAME PROJECTSUBNAME,
7980
OEMTEXT("NP2"),
8081
CW_USEDEFAULT, CW_USEDEFAULT, 1, 1, 0, 0, 0, 1, 0, 0,
8182
0, 0, KEY_UNKNOWN, 0,

win9x/np2.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,6 @@
22
extern "C" {
33
#endif
44

5-
#if !defined(SUPPORT_PC9821)
6-
#define PROJECTNAME "Neko Project II"
7-
#else
8-
#define PROJECTNAME "Neko Project 21"
9-
#endif
10-
11-
#if !defined(_WIN64)
12-
#define PROJECTSUBNAME ""
13-
#else
14-
#define PROJECTSUBNAME " x64"
15-
#endif
16-
175
typedef struct {
186
UINT8 port;
197
UINT8 def_en;

win9x/np21.rc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,8 +1075,6 @@ FONT 8, "MS Shell Dlg", 0, 0, 1
10751075
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
10761076
STRINGTABLE
10771077
{
1078-
IDS_APP_NAME2 "Neko Project II"
1079-
IDS_APP_NAME21 "Neko Project 21"
10801078
IDS_FILENAME_HELP "np2.chm"
10811079
IDS_CAPTION_TOOL "NP2 tool"
10821080
IDS_CAPTION_KEYDISP "Key display"

win9x/resource.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,6 @@
270270
#define IDC_ADDR_SEG 18101
271271
#define IDC_ADDR_OFF 18102
272272
#define IDC_ADDR_REAL 18103
273-
#define IDS_APP_NAME2 30001
274-
#define IDS_APP_NAME21 30002
275273
#define IDS_FILENAME_HELP 30003
276274
#define IDS_FONTFACE 30011
277275
#define IDS_PFONTFACE 30012

win9x/sstp.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#if defined(OSLANG_UTF8) || defined(OSLANG_UCS2)
1616
#include "oemtext.h"
1717
#endif
18+
#include "np2ver.h"
1819

1920
static HWND sstphwnd = NULL;
2021
static int sstp_stat = SSTP_READY;
@@ -27,7 +28,7 @@ static void (*sstpproc)(HWND, char *) = NULL;
2728

2829
static const OEMCHAR sendermes[] = \
2930
OEMTEXT("SEND SSTP/1.2\r\n") \
30-
OEMTEXT("Sender: Neko Project II\r\n") \
31+
OEMTEXT("Sender: " PROJECTNAME) \
3132
OEMTEXT("Script: \\h\\s0%s\\e\r\n") \
3233
OEMTEXT("Option: notranslate\r\n") \
3334
OEMTEXT("Charset: Shift_JIS\r\n") \

0 commit comments

Comments
 (0)