summaryrefslogtreecommitdiff
path: root/luapatch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'luapatch.cpp')
-rw-r--r--luapatch.cpp106
1 files changed, 53 insertions, 53 deletions
diff --git a/luapatch.cpp b/luapatch.cpp
index 0dbae95..8e5c8ee 100644
--- a/luapatch.cpp
+++ b/luapatch.cpp
@@ -10,17 +10,17 @@
#include "cdutils.h"
#include "isobuilder.h"
#include "luacd.h"
-#include "luapsx.h"
+#include "luapsx.h"
#include "luapatch-res.h"
-static int myprint(lua_State * _L) {
- Lua * L = Lua::find(_L);
- String t = L->tostring();
-
- Base::printm(M_BARE, t + "\n");
-
- return 0;
+static int myprint(lua_State * _L) {
+ Lua * L = Lua::find(_L);
+ String t = L->tostring();
+
+ Base::printm(M_BARE, t + "\n");
+
+ return 0;
}
bool Verify(HWND);
@@ -90,7 +90,7 @@ struct texts_t t_french[] = {
struct texts_t t_german[] = {
{IDC_ABOUTTEXT, IDD_ABOUT,
"LuaPatch version 0.3.0\n"
-"Adaptierte MFC Version \"Eve\"\n\n"
+"Adaptierte MFC Version \"Eve\"\n\n"
"CD Patch System\n\n"
"Copyright © 2003-2004 Nicolas \"Pixel\" Noble / NOBIS\n\n"
"http://www.nobis-crew.org/luapatch/\n"
@@ -98,7 +98,7 @@ struct texts_t t_german[] = {
{IDCANCEL, IDD_FILESELECT, "Beenden"},
{IDC_ABOUT, IDD_FILESELECT, "Info"},
{IDC_ST_SOURCETYPE, IDD_FILESELECT, "Quelletyp:"},
- {IDC_ST_SOURCE, IDD_FILESELECT, "Quelle:"},
+ {IDC_ST_SOURCE, IDD_FILESELECT, "Quelle:"},
{IDC_ST_DEST, IDD_FILESELECT, "Ziel Datei:"},
{IDC_ST_PATCH, IDD_FILESELECT, "Patch Datei:"},
{ISOFILE, 0, "Iso Image"},
@@ -299,14 +299,14 @@ BOOL CALLBACK FileSelectDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lParam
ComboBox_SetCurSel(control, 1);
control = GetDlgItem(hW, IDC_DRIVE);
-
- std::vector<String> p;
- p = cdabstract::probe();
-
- for (std::vector<String>::iterator i = p.begin(); i != p.end(); i++) {
- ComboBox_AddString(control, i->to_charp());
- }
- ComboBox_SetCurSel(control, 0);
+
+ std::vector<String> p;
+ p = cdabstract::probe();
+
+ for (std::vector<String>::iterator i = p.begin(); i != p.end(); i++) {
+ ComboBox_AddString(control, i->to_charp());
+ }
+ ComboBox_SetCurSel(control, 0);
fromdrive = true;
ShowWindow(GetDlgItem(hW, IDC_DRIVE), SW_SHOW);
ShowWindow(GetDlgItem(hW, IDC_SOURCE), SW_HIDE);
@@ -418,47 +418,47 @@ virtual int startup(void) throw (GeneralException) {
if (quit)
exit(0);
-
- Input * fpatch = new Input(patch);
- fpatch->seek(0);
-
- new Archive(fpatch);
+
+ Input * fpatch = new Input(patch);
+ fpatch->seek(0);
+
+ new Archive(fpatch);
Output * o;
cdutils * cdutil;
Handle * iso_r;
- cdutil = new cdutils(iso_r = cdabstract::open_cd(source));
+ cdutil = new cdutils(iso_r = cdabstract::open_cd(source));
isobuilder * b = new isobuilder(o = new Output(dest));
-
- Lua * L = new Lua();
- L->open_base();
- L->open_math();
- L->open_string();
- L->open_table();
- LuaInput::pushconstruct(L);
- LuaOutput::pushconstruct(L);
- LuaBuffer::pushconstruct(L);
- CD_PUSHSTATICS(L);
- Luapsx::pushstatics(L);
- L->push("print");
- L->push(myprint);
- L->settable(LUA_GLOBALSINDEX);
-
- Luacdutils lcdutil(cdutil);
- L->push("cdutil");
- lcdutil.push(L);
- L->setvar();
- Luaisobuilder liso(b);
- L->push("iso");
- liso.push(L);
- L->setvar();
- L->load(&Input("main"));
-
- delete b;
- delete o;
- delete cdutil;
- delete iso_r;
+
+ Lua * L = new Lua();
+ L->open_base();
+ L->open_math();
+ L->open_string();
+ L->open_table();
+ LuaInput::pushconstruct(L);
+ LuaOutput::pushconstruct(L);
+ LuaBuffer::pushconstruct(L);
+ CD_PUSHSTATICS(L);
+ Luapsx::pushstatics(L);
+ L->push("print");
+ L->push(myprint);
+ L->settable(LUA_GLOBALSINDEX);
+
+ Luacdutils lcdutil(cdutil);
+ L->push("cdutil");
+ lcdutil.push(L);
+ L->setvar();
+ Luaisobuilder liso(b);
+ L->push("iso");
+ liso.push(L);
+ L->setvar();
+ L->load(&Input("main"));
+
+ delete b;
+ delete o;
+ delete cdutil;
+ delete iso_r;
return 0;
}