Version Information now rely on languages, some more updates on named uservars, maybe last one before official release :) (preview UserVars.nsi - doesn't compile yet)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2633 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
7adbddc567
commit
1ea2160310
14 changed files with 539 additions and 283 deletions
27
Source/uservars.h
Normal file
27
Source/uservars.h
Normal file
|
@ -0,0 +1,27 @@
|
|||
// uservars.h by Ramon 10 Jun 2003
|
||||
|
||||
#ifndef ___USERVARS___H_____
|
||||
#define ___USERVARS___H_____
|
||||
|
||||
#ifdef NSIS_SUPPORT_NAMED_USERVARS
|
||||
|
||||
#include "Lang.h"
|
||||
|
||||
class UserVarsStringList : public LangStringList
|
||||
{
|
||||
public:
|
||||
UserVarsStringList()
|
||||
{
|
||||
}
|
||||
~UserVarsStringList() { }
|
||||
|
||||
int get(char *name, size_t n_chars = -1)
|
||||
{
|
||||
int v=SortedStringListND<struct langstring>::find(name, n_chars);
|
||||
if (v==-1) return -1;
|
||||
return (((struct langstring*)gr.get())[v].index);
|
||||
}
|
||||
};
|
||||
#endif //NSIS_SUPPORT_NAMED_USERVARS
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue