MCPcopy Create free account
hub / github.com/TASEmulators/fceux / FCEU_FDSInsert

Function FCEU_FDSInsert

src/fds.cpp:174–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174void FCEU_FDSInsert(void)
175{
176 if (TotalSides == 0)
177 {
178 FCEU_DispMessage("Not FDS; can't eject disk.", 0);
179 return;
180 }
181
182 if (FCEUI_EmulationPaused())
183 EmulationPaused |= EMULATIONPAUSED_FA;
184
185 if (FCEUMOV_Mode(MOVIEMODE_RECORD))
186 FCEUMOV_AddCommand(FCEUNPCMD_FDSINSERT);
187
188 if (InDisk == 255)
189 {
190 FCEU_DispMessage("Disk %d Side %s Inserted", 0, SelectDisk >> 1, (SelectDisk & 1) ? "B" : "A");
191 InDisk = SelectDisk;
192 } else
193 {
194 FCEU_DispMessage("Disk %d Side %s Ejected", 0, SelectDisk >> 1, (SelectDisk & 1) ? "B" : "A");
195 InDisk = 255;
196 }
197}
198/*
199void FCEU_FDSEject(void)
200{

Callers 3

FCEU_DoSimpleCommandFunction · 0.85
FCEUMOV_AddInputStateFunction · 0.85
fdsEjectDiskMethod · 0.85

Calls 4

FCEU_DispMessageFunction · 0.85
FCEUI_EmulationPausedFunction · 0.85
FCEUMOV_ModeFunction · 0.85
FCEUMOV_AddCommandFunction · 0.85

Tested by

no test coverage detected