fixed small modified bug

fixed another tiny bug (default author+default name weren't equal if you created a new plugin if the settings.ini wasn't found)
This commit is contained in:
Christian Hammacher 2006-04-25 14:51:13 +00:00
parent 98a1d2b3da
commit 697f63f2e9
6 changed files with 6 additions and 9 deletions

View File

@ -115,7 +115,7 @@ AutoIncBuild=1
MajorVer=1
MinorVer=4
Release=2
Build=5
Build=8
Debug=0
PreRelease=0
Special=0
@ -126,7 +126,7 @@ CodePage=1252
[Version Info Keys]
CompanyName=AMX Mod X Dev Team
FileDescription=
FileVersion=1.4.2.5
FileVersion=1.4.2.8
InternalName=gaben
LegalCopyright=AMX Mod X Dev Team
LegalTrademarks=

Binary file not shown.

Binary file not shown.

View File

@ -963,7 +963,6 @@ begin
ActiveDoc.SelStart := frmMain.sciEditor.SelStart;
ActiveDoc.SelLength := frmMain.sciEditor.SelLength;
ActiveDoc.TopLine := frmMain.sciEditor.GetFirstVisibleLine;
ActiveDoc.Modified := frmMain.sciEditor.Modified;
ActiveDoc.NotesText := GetRTFText(frmMain.rtfNotes);
ActiveDoc.Keywords := TSciKeywords(TSciLangItem(frmMain.sciEditor.LanguageManager.LanguageList.Find('Pawn').Keywords.Items[1])).Keywords.Text;
ActiveDoc.CallTips := frmMain.sciCallTips.ApiStrings.Text;
@ -998,7 +997,6 @@ begin
frmMain.mnuModified.Caption := lModified
else
frmMain.mnuModified.Caption := '';
frmMain.sciEditor.Modified := Document.Modified;
if RestoreCaret then begin
frmMain.sciEditor.SelStart := Document.SelStart;
@ -1162,7 +1160,6 @@ begin
ActiveDoc.SelStart := frmMain.sciEditor.SelStart;
ActiveDoc.SelLength := frmMain.sciEditor.SelLength;
ActiveDoc.TopLine := frmMain.sciEditor.GetFirstVisibleLine;
ActiveDoc.Modified := frmMain.sciEditor.Modified;
ActiveDoc.NotesText := GetRTFText(frmMain.rtfNotes);
end;

View File

@ -988,7 +988,7 @@ object frmMain: TfrmMain
'#include <amxmodx>'
'#include <amxmisc>'
''
'#define PLUGIN "New Plugin"'
'#define PLUGIN "New Plug-In"'
'#define VERSION "1.0"'
'#define AUTHOR "Author"'
''

View File

@ -639,7 +639,6 @@ begin
sciPropertyLoader.Load;
ReloadIni;
sciEditor.Modified := eModified;
ActiveDoc.Modified := eModified;
if eModified then
mnuModified.Caption := lModified
@ -737,9 +736,9 @@ begin
sciEditor.Lines.Add('#include <amxmodx>');
sciEditor.Lines.Add('#include <amxmisc>');
sciEditor.Lines.Add('');
sciEditor.Lines.Add('#define PLUGIN "' + eConfig.ReadString('Misc', 'DefaultPluginName', 'New Plugin') + '"');
sciEditor.Lines.Add('#define PLUGIN "' + eConfig.ReadString('Misc', 'DefaultPluginName', 'New Plug-In') + '"');
sciEditor.Lines.Add('#define VERSION "' + eConfig.ReadString('Misc', 'DefaultPluginVersion', '1.0') + '"');
sciEditor.Lines.Add('#define AUTHOR "' + eConfig.ReadString('Misc', 'DefaultPluginAuthor', 'Your name') + '"');
sciEditor.Lines.Add('#define AUTHOR "' + eConfig.ReadString('Misc', 'DefaultPluginAuthor', 'Your Name') + '"');
sciEditor.Lines.Add('');
sciEditor.Lines.Add('');
sciEditor.Lines.Add('public plugin_init() {');
@ -747,6 +746,7 @@ begin
sciEditor.Lines.Add(' ');
sciEditor.Lines.Add(' // Add your code here...');
sciEditor.Lines.Add('}');
ActiveDoc.Modified := False;
Plugin_CreateNewFile(NEW_Pawn_PLUGIN, False);
end;