MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / CreateLanguageCard

Function CreateLanguageCard

source/Memory.cpp:374–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372}
373
374void CreateLanguageCard(void)
375{
376 SS_CARDTYPE slot0CardType = GetCardMgr().QuerySlot(SLOT0);
377 if (IsApple2PlusOrClone(GetApple2Type()))
378 {
379 switch (slot0CardType) {
380 case CT_Empty: // OK
381 case CT_Saturn128K: // OK
382 case CT_LanguageCard: // OK
383 break;
384 default: // Anything else is invalid
385 GetCardMgr().Remove(SLOT0);
386 break;
387 }
388 }
389 else
390 {
391 // only ever a CT_LanguageCardIIe for a //e
392 if (slot0CardType != CT_LanguageCardIIe)
393 GetCardMgr().Insert(SLOT0, CT_LanguageCardIIe);
394
395 SetMemMainLanguageCard(nullptr, SLOT0, true); // Force this, as LoadConfiguration() calls this twice when memmain==0 (for //e)
396 }
397}
398
399SS_CARDTYPE GetCurrentExpansionMemType(void)
400{

Callers 2

MemInitializeFunction · 0.85
MemLoadSnapshotFunction · 0.85

Calls 6

IsApple2PlusOrCloneFunction · 0.85
GetApple2TypeFunction · 0.85
SetMemMainLanguageCardFunction · 0.85
QuerySlotMethod · 0.80
RemoveMethod · 0.45
InsertMethod · 0.45

Tested by

no test coverage detected