Skip to content

Commit cf7c5fe

Browse files
committed
* win32/exconfig.* : Files for Win32 Innosetup Helper DLL
* win32/exult_installer.iss : Innosetup Installer Script * msvcstuff/* : Updated Projects * singles.h : Fixing a compiling problem * exulticon.h : Getting rid of warning * Makefile.common : Added win32 dir to search path * Makefile.mingw : Added rules for helper dll, and auto generate win32 installer
1 parent d8486d5 commit cf7c5fe

File tree

6 files changed

+30
-12
lines changed

6 files changed

+30
-12
lines changed

Makefile.common

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
VPATH=$(SRC):$(SRC)/audio:$(SRC)/audio/midi_drivers:$(SRC)/conf:$(SRC)/data:$(SRC)/files:$(SRC)/files/zip:$(SRC)/flic: \
2-
$(SRC)/gumps:$(SRC)/imagewin:$(SRC)/mapedit/tools/mockup:$(SRC)/mapedit/tools/smooth:$(SRC)/objs:$(SRC)/pathfinder \
3-
$(SRC)/shapes:$(SRC)/server:$(SRC)/tools:$(SRC)/usecode:$(SRC)/usecode/compiler:$(SRC)/usecode/ucxt:$(SRC)/usecode/ucxt/src
2+
$(SRC)/gumps:$(SRC)/imagewin:$(SRC)/mapedit/tools/mockup:$(SRC)/mapedit/tools/smooth:$(SRC)/objs:$(SRC)/pathfinder: \
3+
$(SRC)/shapes:$(SRC)/server:$(SRC)/tools:$(SRC)/usecode:$(SRC)/usecode/compiler:$(SRC)/usecode/ucxt:$(SRC)/usecode/ucxt/src: \
4+
$(SRC)/win32
45

56
VERSION=1.4.01cvs
67

Makefile.mingw

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ include Makefile.common
5454
exultico.o: win32/exultico.rc win32/exult.ico
5555
windres --include-dir win32 win32/exultico.rc exultico.o
5656

57+
exconfig_rc.o: win32/exconfig.rc
58+
windres --include-dir win32 win32/exconfig.rc exconfig_rc.o
59+
60+
exconfig.dll: win32/exconfig.def $(FILE_OBJS) $(CONF_OBJS) exconfig_rc.o exconfig.o
61+
dllwrap --def win32/exconfig.def -o $@ $(FILE_OBJS) $(CONF_OBJS) exconfig_rc.o exconfig.o -lstdc++
62+
63+
5764
install: $(EXEC)
5865
mkdir -p $(U7PATH)
5966
strip $(EXEC) -o $(U7PATH)/$(EXEC)
@@ -66,7 +73,7 @@ install: $(EXEC)
6673
cp SDL/lib/SDL_mixer.dll $(U7PATH)
6774

6875

69-
dist: $(EXEC)
76+
dist: $(EXEC) exconfig.dll
7077
mkdir -p $(U7PATH)
7178
mkdir -p $(U7PATH)/Exult
7279
strip $(EXEC) -o $(U7PATH)/Exult/$(EXEC)
@@ -95,6 +102,9 @@ dist: $(EXEC)
95102
cp SDL/lib/SDL.dll $(U7PATH)/Exult
96103
cp SDL/lib/SDL_mixer.dll $(U7PATH)/Exult
97104
u2d $(U7PATH)/Exult/*.txt
105+
strip exconfig.dll -o $(U7PATH)/exconfig.dll
106+
cp win32/exult_installer.iss $(U7PATH)
107+
iscc $(U7PATH)/exult_installer.iss
98108

99109
toolsinstall: tools
100110
mkdir -p $(U7PATH)

exulticon.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

singles.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class Game_singletons
3535
static class Palette *pal;
3636
static class Gump_manager *gumpman;
3737
static class Party_manager *partyman;
38+
friend class Game_window;
3839
public:
3940
static void init(Game_window *g);
4041
};

win32/exconfig.def

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
EXPORTS
2-
GetExultGamePaths = GetExultGamePaths@16
3-
SetExultGamePaths = SetExultGamePaths@12
4-
VerifyBGDirectory = VerifyBGDirectory@4
5-
VerifySIDirectory = VerifySIDirectory@4
2+
GetExultGamePaths
3+
SetExultGamePaths
4+
VerifyBGDirectory
5+
VerifySIDirectory

win32/exult_installer.iss

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,13 +248,19 @@ function NextButtonClick(CurPageID: Integer): Boolean;
248248
var
249249
iBGVerified: Integer;
250250
iSIVerified: Integer;
251+
sDir : string;
251252
begin
252253
253254
if CurPageID = DataDirPage.ID then begin
254255
255-
iBGVerified := VerifyBGDirectory ( BGEdit.Text );
256-
iSIVerified := VerifySIDirectory ( SIEdit.Text );
257-
256+
sDir := BGEdit.Text;
257+
if Length(sDir) > 0 then begin iBGVerified := VerifyBGDirectory ( sDir );
258+
end else iBGVerified := 0;
259+
260+
sDir := SIEdit.Text;
261+
if Length(sDir) > 0 then begin iSIVerified := VerifySIDirectory ( sDir );
262+
end else iSIVerified := 0;
263+
258264
if (iBGVerified = 0) AND (iSIVerified = 0) then begin
259265
if MsgBox ('Warning: No valid game installations found. Do you wish to continue?', mbError, MB_YESNO or MB_DEFBUTTON2) = IDYES then begin
260266
Result := True;

0 commit comments

Comments
 (0)