void print_source_nesting_structure( void ) /*****************************************/ { struct src_item *curr; unsigned tab = 1; /* in main source file? */ if ( src_stack == NULL || src_stack->next == NULL ) return; for( curr = src_stack; curr->next ; curr = curr->next ) { if( curr->type == SIT_FILE ) { PrintNote( NOTE_INCLUDED_BY, tab, "", GetFName( curr->srcfile )->fname, curr->line_num ); tab++; } else { //char fname[_MAX_FNAME+_MAX_EXT]; if (*(curr->mi->macro->name) == NULLC ) { PrintNote( NOTE_ITERATION_MACRO_CALLED_FROM, tab, "", "MacroLoop", curr->line_num, curr->mi->macro->value + 1 ); } else { PrintNote( NOTE_MACRO_CALLED_FROM, tab, "", curr->mi->macro->name, curr->line_num, GetFNamePart( GetFName(((struct dsym *)curr->mi->macro)->e.macroinfo->srcfile)->fname ) ) ; } tab++; } } PrintNote( NOTE_MAIN_LINE_CODE, tab, "", GetFName( curr->srcfile )->fname, curr->line_num ); }
void OPTypeBase::PrintNote(DialectLocationBase& location, DialectNote& noteitem, opSectionStream& stream) { if (!noteitem.GetNoteDefinition()) return; // check against criteria if (!noteitem.IsMapped(this)) return; NoteDefinitionNode* notenode = noteitem.GetNoteDefinition(); if (!notenode) return; // NOTE: should I print something on skip? if (notenode->IsBodyEmpty()) return; // print initial conditionals int conditions = PrintConditions(stream); stream.PrintComment("\t//defined note: " + GetTypeSettings()->GetName() + "::" + location.GetName() + "::" + noteitem.GetName()); stream << endl; PrintNote(noteitem, stream); // print ending conditionals PrintConditionEnd(conditions, stream); }
__declspec(dllexport) void main() { Init(); __try { switch ( *(DWORD *)(0x00DDDC00) ) { /*case 0x508B018B : // 1.7.7.0 (2012) { break; } */ case 0x5FFFF2DD : // 1.8.151.0 (2012) { break; } default : { ShowVersion(); return; } } if(!EasySteam::Interface::GetInstance() || !EasySteam::Interface::GetInstance()->GetUser()->IsLoggedOn()) { Debug::ShowMessageBox("Unable to retrieve steam."); return; } Skyrim::RegisterOnlineScript(); srand((unsigned int)time(NULL)); PrintNote("To play Skyrim Online, press F3"); while(!Skyrim::TheGameWorld) { if(GetKeyPressed(VK_F3)) { NewInstance(); Skyrim::TheGameWorld->Setup(); break; } Wait(0); } if(Skyrim::TheGameWorld) Skyrim::TheGameWorld->Run(); } __except(GenerateDump(GetExceptionInformation())) { } }
// Plugin entry point. void main( ) { // Show version. PrintNote( "Version %x.", Skyrim::GetVersion() ); // Main execution loop. while ( true ) { Wait(100000); } }
bool InstallWindow::Step8ShowNotes() { StepUpdateStatus(true); if (!_game->InstallNotes().isEmpty()) { PrintNote(tr("Notes") + "<br />" + _game->InstallNotes()); } PrintDone(tr("Game installed!")); ui->returnButton->show(); return true; }
void OPObjectNode::PrintFunctionMapEnd(opSectionStream& stream, DialectCategory& category, DialectLocation& location, DialectMap& mapinfo, int map_count) { DialectNote& noteitem = mapinfo.GetEndNote(); if (!noteitem.GetNoteDefinition()) return; stream.PrintComment("\t//defined note: " + category.GetName() + "::" + location.GetName() + "::" + mapinfo.GetName() + "::end"); stream << endl; PrintNote(noteitem, stream, End, map_count); }
void OPObjectNode::PrintFunctionMapStart(opSectionStream& stream, DialectCategory& category, DialectLocation& location, DialectMap& mapinfo) { DialectNote& noteitem = mapinfo.GetStartNote(); if (!noteitem.GetNoteDefinition()) return; stream.PrintComment("\t//defined note: " + category.GetName() + "::" + location.GetName() + "::" + mapinfo.GetName() + "::start"); stream << endl; PrintNote(noteitem, stream); }
void OPEnumNode::PrintEnumMapEnd(opSectionStream& stream, DialectEnumeration& enumeration, DialectEnumLocation& location, DialectEnumMap& mapinfo, int map_count) { DialectNote& noteitem = mapinfo.GetEndNote(); if (!noteitem.GetNoteDefinition()) return; stream.PrintComment("\t//defined note: " + enumeration.GetName() + "::" + location.GetName() + "::" + mapinfo.GetName() + "::end"); stream << endl; PrintNote(noteitem, stream, End, map_count); }
void OPEnumNode::PrintEnumMapStart(opSectionStream& stream, DialectEnumeration& enumeration, DialectEnumLocation& location, DialectEnumMap& mapinfo) { DialectNote& noteitem = mapinfo.GetStartNote(); if (!noteitem.GetNoteDefinition()) return; stream.PrintComment("\t//defined note: " + enumeration.GetName() + "::" + location.GetName() + "::" + mapinfo.GetName() + "::start"); stream << endl; PrintNote(noteitem, stream); }
// print notes and maps for a given location void OPObjectNode::PrintLocationNotes(DialectLocation* location, opSectionStream& stream) { if (!location) return; // iterate over all registered types, print them in order // we should print the default visibility before and after each item if (location->GetId() == DialectLocation::body) PrintVisibility(vismode_default, stream); DialectLocationBase::OrderedNoteList& OrderedNotes = location->GetOrderedNotes(); DialectLocationBase::OrderedNoteList::iterator i = OrderedNotes.begin(); DialectLocationBase::OrderedNoteList::iterator end = OrderedNotes.end(); while (i != end) { DialectNoteBase* item = *i; bool bPrintVisibility = true; if (DialectNote* noteitem = item->ToNote()) { // print a note PrintNote(*location, *noteitem, stream); bPrintVisibility = !noteitem->GetNoteDefinition()->IsBodyEmpty(); } else if (DialectMap* mapitem = item->ToMap()) { // print a map PrintMap(*location, *mapitem, stream); bPrintVisibility = !mapitem->IsAllNotesEmpty(); } if (bPrintVisibility) { if (location->GetId() == DialectLocation::body) PrintVisibility(vismode_default, stream); } ++i; } }
// print notes and maps for a given location void OPEnumNode::PrintLocationNotes(DialectEnumLocation* location, opSectionStream& stream) { if (!location) return; DialectLocationBase::OrderedNoteList& OrderedNotes = location->GetOrderedNotes(); DialectLocationBase::OrderedNoteList::iterator i = OrderedNotes.begin(); DialectLocationBase::OrderedNoteList::iterator end = OrderedNotes.end(); while (i != end) { DialectNoteBase* item = *i; if (DialectNote* noteitem = item->ToNote()) { // print a note PrintNote(*location, *noteitem, stream); } else if (DialectEnumMap* mapitem = item->ToEnumMap()) { // print a map PrintEnumMap(stream, *GetEnumSettings(), *location, *mapitem); } ++i; } }
__declspec(dllexport) void main() { //std::ostringstream os; //for(int i = 0; i < 6; ++i) // os << Actor::Item //Log::GetInstance()->Debug(os.str()); CLR_Init(); srand((unsigned int)time(NULL)); PrintNote("To play Skyrim Online, press F3"); bool onlineMod = false; while(!SkyrimOnline::Mod::Exists()) { if(GetKeyPressed(VK_F3)) { onlineMod = true; break; } Wait(0); } if(onlineMod || SkyrimOnline::Mod::Exists()) SkyrimOnline::Mod::GetInstance().Run(); }